Olimpia Giuliana Loddo

Graph-Based Modelling of the Italian Criminal Code as a Knowledge Base for AI-Assisted Inference

Nicola Deidda
;
Giorgio Fumera;Giorgio Giacinto;
2026-01-01

Abstract

This paper investigates the feasibility of representing the Italian Criminal Code as a graph knowledge base and of using Artificial Intelligence (AI), particularly Large Language Models (LLMs), to query this structure. We propose a Directed Acyclic Graph (DAG) where the nodes correspond to the structural elements of the code (Book, Title, Article, Comma), and the edges encode both hierarchical and selected semantic relationships, such as textual references and dependencies. Nodes and edges are enriched with properties that link them back to the text and record identifiers, as well as temporal information and provenance metadata. Treating this graph as a knowledge base enables a range of graph-theoretic operations to be interpreted as legal tasks such as structural navigation, dependency analysis, and localised impact assessment of legislative changes. We outline how LLMs can be used on top of this representation to support natural-language querying, semantically enriched search, and comparative analysis between provisions. In this design, LLMs act as an interface layer that translates natural-language queries into formal graph queries and translates graph-structured results back into explanations. All retrieval and dependency computation are performed by exact algorithms on the DAG. This proposal does not focus on devising a methodology to substitute the human expert. Indeed, a Human-in-the-Loop approach is crucial: the human legal expert can either accept, modify, or reject the response proposed by the AI system.
2026
Inglese
Proceedings of the Joint National Conference on Cybersecurity (ITASEC & SERICS 2026)
Davide Maiorca, Pierangela Samarati, Sergio Barezzani
4198
15
https://ceur-ws.org/Vol-4198/
ITASEC & SERICS 2026 Joint National Conference on Cybersecurity 2026
Esperti anonimi
February 09-13, 2026
Cagliari, Italy
scientifica
Criminal Code, Artificial Intelligence, Large Language Models, Graph Representation, Human-in-the-Loop
no
4 Contributo in Atti di Convegno (Proceeding)::4.1 Contributo in Atti di convegno
Yves Cerini, Samuele; Deidda, Nicola; Huang, Yilian; Lilli, Sara; Lobascio, Luca; Russo, Lavinia; Vittoria Zucca, Maria; Fumera, Giorgio; Giacinto, Gi ...espandi
273
11
4.1 Contributo in Atti di convegno
open
info:eu-repo/semantics/conferencePaper
File in questo prodotto:
File Dimensione Formato  
paper45.pdf

accesso aperto

Tipologia: versione editoriale (VoR)
Dimensione 1.12 MB
Formato Adobe PDF
1.12 MB Adobe PDF Visualizza/Apri

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

Questionario e social

Condividi su:
Impostazioni cookie