Prompt Ontology Specification
knowledge skill
Converts a plain-language prompt into a structured ontology specification. Produces a machine-readable schema defining entities, relationships, and constraints for downstream agents or tools.
Worked examples
- {"input": {"prompt": "Extract patient symptoms, diagnoses, and medications from clinical notes.", "domain_hint": "healthcare", "strict_mode": true}, "output": {"ontology_name": "ClinicalExtract_v1", "entities": [{"name": "Patient", "type": "object", "properties": {"id": "string", "age": "integer"}}, {"name": "Symptom", "type": "string", "values": ["fever", "cough"]}, {"name": "Medication", "type": "string"}], "relationships": [{"from": "Patient", "to": "Symptom", "type": "has"}], "constraints": [{"entity": "Symptom", "required": true}]}}
- {"input": {"prompt": "Identify product features and customer sentiment from reviews.", "domain_hint": "ecommerce", "strict_mode": false}, "output": {"ontology_name": "ReviewAnalysis_v2", "entities": [{"name": "Product", "type": "object", "properties": {"id": "string", "category": "string"}}, {"name": "Feature", "type": "string"}, {"name": "Sentiment", "type": "string", "values": ["positive", "negative"]}], "relationships": [{"from": "Product", "to": "Feature", "type": "includes"}], "constraints": []}}
Input
- prompt: string
- domain_hint: string
- strict_mode: boolean
Output
- ontology_name: string
- entities: array
- relationships: array
- constraints: array
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0