Constraining LLM-Based RDF Generation with Ontology-Guided Prompting in Urban Agriculture
Investigating an ontology-guided prompting strategy for generating RDF knowledge graphs from textual descriptions of horticultural cultivars shows that ontology-guided prompting substantially improves structural validity and semantic accuracy while significantly reducing hallucinated assertions.