FourCorners: A Production Knowledge Graph Unifying Thailand’s Legal System

Pawitsapak Akarajaradwong, Sarana Nutanong, Chompakorn Chaksangchaichot


Abstract
Jurisdictionally bound domains, such as law, often lack standardized, machine-readable data formats, requiring foundational infrastructure before downstream applications can succeed. We present ThLexGraph, the first unified temporal knowledge graph for Thai legal data, integrating 3,840 laws (6,273 versions) with 87,394 Supreme Court decisions, updated daily. The graph encodes hierarchy, temporal versioning, cross-references, and sequential order, all extracted from unstructured official sources where no structured representation previously existed. A five-setting comparison on NitiBench-Tax isolates data infrastructure as the sole variable: graph-structured retrieval achieves Citation F1 of 0.812 versus 0.666 for practitioner-standard web search and 0.685 for flat vector retrieval, while searching a corpus 53x larger. Trace analysis of 820 agent-issued queries reveals that hierarchy traversal and cross-reference following, capabilities absent from generic retrieval, are exercised in 50% and 16% of questions, respectively. Our system demonstrates that structured modeling of hierarchy, temporal versioning, cross-references, and sequential order can overcome structural limitations of legal data published without standardized formats.
Anthology ID:
2026.acl-industry.124
Volume:
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026)
Month:
July
Year:
2026
Address:
San Diego, California, USA
Editors:
Yunyao Li, Georg Rehm, Mei Tu
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
1808–1818
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.acl-industry.124/
DOI:
Bibkey:
Cite (ACL):
Pawitsapak Akarajaradwong, Sarana Nutanong, and Chompakorn Chaksangchaichot. 2026. FourCorners: A Production Knowledge Graph Unifying Thailand’s Legal System. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026), pages 1808–1818, San Diego, California, USA. Association for Computational Linguistics.
Cite (Informal):
FourCorners: A Production Knowledge Graph Unifying Thailand’s Legal System (Akarajaradwong et al., ACL 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.acl-industry.124.pdf