Pclanglais commited on
Commit
8a174e1
·
verified ·
1 Parent(s): 5fc35c7

tighter README

Browse files
Files changed (1) hide show
  1. README.md +68 -86
README.md CHANGED
@@ -17,47 +17,44 @@ tags:
17
  - IEEE-802
18
  - Bluetooth
19
  - DOCSIS
20
- pretty_name: Telecom Knowledge Base v15 (flat)
21
  ---
22
 
23
- # Telecom Knowledge Base v15
24
 
25
- Unified knowledge graph for the telecommunications industry, built from wikidata
26
- + SDO (Standards Development Organization) catalogs. **Flat tabular format**
27
- one row per (subject, statement, qualifier) triple, matching the canonical
28
- `wikidata_formatted` schema. No consolidation, no property selection on the
29
- wikidata side.
30
 
31
- ## Volumes
32
 
33
- - **4,679,389 rows** (statement-qualifier denormalized)
34
- - ~301,949 distinct subjects
35
- - 162 MB on disk (zstd parquet)
36
 
37
  ## Schema (16 columns)
38
 
39
- | column | type | content |
40
- |---|---|---|
41
- | `statement_id` | string | wikidata statement ID (e.g. `Q1418$58eb7bf6-…`); synthetic md5 for non-wikidata sources |
42
- | `source` | string | `wikidata` / `IETF` / `3GPP` / `ITU-T` / `Bluetooth` / `CableLabs` |
43
- | `subject_id` | string | wikidata Q-ID or `STD:<SDO>:<id>` for standards |
44
- | `subject_label` | string | canonical English label |
45
- | `subject_description` | string | English description |
46
- | `subject_instance_of_ids` | string | pipe-separated P31 Q-IDs |
47
- | `subject_instance_of_labels` | string | pipe-separated P31 labels |
48
- | `property_id` | string | P-ID (e.g. `P31`, `P50`, `P577`, `P1476`, …) |
49
- | `property_label` | string | property's English label |
50
- | `value_id` | string | Q-ID or string value |
51
- | `value_label` | string | value's English label |
52
- | `value_type` | string | `wikibase-entityid` / `string` / `time` / `monolingualtext` / `url` |
53
- | `qualifier_property_id` | string | qualifier P-ID (may be empty) |
54
- | `qualifier_property_label` | string | qualifier property label |
55
- | `qualifier_value_id` | string | qualifier value (Q-ID or string) |
56
- | `qualifier_value_label` | string | qualifier value label |
57
-
58
- A statement with N qualifiers becomes N rows (each with the same
59
- `statement_id`); a statement with no qualifier becomes 1 row with empty
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 selection.
76
- The pipeline filtered out *entities* (radio-personality humans, ships, etc.)
77
- but never dropped any individual statement from a kept entity.
 
78
 
79
- Pipeline summary:
80
- 1. 75 hand-curated telecom anchor classes (telco / ISP / MNO / broadcaster / radio-TV station / satellite / transmitter / codec / communication protocol / standards body / …).
81
- 2. P279 BFS walk6,448 telecom-related classes after cleanup.
82
- 3. P31 entity scan95K hits.
83
- 4. Property-based expansion via P452 / P101 / P106 / P921 / P136 / P1056 → 127K.
84
- 5. Cascade via P108 / P127 / P137 / P749 / P176 / P361 / P488 / P169 / P3320 / P710 200K.
85
- 6. Concept-anchor patch (MIMO, OFDM, RSRP, IEEE 802.11n/ac/ax, Shannon-Hartley, AWGN, AMF…) → 305K.
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 bulk metadata: title, authors, year/month, status, abstract, obsoletes/-by, keywords |
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 metadata was mapped onto a small wikidata-aligned property subset (13
100
- P-IDs) see qualifying note below.
101
-
102
- **Note on standards property mapping** SDO catalog fields were translated
103
- into the following 13 canonical wikidata properties for schema alignment:
104
- `P31` (instance of), `P1476` (title), `P577` (publication date), `P361` (part
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 pages): ETSI, GSMA, IEEE Get Program.
115
 
116
  ## Subject-ID convention
117
 
118
- - `Q…` — wikidata entity (real Q-ID)
119
- - `STD:IETF:RFC0791` IETF RFC 0791
120
- - `STD:3GPP:TS_38.211` — 3GPP TS 38.211
121
- - `STD:ITU-T:G.711` — ITU-T G.711
122
- - `STD:Bluetooth:…`, `STD:CableLabs:…`
123
 
124
- Synthetic instance-of classes for SDO docs that have no wikidata Q-ID
125
- counterpart: `SYN:3GPP-TS`, `SYN:3GPP-TR`, `SYN:BT-SPEC`, `SYN:DOCSIS`.
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
- Filter by source / subject:
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 state of the pleiasdata 2026-Q1 wikidata dump; items
152
- added more recently are absent.
153
- - Standards side is **metadata only** (titles / dates / versions / URLs / authors /
154
- obsoletes-chains), not full text.
155
- - Wikidata coverage of individual standards documents is sparse: 0 3GPP TS docs
156
- in wikidata, ~95 RFCs by exact `RFC NNN` label (plus ~1,700 by content-title
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 (e.g. non-telecom patents owned by Samsung /
160
- Qualcomm; documented in earlier audits but kept per user scope).
 
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.