Summary
Build the system that automatically generates and maintains an ontology from ingested documents.
Blocked by
Blocks
Steps
- Based on the research recommendation, implement the chosen approach
- Create
backend/app/services/ontology.py with function generate_ontology(dataset_name) -> str that returns an OWL/TTL string
- After
cognee.cognify(), analyze extracted entities/relationships and generate/update the ontology file
- Store the generated ontology at a known path (e.g.,
data/ontologies/<dataset_name>.ttl)
- On subsequent ingestions to the same dataset, pass the existing ontology to
cognee.cognify(ontology_file_path=...)
Acceptance Criteria
Summary
Build the system that automatically generates and maintains an ontology from ingested documents.
Blocked by
Blocks
Steps
backend/app/services/ontology.pywith functiongenerate_ontology(dataset_name) -> strthat returns an OWL/TTL stringcognee.cognify(), analyze extracted entities/relationships and generate/update the ontology filedata/ontologies/<dataset_name>.ttl)cognee.cognify(ontology_file_path=...)Acceptance Criteria
Closes #75