Skip to content

Commit f1895db

Browse files
committed
Add expand/0124-5 as toRdf/e124-5.
1 parent e468110 commit f1895db

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

tests/toRdf-manifest.jsonld

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,22 @@
16921692
"input": "toRdf/e123-in.jsonld",
16931693
"expectErrorCode": "invalid typed value",
16941694
"option": {"specVersion": "json-ld-1.1"}
1695+
}, {
1696+
"@id": "#t0124",
1697+
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
1698+
"name": "compact IRI as @vocab",
1699+
"purpose": "Verifies that @vocab defined as a compact IRI expands properly",
1700+
"input": "toRdf/e124-in.jsonld",
1701+
"expect": "toRdf/e124-out.nq",
1702+
"option": {"specVersion": "json-ld-1.1"}
1703+
}, {
1704+
"@id": "#t0125",
1705+
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
1706+
"name": "term as @vocab",
1707+
"purpose": "Verifies that @vocab defined as a term expands properly",
1708+
"input": "toRdf/e125-in.jsonld",
1709+
"expect": "toRdf/e125-out.nq",
1710+
"option": {"specVersion": "json-ld-1.1"}
16951711
}, {
16961712
"@id": "#tec01",
16971713
"@type": [ "jld:NegativeEvaluationTest", "jld:ToRDFTest" ],

tests/toRdf/e124-in.jsonld

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"@context": [
3+
{
4+
"@version": 1.1,
5+
"ex": {
6+
"@id": "http://example.org/",
7+
"@prefix": true
8+
}
9+
},
10+
{
11+
"@vocab": "ex:ns/"
12+
}
13+
],
14+
"foo": "bar"
15+
}

tests/toRdf/e124-out.nq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_:b0 <http://example.org/ns/foo> "bar" .

tests/toRdf/e125-in.jsonld

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"@context": [
3+
{
4+
"@version": 1.1,
5+
"ex": {
6+
"@id": "http://example.org/",
7+
"@prefix": true
8+
}
9+
},
10+
{
11+
"@vocab": "ex"
12+
}
13+
],
14+
"foo": "bar"
15+
}

tests/toRdf/e125-out.nq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_:b0 <http://example.org/foo> "bar" .

0 commit comments

Comments
 (0)