Summary
Add GET/PUT endpoints so users can view and manually refine the auto-generated ontology.
Blocked by
Blocks
Nothing
Steps
- Add
GET /ontology?dataset=<name> — returns the current ontology content (OWL/TTL) for a dataset
- Add
PUT /ontology?dataset=<name> — accepts updated ontology content, validates format (parseable OWL/TTL), saves to file
- Add Pydantic models for request/response
- After a manual edit, the next
cognify() call for that dataset should use the updated ontology
- Write tests: GET returns current ontology, PUT updates it, invalid OWL returns 400
Acceptance Criteria
Summary
Add GET/PUT endpoints so users can view and manually refine the auto-generated ontology.
Blocked by
Blocks
Nothing
Steps
GET /ontology?dataset=<name>— returns the current ontology content (OWL/TTL) for a datasetPUT /ontology?dataset=<name>— accepts updated ontology content, validates format (parseable OWL/TTL), saves to filecognify()call for that dataset should use the updated ontologyAcceptance Criteria
GET /ontology?dataset=Xreturns the current ontologyPUT /ontology?dataset=Xupdates it and validates formatCloses #76