Skip to content

Commit 8299e26

Browse files
committed
toRdf version of expand/c034.
1 parent d292b6a commit 8299e26

File tree

6 files changed

+80
-0
lines changed

6 files changed

+80
-0
lines changed

tests/expand-manifest.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3956,6 +3956,34 @@ <h2>
39563956
</dd>
39573957
</dl>
39583958
</dd>
3959+
<dt id='tc034'>
3960+
Test tc034 Remote scoped context.
3961+
</dt>
3962+
<dd>
3963+
<dl class='entry'>
3964+
<dt>id</dt>
3965+
<dd>#tc034</dd>
3966+
<dt>Type</dt>
3967+
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
3968+
<dt>Purpose</dt>
3969+
<dd>Scoped contexts may be externally loaded.</dd>
3970+
<dt>input</dt>
3971+
<dd>
3972+
<a href='expand/c034-in.jsonld'>expand/c034-in.jsonld</a>
3973+
</dd>
3974+
<dt>expect</dt>
3975+
<dd>
3976+
<a href='expand/c034-out.jsonld'>expand/c034-out.jsonld</a>
3977+
</dd>
3978+
<dt>Options</dt>
3979+
<dd>
3980+
<dl class='options'>
3981+
<dt>specVersion</dt>
3982+
<dd>json-ld-1.1</dd>
3983+
</dl>
3984+
</dd>
3985+
</dl>
3986+
</dd>
39593987
<dt id='tdi01'>
39603988
Test tdi01 Expand string using default and term directions
39613989
</dt>

tests/toRdf-manifest.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,6 +2195,34 @@ <h2>
21952195
</dd>
21962196
</dl>
21972197
</dd>
2198+
<dt id='tc034'>
2199+
Test tc034 Remote scoped context.
2200+
</dt>
2201+
<dd>
2202+
<dl class='entry'>
2203+
<dt>id</dt>
2204+
<dd>#tc034</dd>
2205+
<dt>Type</dt>
2206+
<dd>jld:PositiveEvaluationTest, jld:ToRDFTest</dd>
2207+
<dt>Purpose</dt>
2208+
<dd>Scoped contexts may be externally loaded.</dd>
2209+
<dt>input</dt>
2210+
<dd>
2211+
<a href='toRdf/c034-in.jsonld'>toRdf/c034-in.jsonld</a>
2212+
</dd>
2213+
<dt>expect</dt>
2214+
<dd>
2215+
<a href='toRdf/c034-out.nq'>toRdf/c034-out.nq</a>
2216+
</dd>
2217+
<dt>Options</dt>
2218+
<dd>
2219+
<dl class='options'>
2220+
<dt>specVersion</dt>
2221+
<dd>json-ld-1.1</dd>
2222+
</dl>
2223+
</dd>
2224+
</dl>
2225+
</dd>
21982226
<dt id='tdi01'>
21992227
Test tdi01 Expand string using default and term directions
22002228
</dt>

tests/toRdf-manifest.jsonld

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,14 @@
660660
"input": "toRdf/c033-in.jsonld",
661661
"expectErrorCode": "invalid scoped context",
662662
"option": {"specVersion": "json-ld-1.1"}
663+
}, {
664+
"@id": "#tc034",
665+
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
666+
"name": "Remote scoped context.",
667+
"purpose": "Scoped contexts may be externally loaded.",
668+
"input": "toRdf/c034-in.jsonld",
669+
"expect": "toRdf/c034-out.nq",
670+
"option": {"specVersion": "json-ld-1.1"}
663671
}, {
664672
"@id": "#tdi01",
665673
"@type": [ "jld:PositiveEvaluationTest", "jld:ToRDFTest" ],

tests/toRdf/c034-context.jsonld

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"@context": {
3+
"bar": "http://example.org/bar"
4+
}
5+
}

tests/toRdf/c034-in.jsonld

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://example/",
4+
"foo": {"@context": "c034-context.jsonld"}
5+
},
6+
"foo": {
7+
"bar": "baz"
8+
}
9+
}

tests/toRdf/c034-out.nq

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

0 commit comments

Comments
 (0)