This paper introduces a pipeline leveraging Large Language Models (LLMs) to automate the creation and maintenance of rule-based legal ontologies. We also explore the use of the generated legal ontologies to perform legal reasoning in autonomous agents, focusing on traffic rules for Autonomous Vehicles (AVs). The proposed ontology model encodes compliant and non-compliant instances through property restrictions. We present a prototype of the pipeline and its use, discussing the different components and how they can be adapted. Additionally, we discuss the possible use of the system to keep legal ontologies up to date with changes in legislation and case law.

Using LLMs to Create Legal Ontologies for Traffic Rule Compliance

Enrico Francesconi;
2025

Abstract

This paper introduces a pipeline leveraging Large Language Models (LLMs) to automate the creation and maintenance of rule-based legal ontologies. We also explore the use of the generated legal ontologies to perform legal reasoning in autonomous agents, focusing on traffic rules for Autonomous Vehicles (AVs). The proposed ontology model encodes compliant and non-compliant instances through property restrictions. We present a prototype of the pipeline and its use, discussing the different components and how they can be adapted. Additionally, we discuss the possible use of the system to keep legal ontologies up to date with changes in legislation and case law.
2025
Istituto di Informatica Giuridica e Sistemi Giudiziari - IGSG
Legal reasoning, Semantic Web, OWL, Norm compliance, Large Language Models
File in questo prodotto:
File Dimensione Formato  
NLL2FR2025.pdf

accesso aperto

Licenza: Creative commons
Dimensione 947.75 kB
Formato Adobe PDF
947.75 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14243/609269
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact