Introduction
In the modern data economy, "dataspaces" serve as critical infrastructures for secure data exchange. Central to these systems is data sovereignty, which is enforced through usage policies. The industry standard for expressing these rights is the W3C Open Digital Rights Language (ODRL). While powerful, ODRL presents a high barrier to entry due to its reliance on complex Semantic Web technologies and specific RDF graph structures. Domain experts, such as museum curators, often struggle to translate natural language rules into machine-readable ODRL policies without expensive technical assistance.
Methodology: LLM-Based KG Construction
To bridge this gap, this research introduces an automated end-to-end Knowledge Graph (KG) construction pipeline. The system leverages Large Language Models (LLMs) to transform natural language instructions into formal ODRL policies.
The pipeline consists of three core components:
- LLM Guidance Template (LGT): Instead of providing the full ODRL specification, the authors use a "distilled" version focusing on Syntax, Semantics, and curated Examples (the OSES framework).
- Task Description (TD): The raw natural language input provided by the user (e.g., "Painting X is authorized for display within Germany").
- Self-Correction Model (SCM): A rule-based loop where the LLM autonomously fixes structural or logical inconsistencies based on 49 predefined human-readable rules.
Key Insights: The Power of Distillation and Refinement
A significant finding of this study is that "distilling" an ontology into a plain-text guide is more effective than providing raw RDF files, which often lead to model hallucinations. The OSES (Ontology, Syntax, Semantics, and Samples) approach helps the LLM understand the required graph "shape" more accurately. Furthermore, the integration of a self-correction loop allows the LLM to act as an autonomous refiner, interpreting error messages to rewrite the KG without human intervention.
Empirical Evaluation
The approach was tested against a benchmark of 12 real-world use cases from the cultural heritage domain, covering various complexity levels and policy types, including Agreements, Offers, and Sets.
As shown in the evaluation, the "Refinement" method—combining ontology guidance with self-correction—consistently outperformed simpler prompting strategies. The system achieved a peak accuracy of 91.95% for specific use cases. Results also indicated that newer models like GPT-4 and GPT-4o handle complex spatial and temporal constraints significantly better than GPT-3.5-turbo, suggesting that as LLMs improve in reasoning, the need for complex manual prompt engineering may decrease.
Conclusion
This research demonstrates that LLMs, when guided by distilled ontological knowledge and a self-correction mechanism, can effectively lower the technical barrier for digital rights management. Future work will focus on automating the distillation process and expanding the framework to other complex domains like medicine and law.
Summary updated