An interactive browser-based tool for comparing knowledge graphs against ground truth datasets.
Designed for evaluating LLM-generated graphs, entity extraction pipelines, and relationship extraction systems.
- Compare:
- Ground truth graphs (
gs<ID>.json) - Generated graphs (
generated<ID>.json) - Matching by ID
- Ground truth graphs (
- Automatic TP / FN / FP / UNKNOWN classification
- D3.js-powered force graph
- Relationship edge rendering
- Parallel edge curves
- Zoom + pan controls
- Drag-and-drop graph navigation
- Entity coverage
- Relationship coverage
- Precision metrics
- Per-file summaries
- Per-type breakdowns
- Aggregate experiment statistics
Merge semantically equivalent nodes across graphs.
Reconnect incorrect generated edges to correct gold-standard edges.
Manually verify UNKNOWN entities and relationships:
- Mark as TP
- Mark as FP
Filter graph elements by:
- Status
- TP
- FN
- FP
- UNKNOWN
- STIX entity type
- Download all modified experiments as ZIP
- Preserves verification annotations
- Outputs normalized JSON
{
"passage": "APT29 used malware X against target Y.",
"entities": [
{
"name": "APT29",
"type": "threat-actor"
}
],
"relationships": [
{
"source": "APT29",
"relationship": "uses",
"target": "Malware X"
}
]
}{
"entities": [
{
"name": "APT29",
"type": "threat-actor"
}
],
"relationships": [
{
"source": "APT29",
"relationship": "uses",
"target": "Malware X"
}
]
}- Open
index.html - Drag-and-drop JSON files
- Use naming convention:
gs1.jsongenerated1.json
The app automatically pairs experiments.
Paste JSON directly into:
- Ground truth textarea
- Model output textarea
Then click:
Compare Graphs
UNKNOWN items can be manually validated against the source passage.
Verification states:
tpfpunknown
These annotations persist in exported files.
- D3.js
- JSZip
- Vanilla JavaScript
- HTML5
- CSS3
No backend required.
Simply open:
index.html
Or serve locally:
python -m http.server 8000Then visit:
http://localhost:8000
- LLM evaluation
- Cyber threat intelligence extraction
- STIX graph QA
- Entity resolution research
- Relationship extraction benchmarking
- Human-in-the-loop graph correction
- Knowledge graph annotation workflows
The testing dataset used in this project is the test dataset from QCRI/AZERG-Dataset on Hugging Face.
@article{lekssays2025azerg, title={From Text to Actionable Intelligence: Automating STIX Entity and Relationship Extraction}, author={Lekssays, Ahmed and Sencar, Husrev Taha and Yu, Ting}, journal={arXiv preprint arXiv:2507.16576}, year={2025} }
Large Language Models (GPT-5.x series within Codex) were used to assist with code generation, enabling more rapid development. AI assistance was limited to implementing code that satisfied predefined function descriptions and requirements. Architectural decisions, system design, and overall engineering direction was led by me without the use of AI