From statutory text to structured legal knowledge: manual annotation and graph-based representation for accountable LLM reasoning

Large language models are increasingly used for legal reasoning, but retrieving relevant statutory text does not by itself provide the normative structure required for applying law. This article examines how statutory text can be transformed into structured legal knowledge that can serve as a transparent grounding layer for LLM-based legal reasoning. We present LegalGraph, a knowledge-representation architecture developed for the legislation of the Republic of Kazakhstan. The approach combines expert semantic annotation, a jurisdiction-sensitive annotation ontology, graph-based representation, dependency-aware retrieval, and provenance-preserving context construction. A reference corpus of 2,420 statutory articles was manually annotated by legal experts, while subsequent corpus expansion combined model-assisted annotation with mandatory human validation. The resulting graph represents legally significant entities and relations while preserving links to authoritative statutory sources and interpretative decisions. On this basis, we develop two methodological principles—representational independence and interpretative provenance—and show how structured legal knowledge can support dependency-aware retrieval, normative context selection, and the reconstruction of the legal basis supplied to an LLM. We further propose a layered evaluation framework distinguishing retrieval, representation, reasoning, and outcome quality. The article does not claim that graph-grounded reasoning has yet been shown empirically to outperform text-based alternatives; rather, it identifies the representational layer itself as an object of legal-AI methodology and evaluation. LegalGraph demonstrates how expert legal interpretation can be made computationally explicit without treating either statutory text or probabilistic model output as a sufficient representation of legal knowledge.

Authors

Institutions

Publication Details

Journal
Frontiers in Artificial Intelligence
Published
2026-12-01
DOI
https://doi.org/10.3389/frai.2026.1988863
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

From statutory text to structured legal knowledge: manual annotation and graph-based representation for accountable LLM reasoning

Sergei Pen, Vitaly Ogleznev
Frontiers in Artificial Intelligence
Artificial Intelligence in Law
article

From statutory text to structured legal knowledge: manual annotation and graph-based representation for accountable LLM reasoning

Sergei Pen, Vitaly Ogleznev
article en

Abstract

Large language models are increasingly used for legal reasoning, but retrieving relevant statutory text does not by itself provide the normative structure required for applying law. This article examines how statutory text can be transformed into structured legal knowledge that can serve as a transparent grounding layer for LLM-based legal reasoning. We present LegalGraph, a knowledge-representation architecture developed for the legislation of the Republic of Kazakhstan. The approach combines expert semantic annotation, a jurisdiction-sensitive annotation ontology, graph-based representation, dependency-aware retrieval, and provenance-preserving context construction. A reference corpus of 2,420 statutory articles was manually annotated by legal experts, while subsequent corpus expansion combined model-assisted annotation with mandatory human validation. The resulting graph represents legally significant entities and relations while preserving links to authoritative statutory sources and interpretative decisions. On this basis, we develop two methodological principles—representational independence and interpretative provenance—and show how structured legal knowledge can support dependency-aware retrieval, normative context selection, and the reconstruction of the legal basis supplied to an LLM. We further propose a layered evaluation framework distinguishing retrieval, representation, reasoning, and outcome quality. The article does not claim that graph-grounded reasoning has yet been shown empirically to outperform text-based alternatives; rather, it identifies the representational layer itself as an object of legal-AI methodology and evaluation. LegalGraph demonstrates how expert legal interpretation can be made computationally explicit without treating either statutory text or probabilistic model output as a sufficient representation of legal knowledge.

Frontiers in Artificial IntelligenceVol. 9
Nazarbayev University (KZ)
Artificial Intelligence in Law
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon