card: snapshot 2026-10-30
Browse files
README.md
CHANGED
|
@@ -20,9 +20,9 @@ viewer: false
|
|
| 20 |
# SEC XBRL Knowledge Graph — one embedded LadybugDB file
|
| 21 |
|
| 22 |
The XBRL filings made with the SEC since January 2024 — annual and quarterly reports (10-K, 10-Q), foreign-filer annuals (20-F, 40-F), proxy statements (DEF 14A) and registration statements (S-1) — as a single
|
| 23 |
-
queryable property graph: **8,
|
| 24 |
-
**
|
| 25 |
-
file that ships as a **39.
|
| 26 |
(see *Engine version* below).
|
| 27 |
|
| 28 |
It is the same file that backs the hosted `sec` graph on [robosystems.ai](https://robosystems.ai), built
|
|
@@ -36,15 +36,15 @@ This is not a Parquet dataset: it is a database file. The dataset viewer is disa
|
|
| 36 |
|
| 37 |
| | |
|
| 38 |
|---|---|
|
| 39 |
-
| **Snapshot** | 2026-
|
| 40 |
-
| **Coverage** | filings dated 2024-01-02 → 2026-
|
| 41 |
-
| **Forms** | 10-Q
|
| 42 |
-
| **Filers** | 8,
|
| 43 |
-
| **Facts** |
|
| 44 |
-
| **Graph** | 14 node types · 22 relationship types ·
|
| 45 |
-
| **Engine** | LadybugDB **0.
|
| 46 |
-
| **Sizes** | `sec.
|
| 47 |
-
| **Cadence** | monthly; the fixed path `sec.
|
| 48 |
|
| 49 |
Node types: `Entity`, `Report`, `Fact`, `FactSet`, `Element`, `Label`, `Reference`, `Period`, `Unit`,
|
| 50 |
`Dimension`, `Structure`, `Association`, `Classification`, `Taxonomy`. The full schema — every
|
|
@@ -60,46 +60,46 @@ This file is the free route: the whole graph, on your machine, under CC BY 4.0.
|
|
| 60 |
|
| 61 |
## Download and open
|
| 62 |
|
| 63 |
-
You need **~
|
| 64 |
with **16 GB RAM or more**, and [`uv`](https://docs.astral.sh/uv/) + [`just`](https://github.com/casey/just).
|
| 65 |
-
Budget real time: this is
|
| 66 |
|
| 67 |
```bash
|
| 68 |
git clone https://github.com/RoboFinSystems/robosystems.git
|
| 69 |
cd robosystems
|
| 70 |
-
just sec-dump # downloads sec.
|
| 71 |
```
|
| 72 |
|
| 73 |
`just sec-dump` checks the archive's checksum and recorded size as it streams, refuses to overwrite an
|
| 74 |
-
existing `sec.
|
| 75 |
checkout pins.
|
| 76 |
|
| 77 |
Without `just` — the archive is plain zstd:
|
| 78 |
|
| 79 |
```bash
|
| 80 |
-
hf download robosystems/sec-xbrl-knowledge-graphs sec.
|
| 81 |
-
zstd -d sec.
|
| 82 |
```
|
| 83 |
|
| 84 |
### Engine version
|
| 85 |
|
| 86 |
-
The file was written by **LadybugDB 0.
|
| 87 |
-
format (
|
| 88 |
storage format in place — a one-way change — so pin the version unless that is what you want. A RoboSystems
|
| 89 |
-
checkout pins it for you (`ladybug==0.
|
| 90 |
|
| 91 |
```bash
|
| 92 |
-
pip install ladybug==0.
|
| 93 |
```
|
| 94 |
|
| 95 |
-
The version that wrote each snapshot is in that snapshot's commit title (`sec.
|
| 96 |
(ladybug X.Y.Z)`), and it moves when the pipeline upgrades its engine — check it before opening a new
|
| 97 |
snapshot with an existing install. `just sec-dump` compares the two and warns on a mismatch.
|
| 98 |
|
| 99 |
## Query it
|
| 100 |
|
| 101 |
**Directly, no services** — the [`ladybug`](https://pypi.org/project/ladybug/) Python package
|
| 102 |
-
(`pip install ladybug==0.
|
| 103 |
|
| 104 |
```bash
|
| 105 |
just lbug-query sec "MATCH (e:Entity {ticker: 'NVDA'})-[:ENTITY_HAS_REPORT]->(r:Report) RETURN r.form, r.filing_date ORDER BY r.filing_date DESC"
|
|
@@ -108,11 +108,11 @@ just lbug-query sec "MATCH (e:Entity {ticker: 'NVDA'})-[:ENTITY_HAS_REPORT]->(r:
|
|
| 108 |
```python
|
| 109 |
import ladybug as lbug
|
| 110 |
|
| 111 |
-
db = lbug.Database("data/lbug-dbs/sec.
|
| 112 |
conn = lbug.Connection(db)
|
| 113 |
result = conn.execute("MATCH (e:Entity) RETURN count(e)")
|
| 114 |
while result.has_next():
|
| 115 |
-
|
| 116 |
```
|
| 117 |
|
| 118 |
**Through the API and MCP** — start the stack, mint a local key, and subscribe your local user to the
|
|
@@ -135,17 +135,25 @@ The MCP server carries the schema, example queries, a concept resolver, statemen
|
|
| 135 |
|
| 136 |
### Example queries
|
| 137 |
|
| 138 |
-
Consolidated annual revenue for one filer, robust across the different revenue elements filers use
|
|
|
|
| 139 |
|
| 140 |
```cypher
|
| 141 |
-
MATCH (f:Fact {has_dimensions: false})
|
|
|
|
| 142 |
(f)-[:FACT_HAS_ENTITY]->(ent:Entity {ticker: 'NVDA'}),
|
| 143 |
(f)-[:FACT_HAS_PERIOD]->(p:Period {duration_type: 'annual'})
|
| 144 |
-
WHERE e.
|
| 145 |
-
|
| 146 |
-
|
|
|
|
| 147 |
```
|
| 148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
A whole income statement via the presentation structure (anchor on the entity first — thousands of filings share each statement type):
|
| 150 |
|
| 151 |
```cypher
|
|
@@ -173,14 +181,19 @@ you *want* segment breakdowns), and anchor on an entity, report, element, or dat
|
|
| 173 |
|
| 174 |
## Versioning
|
| 175 |
|
| 176 |
-
- `sec.
|
| 177 |
-
snapshot date and engine version (`sec.
|
| 178 |
always the latest.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
- The engine version can move between snapshots. The commit title carries it; when it changes, install the
|
| 180 |
matching `ladybug` before opening the new file (a RoboSystems checkout gets the new pin with the release
|
| 181 |
that shipped it).
|
| 182 |
- Superseded snapshots are removed to keep the dataset one snapshot deep; pin a commit with
|
| 183 |
-
`--revision` only while it is still listed.
|
|
|
|
| 184 |
- The hosted graph at robosystems.ai is rebuilt nightly; this file is that graph as of the snapshot date.
|
| 185 |
|
| 186 |
## Provenance and licence
|
|
@@ -192,10 +205,11 @@ normalises, classifies, and materialises it is [RoboSystems](https://github.com/
|
|
| 192 |
Apache-2.0. Facts are as filed: restatements appear as later
|
| 193 |
filings, not as corrections to earlier ones. Element names follow the filer's taxonomy (`us-gaap`,
|
| 194 |
`ifrs-full`, extensions); `canonical_concept` and `Structure.canonical_type` are RoboSystems' cross-filer
|
| 195 |
-
normalisation on top.
|
|
|
|
| 196 |
|
| 197 |
```
|
| 198 |
-
RoboSystems. SEC XBRL Knowledge Graph (LadybugDB). Hugging Face, snapshot 2026-
|
| 199 |
https://huggingface.co/datasets/robosystems/sec-xbrl-knowledge-graphs
|
| 200 |
```
|
| 201 |
|
|
|
|
| 20 |
# SEC XBRL Knowledge Graph — one embedded LadybugDB file
|
| 21 |
|
| 22 |
The XBRL filings made with the SEC since January 2024 — annual and quarterly reports (10-K, 10-Q), foreign-filer annuals (20-F, 40-F), proxy statements (DEF 14A) and registration statements (S-1) — as a single
|
| 23 |
+
queryable property graph: **8,604 filers, 78,534 filings, 85.6 million facts** on
|
| 24 |
+
**291.5 million nodes**, in one **83.3 GiB** [LadybugDB](https://github.com/LadybugDB/ladybug)
|
| 25 |
+
file that ships as a **39.1 GiB** zstd archive, written by **LadybugDB 0.22.1** — open it with that release
|
| 26 |
(see *Engine version* below).
|
| 27 |
|
| 28 |
It is the same file that backs the hosted `sec` graph on [robosystems.ai](https://robosystems.ai), built
|
|
|
|
| 36 |
|
| 37 |
| | |
|
| 38 |
|---|---|
|
| 39 |
+
| **Snapshot** | 2026-10-30 (filings through 2026-10-29) — see the latest commit title for the current snapshot |
|
| 40 |
+
| **Coverage** | filings dated 2024-01-02 → 2026-10-29; prior-period comparatives inside those filings reach further back |
|
| 41 |
+
| **Forms** | 10-Q 46,265 · 10-K 16,607 · DEF 14A 10,247 · 20-F 3,057 · S-1 1,935 · 40-F 422 (and 1 other filing) |
|
| 42 |
+
| **Filers** | 8,604 entities (6,885 with a ticker), with CIK, SIC code and description, legal name, fiscal year end |
|
| 43 |
+
| **Facts** | 85.6 million XBRL facts (74.3 million numeric), each linked to its element, entity, period, unit, dimensions, and the presentation/calculation structure it appears in |
|
| 44 |
+
| **Graph** | 14 node types · 22 relationship types · 291.5 million nodes |
|
| 45 |
+
| **Engine** | LadybugDB **0.22.1** (storage format v49) — the release that wrote the file and the one to open it with; see *Engine version* below |
|
| 46 |
+
| **Sizes** | `sec.lbdb.zst` 39.1 GiB (42,017,867,418 bytes) → `sec.lbdb` 83.3 GiB (89,465,204,736 bytes) |
|
| 47 |
+
| **Cadence** | monthly; the fixed path `sec.lbdb.zst` is overwritten each snapshot, so `main` is always the latest and this URL never changes |
|
| 48 |
|
| 49 |
Node types: `Entity`, `Report`, `Fact`, `FactSet`, `Element`, `Label`, `Reference`, `Period`, `Unit`,
|
| 50 |
`Dimension`, `Structure`, `Association`, `Classification`, `Taxonomy`. The full schema — every
|
|
|
|
| 60 |
|
| 61 |
## Download and open
|
| 62 |
|
| 63 |
+
You need **~130 GiB free** while decompressing (39.1 + 83.3; the archive is deleted afterwards), a machine
|
| 64 |
with **16 GB RAM or more**, and [`uv`](https://docs.astral.sh/uv/) + [`just`](https://github.com/casey/just).
|
| 65 |
+
Budget real time: this is 83 GiB on disk, not a laptop-minutes toy.
|
| 66 |
|
| 67 |
```bash
|
| 68 |
git clone https://github.com/RoboFinSystems/robosystems.git
|
| 69 |
cd robosystems
|
| 70 |
+
just sec-dump # downloads sec.lbdb.zst (resumable), verifies it, decompresses to data/lbug-dbs/sec.lbdb
|
| 71 |
```
|
| 72 |
|
| 73 |
`just sec-dump` checks the archive's checksum and recorded size as it streams, refuses to overwrite an
|
| 74 |
+
existing `sec.lbdb` without `--force`, and warns if the engine that wrote the file differs from the one the
|
| 75 |
checkout pins.
|
| 76 |
|
| 77 |
Without `just` — the archive is plain zstd:
|
| 78 |
|
| 79 |
```bash
|
| 80 |
+
hf download robosystems/sec-xbrl-knowledge-graphs sec.lbdb.zst --repo-type dataset --local-dir .
|
| 81 |
+
zstd -d sec.lbdb.zst -o data/lbug-dbs/sec.lbdb # or: python -m zstandard, 7-Zip, any zstd
|
| 82 |
```
|
| 83 |
|
| 84 |
### Engine version
|
| 85 |
|
| 86 |
+
The file was written by **LadybugDB 0.22.1** and must be opened with a release that reads that storage
|
| 87 |
+
format (v49). An older release refuses the file; a newer one may open it, but a read-write open converts the
|
| 88 |
storage format in place — a one-way change — so pin the version unless that is what you want. A RoboSystems
|
| 89 |
+
checkout pins it for you (`ladybug==0.22.1` in `pyproject.toml`); on your own:
|
| 90 |
|
| 91 |
```bash
|
| 92 |
+
pip install ladybug==0.22.1
|
| 93 |
```
|
| 94 |
|
| 95 |
+
The version that wrote each snapshot is in that snapshot's commit title (`sec.lbdb.zst: snapshot YYYY-MM-DD
|
| 96 |
(ladybug X.Y.Z)`), and it moves when the pipeline upgrades its engine — check it before opening a new
|
| 97 |
snapshot with an existing install. `just sec-dump` compares the two and warns on a mismatch.
|
| 98 |
|
| 99 |
## Query it
|
| 100 |
|
| 101 |
**Directly, no services** — the [`ladybug`](https://pypi.org/project/ladybug/) Python package
|
| 102 |
+
(`pip install ladybug==0.22.1`) opens the file in-process:
|
| 103 |
|
| 104 |
```bash
|
| 105 |
just lbug-query sec "MATCH (e:Entity {ticker: 'NVDA'})-[:ENTITY_HAS_REPORT]->(r:Report) RETURN r.form, r.filing_date ORDER BY r.filing_date DESC"
|
|
|
|
| 108 |
```python
|
| 109 |
import ladybug as lbug
|
| 110 |
|
| 111 |
+
db = lbug.Database("data/lbug-dbs/sec.lbdb")
|
| 112 |
conn = lbug.Connection(db)
|
| 113 |
result = conn.execute("MATCH (e:Entity) RETURN count(e)")
|
| 114 |
while result.has_next():
|
| 115 |
+
print(result.get_next())
|
| 116 |
```
|
| 117 |
|
| 118 |
**Through the API and MCP** — start the stack, mint a local key, and subscribe your local user to the
|
|
|
|
| 135 |
|
| 136 |
### Example queries
|
| 137 |
|
| 138 |
+
Consolidated annual revenue for one filer, robust across the different revenue elements filers use, with the
|
| 139 |
+
filing each value came from:
|
| 140 |
|
| 141 |
```cypher
|
| 142 |
+
MATCH (r:Report)-[:REPORT_HAS_FACT]->(f:Fact {has_dimensions: false}),
|
| 143 |
+
(f)-[:FACT_HAS_ELEMENT]->(e:Element),
|
| 144 |
(f)-[:FACT_HAS_ENTITY]->(ent:Entity {ticker: 'NVDA'}),
|
| 145 |
(f)-[:FACT_HAS_PERIOD]->(p:Period {duration_type: 'annual'})
|
| 146 |
+
WHERE e.qname IN ['us-gaap:Revenues', 'us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax']
|
| 147 |
+
AND f.numeric_value IS NOT NULL
|
| 148 |
+
RETURN p.end_date, f.numeric_value AS revenue, r.form, r.filing_date, r.accession_number
|
| 149 |
+
ORDER BY p.end_date DESC, r.filing_date LIMIT 20
|
| 150 |
```
|
| 151 |
|
| 152 |
+
A period usually appears more than once: each 10-K also reports the prior years as comparatives, and those
|
| 153 |
+
can differ from the original after a restatement or reclassification. Keep `r.filing_date` in the result and
|
| 154 |
+
choose deliberately — the earliest filing for a period gives the value as first reported, and the latest
|
| 155 |
+
filing on or before a date gives the value as it was known then, which is what a backtest needs.
|
| 156 |
+
|
| 157 |
A whole income statement via the presentation structure (anchor on the entity first — thousands of filings share each statement type):
|
| 158 |
|
| 159 |
```cypher
|
|
|
|
| 181 |
|
| 182 |
## Versioning
|
| 183 |
|
| 184 |
+
- `sec.lbdb.zst` is a fixed path. Each monthly snapshot overwrites it in a new commit whose title carries the
|
| 185 |
+
snapshot date and engine version (`sec.lbdb.zst: snapshot YYYY-MM-DD (ladybug X.Y.Z)`). `main` is
|
| 186 |
always the latest.
|
| 187 |
+
- Snapshots written before the 0.22 engine (LadybugDB 0.18.1, storage v42) were published as `sec.lbug.zst`,
|
| 188 |
+
the platform's previous suffix. That path stays for one monthly cycle after the rename and is then
|
| 189 |
+
removed. The suffix is only a name; the storage format moved with the engine, so open each snapshot with
|
| 190 |
+
the release its commit title names.
|
| 191 |
- The engine version can move between snapshots. The commit title carries it; when it changes, install the
|
| 192 |
matching `ladybug` before opening the new file (a RoboSystems checkout gets the new pin with the release
|
| 193 |
that shipped it).
|
| 194 |
- Superseded snapshots are removed to keep the dataset one snapshot deep; pin a commit with
|
| 195 |
+
`--revision` only while it is still listed. To reproduce a result later, keep your own copy of the
|
| 196 |
+
snapshot you used.
|
| 197 |
- The hosted graph at robosystems.ai is rebuilt nightly; this file is that graph as of the snapshot date.
|
| 198 |
|
| 199 |
## Provenance and licence
|
|
|
|
| 205 |
Apache-2.0. Facts are as filed: restatements appear as later
|
| 206 |
filings, not as corrections to earlier ones. Element names follow the filer's taxonomy (`us-gaap`,
|
| 207 |
`ifrs-full`, extensions); `canonical_concept` and `Structure.canonical_type` are RoboSystems' cross-filer
|
| 208 |
+
normalisation on top. `canonical_concept` is set from a curated table on standard `us-gaap` and `ifrs-full`
|
| 209 |
+
elements only; extensions carry none.
|
| 210 |
|
| 211 |
```
|
| 212 |
+
RoboSystems. SEC XBRL Knowledge Graph (LadybugDB). Hugging Face, snapshot 2026-10-30.
|
| 213 |
https://huggingface.co/datasets/robosystems/sec-xbrl-knowledge-graphs
|
| 214 |
```
|
| 215 |
|