Skip to content

Commit c9aa7d4

Browse files
committed
Updated test results for JSON-LD-star (other than annotation folding). This diverges from the existing spec behavior.
1 parent a0ee0cd commit c9aa7d4

File tree

259 files changed

+1404
-1696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+1404
-1696
lines changed

tests/compact-manifest.jsonld

Lines changed: 16 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
{
1010
"@id": "#tst04",
1111
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
12-
"name": "embedded node 1",
13-
"purpose": "Node with embedded subject having no @id",
12+
"name": "triple term 1",
13+
"purpose": "Node with triple term having no @id",
1414
"input": "compact/st04-in.jsonld",
1515
"context": "compact/st04-out.jsonld",
1616
"expect": "compact/st04-out.jsonld",
@@ -19,8 +19,8 @@
1919
}, {
2020
"@id": "#tst05",
2121
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
22-
"name": "embedded node 2",
23-
"purpose": "Node with embedded subject having IRI @id",
22+
"name": "triple term 2",
23+
"purpose": "Node with triple term having IRI @id",
2424
"input": "compact/st05-in.jsonld",
2525
"context": "compact/st05-out.jsonld",
2626
"expect": "compact/st05-out.jsonld",
@@ -29,8 +29,8 @@
2929
}, {
3030
"@id": "#tst06",
3131
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
32-
"name": "embedded node 3",
33-
"purpose": "Node with embedded subject having BNode @id",
32+
"name": "triple term 3",
33+
"purpose": "Node with triple term having BNode @id",
3434
"input": "compact/st06-in.jsonld",
3535
"context": "compact/st06-out.jsonld",
3636
"expect": "compact/st06-out.jsonld",
@@ -39,8 +39,8 @@
3939
}, {
4040
"@id": "#tst07",
4141
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
42-
"name": "embedded node 4",
43-
"purpose": "Node with embedded subject having a type",
42+
"name": "triple term 4",
43+
"purpose": "Node with triple term having a type",
4444
"input": "compact/st07-in.jsonld",
4545
"context": "compact/st07-out.jsonld",
4646
"expect": "compact/st07-out.jsonld",
@@ -49,8 +49,8 @@
4949
}, {
5050
"@id": "#tst08",
5151
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
52-
"name": "embedded node 5",
53-
"purpose": "Node with embedded subject having an IRI value",
52+
"name": "triple term 5",
53+
"purpose": "Node with triple term having an IRI value",
5454
"input": "compact/st08-in.jsonld",
5555
"context": "compact/st08-out.jsonld",
5656
"expect": "compact/st08-out.jsonld",
@@ -59,8 +59,8 @@
5959
}, {
6060
"@id": "#tst09",
6161
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
62-
"name": "embedded node 6",
63-
"purpose": "Node with embedded subject having an BNode value",
62+
"name": "triple term 6",
63+
"purpose": "Node with triple term having an BNode value",
6464
"input": "compact/st09-in.jsonld",
6565
"context": "compact/st09-out.jsonld",
6666
"expect": "compact/st09-out.jsonld",
@@ -69,43 +69,13 @@
6969
}, {
7070
"@id": "#tst10",
7171
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
72-
"name": "embedded node 7",
73-
"purpose": "Node with recursive embedded subject",
72+
"name": "triple term 7",
73+
"purpose": "Node with recursive triple term",
7474
"input": "compact/st10-in.jsonld",
7575
"context": "compact/st10-out.jsonld",
7676
"expect": "compact/st10-out.jsonld",
7777
"requires": "JSON-LD-star",
7878
"option": {"specVersion": "json-ld-star", "rdfstar": true}
79-
}, {
80-
"@id": "#tst15",
81-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
82-
"name": "embedded node 8",
83-
"purpose": "Node with embedded object",
84-
"input": "compact/st15-in.jsonld",
85-
"context": "compact/st15-out.jsonld",
86-
"expect": "compact/st15-out.jsonld",
87-
"requires": "JSON-LD-star",
88-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
89-
}, {
90-
"@id": "#tst16",
91-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
92-
"name": "embedded node 9",
93-
"purpose": "Node with embedded object having properties",
94-
"input": "compact/st16-in.jsonld",
95-
"context": "compact/st16-out.jsonld",
96-
"expect": "compact/st16-out.jsonld",
97-
"requires": "JSON-LD-star",
98-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
99-
}, {
100-
"@id": "#tst17",
101-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
102-
"name": "embedded node 10",
103-
"purpose": "Node with recursive embedded object",
104-
"input": "compact/st17-in.jsonld",
105-
"context": "compact/st17-out.jsonld",
106-
"expect": "compact/st17-out.jsonld",
107-
"requires": "JSON-LD-star",
108-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
10979
}, {
11080
"@id": "#tst18",
11181
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
@@ -156,46 +126,6 @@
156126
"expect": "compact/st20b-out.jsonld",
157127
"requires": "JSON-LD-star",
158128
"option": {"specVersion": "json-ld-star", "rdfstar": true}
159-
}, {
160-
"@id": "#tst28",
161-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
162-
"name": "Embedded annotation node 1",
163-
"purpose": "Node with @annotation property on embedded subject",
164-
"input": "compact/st28-in.jsonld",
165-
"context": "compact/st28-out.jsonld",
166-
"expect": "compact/st28-out.jsonld",
167-
"requires": "JSON-LD-star",
168-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
169-
}, {
170-
"@id": "#tst29",
171-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
172-
"name": "Embedded annotation node 2",
173-
"purpose": "Node with @annotation property on embedded object",
174-
"input": "compact/st29-in.jsonld",
175-
"context": "compact/st29-out.jsonld",
176-
"expect": "compact/st29-out.jsonld",
177-
"requires": "JSON-LD-star",
178-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
179-
}, {
180-
"@id": "#tst32",
181-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
182-
"name": "embedded node 13",
183-
"purpose": "Embedded node used as subject in reverse relationship",
184-
"input": "compact/st32-in.jsonld",
185-
"context": "compact/st32-out.jsonld",
186-
"expect": "compact/st32-out.jsonld",
187-
"requires": "JSON-LD-star",
188-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
189-
}, {
190-
"@id": "#tst33",
191-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
192-
"name": "embedded node 14",
193-
"purpose": "Embedded node used as object in reverse relationship",
194-
"input": "compact/st33-in.jsonld",
195-
"context": "compact/st33-out.jsonld",
196-
"expect": "compact/st33-out.jsonld",
197-
"requires": "JSON-LD-star",
198-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
199129
}, {
200130
"@id": "#tst34",
201131
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
@@ -219,8 +149,8 @@
219149
}, {
220150
"@id": "#tst36",
221151
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
222-
"name": "Alias for embedded node",
223-
"purpose": "embedded node with an alias of `@id`",
152+
"name": "Alias for triple term",
153+
"purpose": "triple term with an alias of `@triple`",
224154
"input": "compact/st36-in.jsonld",
225155
"context": "compact/st36-out.jsonld",
226156
"expect": "compact/st36-out.jsonld",
@@ -236,26 +166,6 @@
236166
"expect": "compact/st37-out.jsonld",
237167
"requires": "JSON-LD-star",
238168
"option": {"specVersion": "json-ld-star", "rdfstar": true}
239-
}, {
240-
"@id": "#tst38",
241-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
242-
"name": "annotation value 1",
243-
"purpose": "embedded node with annotation on value object",
244-
"input": "compact/st38-in.jsonld",
245-
"context": "compact/st38-out.jsonld",
246-
"expect": "compact/st38-out.jsonld",
247-
"requires": "JSON-LD-star",
248-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
249-
}, {
250-
"@id": "#tst39",
251-
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
252-
"name": "annotation with embedded node 1",
253-
"purpose": "annotation node containing an embedded node",
254-
"input": "compact/st39-in.jsonld",
255-
"context": "compact/st39-out.jsonld",
256-
"expect": "compact/st39-out.jsonld",
257-
"requires": "JSON-LD-star",
258-
"option": {"specVersion": "json-ld-star", "rdfstar": true}
259169
}, {
260170
"@id": "#tst40",
261171
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],

tests/compact/st04-in.jsonld

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[{
2-
"@id": {
3-
"ex:prop": [{"@value": "value"}]
4-
},
5-
"ex:prop": [{"@value": "value2"}]
2+
"@id": "ex:s",
3+
"ex:p": [{
4+
"@triple": {
5+
"ex:prop": [{"@value": "value"}]
6+
}
7+
}]
68
}]

tests/compact/st04-out.jsonld

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2-
"@id": {
3-
"ex:prop": "value"
4-
},
5-
"ex:prop": "value2"
6-
}
2+
"@id": "ex:s",
3+
"ex:p": {
4+
"@triple": {
5+
"ex:prop": "value"
6+
}
7+
}
8+
}

tests/compact/st05-in.jsonld

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"ex:prop": [{"@value": "value"}]
5-
},
6-
"ex:prop": [{"@value": "value2"}]
2+
"@id": "ex:s",
3+
"ex:p": [{
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"ex:prop": [{"@value": "value"}]
7+
}
8+
}]
79
}]

tests/compact/st05-out.jsonld

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"ex:prop": "value"
5-
},
6-
"ex:prop": "value2"
7-
}
2+
"@id": "ex:s",
3+
"ex:p": {
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"ex:prop": "value"
7+
}
8+
}
9+
}

