Skip to content

Add tests and spec text for scoped-contexts on @nest alias. #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Merge branch 'master' into issue-380
  • Loading branch information
gkellogg authored Nov 14, 2020
commit e7b759e8ba48efa1346d0f10aa5f9c707de39331
24 changes: 12 additions & 12 deletions tests/expand-manifest.html
Original file line number Diff line number Diff line change
Expand Up @@ -4169,24 +4169,24 @@

Test tc037 property-scoped contexts which are alias of @nest
Test tc035 Term scoping with embedded contexts.
id
#tc037
#tc035
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Nesting terms may have property-scoped contexts defined.
Terms should make use of @vocab relative to the scope in which the term was defined.
input
expand/c037-in.jsonld
expand/c035-in.jsonld
expect
expand/c037-out.jsonld
expand/c035-out.jsonld
Options
Expand All @@ -4197,24 +4197,24 @@

Test tc038 Bibframe example (poor-mans inferrence)
Test tc036 Expansion with empty property-scoped context.
id
#tc038
#tc036
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Nesting terms may have property-scoped contexts defined.
Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.
input
expand/c038-in.jsonld
expand/c036-in.jsonld
expect
expand/c038-out.jsonld
expand/c036-out.jsonld
Options
Expand Down
16 changes: 16 additions & 0 deletions tests/expand-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,22 @@
"input": "expand/c034-in.jsonld",
"expect": "expand/c034-out.jsonld",
"option": {"specVersion": "json-ld-1.1"}
}, {
"@id": "#tc035",
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
"name": "Term scoping with embedded contexts.",
"purpose": "Terms should make use of @vocab relative to the scope in which the term was defined.",
"input": "expand/c035-in.jsonld",
"expect": "expand/c035-out.jsonld",
"option": {"specVersion": "json-ld-1.1"}
}, {
"@id": "#tc036",
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
"name": "Expansion with empty property-scoped context.",
"purpose": "Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.",
"input": "expand/c036-in.jsonld",
"expect": "expand/c036-out.jsonld",
"option": {"specVersion": "json-ld-1.1"}
}, {
"@id": "#tc037",
"@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"],
Expand Down
24 changes: 12 additions & 12 deletions tests/toRdf-manifest.html
Original file line number Diff line number Diff line change
Expand Up @@ -2224,24 +2224,24 @@

Test tc037 property-scoped contexts which are alias of @nest
Test tc035 Term scoping with embedded contexts.
id
#tc037
#tc035
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
Nesting terms may have property-scoped contexts defined.
Terms should make use of @vocab relative to the scope in which the term was defined.
input
toRdf/c037-in.jsonld
toRdf/c035-in.jsonld
expect
toRdf/c037-out.nq
toRdf/c035-out.nq
Options
Expand All @@ -2252,24 +2252,24 @@

Test tc038 Bibframe example (poor-mans inferrence)
Test tc036 Expansion with empty property-scoped context.
id
#tc038
#tc036
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
Nesting terms may have property-scoped contexts defined.
Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.
input
toRdf/c038-in.jsonld
toRdf/c036-in.jsonld
expect
toRdf/c038-out.nq
toRdf/c036-out.nq
Options
Expand Down
15 changes: 15 additions & 0 deletions tests/toRdf-manifest.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,21 @@
"input": "toRdf/c034-in.jsonld",
"expect": "toRdf/c034-out.nq",
"option": {"specVersion": "json-ld-1.1"}
"@id": "#tc035",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Term scoping with embedded contexts.",
"purpose": "Terms should make use of @vocab relative to the scope in which the term was defined.",
"input": "toRdf/c035-in.jsonld",
"expect": "toRdf/c035-out.nq",
"option": {"specVersion": "json-ld-1.1"}
}, {
"@id": "#tc036",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
"name": "Expansion with empty property-scoped context.",
"purpose": "Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.",
"input": "toRdf/c036-in.jsonld",
"expect": "toRdf/c036-out.nq",
"option": {"specVersion": "json-ld-1.1"}
}, {
"@id": "#tc037",
"@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.