Modeling legal ontologies with a validation based LLM pipeline
Galileo Sartor, Enrico Francesconi, Adam Wyner
Key points
From the paper's conclusion- These findings demonstrate the pipeline's feasibility, and the possibility for future development and broader quantitative evaluation.
Abstract
Large language models (LLMs) can help translate legal norms into machine-readable ontologies, but their outputs require validation to ensure structural and semantic consistency. We present a modular pipeline that encodes natural-language norms as OWL class restrictions distinguishing compliant from non-compliant behavior, and iteratively validates generated ontologies using syntax checks, SHACL structural checks, competency-question tests, and ontology-pitfall analysis. We assess the pipeline across six LLM configurations using three exemplar rules from the UK Highway Code's Road Junctions section. The results show that the validation layers detect distinct errors, feedback can help correct structural issues, and competency questions can reveal semantic differences. These findings demonstrate the pipeline's feasibility, and the possibility for future development and broader quantitative evaluation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A hybrid AI approach to criminal offense qualification from narrative case descriptionsFrontiers in Artificial Intelligence · 2026
- Executable explanation traces for legal LLM predictions via retrieval-augmented codification.Frontiers in artificial intelligence · 2026
- Verdict Without the Rule: Diagnosing and Auditing Regulatory Rule Sensitivity in LLM Compliance SystemsarXiv · 2026
- Enhancing Legal Reasoning in Pre-trained Language Models via Knowledge Graph-Guided Multi-Task Pre-trainingarXiv · 2026
- GT-FENG: General Theory of Factual Evaluation and Normative Grounding in Language Models *Author(s)arXiv · 2026
- The Hidden Methodological Layer: Uncovering Threats to Validity in LLM-Assisted Empirical Software EngineeringarXiv · 2026