Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lexcodex

Open knowledge graph of crypto-asset regulation across jurisdictions. Classifications, obligations, citations, case law, and enforcement actions, sourced exclusively from public regulators and courts.

Disclaimer. lexcodex is a research dataset. It is not legal advice. Every claim links to a primary source so you can verify it yourself. Always consult a qualified attorney before relying on a classification for any commercial, regulatory, or compliance decision.

Status

Jurisdiction Phase Coverage
Switzerland (CH) in progress seed
European Union (EU) planned —
United States (US) planned —
Singapore (SG) planned —
Hong Kong (HK) planned —

What is in the graph

  • Token taxonomy — payment, utility, security/asset, stablecoin (fiat-backed, asset-backed, algorithmic), NFT, governance, wrapped, LST/LRT, CBDC.
  • Jurisdiction-specific classifications with valid_from/valid_to time windows.
  • Obligations triggered by each classification — licensing, prospectus/whitepaper, AML/KYC, reserve, custody, audit, capital, marketing.
  • Legal instruments — statutes, regulations, circulars, guidance, court rulings — with pinpoint citations.
  • Enforcement actions — administrative orders, settlements, court judgments — with parties, penalties, and findings.
  • Provenance on every claim — source URL, retrieval timestamp, snapshot hash, reviewer.

Repo layout

ontology/         RDF/OWL ontology + SHACL shapes
jurisdictions/    Per-jurisdiction TTL files (instruments, classifications, enforcement, sources)
tokens/           Jurisdiction-neutral token registry
snapshots/        Hashes + manifests for source documents (raw blobs in Cloudflare R2)
ingest/           Python crawl + extract + load pipeline
site/             SvelteKit static site (GitHub Pages)
api/              Cloudflare Worker exposing SQLite-backed query API
build/            Generated artifacts (SQLite, merged TTL, JSON-LD)

Consume the data

Three formats are published as GitHub Releases:

  • lexcodex.db — SQLite with FTS5 + sqlite-vec, queryable in browser, CLI, or any SQLite client.
  • lexcodex.ttl — full RDF dump for SPARQL endpoints (Oxigraph, Apache Jena, GraphDB).
  • lexcodex.jsonld — flat JSON-LD per token, optimized for LLM tool use and RAG.

Browse the graph at https://lexcodex.github.io (TBD).

Contribute

See CONTRIBUTING.md. Every PR adds, updates, or supersedes a claim; every claim must cite a public primary source. Snapshot the source, hash it, and reference it in the PR.

License

MIT. See LICENSE.

About

Open knowledge graph of crypto-asset regulation across jurisdictions (CH→EU→US→SG→HK). Public sources only. Not legal advice.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages