Skip to content

Commit b6a2b2b

Browse files
committed
Add toRdf version of js22.
1 parent 7314022 commit b6a2b2b

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

tests/toRdf-manifest.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6177,6 +6177,34 @@ <h2>
61776177
</dd>
61786178
</dl>
61796179
</dd>
6180+
<dt id='tjs22'>
6181+
Test tjs22 Transform JSON literal (null) aleady in expanded form.
6182+
</dt>
6183+
<dd>
6184+
<dl class='entry'>
6185+
<dt>id</dt>
6186+
<dd>#tjs22</dd>
6187+
<dt>Type</dt>
6188+
<dd>jld:PositiveEvaluationTest, jld:ToRDFTest</dd>
6189+
<dt>Purpose</dt>
6190+
<dd>Tests transforming property with @type @json to a JSON literal (null).</dd>
6191+
<dt>input</dt>
6192+
<dd>
6193+
<a href='toRdf/js22-in.jsonld'>toRdf/js22-in.jsonld</a>
6194+
</dd>
6195+
<dt>expect</dt>
6196+
<dd>
6197+
<a href='toRdf/js22-out.nq'>toRdf/js22-out.nq</a>
6198+
</dd>
6199+
<dt>Options</dt>
6200+
<dd>
6201+
<dl class='options'>
6202+
<dt>specVersion</dt>
6203+
<dd>json-ld-1.1</dd>
6204+
</dl>
6205+
</dd>
6206+
</dl>
6207+
</dd>
61806208
<dt id='tli01'>
61816209
Test tli01 @list containing @list
61826210
</dt>

tests/toRdf-manifest.jsonld

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,6 +1884,14 @@
18841884
"input": "toRdf/js21-in.jsonld",
18851885
"expect": "toRdf/js21-out.nq",
18861886
"option": {"specVersion": "json-ld-1.1"}
1887+
}, {
1888+
"@id": "#tjs22",
1889+
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
1890+
"name": "Transform JSON literal (null) aleady in expanded form.",
1891+
"purpose": "Tests transforming property with @type @json to a JSON literal (null).",
1892+
"input": "toRdf/js22-in.jsonld",
1893+
"expect": "toRdf/js22-out.nq",
1894+
"option": {"specVersion": "json-ld-1.1"}
18871895
}, {
18881896
"@id": "#tli01",
18891897
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],

tests/toRdf/js22-in.jsonld

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"http://example.org/vocab#null": {"@value": null, "@type": "@json"}
3+
}

tests/toRdf/js22-out.nq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_:b0 <http://example.org/vocab#null> "null"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .

0 commit comments

Comments
 (0)