Skip to content

Commit e18d08d

Browse files
dlongleydavidlehn
authored andcommitted
Differentiate between subject references and nested nodes.
1 parent 87ae7ef commit e18d08d

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

tests/compact/c015-in.jsonld

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
"http://example/p": [{
44
"@id": "http://example/typed-base#typed-id",
55
"@type": ["http://example/Type"],
6-
"http://example/nested": [{
7-
"@id": "http://example/base-base#nested-id"
6+
"http://example/subjectReference": [{
7+
"@id": "http://example/typed-base#subject-reference-id"
8+
}],
9+
"http://example/nestedNode": [{
10+
"@id": "http://example/base-base#nested-id",
11+
"http://example/foo": [{
12+
"@value": "bar"
13+
}]
814
}]
915
}]
1016
}]

tests/compact/c015-out.jsonld

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
"p": {
1414
"@id": "#typed-id",
1515
"@type": "Type",
16-
"nested": {
17-
"@id": "#nested-id"
16+
"subjectReference": {
17+
"@id": "#subject-reference-id"
18+
},
19+
"nestedNode": {
20+
"@id": "#nested-id",
21+
"foo": "bar"
1822
}
1923
}
2024
}

0 commit comments

Comments
 (0)