IRS-Public/fact-graph
Fact Graph
What it solves
Modeling complex legal and tax code is hard because the rules are interrelated, change frequently, and span thousands of sections. The Fact Graph provides a structured, graph-based way to represent the U.S. Internal Revenue Code and related tax law, making the relationships between legal concepts explicit and queryable.
How it works
It is a knowledge graph implementation that works in JavaScript and any JVM language (Java, Kotlin, Scala, Clojure, etc.). The repository includes developer onboarding instructions, architecture decision records (ADRs), and documentation on version changes. Development happens in a private repo, and approved changes are pushed to this public repo in real-time, so the code is kept up to date.
Who it's for
Developers and organizations that need to work with tax law data in a programmatic way, particularly those building applications that rely on the structure and relationships of the Internal Revenue Code. It is also useful for anyone studying how to model legal knowledge graphs.
Highlights
- Production-ready knowledge graph for U.S. tax law
- Supports JavaScript and all JVM languages
- Includes onboarding and setup documentation
- Has design decision records (ADRs) explaining changes since early 2025
- Public repository updated frequently from a private development repo
Related
- Project
- Project
- Project
- Project