Skip to content

Commit d89f2f6

Browse files
pchampingkellogg
authored andcommitted
add test-case for keyword-like relative IRI
1 parent 027da28 commit d89f2f6

File tree

6 files changed

+65
-1
lines changed

6 files changed

+65
-1
lines changed

Gemfile.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ GEM
8181
connection_pool (~> 2.2)
8282
nokogiri (1.11.1-x86_64-darwin)
8383
racc (~> 1.4)
84+
nokogiri (1.11.1-x86_64-linux)
85+
racc (~> 1.4)
8486
nokogumbo (2.0.4)
8587
nokogiri (~> 1.8, >= 1.8.4)
8688
public_suffix (4.0.6)
@@ -181,6 +183,7 @@ GEM
181183

182184
PLATFORMS
183185
x86_64-darwin-20
186+
x86_64-linux
184187

185188
DEPENDENCIES
186189
colorize
@@ -193,4 +196,4 @@ DEPENDENCIES
193196
redcarpet
194197

195198
BUNDLED WITH
196-
2.2.3
199+
2.2.11

tests/compact-manifest.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,6 +3130,38 @@ <h2>
31303130
</dd>
31313131
</dl>
31323132
</dd>
3133+
<dt id='t0111'>
3134+
Test t0111 Keyword-like relative IRIs
3135+
</dt>
3136+
<dd>
3137+
<dl class='entry'>
3138+
<dt>id</dt>
3139+
<dd>#t0111</dd>
3140+
<dt>Type</dt>
3141+
<dd>jld:PositiveEvaluationTest, jld:CompactTest</dd>
3142+
<dt>Purpose</dt>
3143+
<dd>Relative IRIs must not have the form a of keyword</dd>
3144+
<dt>input</dt>
3145+
<dd>
3146+
<a href='compact/0111-in.jsonld'>compact/0111-in.jsonld</a>
3147+
</dd>
3148+
<dt>context</dt>
3149+
<dd>
3150+
<a href='compact/0111-context.jsonld'>compact/0111-context.jsonld</a>
3151+
</dd>
3152+
<dt>expect</dt>
3153+
<dd>
3154+
<a href='compact/0111-out.jsonld'>compact/0111-out.jsonld</a>
3155+
</dd>
3156+
<dt>Options</dt>
3157+
<dd>
3158+
<dl class='options'>
3159+
<dt>specVersion</dt>
3160+
<dd>json-ld-1.1</dd>
3161+
</dl>
3162+
</dd>
3163+
</dl>
3164+
</dd>
31333165
<dt id='tc001'>
31343166
Test tc001 adding new term
31353167
</dt>

tests/compact-manifest.jsonld

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,15 @@
932932
"context": "compact/0110-context.jsonld",
933933
"expect": "compact/0110-out.jsonld",
934934
"option": {"specVersion": "json-ld-1.1"}
935+
}, {
936+
"@id": "#t0111",
937+
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],
938+
"name": "Keyword-like relative IRIs",
939+
"purpose": "Relative IRIs must not have the form a of keyword",
940+
"input": "compact/0111-in.jsonld",
941+
"context": "compact/0111-context.jsonld",
942+
"expect": "compact/0111-out.jsonld",
943+
"option": {"specVersion": "json-ld-1.1"}
935944
}, {
936945
"@id": "#tc001",
937946
"@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"],

tests/compact/0111-context.jsonld

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

tests/compact/0111-in.jsonld

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

tests/compact/0111-out.jsonld

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"@context": {
3+
"ex": "http://example.org/",
4+
"@base": "http://localhost/"
5+
},
6+
"ex:address": {
7+
"@id": "./@special"
8+
}
9+
}

0 commit comments

Comments
 (0)