Semantic legal information retrieval for tax law using AI and ontology-based methods
Mário Leite, Cristóvão Sousa, Bruno Oliveira
Polytechnic Institute of Porto
Key points
From the paper's conclusion- This dual-layer architecture – ontology + machine learning – enables a richer semantic contextualization of legal texts than traditional systems; (iii) ontology-driven instantiation of a legal knowledge graph; (iv) domain focus on tax law with potential for generalization; and (v) application to an evolving, real-world legal platform (Lexit).
Abstract
Purpose This paper aims to propose a semantic and artificial intelligence (AI)-driven approach to legal information retrieval that enriches documents with contextual metadata and supports intelligent search. Design/methodology/approach To address the complexity of legal information retrieval, a socio-semantic approach was adopted, integrating semantic and AI within a design science research framework. Through a collaborative knowledge engineering process, experts and engineers co-developed an ontology structured as a semantic network for tax law, integrating international standards such as the European legislation identifier and the legal knowledge interchange format. AI techniques were used to extract domain-specific entities and instantiate a knowledge graph with enriched metadata. The resulting semantic artifacts serve as a framework that aligns extracted data with a formal knowledge organization system, implemented via a knowledge-as-a-service architecture. This enables reasoning mechanisms that support advanced, context-aware search and retrieval tailored to the evolving and heterogeneous nature of legal corpora. Findings A custom named entity recognition (NER) model was developed, achieving an F-measure of 53% for specialized legal entities, significantly outperforming standard baseline models in domain-specific tasks. A case study query showed that semantic retrieval returns precise statutory articles and jurisprudence, while keyword search produced excessive, irrelevant results, demonstrating a precision improvement from 0.27 to 0.85 in contextual queries. Practical implications The approach reduces research costs, supports decision-making and improves access to justice for lawyers, judges, students and policymakers by breaking down information silos. Originality/value The novelty of this approach in the integrated and socio-semantic methodology it adopts for legal information retrieval, specifically characterized by the following innovative elements: (i) socio-semantic knowledge modelling; (ii) the use of ontology-based knowledge representation alongside natural language processing and NER techniques exemplifies a hybrid AI approach that bridges structured semantic networks with unstructured legal corpora. This dual-layer architecture – ontology + machine learning – enables a richer semantic contextualization of legal texts than traditional systems; (iii) ontology-driven instantiation of a legal knowledge graph; (iv) domain focus on tax law with potential for generalization; and (v) application to an evolving, real-world legal platform (Lexit).
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LegisSearch: navigating legislation with graphs and large language modelsArtificial Intelligence and Law · 2025
- A retrieval-augmented multi-stage prompting framework for legal analysis in the Indian judicial system.Frontiers in big data · 2026
- From Text to Executable Semantics: A Modular Ontology and SHACL Controls for University Intellectual Property Non-Disclosure Agreements in ColombiaApplied Sciences · 2026
- Legal Lens: Multi-Faceted Precedent Retrieval and Case Similarity for Indian Supreme Court JurisprudenceInternational Journal of Scientific Research in Science Engineering and Technology · 2026
- Reimagining Enterprise RAG for Multi-Agent Systems: A Knowledge Layer That Organizes Before It RetrievesarXiv · 2026
- Vietnamese Legal Ontology: Every legal answer, traced to the article that grounds itarXiv · 2026