Using an LLM to Create a Knowledge Graph for UK Legislation - in collaboration with The National Archives

  by   Adam Wyner






Departments Computer Science, Zienkiewicz Institute for Modelling, Data and AI
DescriptionAim Augment the existing legislative data with fine-grained semantic information in order to facilitate legal data processing. Build a prototype Knowledge Graph (KG) of selected UK legislation in Akoma Ntoso that represents Hohfeldian legal relations and fine-grained semantic information; the KG would support SPARQL querying and legal inference. Contribute to the work of The National Archives and other government departments. Objectives 1. Ingestion & Parsing: Gather a working corpus of selected legislation in Akoma Ntoso format. 2. LLM Extraction to a Semantic Model: Prompt an LLM to: identify provisions that express Hohfeldian relations, e.g., powers, duties, rights, privileges, liabilities, immunities, disabilities; within the provisions, identify structured semantic information according to a domain model, e.g., actor, main action, negations, object, and exceptions 3. Semantic Mapping: Represent the extracted information in a legal ontology (aligned with a KG) which represents Hohfeldian relations and related semantic model, serialising the data in RDF (Turtle/JSON-LD). 4. Querying & Reasoning: Exemplify querying and rule-based inferences (e.g., derive liabilities from breached duties; propagate powers to delegated authorities). Provide SPARQL endpoints and reusable query templates. 5. Validation: Validate the semantic outputs (of queries and inferences) with domain experts and the KG wellformedness with SHACL. Use Cases. • Compliance analytics: “What duties bind local authorities, and what exceptions apply?” • Delegation tracking: “Which sections grant the Secretary of State power to make regulations?” • Change impact: Detect affected duties/powers when an Act is amended. • RegTech integration: Map obligations to internal controls and evidence. Target Audiences. Lawyers, public administrators, legal informatics researchers, compliance teams, RegTech vendors, and civic tech organizations. Impact. Improves transparency and discoverability of legal obligations/powers; enables precise queries, checks inferences and consistency, and automates compliance checks. The project will accelerate research, reduce manual review costs, and provide interoperable, auditable legal data services.
PreparationHohfeldian Jural Relations https://www.slideshare.net/slideshow/theory-of-jural-relations-hohfeldpptx/257970544 A description logic framework for advanced accessing and reasoning over normative provisions Enrico Francesconi https://link.springer.com/article/10.1007/s10506-014-9158-2 The Alan Turing Institute Knowledge Graph group: https://www.turing.ac.uk/research/interest-groups/knowledge-graphs Stanford University course statement: https://web.stanford.edu/class/cs520/2020/notes/What_is_a_Knowledge_Graph.html Wikipedia on Knowledge Graph: https://en.wikipedia.org/wiki/Knowledge_graph
Project Categories Artificial Intelligence (AI), Human Computer Interaction (HCI), Law, Modelling
Project Keywords


Level of Studies

Level 6 (Undergraduate Year 3) yes
Level 7 (Masters) yes
Level 8 (PhD) yes