Skip to content
Open access

Constraining LLM-Based RDF Generation with Ontology-Guided Prompting in Urban Agriculture

Sep 2026 · Brazilian Symposium on Databases · pp. 197-209 · 0 citations · 10 references

TL;DR

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.

Abstract

The construction and maintenance of knowledge graphs remain labor-intensive tasks, particularly when relevant information is available primarily in semi-structured textual sources. Recent advances in large language models (LLMs) offer new opportunities for automating knowledge graph population, yet generating RDF instances that comply with ontology constraints remains challenging. This paper investigates an ontology-guided prompting strategy for generating RDF knowledge graphs from textual descriptions of horticultural cultivars. The proposed approach embeds a domain ontology together with modeling patterns derived from established semantic standards and provides explicit schema definitions, anchored instances, and few-shot RDF/Turtle examples within the prompt. The method is evaluated on a dataset of 42 cultivar webpages using SHACL-based validation, precision–recall analysis, and hallucination detection. Results show that ontology-guided prompting substantially improves structural validity and semantic accuracy while significantly reducing hallucinated assertions.

Read PDF

Similar papers

LLM-Guided Ontology-Driven Knowledge Graph Construction from Unstructured Text

Ontology-driven knowledge graph construction from industrial text remains challenging due to the domain specificity of documents, the scarcity of annotated resources, and the complexity of ontology engineering workflows. This paper presents and investigates the applicability of an ontology learning pipeline that combin...

Abdelhadi Belfadel, Maxence Gagnant, Joseph Kattan et al. · 0 citations
#large language models Open access Oct 2026

Ontology-Enriched GraphRAG: A Case Study in Portuguese Geoscience Question Answering

Retrieval-Augmented Generation (RAG) significantly enhances Large Language Models (LLMs) in Question-Answering (QA) tasks. However, traditional text-based retrieval may prove insufficient in specialized domains, such as geoscience, where critical information is highly interconnected and distributed across complex conce...

Tiago Rios da Rocha, J. Netto, Karin Becker · 0 citations
#artificial intelligence Conference Open access Oct 2026

Ontology-Guided Knowledge Graph Construction from Structured Metadata and Climate Science Publications

The rapid expansion of scientific literature far outpaces the speed of manual curation, creating a fundamental bottleneck in extracting structured knowledge from scientific texts. To address this, we introduce an agentic, ontology-guided framework for knowledge graph (KG) construction. Our framework utilizes specialize...

A. Acharya, Qi Zhang, E. Dragut et al. · 0 citations
Open access Oct 2026

LLM-Text2KG: Um Pipeline Orientado por Ontologias para Construção e Avaliação de Grafos de Conhecimento Extraídos de Documentos Institucionais

Institutional documents, such as meeting minutes, contain valuable organizational knowledge, but their unstructured nature hinders systematic analysis. This work presents LLM-Text2KG, an ontology-guided pipeline for constructing knowledge graphs from institutional documents. The pipeline was evaluated on ten meeting mi...

G. Veríssimo, J. Marinho, M. Duarte et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Extracting ontology-compliant knowledge from scientific text describing irradiated materials using large language models

Eolas, a modular pipeline that uses large language models to automatically transform scientific documents into knowledge graphs aligned with a specified ontology, is introduced and demonstrated effectiveness in extracting useful information for scientists studying materials designed to endure the extreme temperatures a...

M. Sbodio, Marcos Martínez Galindo, Vanessa López et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.