tighter README
Browse files
README.md
CHANGED
|
@@ -17,47 +17,44 @@ tags:
|
|
| 17 |
- IEEE-802
|
| 18 |
- Bluetooth
|
| 19 |
- DOCSIS
|
| 20 |
-
pretty_name: Telecom Knowledge Base
|
| 21 |
---
|
| 22 |
|
| 23 |
-
# Telecom Knowledge Base
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
`wikidata_formatted` schema. No consolidation, no property selection on the
|
| 29 |
-
wikidata side.
|
| 30 |
|
| 31 |
-
##
|
| 32 |
|
| 33 |
-
- **4,679,
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
|
| 37 |
## Schema (16 columns)
|
| 38 |
|
| 39 |
-
| column |
|
| 40 |
-
|---|---|
|
| 41 |
-
| `statement_id` |
|
| 42 |
-
| `source` |
|
| 43 |
-
| `subject_id` |
|
| 44 |
-
| `subject_label` |
|
| 45 |
-
| `subject_description` |
|
| 46 |
-
| `subject_instance_of_ids` |
|
| 47 |
-
| `subject_instance_of_labels` |
|
| 48 |
-
| `property_id` |
|
| 49 |
-
| `property_label` |
|
| 50 |
-
| `value_id` |
|
| 51 |
-
| `value_label` |
|
| 52 |
-
| `value_type` |
|
| 53 |
-
| `qualifier_property_id` |
|
| 54 |
-
| `qualifier_property_label` |
|
| 55 |
-
| `qualifier_value_id` |
|
| 56 |
-
| `qualifier_value_label` |
|
| 57 |
-
|
| 58 |
-
A statement with N qualifiers becomes N rows
|
| 59 |
-
|
| 60 |
-
qualifier fields.
|
| 61 |
|
| 62 |
## Sources
|
| 63 |
|
|
@@ -72,89 +69,74 @@ qualifier fields.
|
|
| 72 |
|
| 73 |
## Wikidata side
|
| 74 |
|
| 75 |
-
All properties of every kept subject are preserved — no property
|
| 76 |
-
The pipeline
|
| 77 |
-
but never
|
|
|
|
| 78 |
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
7. Weak-area patch (telecom pioneers, ITU-T codecs, country regulators, SDN/NFV, mobile OS) → 390K.
|
| 87 |
-
8. Cleanup filters (content stubs, personality humans, ships, football matches, train stops) → **287,535 final wikidata subjects**.
|
| 88 |
|
| 89 |
## Standards side
|
| 90 |
|
| 91 |
| SDO | Source | Notes |
|
| 92 |
|---|---|---|
|
| 93 |
-
| IETF | `rfc-editor.org/rfc-index.xml` | full
|
| 94 |
-
| 3GPP | `3gpp.org/ftp/Specs/archive/` + `3gpp.org/dynareport` | 91% titles + last_modified + per-version date |
|
| 95 |
| ITU-T | `itu.int/itu-t/recommendations` per series | std_id + series |
|
| 96 |
| Bluetooth SIG | `bluetooth.com/specifications/specs/` | title + url |
|
| 97 |
| CableLabs / DOCSIS | `cablelabs.com/specifications` | title + url |
|
| 98 |
|
| 99 |
-
Standards
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
of), `P953` (full work URL), `P50` (author), `P155 / P156` (follows / followed
|
| 106 |
-
by), `P393` (edition number), `P348` (software version id), `P407` (language),
|
| 107 |
-
`P5008` (status), `P1683` (quotation). Wikidata-side rows retain their full
|
| 108 |
-
original property set unchanged.
|
| 109 |
-
|
| 110 |
-
The native per-SDO catalog parquets (with the original field structures
|
| 111 |
-
preserved verbatim) live alongside the unified table on the upstream pleiasdata
|
| 112 |
-
server.
|
| 113 |
|
| 114 |
-
Not ingested (JS-rendered SDO
|
| 115 |
|
| 116 |
## Subject-ID convention
|
| 117 |
|
| 118 |
-
- `Q…` — wikidata entity
|
| 119 |
-
- `STD:IETF:RFC0791`
|
| 120 |
-
|
| 121 |
-
- `STD:ITU-T:G.711` — ITU-T G.711
|
| 122 |
-
- `STD:Bluetooth:…`, `STD:CableLabs:…`
|
| 123 |
|
| 124 |
-
Synthetic instance-of classes for SDO docs
|
| 125 |
-
|
| 126 |
|
| 127 |
## Loading
|
| 128 |
|
| 129 |
```python
|
| 130 |
-
import pyarrow.parquet as pq
|
| 131 |
|
|
|
|
| 132 |
pf = pq.ParquetFile("telecom_kb_v15.parquet")
|
| 133 |
for batch in pf.iter_batches(batch_size=50_000):
|
| 134 |
for row in batch.to_pylist():
|
| 135 |
-
# row["statement_id"], row["source"], row["subject_id"], row["property_id"], ...
|
| 136 |
pass
|
| 137 |
-
```
|
| 138 |
|
| 139 |
-
|
| 140 |
-
```python
|
| 141 |
-
import pyarrow.compute as pc
|
| 142 |
t = pq.read_table("telecom_kb_v15.parquet")
|
| 143 |
-
ietf = t.filter(pc.equal(t["source"], "IETF"))
|
| 144 |
verizon = t.filter(pc.equal(t["subject_id"], "Q467752"))
|
|
|
|
| 145 |
```
|
| 146 |
|
| 147 |
-
Reconstruct a per-entity view by grouping on `subject_id` + `statement_id`.
|
| 148 |
|
| 149 |
## Caveats
|
| 150 |
|
| 151 |
-
- Wikidata side reflects
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
via Q212971 RFC class), ~572 ITU-T recommendations by exact label. The
|
| 158 |
standards-side rows are largely net-new vs wikidata.
|
| 159 |
-
- Some cascade noise remains (
|
| 160 |
-
|
|
|
|
| 17 |
- IEEE-802
|
| 18 |
- Bluetooth
|
| 19 |
- DOCSIS
|
| 20 |
+
pretty_name: Telecom Knowledge Base
|
| 21 |
---
|
| 22 |
|
| 23 |
+
# Telecom Knowledge Base
|
| 24 |
|
| 25 |
+
Knowledge graph for the telecommunications industry — **wikidata entities +
|
| 26 |
+
SDO standards catalogs**, in flat tabular form (one row per
|
| 27 |
+
subject/statement/qualifier triple).
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
## At a glance
|
| 30 |
|
| 31 |
+
- **4,679,018 rows**, **301,949 distinct subjects**, 16 columns
|
| 32 |
+
- **162 MB** parquet (zstd)
|
| 33 |
+
- File ordered to put leading telcos (Vodafone, Deutsche Telekom, Verizon, Orange, BT…), then equipment vendors (Nokia, Ericsson, Huawei, Cisco, Qualcomm…), then headline 3GPP specs (TS 38.211, 23.501, 24.501…), then famous IETF RFCs (RFC 791 IP, RFC 793 TCP, RFC 9000 QUIC…), then telecom patents — at the very top of the file. The rest follows by `source` then numeric Q-ID.
|
| 34 |
|
| 35 |
## Schema (16 columns)
|
| 36 |
|
| 37 |
+
| column | meaning |
|
| 38 |
+
|---|---|
|
| 39 |
+
| `statement_id` | wikidata statement ID; synthetic md5 for non-wikidata sources |
|
| 40 |
+
| `source` | `wikidata` / `IETF` / `3GPP` / `ITU-T` / `Bluetooth` / `CableLabs` |
|
| 41 |
+
| `subject_id` | wikidata Q-ID or `STD:<SDO>:<id>` |
|
| 42 |
+
| `subject_label` | canonical English label |
|
| 43 |
+
| `subject_description` | English description |
|
| 44 |
+
| `subject_instance_of_ids` | pipe-separated P31 Q-IDs |
|
| 45 |
+
| `subject_instance_of_labels` | pipe-separated P31 labels |
|
| 46 |
+
| `property_id` | P-ID (`P31`, `P50`, `P577`, `P1476`, …) |
|
| 47 |
+
| `property_label` | property label |
|
| 48 |
+
| `value_id` | Q-ID or string value |
|
| 49 |
+
| `value_label` | value label |
|
| 50 |
+
| `value_type` | `wikibase-entityid` / `string` / `time` / `monolingualtext` / `url` |
|
| 51 |
+
| `qualifier_property_id` | qualifier P-ID (may be empty) |
|
| 52 |
+
| `qualifier_property_label` | qualifier label |
|
| 53 |
+
| `qualifier_value_id` | qualifier value |
|
| 54 |
+
| `qualifier_value_label` | qualifier value label |
|
| 55 |
+
|
| 56 |
+
A statement with N qualifiers becomes N rows sharing the same `statement_id`;
|
| 57 |
+
a statement with no qualifier is one row with empty qualifier fields.
|
|
|
|
| 58 |
|
| 59 |
## Sources
|
| 60 |
|
|
|
|
| 69 |
|
| 70 |
## Wikidata side
|
| 71 |
|
| 72 |
+
All wikidata properties of every kept subject are preserved — **no property
|
| 73 |
+
selection**. The pipeline filters out *entities* (e.g. radio-personality humans,
|
| 74 |
+
ships, off-topic content stubs) but never drops individual statements from a
|
| 75 |
+
kept entity.
|
| 76 |
|
| 77 |
+
Build summary: 75 hand-curated telecom anchor classes → P279 BFS walk → 6,448
|
| 78 |
+
classes → P31 entity scan → property-based expansion (P452 / P101 / P106 / P921
|
| 79 |
+
/ P136 / P1056) → anchor cascade (P108 / P127 / P137 / P749 / P176 / P361 /
|
| 80 |
+
P488 / P169 / P3320 / P710) → concept-anchor patch (MIMO, OFDM, RSRP, IEEE
|
| 81 |
+
802.11n/ac/ax, Shannon-Hartley, AWGN, Friis, …) → weak-area patch (pioneers,
|
| 82 |
+
ITU-T codecs, country regulators, SDN/NFV, mobile OS) → cleanup filters →
|
| 83 |
+
**287,535 wikidata subjects**.
|
|
|
|
|
|
|
| 84 |
|
| 85 |
## Standards side
|
| 86 |
|
| 87 |
| SDO | Source | Notes |
|
| 88 |
|---|---|---|
|
| 89 |
+
| IETF | `rfc-editor.org/rfc-index.xml` | full metadata: title, authors, year/month, status, abstract, obsoletes/-by, keywords |
|
| 90 |
+
| 3GPP | `3gpp.org/ftp/Specs/archive/` + `3gpp.org/dynareport` | 91 % titles + last_modified + per-version date |
|
| 91 |
| ITU-T | `itu.int/itu-t/recommendations` per series | std_id + series |
|
| 92 |
| Bluetooth SIG | `bluetooth.com/specifications/specs/` | title + url |
|
| 93 |
| CableLabs / DOCSIS | `cablelabs.com/specifications` | title + url |
|
| 94 |
|
| 95 |
+
Standards rows use a **13-property wikidata-aligned subset** (P31, P1476 title,
|
| 96 |
+
P577 date, P361 part-of, P953 URL, P50 author, P155/P156 follows/-by, P393
|
| 97 |
+
edition, P348 version, P407 language, P5008 status, P1683 abstract) — a
|
| 98 |
+
deliberate schema alignment to make standards joinable against the wikidata
|
| 99 |
+
rows. Native per-SDO catalog parquets with all original fields are preserved
|
| 100 |
+
upstream.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
+
Not ingested (JS-rendered SDO catalogs): ETSI, GSMA, IEEE Get Program.
|
| 103 |
|
| 104 |
## Subject-ID convention
|
| 105 |
|
| 106 |
+
- `Q…` — wikidata entity
|
| 107 |
+
- `STD:IETF:RFC0791`, `STD:3GPP:TS_38.211`, `STD:ITU-T:G.711`,
|
| 108 |
+
`STD:Bluetooth:…`, `STD:CableLabs:…` — standards
|
|
|
|
|
|
|
| 109 |
|
| 110 |
+
Synthetic instance-of classes for SDO docs without wikidata Q-ID counterparts:
|
| 111 |
+
`SYN:3GPP-TS`, `SYN:3GPP-TR`, `SYN:BT-SPEC`, `SYN:DOCSIS`.
|
| 112 |
|
| 113 |
## Loading
|
| 114 |
|
| 115 |
```python
|
| 116 |
+
import pyarrow.parquet as pq, pyarrow.compute as pc
|
| 117 |
|
| 118 |
+
# stream
|
| 119 |
pf = pq.ParquetFile("telecom_kb_v15.parquet")
|
| 120 |
for batch in pf.iter_batches(batch_size=50_000):
|
| 121 |
for row in batch.to_pylist():
|
|
|
|
| 122 |
pass
|
|
|
|
| 123 |
|
| 124 |
+
# filter examples
|
|
|
|
|
|
|
| 125 |
t = pq.read_table("telecom_kb_v15.parquet")
|
|
|
|
| 126 |
verizon = t.filter(pc.equal(t["subject_id"], "Q467752"))
|
| 127 |
+
ietf = t.filter(pc.equal(t["source"], "IETF"))
|
| 128 |
```
|
| 129 |
|
| 130 |
+
Reconstruct a per-entity view by grouping on `subject_id` (+ `statement_id`).
|
| 131 |
|
| 132 |
## Caveats
|
| 133 |
|
| 134 |
+
- Wikidata side reflects a 2026-Q1 dump; later additions are absent.
|
| 135 |
+
- Standards side is **metadata only** (titles / dates / versions / URLs /
|
| 136 |
+
authors / obsoletes-chains), not full spec text.
|
| 137 |
+
- Wikidata coverage of individual standards documents is sparse: 0 3GPP TS
|
| 138 |
+
docs by exact label, ~95 RFCs by exact `RFC NNN` label (plus ~1,700 by
|
| 139 |
+
content-title via Q212971 RFC class), ~572 ITU-T recommendations. The
|
|
|
|
| 140 |
standards-side rows are largely net-new vs wikidata.
|
| 141 |
+
- Some cascade noise remains (non-telecom patents owned by Samsung / Qualcomm
|
| 142 |
+
etc.) — documented in audits but kept per scope.
|