tests/compact/st06-in.jsonld

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[{
2-
"@id": {
3-
"@id": "_:rei",
4-
"ex:prop": [{"@value": "value"}]
5-
},
6-
"ex:prop": [{"@value": "value2"}]
2+
"@id": "ex:s",
3+
"ex:p": [{
4+
"@triple": {
5+
"@id": "_:rei",
6+
"ex:prop": [{"@value": "value"}]
7+
}
8+
}]
79
}]

tests/compact/st06-out.jsonld

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"@id": {
3-
"@id": "_:rei",
4-
"ex:prop": "value"
5-
},
6-
"ex:prop": "value2"
7-
}
2+
"@id": "ex:s",
3+
"ex:p": {
4+
"@triple": {
5+
"@id": "_:rei",
6+
"ex:prop": "value"
7+
}
8+
}
9+
}

tests/compact/st07-in.jsonld

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"@type": ["ex:Type"]
5-
},
6-
"ex:prop": [{"@value": "value2"}]
2+
"@id": "ex:s",
3+
"ex:p": [{
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"@type": ["ex:Type"]
7+
}
8+
}]
79
}]

tests/compact/st07-out.jsonld

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"@type": "ex:Type"
5-
},
6-
"ex:prop": "value2"
7-
}
2+
"@id": "ex:s",
3+
"ex:p": {
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"@type": "ex:Type"
7+
}
8+
}
9+
}

tests/compact/st08-in.jsonld

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"ex:prop": [{"@id": "ex:value"}]
5-
},
6-
"ex:prop": [{"@value": "value2"}]
2+
"@id": "ex:s",
3+
"ex:p": [{
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"ex:prop": [{"@id": "ex:value"}]
7+
}
8+
}]
79
}]

tests/compact/st08-out.jsonld

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"ex:prop": {"@id": "ex:value"}
5-
},
6-
"ex:prop": "value2"
7-
}
2+
"@id": "ex:s",
3+
"ex:p": {
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"ex:prop": {"@id": "ex:value"}
7+
}
8+
}
9+
}

tests/compact/st09-in.jsonld

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"ex:prop": [{"@id": "_:value"}]
5-
},
6-
"ex:prop": [{"@value": "value2"}]
2+
"@id": "ex:s",
3+
"ex:p": [{
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"ex:prop": [{"@id": "_:value"}]
7+
}
8+
}]
79
}]

tests/compact/st09-out.jsonld

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"@id": {
3-
"@id": "ex:rei",
4-
"ex:prop": {"@id": "_:value"}
5-
},
6-
"ex:prop": "value2"
7-
}
2+
"@id": "ex:s",
3+
"ex:p": {
4+
"@triple": {
5+
"@id": "ex:rei",
6+
"ex:prop": {"@id": "_:value"}
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)