Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions tests/expand-manifest.html
Original file line number Diff line number Diff line change
Expand Up @@ -9671,6 +9671,34 @@ <h2>
</dd>
</dl>
</dd>
<dt id='tpr44'>
Test tpr44 Property-scoped context on @nest applies before nested type-scoped context.
</dt>
<dd>
<dl class='entry'>
<dt>id</dt>
<dd>#tpr44</dd>
<dt>Type</dt>
<dd>jld:PositiveEvaluationTest, jld:ExpandTest</dd>
<dt>Purpose</dt>
<dd>A property-scoped context on an @nest term applies before expanding @type and type-scoped terms in the nested node.</dd>
<dt>input</dt>
<dd>
<a href='expand/pr44-in.jsonld'>expand/pr44-in.jsonld</a>
</dd>
<dt>expect</dt>
<dd>
<a href='expand/pr44-out.jsonld'>expand/pr44-out.jsonld</a>
</dd>
<dt>Options</dt>
<dd>
<dl class='options'>
<dt>specVersion</dt>
<dd>json-ld-1.1</dd>
</dl>
</dd>
</dl>
</dd>
<dt id='tso01'>
Test tso01 @import is invalid in 1.0.
</dt>
Expand Down
8 changes: 8 additions & 0 deletions tests/expand-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,14 @@
"option": {"specVersion": "json-ld-1.1"},
"input": "expand/pr43-in.jsonld",
"expect": "expand/pr43-out.jsonld"
}, {
"@id": "#tpr44",
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
"name": "Property-scoped context on @nest applies before nested type-scoped context.",
"purpose": "A property-scoped context on an @nest term applies before expanding @type and type-scoped terms in the nested node.",
"option": {"specVersion": "json-ld-1.1"},
"input": "expand/pr44-in.jsonld",
"expect": "expand/pr44-out.jsonld"
}, {
"@id": "#tso01",
"@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"],
Expand Down
20 changes: 20 additions & 0 deletions tests/expand/pr44-in.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"@context": {
"@vocab": "http://example.org/outer#",
"p1": {
"@id": "@nest",
"@context": {
"Type": {
"@id": "http://example.org/ns#Type",
"@context": {
"p2": "http://example.org/ns#P2"
}
}
}
}
},
"p1": {
"@type": "Type",
"p2": "foo"
}
}
12 changes: 12 additions & 0 deletions tests/expand/pr44-out.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"@type": [
"http://example.org/ns#Type"
],
"http://example.org/ns#P2": [
{
"@value": "foo"
}
]
}
]