Entity Review¶
The entity review workflow validates extracted concepts before commitment to the ontology.
Login Required
Editing and committing entities requires authentication.
Overview¶
After each extraction pass, entities enter a review queue:
- Validate accuracy of extracted entities
- Edit labels and definitions
- Match to existing ontology classes
- Approve new classes when needed
- Commit validated entities
Accessing Review¶
After extraction completes, the Entity Review page displays automatically. Access it via:
- Pipeline step completion
- Entity Review link in sidebar
- Direct URL:
/scenario_pipeline/<case_id>/entity_review/<pass>

Interface Layout¶
| Section | Description |
|---|---|
| Available Classes | Existing classes from OntServe ontology |
| Extracted Entities | New entities from extraction |
| Entity Details | Edit form for selected entity |
| Actions | Commit, clear, re-run controls |
Entity Table¶
The entity table displays extracted concepts:
| Column | Description |
|---|---|
| Select | Checkbox for bulk actions |
| Label | Short entity identifier |
| Type | Concept type (Role, State, etc.) |
| Definition | Full description |
| Status | New, Existing, Modified |
| Actions | Edit, Delete, View Extraction buttons |
Status Indicators¶
| Status | Icon | Meaning |
|---|---|---|
| New | Star | Extracted this session, no ontology match |
| Existing | Check | Matches existing ontology class |
| Modified | Pencil | User-edited entity |
| Pending | Clock | Awaiting review |
Editing Entities¶
Edit Dialog¶
Click Edit on any entity to open the edit dialog:
| Field | Description |
|---|---|
| Label | Short identifier (edit freely) |
| Definition | Full description (edit freely) |
| Class | Ontology class assignment |
| Source | Original extraction source |
Best Practices¶
When editing entities:
- Labels - Keep concise (2-5 words)
- Definitions - Be specific and complete
- Class - Match to existing when appropriate
- Source - Preserve for provenance
Merging Entities¶
If duplicate entities extracted:
- Identify duplicates
- Keep most accurate version
- Delete duplicates
- Or use Clear and Re-run
Class Assignment¶
Matching Existing Classes¶
To assign entity to existing class:
- Click Edit on entity
- Open Class dropdown
- Select matching class from list
- Save changes
Approving New Classes¶
When LLM identifies genuinely novel concept:
- Entity marked "New Class"
- Review definition carefully
- Click Approve New Class
- Entity will create new ontology class on commit
When to Approve New¶
Approve new class when:
- Concept not in existing ontology
- Definition is clear and specific
- Concept is genuinely distinct
- Will be useful for future cases
When to Reassign¶
Reassign to existing class when:
- Similar class exists in ontology
- Difference is merely wording
- Can be subsumed by existing concept
Bulk Operations¶
Select All¶
Use header checkbox to select all entities.
Bulk Delete¶
Select multiple entities and click Delete Selected.
Bulk Approve¶
Select multiple new classes and click Approve Selected.
Committing Entities¶
Commit Process¶
After review complete:
- Ensure all entities reviewed
- Click Commit Entities
- Entities saved to temporary storage
- Linked to extraction session
- Ready for next pipeline step
What Commit Does¶
| Action | Result |
|---|---|
| Saves | Entities to temporary_rdf_storage |
| Links | Entities to extraction_session_id |
| Records | Prompt and response in extraction_prompts |
| Enables | Next pipeline step |
Temporary vs Permanent¶
Committed entities remain in temporary storage until explicitly pushed to OntServe ontology. This allows:
- Further review and editing
- Rollback if needed
- Batch ontology updates
Clear and Re-run¶
When to Use¶
Use Clear and Re-run when:
- Extraction quality poor
- Major changes needed
- Starting fresh preferred
Clear Process¶
- Click Clear and Re-run
- Existing entities removed
- Extraction runs again
- New entities replace old
Preserving Work¶
If partial work should be preserved:
- Export entities first
- Or commit before clearing
- Then clear and re-run
OntServe Integration¶
Available Classes Source¶
Available classes fetched from OntServe MCP via:
get_entities_by_category()method- Real-time ontology query
- Cached for performance
Connection Status¶
Header shows OntServe status:
| Status | Meaning |
|---|---|
| Green | Connected, classes available |
| Yellow | Degraded, limited function |
| Red | Disconnected, no classes |
Fallback Mode¶
If OntServe unavailable:
- Available classes section empty
- Extraction still works
- Commit stores locally
- Push to ontology deferred
Troubleshooting¶
Empty Available Classes¶
If Available Classes empty:
- Check OntServe MCP running
- Verify connection status
- Restart OntServe if needed
Commit Failed¶
If commit fails:
- Check database connection
- Verify entity data valid
- Check for constraint violations
- Review error message
Lost Entities¶
If entities disappear:
- Check if Clear was clicked
- Review extraction session
- Check database directly
- Re-run extraction if needed
Related Pages¶
- Running Extractions - Extraction process
- Pipeline Automation - Batch processing
- Ontology Integration - OntServe details