Repository navigation
tagology - stress test: Supreme Court Database #1766
shellybelle
started this conversation in
Show and tell
Replies: 1 comment
|
Glad to hear! Nice that Oxigraph is useful for you! Thank you for the feedback |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Big thanks for pyoxigraph. Using it, was able to translate all 8 large Supreme Court Database CSVs into my hypergraph RDF ontology, load it into a store, and perform aggregate queries on that store in 33 minutes. 32 million triples. All on my old, slow Thinkpad. Proof of concept stage only - lots more to come!
Lean and mean:
(pytag-venv) shellybelle:backend$ python -m brain.main
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_caseCentered_Citation.csv.zip (0.68 MB)...
[STATUS] ./hypergraph_supreme_court_cases_by_citation.nt created with 839547 triples
[STATUS] Bulk loaded hypergraph_supreme_court_cases_by_citation.nt into triplestore
[STATUS] hypergraph_supreme_court_cases_by_citation.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_caseCentered_Docket.csv.zip (0.73 MB)...
[STATUS] ./hypergraph_supreme_court_cases_by_docket.nt created with 947512 triples
[STATUS] Bulk loaded hypergraph_supreme_court_cases_by_docket.nt into triplestore
[STATUS] hypergraph_supreme_court_cases_by_docket.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_caseCentered_LegalProvision.csv.zip (0.78 MB)...
[STATUS] ./hypergraph_supreme_court_cases_by_provision.nt created with 1144823 triples
[STATUS] Bulk loaded hypergraph_supreme_court_cases_by_provision.nt into triplestore
[STATUS] hypergraph_supreme_court_cases_by_provision.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_caseCentered_Vote.csv.zip (0.78 MB)...
[STATUS] ./hypergraph_supreme_court_cases_by_provision_split_votes.nt created with 1149340 triples
[STATUS] Bulk loaded hypergraph_supreme_court_cases_by_provision_split_votes.nt into triplestore
[STATUS] hypergraph_supreme_court_cases_by_provision_split_votes.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_justiceCentered_Citation.csv.zip (1.61 MB)...
[STATUS] ./hypergraph_supreme_court_judges_by_citation.nt created with 6041765 triples
[STATUS] Bulk loaded hypergraph_supreme_court_judges_by_citation.nt into triplestore
[STATUS] hypergraph_supreme_court_judges_by_citation.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_justiceCentered_Docket.csv.zip (1.79 MB)...
[STATUS] ./hypergraph_supreme_court_judges_by_docket.nt created with 6995585 triples
[STATUS] Bulk loaded hypergraph_supreme_court_judges_by_docket.nt into triplestore
[STATUS] hypergraph_supreme_court_judges_by_docket.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_justiceCentered_LegalProvision.csv.zip (2.06 MB)...
[STATUS] ./hypergraph_supreme_court_judges_by_provision.nt created with 8906669 triples
[STATUS] Bulk loaded hypergraph_supreme_court_judges_by_provision.nt into triplestore
[STATUS] hypergraph_supreme_court_judges_by_provision.nt deleted
[STATUS] Parsing http://scdb.wustl.edu/_brickFiles/2025_01/SCDB_2025_01_justiceCentered_Vote.csv.zip (2.07 MB)...
[STATUS] ./hypergraph_supreme_court_judges_by_provision_split_votes.nt created with 8952626 triples
[STATUS] Bulk loaded hypergraph_supreme_court_judges_by_provision_split_votes.nt into triplestore
[STATUS] hypergraph_supreme_court_judges_by_provision_split_votes.nt deleted
[STATUS] Store contains "31961749"^^http://www.w3.org/2001/XMLSchema#integer triples
https://theknowledgecommons.org/ns/tagology/hasAArc: "479287"^^http://www.w3.org/2001/XMLSchema#integer
https://theknowledgecommons.org/ns/tagology/isAArc: "69"^^http://www.w3.org/2001/XMLSchema#integer
https://theknowledgecommons.org/ns/tagology/HyperNode: "717208"^^http://www.w3.org/2001/XMLSchema#integer
incidences: "30047914"^^http://www.w3.org/2001/XMLSchema#integer
[PERFORMANCE] Total Duration: 33.06 minutes
Metrics during the final large bulk load:
Sun Jun 14 04:51:48 PM MDT 2026
=== STORE ===
3.7G hypergraph_store
files: 131
=== DISK ===
Filesystem Size Used Avail Use% Mounted on
/home/shellybelle/.Private 285G 38G 234G 14% /home/shellybelle
=== PYTHON PROCESS ===
PID ELAPSED %CPU %MEM RSS VSZ CMD
109608 30:59 91.0 15.0 1204848 1993264 python -m brain.main
=== MEMORY ===
total used free shared buff/cache available
Mem: 7.6Gi 4.0Gi 147Mi 291Mi 3.8Gi 3.6Gi
Swap: 7.9Gi 1.1Gi 6.8Gi
=== SWAP DETAIL ===
NAME TYPE SIZE USED PRIO
/dev/dm-2 partition 7.9G 1.1G -2
=== LOAD ===
16:51:48 up 1 day, 4:17, 1 user, load average: 3.97, 4.77, 4.75
https://github.com/shellybelle/tagology/tree/dev/backend/brain
All reactions