mdld-parse 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/.nojekyll +0 -0
  2. package/dist/CNAME +1 -0
  3. package/dist/README.md +425 -0
  4. package/dist/docs/API.md +397 -0
  5. package/dist/docs/Architecture.md +190 -0
  6. package/dist/docs/Guide.md +816 -0
  7. package/dist/docs/LLM-MDLD-Inducer.md +550 -0
  8. package/dist/docs/Parser.md +654 -0
  9. package/dist/docs/Performance.md +238 -0
  10. package/dist/docs/Spec-render.md +1439 -0
  11. package/dist/docs/Subject.md +180 -0
  12. package/dist/docs/Syntax.md +463 -0
  13. package/dist/docs/TodoList.md +215 -0
  14. package/dist/docs/Use-Cases.md +354 -0
  15. package/dist/docs/guide-m.md +56 -0
  16. package/dist/docs/index.html +108 -0
  17. package/dist/docs/index.md +56 -0
  18. package/dist/docs/one-page.md +322 -0
  19. package/dist/docs/origin.md +459 -0
  20. package/dist/docs/polarity.md +586 -0
  21. package/dist/docs/primary-subject.md +199 -0
  22. package/dist/docs/statements.md +226 -0
  23. package/dist/docs/tokenization-performance-report.md +164 -0
  24. package/dist/examples/Cookbook.md +32 -0
  25. package/dist/examples/Status-SHACL.md +31 -0
  26. package/dist/examples/demo/index.md +35 -0
  27. package/dist/examples/demo/journal.md +119 -0
  28. package/dist/examples/demo/minimal.md +23 -0
  29. package/dist/examples/demo/project.md +98 -0
  30. package/dist/examples/demo/prov.md +107 -0
  31. package/dist/examples/demo/rdf.md +69 -0
  32. package/dist/examples/demo/recipe.md +95 -0
  33. package/dist/examples/demo/research.md +126 -0
  34. package/dist/examples/demo/shacl.md +161 -0
  35. package/dist/examples/demo/space-mission.md +129 -0
  36. package/dist/examples/demo/tasks.md +175 -0
  37. package/dist/examples/demo/xsd.md +91 -0
  38. package/dist/examples/dogfood.md +288 -0
  39. package/dist/examples/few-shot.md +309 -0
  40. package/dist/examples/graph/rdf-graph.html +473 -0
  41. package/dist/examples/graph/rdf_force_graph_web_component.html +506 -0
  42. package/dist/examples/index.md +45 -0
  43. package/dist/examples/llm-time-workflow.md +173 -0
  44. package/dist/examples/statements.md +43 -0
  45. package/dist/examples/workflow.md +150 -0
  46. package/dist/index.html +3253 -0
  47. package/dist/index.js +1770 -0
  48. package/dist/logo.svg +7 -0
  49. package/dist/spec/Spec-compact.md +363 -0
  50. package/dist/spec/Spec-ultra.md +221 -0
  51. package/dist/spec/Spec.md +1068 -0
  52. package/dist/spec/index.md +46 -0
  53. package/package.json +7 -8
  54. package/src/constants.js +0 -31
  55. package/src/generate.js +0 -245
  56. package/src/highlight.js +0 -362
  57. package/src/index.js +0 -13
  58. package/src/locate.js +0 -23
  59. package/src/merge.js +0 -157
  60. package/src/parse.js +0 -711
  61. package/src/render.js +0 -576
  62. package/src/shared.js +0 -577
  63. package/src/tokenizers.js +0 -594
  64. package/src/utils.js +0 -430
