Skip to content

Commit d741bd5

Browse files
committed
Test keyword aliasing when @vocab is used
This addresses #186.
1 parent 282368a commit d741bd5

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://xmlns.com/foaf/0.1/",
4+
"homepage": {
5+
"@type": "@id"
6+
},
7+
"uri": "@id"
8+
}
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://xmlns.com/foaf/0.1/",
4+
"homepage": {
5+
"@type": "@id"
6+
},
7+
"uri": "@id"
8+
},
9+
"uri": "http://me.markus-lanthaler.com/",
10+
"name": "Markus Lanthaler",
11+
"homepage": "http://www.markus-lanthaler.com/"
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://xmlns.com/foaf/0.1/",
4+
"homepage": {
5+
"@type": "@id"
6+
},
7+
"uri": "@id"
8+
},
9+
"uri": "http://me.markus-lanthaler.com/",
10+
"name": "Markus Lanthaler",
11+
"homepage": "http://www.markus-lanthaler.com/"
12+
}

test-suite/tests/compact-manifest.jsonld

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,11 @@
168168
"input": "compact-0027-in.jsonld",
169169
"context": "compact-0027-context.jsonld",
170170
"expect": "compact-0027-out.jsonld"
171+
}, {
172+
"@type": ["test:TestCase", "jld:CompactTest"],
173+
"name": "Alias keywords and use @vocab",
174+
"input": "compact-0028-in.jsonld",
175+
"context": "compact-0028-context.jsonld",
176+
"expect": "compact-0028-out.jsonld"
171177
}]
172178
}

0 commit comments

Comments
 (0)