Corpus graph — document citation index

POSTGRES 17.6 · PGROUTING 3.4.1 · POSTGREST

Seven public-domain US federal documents, extracted to text and indexed as a citation graph. Entities are NIST control ids, statutes, regulations and Public Law numbers; edges are co-citation within a 400-character window. Traversal is a recursive CTE; shortest path and components are pgrouting over the same ordinary edge table. No graph database.

LOADING

Source corpus

extract ratio = extracted text / source PDF bytes
sluggenresourcetextratioentitiesmentions

The ratio is not a constant. A positioned form yields 0.048; dense regulation yields 1.089, because a PDF already compresses its own content streams. Source size does not predict database size.

Entity search

exact > punctuation-insensitive > prefix > trigram
kindlabelmentionsdocsscore
NO MATCH

Connected components

pgr_connectedComponents, size >= 2
sizelargest members

The corpus separates into topical clusters on its own: security controls in one component, statutes and public laws in another, securities regulation in a third.

Selected entity

none

Select a result with OPEN.