package/dist/logo.svg ADDED
@@ -0,0 +1,7 @@
1
+ <svg width="1000" height="1000" xmlns="http://www.w3.org/2000/svg">
2
+
3
+ <text x="500" y="500" font-family="Consolas, Menlo, Monospace, monospace" font-size="210" text-anchor="middle" style="font-weight: bold">
4
+ <tspan fill="gray" style="opacity:0.5">{</tspan><tspan fill="#d9711f" >=+ .?!</tspan><tspan fill="gray" style="opacity:0.5">}</tspan>
5
+ </text>
6
+
7
+ </svg>
@@ -0,0 +1,363 @@
1
+ # MD-LD — Core Specification (Minimal)
2
+
3
+ **Markdown-Linked Data**
4
+
5
+ A deterministic, streaming-friendly semantic annotation layer for CommonMark Markdown that emits RDF quads **only** from explicit `{...}` annotations.
6
+
7
+ ---
8
+
9
+ ## 1. Core Guarantees
10
+
11
+ 1. **Markdown-preserving** - Removing `{...}` yields valid Markdown
12
+ 2. **No implicit semantics** - Everything must be explicit
13
+ 3. **Explicit origin** - All quads come from `{...}` blocks
14
+ 4. **Single-pass streaming** - No backtracking required
15
+ 5. **No blank nodes** - Every entity has an IRI
16
+ 6. **No inference** - No guessing or structural heuristics
17
+ 7. **Traceable** - Every quad traces to source span
18
+
19
+ ---
20
+
21
+ ## 2. Graph Model
22
+
23
+ MD-LD creates facts: **Subject → Predicate → Object**
24
+
25
+ **Building blocks:**
26
+ - **IRIs** - Unique identifiers (subjects and objects)
27
+ - **Literals** - Data values (objects only)
28
+
29
+ **Rules:**
30
+ - IRIs can be subjects or objects
31
+ - Literals are always objects
32
+ - Creates a directed labeled multigraph
33
+
34
+ ---
35
+
36
+ ## 3. Available Nodes (S, O, L)
37
+
38
+ When parsing `{...}`, MD-LD knows:
39
+
40
+ - **S** - Current subject (IRI, from `{=IRI}` or `{=#fragment}`)
41
+ - **O** - Object resource (IRI, from links/images or `{=IRI}`)
42
+ - **L** - Literal value (text from value carrier)
43
+
44
+ ---
45
+
46
+ ## 4. Value Carriers
47
+
48
+ `{...}` attaches to exactly one value carrier:
49
+
50
+ ### Inline
51
+ - `[text] {...}` - Link text
52
+ - `*text* {...}`, `_text_ {...}` - Emphasis
53
+ - `**text** {...}`, `__text__ {...}` - Strong
54
+ - `` `text` {...}`` - Code
55
+
56
+ ### Block
57
+ - `# Heading {...}` - Heading text
58
+ - `- item {...}` - List item text
59
+ - `> quote {...}` - Quote text
60
+ - ````lang {...}`` - Code block content
61
+
62
+ ### Links/Media
63
+ - `<URL> {...}` - URL (IRI)
64
+ - `[label](URL) {...}` - Link (text + URL)
65
+ - `![alt](URL) {...}` - Image (alt + URL)
66
+
67
+ **Rule:** `{...}` must immediately follow the carrier.
68
+
69
+ ---
70
+
71
+ ## 5. Semantic Block Attachment
72
+
73
+ `{...}` blocks attach by:
74
+
75
+ 1. **Nearest preceding value carrier**, OR
76
+ 2. **Stand alone** - applies to current subject or following list
77
+
78
+ **Ambiguous attachment = no output**
79
+
80
+ ---
81
+
82
+ ## 6. Subjects
83
+
84
+ ### Full IRI
85
+ ```
86
+ {=IRI}
87
+ ```
88
+ Sets current subject. Persists until changed.
89
+
90
+ ### Fragment
91
+ ```
92
+ {=#fragment}
93
+ ```
94
+ Creates `currentSubjectBase#fragment`. Requires existing subject.
95
+
96
+ ### Soft Object IRI (Temporary)
97
+
98
+ ```
99
+ {+iri}
100
+ ```
101
+
102
+ Declares a temporary object for use with `?` and `!` predicates, without changing the current subject.
103
+
104
+ ### Soft Fragment (Temporary)
105
+
106
+ ```
107
+ {+#fragment}
108
+ ```
109
+
110
+ Creates a temporary fragment relative to the current subject base.
111
+
112
+ **Use cases:**
113
+ - `[Related Item] {+ex:related ?schema:isRelatedTo}` - Links to a local fragment
114
+ - `[Parent] {+ex:parent !schema:hasPart}` - Reverse relationship
115
+ - `[Section] {+#section1 name ?hasPart}` - Object property with fragment
116
+
117
+ The soft IRI only exists within the current annotation block.
118
+
119
+ ### Primary Subject
120
+
121
+ The **Primary Subject** is the first non-fragment subject declaration (`{=IRI}`) in a document.
122
+
123
+ **Selection rules:**
124
+ - First non-fragment `{=IRI}` becomes primary
125
+ - Fragments (`{=#fragment}`) excluded
126
+ - Fixed once detected (never cleared on `{=}` reset)
127
+ - Null if no subject declared
128
+
129
+ **API returns:**
130
+ - `parse()`: `{ ..., primarySubject: string | null }`
131
+ - `merge()`: `{ ..., primarySubjects: string[] }` (ordered by merge)
132
+ - `generate({ quads, context, primarySubject })`: Places primary subject first for round-trip safety
133
+
134
+ **Use cases:** Document identification, merge tracking, UI navigation, query optimization.
135
+
136
+ ---
137
+
138
+ ## 7. Types
139
+
140
+ ```
141
+ .Class
142
+ ```
143
+ Declares type: `S rdf:type schema:Class`
144
+
145
+ Multiple types allowed: `.Person .Astronaut`
146
+
147
+ ---
148
+
149
+ ## 8. Predicate Forms
150
+
151
+ | Syntax | Direction | Use |
152
+ |--------|-----------|-----|
153
+ | `p` | S → L | Literal properties |
154
+ | `?p` | S → O | Object properties |
155
+ | `!p` | O → S | Reverse properties |
156
+
157
+ **Emission rule:** Create quad only if all nodes exist and roles are valid.
158
+
159
+ ### 8.1 Diff Polarity (Remove Tokens)
160
+
161
+ Prefix `-` to any predicate for remove polarity:
162
+
163
+ | Syntax | Effect |
164
+ |--------|--------|
165
+ | `-p` | Remove S→L fact |
166
+ | `-?p` | Remove S→O fact |
167
+ | `-!p` | Remove O→S fact |
168
+ | `-.C` | Remove rdf:type fact |
169
+
170
+ **Live state routing:** Cancel if quad exists in buffer, else add to remove array.
171
+
172
+ **Parse result:** `{ quads, remove, origin, context }`
173
+
174
+ **Invariant:** `quads ∩ remove = ∅`
175
+
176
+ ---
177
+
178
+ ## 9. Literals
179
+
180
+ Extracted **only** from attached value carrier.
181
+
182
+ ### Datatypes/Languages
183
+ ```
184
+ ^^datatypeIRI # Typed data
185
+ @lang # Language tag
186
+ ```
187
+
188
+ Mutually exclusive. Common types: `xsd:string`, `xsd:integer`, `xsd:gYear`, `xsd:date`, `xsd:boolean`.
189
+
190
+ ---
191
+
192
+ ## 10. Object Resources
193
+
194
+ Available from:
195
+ - Link URLs: `[text](URL)`
196
+ - Image URLs: `![alt](URL)`
197
+ - Explicit IRIs: `{=IRI}`
198
+
199
+ **Example:**
200
+ ```md
201
+ ## References {=ex:references}
202
+ [Example image](https://example.com/image.jpg) {?image name}
203
+ [W3C RDF](https://www.w3.org/RDF) {?dct:references name}
204
+ [Alice] {=urn:person:alice ?author name}
205
+ ```
206
+
207
+ **Result:**
208
+ ```turtle
209
+ ex:references schema:image <https://example.com/image.jpg> .
210
+ <https://example.com/image.jpg> schema:name "Example image" .
211
+ ex:references dct:references <https://www.w3.org/RDF> .
212
+ <https://www.w3.org/RDF> schema:name "W3C RDF" .
213
+ ex:references schema:author <urn:person:alice> .
214
+ <urn:person:alice> schema:name "Alice" .
215
+ ```
216
+
217
+ ---
218
+
219
+ ## 11. Lists
220
+
221
+ Lists are pure Markdown structure with **no semantic scope**. Each list item requires explicit annotations.
222
+
223
+ ### Explicit List Annotations
224
+
225
+ ```md
226
+ [@vocab] <http://www.w3.org/2000/01/rdf-schema#>
227
+
228
+ ## Research Team {=prj:team .Container label}
229
+ Team members:
230
+
231
+ - **Lead researcher** {+prj:lead ?member .Person label}
232
+ - **Data analyst** {+prj:analyst ?member .Person label}
233
+ ```
234
+
235
+ **Key Rules:**
236
+ - No semantic propagation from list scope
237
+ - Each item must have explicit annotations
238
+ - Use `+IRI` to maintain subject chaining for repeated object properties
239
+ - Nested lists have no inheritance
240
+
241
+ **Ordered lists** require explicit rdf:List construction:
242
+ ```md
243
+ [ex] <http://example.org/>
244
+
245
+ # Manual list construction {=ex:manualList label}
246
+ [head] {=ex:l1 ?sh:in .rdf:List}
247
+ [a] {+ex:A ?rdf:first}
248
+ [list2] {=ex:l2 ?rdf:rest}
249
+ [b] {+ex:B ?rdf:first}
250
+ [nil] {+rdf:nil ?rdf:rest}
251
+ {=}
252
+ ```
253
+
254
+ ---
255
+
256
+ ## 12. Reverse Relationships
257
+
258
+ `!p` flips direction only, not meaning.
259
+
260
+ **Example:**
261
+ ```md
262
+ Used in: {!hasPart}
263
+ - Bread {=ex:bread}
264
+ ```
265
+ Creates: `ex:bread schema:hasPart S`
266
+
267
+ ---
268
+
269
+ ## 13. Code Blocks
270
+
271
+ `{...}` on opening fence makes code block a value carrier.
272
+
273
+ **Example:**
274
+ ```md
275
+ ```js {=ex:code .SoftwareSourceCode text}
276
+ console.log("hi")
277
+ ```
278
+ ```
279
+
280
+ **Result:**
281
+ ```turtle
282
+ ex:code a schema:SoftwareSourceCode ;
283
+ schema:text "console.log(\"hi\")" .
284
+ ```
285
+
286
+ ---
287
+
288
+ ## 14. Context
289
+
290
+ ### Default Context
291
+ ```json
292
+ {
293
+ "@vocab": "http://www.w3.org/2000/01/rdf-schema#",
294
+ "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
295
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
296
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
297
+ "sh": "http://www.w3.org/ns/shacl#",
298
+ "prov": "http://www.w3.org/ns/prov#"
299
+ }
300
+ ```
301
+
302
+ ### Prefix Declaration
303
+ ```
304
+ [prefix] <IRI>
305
+ ```
306
+
307
+ ### Prefix Folding: Hierarchical IRI Authoring
308
+
309
+ Build namespace hierarchies by referencing previously declared prefixes:
310
+
311
+ ```
312
+ [my] <tag:mymail@domain.com,2026:>
313
+ [j] <my:journal:>
314
+ [p] <my:property:>
315
+ [org] <https://org.example.com/>
316
+ [person] <org:person/>
317
+ [emp] <person:employee/>
318
+ ```
319
+
320
+ **Resolution Rules:**
321
+ - Prefixes must be declared before they can be referenced (forward-reference only)
322
+ - References are resolved immediately during declaration
323
+ - Circular references are treated as literal strings
324
+ - Later declarations override earlier ones
325
+
326
+ ### Vocabulary Setting
327
+ ```
328
+ [@vocab] <IRI>
329
+ ```
330
+
331
+ **Rules:** Apply forward, later overrides earlier, single-pass resolution.
332
+
333
+ ---
334
+
335
+ ## 15. Forbidden Constructs
336
+
337
+ - Implicit labels
338
+ - Structural inference
339
+ - Auto-subjects
340
+ - Literal lists
341
+ - Blank nodes
342
+ - key=value syntax
343
+ - Predicate guessing
344
+ - Backtracking parses
345
+ - CURIE in Markdown links
346
+ - **Semantic list propagation**
347
+
348
+ These ensure predictability, traceability, and single-pass processing.
349
+
350
+ ---
351
+
352
+ ## 16. Conformance
353
+
354
+ A conformant MD-LD processor must:
355
+
356
+ 1. Follow predicate routing rules (§8)
357
+ 2. Emit quads only from `{...}` blocks
358
+ 3. Implement single-pass streaming parsing
359
+ 4. Provide deterministic output
360
+ 5. Maintain traceable origins
361
+ 6. Support all three predicate forms (`p`, `?p`, `!p`)
362
+
363
+ No guessing, no blank nodes, no backtracking. Round-trip MD → RDF → MD preserves quads and origins.
@@ -0,0 +1,221 @@
1
+ # MD-LD — Core Specification (Minimal)
2
+
3
+ **Markdown-Linked Data**
4
+
5
+ A deterministic, streaming-friendly semantic annotation layer for CommonMark Markdown that emits RDF quads **only** from explicit `{...}` annotations.
6
+
7
+ ## 1. Core Rules
8
+
9
+ - Markdown-preserving (remove `{...}` → valid Markdown)
10
+ - No implicit semantics, explicit only
11
+ - Single-pass streaming, no backtracking
12
+ - No blank nodes, all IRIs
13
+ - Every quad traces to `{...}` source
14
+
15
+ ## 2. Graph Model
16
+
17
+ **Facts**: Subject → Predicate → Object
18
+ - **IRIs**: Subjects + objects (identifiers)
19
+ - **Literals**: Objects only (data values)
20
+
21
+ ## 3. Available Nodes
22
+
23
+ - **S**: Current subject (`{=IRI}`, `{=#fragment}`)
24
+ - **O**: Object resource (links, images, `{=IRI}`)
25
+ - **L**: Literal value (from value carrier)
26
+
27
+ ## 4. Value Carriers
28
+
29
+ `{...}` attaches to exactly one:
30
+
31
+ **Inline**: `[text]` `*text*` `**text**` `` `text` ``
32
+ **Block**: `# Heading` `- item` `> quote` ````lang````
33
+ **Links**: `http://url` `[label](url)` `![alt](url)` `<url>`
34
+
35
+ **Rule**: `{...}` immediately follows carrier.
36
+
37
+ ## 5. Attachment
38
+
39
+ 1. Nearest preceding value carrier, OR
40
+ 2. Stand alone (current subject or following list)
41
+
42
+ Ambiguous = no output.
43
+
44
+ ## 6. Subjects
45
+
46
+ ```
47
+ {=IRI} # Full IRI, persists
48
+ {=#fragment} # Relative to current subject
49
+ {+iri} # Temporary object for local ?/! predicates
50
+ {+#fragment} # Temporary soft fragment
51
+ ```
52
+
53
+ ### Primary Subject
54
+
55
+ First non-fragment `{=IRI}` in document. Fixed once detected (never cleared on `{=}`).
56
+
57
+ **parse()**: Returns `primarySubject` (string IRI or null)
58
+ **merge()**: Returns `primarySubjects` array (ordered by merge)
59
+ **generate()**: Accepts `{ quads, context, primarySubject }` — places primary subject first for round-trip safety
60
+
61
+ ## 7. Types
62
+
63
+ ```
64
+ .Class # S rdf:type schema:Class
65
+ .Person .Astronaut # Multiple types
66
+ ```
67
+
68
+ ## 8. Predicates
69
+
70
+ | Syntax | Direction | Use |
71
+ |--------|-----------|-----|
72
+ | `p` | S → L | Literal properties |
73
+ | `?p` | S → O | Object properties |
74
+ | `!p` | O → S | Reverse properties |
75
+
76
+ Create quad only if all nodes exist.
77
+
78
+ ### 8.1 Remove Polarity
79
+
80
+ Prefix `-` for remove tokens: `-p`, `-?p`, `-!p`, `-.C`
81
+
82
+ Route against live buffer: cancel if present, else add to remove array.
83
+
84
+ Result: `{ quads, remove, origin, context }`
85
+
86
+ Invariant: `quads ∩ remove = ∅`
87
+
88
+ ## 9. Literals
89
+
90
+ From value carrier only.
91
+
92
+ ```
93
+ ^^datatypeIRI # Typed data
94
+ @lang # Language tag
95
+ ```
96
+
97
+ Common: `xsd:string`, `xsd:integer`, `xsd:gYear`, `xsd:date`.
98
+
99
+ ## 10. Objects
100
+
101
+ From: `[text](url)`, `![alt](url)`, `{=IRI}`
102
+
103
+ **Example**:
104
+ ```md
105
+ ## References {=ex:references}
106
+ [Image](https://example.com/img.jpg) {?image label}
107
+ [W3C](https://www.w3.org/RDF) {?dct:references label}
108
+ [Alice] {=tag:alice@example.com,2026:me ? label}
109
+ ```
110
+
111
+ ## 11. Lists
112
+
113
+ Lists are pure Markdown structure with **no semantic scope**. Each list item requires explicit annotations.
114
+
115
+ ```md
116
+ [prj] <tag:project@example.com,2026-02-03:>
117
+ [foaf] <http://xmlns.com/foaf/0.1/>
118
+
119
+ ## Local Projects Team {=prj:team .foaf:Group label}
120
+
121
+ Team members:
122
+
123
+ - **Alice Cooper** {+prj:alice ?foaf:member .foaf:Person foaf:name}
124
+ - **Bruce Miles** {+prj:bruce ?foaf:member .foaf:Person foaf:name}
125
+ - **Eva Clark** {+prj:eva ?foaf:member .foaf:Person foaf:name}
126
+ ```
127
+
128
+ **Key Rules:**
129
+ - No semantic propagation from list scope
130
+ - Each item must have explicit annotations
131
+ - Use `+IRI` to maintain subject chaining for repeated object properties
132
+ - Nested lists have no inheritance
133
+
134
+ **Ordered lists** require explicit rdf:List construction:
135
+ ```md
136
+ [ex] <http://example.org/>
137
+
138
+ # Manual list construction {=ex:manualList label}
139
+ [head] {=ex:l1 ?sh:in .rdf:List}
140
+ [a] {+ex:A ?rdf:first}
141
+ [list2] {=ex:l2 ?rdf:rest}
142
+ [b] {+ex:B ?rdf:first}
143
+ [nil] {+rdf:nil ?rdf:rest}
144
+ {=}
145
+ ```
146
+
147
+ ## 12. Reverse Relations
148
+
149
+ `!p` flips direction only.
150
+
151
+ ```md
152
+ Used in: {!schema:hasPart}
153
+ - Bread {=ex:bread}
154
+ # Creates: ex:bread schema:hasPart S
155
+ ```
156
+
157
+ ## 13. Code Blocks
158
+
159
+ `{...}` on opening fence:
160
+
161
+ ```md
162
+ ```js {=ex:code .SoftwareSourceCode schema:text }
163
+ console.log("hi")
164
+ ```
165
+ ```
166
+
167
+ ## 14. Context
168
+
169
+ ### Default Context
170
+
171
+ ```json
172
+ {
173
+ "@vocab": "http://www.w3.org/2000/01/rdf-schema#",
174
+ "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
175
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
176
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
177
+ "sh": "http://www.w3.org/ns/shacl#",
178
+ "prov": "http://www.w3.org/ns/prov#"
179
+ }
180
+ ```
181
+
182
+ ### Adding Prefixes
183
+
184
+ ```md
185
+ [alice] <tag:alice@example.com,2026:>
186
+ [wd] <https://www.wikidata.org/entity/>
187
+ ```
188
+
189
+ ### Prefix Folding: Hierarchical IRI Authoring
190
+
191
+ Build namespace hierarchies by referencing previously declared prefixes:
192
+
193
+ ```md
194
+ [my] <tag:mymail@domain.com,2026:>
195
+ [j] <my:journal:>
196
+ [p] <my:property:>
197
+ [org] <https://org.example.com/>
198
+ [person] <org:person/>
199
+ [emp] <person:employee/>
200
+ ```
201
+
202
+ **Resolution Rules:**
203
+ - Prefixes must be declared before they can be referenced (forward-reference only)
204
+ - Circular references are treated as literal strings
205
+ - Later declarations override earlier ones
206
+
207
+ ### Setting Vocabulary
208
+
209
+ ```md
210
+ [@vocab] <http://schema.org/>
211
+ ```
212
+
213
+ **Rules:** Apply forward, later overrides earlier, single-pass resolution.
214
+
215
+ ## 15. Forbidden
216
+
217
+ Implicit labels, structural inference, auto-subjects, literal lists, blank nodes, key=value, predicate guessing, backtracking, CURIE in links, **semantic list propagation**.
218
+
219
+ ## 16. Conformance
220
+
221
+ Must: Follow routing rules, emit only from `{...}`, single-pass, deterministic, traceable, support all predicate forms (`p`, `?p`, `!p`).