]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - reports/slice-20j/slice20i/detailed-inventory.json
perf(tmdm): index topic normalization merge candidates
[topic-maps.git] / reports / slice-20j / slice20i / detailed-inventory.json
1 {
2 "normativeReference": "https://www.isotopicmaps.org/ctm/ctm.html",
3 "commonDerivations": {
4 "topicHeadVariable": "[49] -> [13] -> [67]",
5 "topicReferenceVariable": "[20] -> [13] -> [67]; Type [27], Player [62]",
6 "literalVariable": "[28] -> [67]",
7 "subjectLocatorVariable": "[18]",
8 "itemIdentifierVariable": "[19]",
9 "unmarkedTailSubjectIdentifier": "[49] -> [50] -> [51] -> [52] -> [17] -> [12]; no variable alternative",
10 "templatesAndBinding": "[63]-[67]; [68]-[70]; positional arguments, contextual substitution"
11 },
12 "historicalQualification": {
13 "localCorpusStatus": "vendor/cxtm/ctm/STATUS.txt: 2010-03-31",
14 "projectIndex": "https://www.isotopicmaps.org/ctm/ links the same reference URL as 2010-03-31",
15 "separateDatedNormTextsCompared": false,
16 "historicalNormChangeEstablished": false
17 },
18 "cases": [
19 {
20 "id": "ctm/in/template-ambiguous-parameter5.ctm",
21 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter5.ctm",
22 "category": "VALID",
23 "expectedOutcome": "CXTM-EQUAL",
24 "sourceBytes": 146,
25 "sourceHex": "0A 23 20 55 73 69 6E 67 20 61 6E 20 49 52 49 20 61 72 67 75 6D 65 6E 74 20 69 6E 20 64 69 66 66 65 72 65 6E 74 20 63 6F 6E 74 65 78 74 73 0A 0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 74 6F 70 69 63 20 24 69 72 69 3B 20 3D 24 69 72 69 3B 20 5E 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 73 6F 6D 65 74 68 69 6E 67 2F 3E 29 0A",
26 "sourceText": "\n# Using an IRI argument in different contexts\n\ndef template($iri)\n topic $iri; =$iri; ^$iri.\nend\n\ntemplate(<http://www.example.org/something/>)\n",
27 "baselinePath": "/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/baseline/template-ambiguous-parameter5.ctm.cxtm",
28 "baselineBytes": 353,
29 "baselineText": "<topicMap>\n<topic number=\"1\">\n<subjectIdentifiers>\n<locator>http://www.example.org/something/</locator>\n</subjectIdentifiers>\n<subjectLocators>\n<locator>http://www.example.org/something/</locator>\n</subjectLocators>\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>http://www.example.org/something/</locator>\n</itemIdentifiers>\n</topic>\n</topicMap>\n",
30 "condition": {
31 "condition": "INVALID-TEMPLATE-BODY",
32 "message": "TEMPLATE-IDENTITY-TAIL in ctm/in/template-ambiguous-parameter5.ctm at CHARACTER 79 (line 5, column 13): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
33 "code": "template-identity-tail",
34 "position": 79,
35 "line": 5,
36 "column": 13,
37 "positionUnit": "character",
38 "source": "ctm/in/template-ambiguous-parameter5.ctm",
39 "cause": null,
40 "context": null
41 },
42 "model": null,
43 "actualCXTM": null,
44 "actualBytes": null,
45 "byteExact": false,
46 "canonicalizationPreservesMap": false,
47 "referencesCurrent": false,
48 "sourceSHA256": "5a4310d6f077776996700a77cd037ca30b1b616f7235128f9500ef16c5cd78a8",
49 "sourcePythonBytes": "b'\\n# Using an IRI argument in different contexts\\n\\ndef template($iri)\\n topic $iri; =$iri; ^$iri.\\nend\\n\\ntemplate(<http://www.example.org/something/>)\\n'",
50 "variables": [
51 {
52 "variable": "$iri",
53 "position": 61,
54 "line": 4,
55 "column": 14,
56 "role": "Parameterdeklaration"
57 },
58 {
59 "variable": "$iri",
60 "position": 75,
61 "line": 5,
62 "column": 9,
63 "role": "Subject Identifier im Topic Tail (unmarkiert)"
64 },
65 {
66 "variable": "$iri",
67 "position": 82,
68 "line": 5,
69 "column": 16,
70 "role": "Subject Locator nach ="
71 },
72 {
73 "variable": "$iri",
74 "position": 89,
75 "line": 5,
76 "column": 23,
77 "role": "Item Identifier nach ^"
78 }
79 ],
80 "declaration": "def template($iri)",
81 "bindings": [
82 [
83 "$iri",
84 "<http://www.example.org/something/>"
85 ]
86 ],
87 "invocations": [
88 {
89 "text": "template(<http://www.example.org/something/>)",
90 "position": 100,
91 "line": 8
92 }
93 ],
94 "baselineSHA256": "a90bb867d36b9d99061d3815c6ce41a1cd4d8909c49adc7ce9cc1c9bfe06303f",
95 "expandedControl": {
96 "label": "expanded-ambiguous5",
97 "originalControlOnly": "ctm/in/template-ambiguous-parameter5.ctm",
98 "sourceText": "topic <http://www.example.org/something/>; =<http://www.example.org/something/>; ^<http://www.example.org/something/>.",
99 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter5.ctm",
100 "condition": null,
101 "model": {
102 "topicCount": 1,
103 "associationCount": 0,
104 "topics": [
105 {
106 "ordinal": 1,
107 "itemIdentifiers": [
108 "http://www.example.org/something/",
109 "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter5.ctm#topic"
110 ],
111 "subjectIdentifiers": [
112 "http://www.example.org/something/"
113 ],
114 "subjectLocators": [
115 "http://www.example.org/something/"
116 ],
117 "names": [],
118 "occurrences": []
119 }
120 ]
121 },
122 "associations": [],
123 "referencesCurrent": true,
124 "canonicalizationPreservesMap": true,
125 "actualCXTM": "<topicMap>\n<topic number=\"1\">\n<subjectIdentifiers>\n<locator>http://www.example.org/something/</locator>\n</subjectIdentifiers>\n<subjectLocators>\n<locator>http://www.example.org/something/</locator>\n</subjectLocators>\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>http://www.example.org/something/</locator>\n</itemIdentifiers>\n</topic>\n</topicMap>\n",
126 "actualBytes": 353,
127 "expectedBytes": 353,
128 "byteExact": true
129 },
130 "classification": {
131 "A": "marked SL/II and literal uses",
132 "B": "unmarked Tail SI variable",
133 "C": "possible specification omission, unproven",
134 "D": "positive source-admissibility expectation only"
135 }
136 },
137 {
138 "id": "ctm/in/template-ambiguous-parameter6.ctm",
139 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter6.ctm",
140 "category": "VALID",
141 "expectedOutcome": "CXTM-EQUAL",
142 "sourceBytes": 163,
143 "sourceHex": "0A 25 70 72 65 66 69 78 20 65 78 20 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 0A 0A 23 20 55 73 69 6E 67 20 61 20 51 4E 61 6D 65 20 61 72 67 75 6D 65 6E 74 20 69 6E 20 64 69 66 66 65 72 65 6E 74 20 63 6F 6E 74 65 78 74 73 0A 0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 71 29 0A 20 20 74 6F 70 69 63 20 24 71 3B 20 3D 24 71 3B 20 5E 24 71 3B 20 6F 63 63 3A 20 24 71 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 65 78 3A 73 6F 6D 65 74 68 69 6E 67 29 0A",
144 "sourceText": "\n%prefix ex <http://www.example.org/>\n\n# Using a QName argument in different contexts\n\ndef template($q)\n topic $q; =$q; ^$q; occ: $q.\nend\n\ntemplate(ex:something)\n",
145 "baselinePath": "/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/baseline/template-ambiguous-parameter6.ctm.cxtm",
146 "baselineBytes": 613,
147 "baselineText": "<topicMap>\n<topic number=\"1\">\n<itemIdentifiers>\n<locator>#occ</locator>\n</itemIdentifiers>\n</topic>\n<topic number=\"2\">\n<subjectIdentifiers>\n<locator>http://www.example.org/something</locator>\n</subjectIdentifiers>\n<subjectLocators>\n<locator>http://www.example.org/something</locator>\n</subjectLocators>\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>http://www.example.org/something</locator>\n</itemIdentifiers>\n<occurrence number=\"1\">\n<value>http://www.example.org/something</value>\n<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>\n<type topicref=\"1\"></type>\n</occurrence>\n</topic>\n</topicMap>\n",
148 "condition": {
149 "condition": "INVALID-TEMPLATE-BODY",
150 "message": "TEMPLATE-IDENTITY-TAIL in ctm/in/template-ambiguous-parameter6.ctm at CHARACTER 114 (line 7, column 11): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
151 "code": "template-identity-tail",
152 "position": 114,
153 "line": 7,
154 "column": 11,
155 "positionUnit": "character",
156 "source": "ctm/in/template-ambiguous-parameter6.ctm",
157 "cause": null,
158 "context": null
159 },
160 "model": null,
161 "actualCXTM": null,
162 "actualBytes": null,
163 "byteExact": false,
164 "canonicalizationPreservesMap": false,
165 "referencesCurrent": false,
166 "sourceSHA256": "d2fd507bbbd544b6eae6caf4497c18e746165a5868a1d8e644eb18815db44d50",
167 "sourcePythonBytes": "b'\\n%prefix ex <http://www.example.org/>\\n\\n# Using a QName argument in different contexts\\n\\ndef template($q)\\n topic $q; =$q; ^$q; occ: $q.\\nend\\n\\ntemplate(ex:something)\\n'",
168 "variables": [
169 {
170 "variable": "$q",
171 "position": 100,
172 "line": 6,
173 "column": 14,
174 "role": "Parameterdeklaration"
175 },
176 {
177 "variable": "$q",
178 "position": 112,
179 "line": 7,
180 "column": 9,
181 "role": "Subject Identifier im Topic Tail (unmarkiert)"
182 },
183 {
184 "variable": "$q",
185 "position": 117,
186 "line": 7,
187 "column": 14,
188 "role": "Subject Locator nach ="
189 },
190 {
191 "variable": "$q",
192 "position": 122,
193 "line": 7,
194 "column": 19,
195 "role": "Item Identifier nach ^"
196 },
197 {
198 "variable": "$q",
199 "position": 131,
200 "line": 7,
201 "column": 28,
202 "role": "Occurrence-Literal; Datentyp xsd:anyURI"
203 }
204 ],
205 "declaration": "def template($q)",
206 "bindings": [
207 [
208 "$q",
209 "ex:something → http://www.example.org/something"
210 ]
211 ],
212 "invocations": [
213 {
214 "text": "template(ex:something)",
215 "position": 140,
216 "line": 10
217 }
218 ],
219 "baselineSHA256": "3b20e3168ad1260c2a4fcb2b5b4b0026324a78263f2431d6637473087eecd672",
220 "expandedControl": {
221 "label": "expanded-ambiguous6",
222 "originalControlOnly": "ctm/in/template-ambiguous-parameter6.ctm",
223 "sourceText": "%prefix ex <http://www.example.org/> topic ex:something; =ex:something; ^ex:something; occ: ex:something.",
224 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter6.ctm",
225 "condition": null,
226 "model": {
227 "topicCount": 2,
228 "associationCount": 0,
229 "topics": [
230 {
231 "ordinal": 1,
232 "itemIdentifiers": [
233 "http://www.example.org/something",
234 "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter6.ctm#topic"
235 ],
236 "subjectIdentifiers": [
237 "http://www.example.org/something"
238 ],
239 "subjectLocators": [
240 "http://www.example.org/something"
241 ],
242 "names": [],
243 "occurrences": [
244 {
245 "value": "http://www.example.org/something",
246 "datatype": "http://www.w3.org/2001/XMLSchema#anyURI",
247 "parent": 1,
248 "type": 2,
249 "scope": []
250 }
251 ]
252 },
253 {
254 "ordinal": 2,
255 "itemIdentifiers": [
256 "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter6.ctm#occ"
257 ],
258 "subjectIdentifiers": [],
259 "subjectLocators": [],
260 "names": [],
261 "occurrences": []
262 }
263 ]
264 },
265 "associations": [],
266 "referencesCurrent": true,
267 "canonicalizationPreservesMap": true,
268 "actualCXTM": "<topicMap>\n<topic number=\"1\">\n<itemIdentifiers>\n<locator>#occ</locator>\n</itemIdentifiers>\n</topic>\n<topic number=\"2\">\n<subjectIdentifiers>\n<locator>http://www.example.org/something</locator>\n</subjectIdentifiers>\n<subjectLocators>\n<locator>http://www.example.org/something</locator>\n</subjectLocators>\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>http://www.example.org/something</locator>\n</itemIdentifiers>\n<occurrence number=\"1\">\n<value>http://www.example.org/something</value>\n<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>\n<type topicref=\"1\"></type>\n</occurrence>\n</topic>\n</topicMap>\n",
269 "actualBytes": 613,
270 "expectedBytes": 613,
271 "byteExact": true
272 },
273 "classification": {
274 "A": "marked SL/II and literal uses",
275 "B": "unmarked Tail SI variable",
276 "C": "possible specification omission, unproven",
277 "D": "positive source-admissibility expectation only"
278 }
279 },
280 {
281 "id": "ctm/in/template-subject-identifier2.ctm",
282 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-subject-identifier2.ctm",
283 "category": "VALID",
284 "expectedOutcome": "CXTM-EQUAL",
285 "sourceBytes": 81,
286 "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 20 20 74 6F 70 69 63 20 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 70 73 69 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 66 61 6B 65 3E 29 0A",
287 "sourceText": "\ndef template($iri)\n topic $iri.\nend\n\ntemplate(<http://psi.example.org/fake>)\n",
288 "baselinePath": "/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/baseline/template-subject-identifier2.ctm.cxtm",
289 "baselineBytes": 204,
290 "baselineText": "<topicMap>\n<topic number=\"1\">\n<subjectIdentifiers>\n<locator>http://psi.example.org/fake</locator>\n</subjectIdentifiers>\n<itemIdentifiers>\n<locator>#topic</locator>\n</itemIdentifiers>\n</topic>\n</topicMap>\n",
291 "condition": {
292 "condition": "INVALID-TEMPLATE-BODY",
293 "message": "TEMPLATE-IDENTITY-TAIL in ctm/in/template-subject-identifier2.ctm at CHARACTER 34 (line 3, column 15): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
294 "code": "template-identity-tail",
295 "position": 34,
296 "line": 3,
297 "column": 15,
298 "positionUnit": "character",
299 "source": "ctm/in/template-subject-identifier2.ctm",
300 "cause": null,
301 "context": null
302 },
303 "model": null,
304 "actualCXTM": null,
305 "actualBytes": null,
306 "byteExact": false,
307 "canonicalizationPreservesMap": false,
308 "referencesCurrent": false,
309 "sourceSHA256": "ffc9a5554b9c908386f6888ef29ccda5cc433e5519924db52f9441769e1df014",
310 "sourcePythonBytes": "b'\\ndef template($iri)\\n topic $iri.\\nend\\n\\ntemplate(<http://psi.example.org/fake>)\\n'",
311 "variables": [
312 {
313 "variable": "$iri",
314 "position": 14,
315 "line": 2,
316 "column": 14,
317 "role": "Parameterdeklaration"
318 },
319 {
320 "variable": "$iri",
321 "position": 30,
322 "line": 3,
323 "column": 11,
324 "role": "Subject Identifier im Topic Tail (unmarkiert)"
325 }
326 ],
327 "declaration": "def template($iri)",
328 "bindings": [
329 [
330 "$iri",
331 "<http://psi.example.org/fake>"
332 ]
333 ],
334 "invocations": [
335 {
336 "text": "template(<http://psi.example.org/fake>)",
337 "position": 41,
338 "line": 6
339 }
340 ],
341 "baselineSHA256": "e138a02738dc4a2526c465b11fa6915bed84724a31748eb3578ddf0f8ab16253",
342 "expandedControl": {
343 "label": "expanded-subject-identifier2",
344 "originalControlOnly": "ctm/in/template-subject-identifier2.ctm",
345 "sourceText": "topic <http://psi.example.org/fake>.",
346 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-subject-identifier2.ctm",
347 "condition": null,
348 "model": {
349 "topicCount": 1,
350 "associationCount": 0,
351 "topics": [
352 {
353 "ordinal": 1,
354 "itemIdentifiers": [
355 "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-subject-identifier2.ctm#topic"
356 ],
357 "subjectIdentifiers": [
358 "http://psi.example.org/fake"
359 ],
360 "subjectLocators": [],
361 "names": [],
362 "occurrences": []
363 }
364 ]
365 },
366 "associations": [],
367 "referencesCurrent": true,
368 "canonicalizationPreservesMap": true,
369 "actualCXTM": "<topicMap>\n<topic number=\"1\">\n<subjectIdentifiers>\n<locator>http://psi.example.org/fake</locator>\n</subjectIdentifiers>\n<itemIdentifiers>\n<locator>#topic</locator>\n</itemIdentifiers>\n</topic>\n</topicMap>\n",
370 "actualBytes": 204,
371 "expectedBytes": 204,
372 "byteExact": true
373 },
374 "classification": {
375 "A": "marked SL/II and literal uses",
376 "B": "unmarked Tail SI variable",
377 "C": "possible specification omission, unproven",
378 "D": "positive source-admissibility expectation only"
379 }
380 },
381 {
382 "id": "ctm/invalid/template-item-identifier-2nd-arg.ctm",
383 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-item-identifier-2nd-arg.ctm",
384 "category": "INVALID",
385 "expectedOutcome": "CTM-REJECTION",
386 "sourceBytes": 167,
387 "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 31 2C 20 24 69 72 69 32 29 0A 20 20 20 20 74 6F 70 69 63 31 20 24 69 72 69 31 2E 0A 20 20 20 20 74 6F 70 69 63 32 20 24 69 72 69 32 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 2C 20 20 20 20 20 23 20 76 61 6C 69 64 0A 20 20 20 20 20 20 20 20 5E 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 20 20 20 20 20 23 20 69 6E 76 61 6C 69 64 0A",
388 "sourceText": "\ndef template($iri1, $iri2)\n topic1 $iri1.\n topic2 $iri2.\nend\n\ntemplate(<http://www.example.org/>, # valid\n ^<http://www.example.org/>) # invalid\n",
389 "baselinePath": null,
390 "baselineBytes": null,
391 "baselineText": null,
392 "condition": {
393 "condition": "INVALID-TEMPLATE-BODY",
394 "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-item-identifier-2nd-arg.ctm at CHARACTER 44 (line 3, column 17): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
395 "code": "template-identity-tail",
396 "position": 44,
397 "line": 3,
398 "column": 17,
399 "positionUnit": "character",
400 "source": "ctm/invalid/template-item-identifier-2nd-arg.ctm",
401 "cause": null,
402 "context": null
403 },
404 "model": null,
405 "actualCXTM": null,
406 "actualBytes": null,
407 "byteExact": false,
408 "canonicalizationPreservesMap": false,
409 "referencesCurrent": false,
410 "sourceSHA256": "ceb46d4457532cc5b432d5e601275cc6950bb105088e2b2ccfa4ffa5fbe82266",
411 "sourcePythonBytes": "b'\\ndef template($iri1, $iri2)\\n topic1 $iri1.\\n topic2 $iri2.\\nend\\n\\ntemplate(<http://www.example.org/>, # valid\\n ^<http://www.example.org/>) # invalid\\n'",
412 "variables": [
413 {
414 "variable": "$iri1",
415 "position": 14,
416 "line": 2,
417 "column": 14,
418 "role": "Parameterdeklaration"
419 },
420 {
421 "variable": "$iri2",
422 "position": 21,
423 "line": 2,
424 "column": 21,
425 "role": "Parameterdeklaration"
426 },
427 {
428 "variable": "$iri1",
429 "position": 39,
430 "line": 3,
431 "column": 12,
432 "role": "Subject Identifier von topic1 (unmarkiert)"
433 },
434 {
435 "variable": "$iri2",
436 "position": 57,
437 "line": 4,
438 "column": 12,
439 "role": "Subject Identifier von topic2 (unmarkiert)"
440 }
441 ],
442 "declaration": "def template($iri1, $iri2)",
443 "bindings": [
444 [
445 "$iri1",
446 "<http://www.example.org/>"
447 ],
448 [
449 "$iri2",
450 "^<http://www.example.org/>"
451 ]
452 ],
453 "invocations": [
454 {
455 "text": "template(<http://www.example.org/>, # valid\n ^<http://www.example.org/>)",
456 "position": 69,
457 "line": 7
458 }
459 ],
460 "classification": {
461 "A": "marked argument as Topic reference",
462 "B": "unmarked Tail SI variable",
463 "C": "intended contextual rejection not reached",
464 "D": null
465 }
466 },
467 {
468 "id": "ctm/invalid/template-item-identifier3.ctm",
469 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-item-identifier3.ctm",
470 "category": "INVALID",
471 "expectedOutcome": "CTM-REJECTION",
472 "sourceBytes": 78,
473 "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 20 20 74 6F 70 69 63 20 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 5E 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 0A",
474 "sourceText": "\ndef template($iri)\n topic $iri.\nend\n\ntemplate(^<http://www.example.org/>)\n",
475 "baselinePath": null,
476 "baselineBytes": null,
477 "baselineText": null,
478 "condition": {
479 "condition": "INVALID-TEMPLATE-BODY",
480 "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-item-identifier3.ctm at CHARACTER 34 (line 3, column 15): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
481 "code": "template-identity-tail",
482 "position": 34,
483 "line": 3,
484 "column": 15,
485 "positionUnit": "character",
486 "source": "ctm/invalid/template-item-identifier3.ctm",
487 "cause": null,
488 "context": null
489 },
490 "model": null,
491 "actualCXTM": null,
492 "actualBytes": null,
493 "byteExact": false,
494 "canonicalizationPreservesMap": false,
495 "referencesCurrent": false,
496 "sourceSHA256": "4c7ed0ab1574462b8939379f745a28942aa380fc6cc7fabae597fdc7bb21225f",
497 "sourcePythonBytes": "b'\\ndef template($iri)\\n topic $iri.\\nend\\n\\ntemplate(^<http://www.example.org/>)\\n'",
498 "variables": [
499 {
500 "variable": "$iri",
501 "position": 14,
502 "line": 2,
503 "column": 14,
504 "role": "Parameterdeklaration"
505 },
506 {
507 "variable": "$iri",
508 "position": 30,
509 "line": 3,
510 "column": 11,
511 "role": "Subject Identifier von topic (unmarkiert)"
512 }
513 ],
514 "declaration": "def template($iri)",
515 "bindings": [
516 [
517 "$iri",
518 "^<http://www.example.org/>"
519 ]
520 ],
521 "invocations": [
522 {
523 "text": "template(^<http://www.example.org/>)",
524 "position": 41,
525 "line": 6
526 }
527 ],
528 "classification": {
529 "A": "marked argument as Topic reference",
530 "B": "unmarked Tail SI variable",
531 "C": "intended contextual rejection not reached",
532 "D": null
533 }
534 },
535 {
536 "id": "ctm/invalid/template-subject-locator-2nd-arg.ctm",
537 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-subject-locator-2nd-arg.ctm",
538 "category": "INVALID",
539 "expectedOutcome": "CTM-REJECTION",
540 "sourceBytes": 167,
541 "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 31 2C 20 24 69 72 69 32 29 0A 20 20 20 20 74 6F 70 69 63 31 20 24 69 72 69 31 2E 0A 20 20 20 20 74 6F 70 69 63 32 20 24 69 72 69 32 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 2C 20 20 20 20 20 23 20 76 61 6C 69 64 0A 20 20 20 20 20 20 20 20 20 3D 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 20 20 20 20 23 20 69 6E 76 61 6C 69 64 0A",
542 "sourceText": "\ndef template($iri1, $iri2)\n topic1 $iri1.\n topic2 $iri2.\nend\n\ntemplate(<http://www.example.org/>, # valid\n =<http://www.example.org/>) # invalid\n",
543 "baselinePath": null,
544 "baselineBytes": null,
545 "baselineText": null,
546 "condition": {
547 "condition": "INVALID-TEMPLATE-BODY",
548 "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-subject-locator-2nd-arg.ctm at CHARACTER 44 (line 3, column 17): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
549 "code": "template-identity-tail",
550 "position": 44,
551 "line": 3,
552 "column": 17,
553 "positionUnit": "character",
554 "source": "ctm/invalid/template-subject-locator-2nd-arg.ctm",
555 "cause": null,
556 "context": null
557 },
558 "model": null,
559 "actualCXTM": null,
560 "actualBytes": null,
561 "byteExact": false,
562 "canonicalizationPreservesMap": false,
563 "referencesCurrent": false,
564 "sourceSHA256": "e7e8ca08ad1dec89549afbe2d3cf90098269031f239ddae37258bf87ba4c018f",
565 "sourcePythonBytes": "b'\\ndef template($iri1, $iri2)\\n topic1 $iri1.\\n topic2 $iri2.\\nend\\n\\ntemplate(<http://www.example.org/>, # valid\\n =<http://www.example.org/>) # invalid\\n'",
566 "variables": [
567 {
568 "variable": "$iri1",
569 "position": 14,
570 "line": 2,
571 "column": 14,
572 "role": "Parameterdeklaration"
573 },
574 {
575 "variable": "$iri2",
576 "position": 21,
577 "line": 2,
578 "column": 21,
579 "role": "Parameterdeklaration"
580 },
581 {
582 "variable": "$iri1",
583 "position": 39,
584 "line": 3,
585 "column": 12,
586 "role": "Subject Identifier von topic1 (unmarkiert)"
587 },
588 {
589 "variable": "$iri2",
590 "position": 57,
591 "line": 4,
592 "column": 12,
593 "role": "Subject Identifier von topic2 (unmarkiert)"
594 }
595 ],
596 "declaration": "def template($iri1, $iri2)",
597 "bindings": [
598 [
599 "$iri1",
600 "<http://www.example.org/>"
601 ],
602 [
603 "$iri2",
604 "=<http://www.example.org/>"
605 ]
606 ],
607 "invocations": [
608 {
609 "text": "template(<http://www.example.org/>, # valid\n =<http://www.example.org/>)",
610 "position": 69,
611 "line": 7
612 }
613 ],
614 "classification": {
615 "A": "marked argument as Topic reference",
616 "B": "unmarked Tail SI variable",
617 "C": "intended contextual rejection not reached",
618 "D": null
619 }
620 },
621 {
622 "id": "ctm/invalid/template-subject-locator3.ctm",
623 "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-subject-locator3.ctm",
624 "category": "INVALID",
625 "expectedOutcome": "CTM-REJECTION",
626 "sourceBytes": 78,
627 "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 20 20 74 6F 70 69 63 20 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3D 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 0A",
628 "sourceText": "\ndef template($iri)\n topic $iri.\nend\n\ntemplate(=<http://www.example.org/>)\n",
629 "baselinePath": null,
630 "baselineBytes": null,
631 "baselineText": null,
632 "condition": {
633 "condition": "INVALID-TEMPLATE-BODY",
634 "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-subject-locator3.ctm at CHARACTER 34 (line 3, column 15): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
635 "code": "template-identity-tail",
636 "position": 34,
637 "line": 3,
638 "column": 15,
639 "positionUnit": "character",
640 "source": "ctm/invalid/template-subject-locator3.ctm",
641 "cause": null,
642 "context": null
643 },
644 "model": null,
645 "actualCXTM": null,
646 "actualBytes": null,
647 "byteExact": false,
648 "canonicalizationPreservesMap": false,
649 "referencesCurrent": false,
650 "sourceSHA256": "d53c835df922469d65e5103f48b38faa94be56c06a4cb1da356a8ad6b277496d",
651 "sourcePythonBytes": "b'\\ndef template($iri)\\n topic $iri.\\nend\\n\\ntemplate(=<http://www.example.org/>)\\n'",
652 "variables": [
653 {
654 "variable": "$iri",
655 "position": 14,
656 "line": 2,
657 "column": 14,
658 "role": "Parameterdeklaration"
659 },
660 {
661 "variable": "$iri",
662 "position": 30,
663 "line": 3,
664 "column": 11,
665 "role": "Subject Identifier von topic (unmarkiert)"
666 }
667 ],
668 "declaration": "def template($iri)",
669 "bindings": [
670 [
671 "$iri",
672 "=<http://www.example.org/>"
673 ]
674 ],
675 "invocations": [
676 {
677 "text": "template(=<http://www.example.org/>)",
678 "position": 41,
679 "line": 6
680 }
681 ],
682 "classification": {
683 "A": "marked argument as Topic reference",
684 "B": "unmarked Tail SI variable",
685 "C": "intended contextual rejection not reached",
686 "D": null
687 }
688 }
689 ]
690 }