diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d638beff..688f2937 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: name: Build and Validate runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: diff --git a/Gemfile b/Gemfile index d390680f..4930aae7 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,7 @@ source "https://rubygems.org" gem 'json-ld', github: 'ruby-rdf/json-ld', branch: 'develop' gem 'nokogiri' +gem 'htmlbeautifier' gem 'linkeddata' gem 'colorize' gem 'rake' diff --git a/Gemfile.lock b/Gemfile.lock index 3804079a..60ee1e84 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,194 +1,202 @@ GIT remote: https://github.com/ruby-rdf/json-ld.git - revision: dfc1f965c52595767dbb45953a8b205debaca140 + revision: fcd3aedd310aedbd61e6e1f1afa1b37d1ffebc2d branch: develop specs: - json-ld (3.2.0) + json-ld (3.3.1) htmlentities (~> 4.3) - json-canonicalization (~> 0.3) + json-canonicalization (~> 1.0) link_header (~> 0.0, >= 0.0.8) multi_json (~> 1.15) - rack (~> 2.2) - rdf (~> 3.2) + rack (>= 2.2, < 4) + rdf (~> 3.3) GEM remote: https://rubygems.org/ specs: - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - amazing_print (1.4.0) - bcp47 (0.3.3) - i18n + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + bcp47_spec (0.2.1) builder (3.2.4) - colorize (0.8.1) - concurrent-ruby (1.1.9) - connection_pool (2.2.5) - ebnf (2.3.1) - amazing_print (~> 1.4) + colorize (1.1.0) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) + ebnf (2.4.0) htmlentities (~> 4.3) - rdf (~> 3.2) + rdf (~> 3.3) scanf (~> 1.0) - sxp (~> 1.2) - unicode-types (~> 1.7) - haml (5.2.2) - temple (>= 0.8.0) + sxp (~> 1.3) + unicode-types (~> 1.8) + haml (6.3.0) + temple (>= 0.8.2) + thor tilt hamster (3.0.0) concurrent-ruby (~> 1.0) + htmlbeautifier (1.4.2) htmlentities (4.3.4) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - json-canonicalization (0.3.0) - json-ld-preloaded (3.2.0) - json-ld (~> 3.2) - rdf (~> 3.2) - ld-patch (3.2.0) - ebnf (~> 2.2) - rdf (~> 3.2) - rdf-xsd (~> 3.2) - sparql (~> 3.2) - sxp (~> 1.2) + json-canonicalization (1.0.0) + json-ld-preloaded (3.3.0) + json-ld (~> 3.3) + rdf (~> 3.3) + ld-patch (3.3.0) + ebnf (~> 2.4) + rdf (~> 3.3) + rdf-xsd (~> 3.3) + sparql (~> 3.3) + sxp (~> 1.3) link_header (0.0.8) - linkeddata (3.2.0) - json-ld (~> 3.2) - json-ld-preloaded (~> 3.2) - ld-patch (~> 3.2) - nokogiri (~> 1.12, >= 1.12.5) - rdf (~> 3.2) + linkeddata (3.3.1) + json-ld (~> 3.3) + json-ld-preloaded (~> 3.3) + ld-patch (~> 3.3) + nokogiri (~> 1.15, >= 1.15.4) + rdf (~> 3.2, >= 3.2.1) rdf-aggregate-repo (~> 3.2) - rdf-hamster-repo (~> 3.2) - rdf-isomorphic (~> 3.2) - rdf-json (~> 3.2) - rdf-microdata (~> 3.2) - rdf-n3 (~> 3.2) - rdf-normalize (~> 0.5) - rdf-ordered-repo (~> 3.2) - rdf-rdfa (~> 3.2) - rdf-rdfxml (~> 3.2) - rdf-reasoner (~> 0.8) - rdf-tabular (~> 3.2) - rdf-trig (~> 3.2) - rdf-trix (~> 3.2) - rdf-turtle (~> 3.2) - rdf-vocab (~> 3.2) - rdf-xsd (~> 3.2) - shacl (~> 0.2) - shex (~> 0.7) - sparql (~> 3.2) - sparql-client (~> 3.2) - logger (1.5.0) + rdf-hamster-repo (~> 3.3) + rdf-isomorphic (~> 3.3) + rdf-json (~> 3.3) + rdf-microdata (~> 3.3) + rdf-n3 (~> 3.3) + rdf-normalize (~> 0.7) + rdf-ordered-repo (~> 3.3) + rdf-rdfa (~> 3.3) + rdf-rdfxml (~> 3.3) + rdf-reasoner (~> 0.9) + rdf-tabular (~> 3.3) + rdf-trig (~> 3.3) + rdf-trix (~> 3.3) + rdf-turtle (~> 3.3) + rdf-vocab (~> 3.3) + rdf-xsd (~> 3.3) + shacl (~> 0.4) + shex (~> 0.8) + sparql (~> 3.3) + sparql-client (~> 3.3) + yaml-ld (~> 0.0) + logger (1.6.0) matrix (0.4.2) multi_json (1.15.0) - net-http-persistent (4.0.1) + net-http-persistent (4.0.2) connection_pool (~> 2.2) - nokogiri (1.14.3-arm64-darwin) + nokogiri (1.16.2-arm64-darwin) racc (~> 1.4) - nokogiri (1.14.3-x86_64-darwin) + nokogiri (1.16.2-x86_64-darwin) racc (~> 1.4) - nokogiri (1.14.3-x86_64-linux) + nokogiri (1.16.2-x86_64-linux) racc (~> 1.4) - public_suffix (4.0.6) - racc (1.6.2) - rack (2.2.6.4) - rake (13.0.6) - rdf (3.2.5) + psych (5.1.2) + stringio + public_suffix (5.0.4) + racc (1.7.3) + rack (3.0.9) + rake (13.1.0) + rdf (3.3.1) + bcp47_spec (~> 0.2) link_header (~> 0.0, >= 0.0.8) - rdf-aggregate-repo (3.2.0) - rdf (~> 3.2) - rdf-hamster-repo (3.2.1) + rdf-aggregate-repo (3.3.0) + rdf (~> 3.3) + rdf-hamster-repo (3.3.0) hamster (~> 3.0) - rdf (~> 3.2, >= 3.2.1) - rdf-isomorphic (3.2.1) - rdf (~> 3.2) - rdf-json (3.2.0) - rdf (~> 3.2) - rdf-microdata (3.2.1) + rdf (~> 3.3) + rdf-isomorphic (3.3.0) + rdf (~> 3.3) + rdf-json (3.3.0) + rdf (~> 3.3) + rdf-microdata (3.3.0) htmlentities (~> 4.3) - nokogiri (~> 1.13) - rdf (~> 3.2) - rdf-rdfa (~> 3.2) - rdf-xsd (~> 3.2) - rdf-n3 (3.2.1) - ebnf (~> 2.2) - rdf (~> 3.2) - sparql (~> 3.2) - sxp (~> 1.2) - rdf-normalize (0.5.0) - rdf (~> 3.2) - rdf-ordered-repo (3.2.1) - rdf (~> 3.2, >= 3.2.1) - rdf-rdfa (3.2.0) - haml (~> 5.2) + nokogiri (~> 1.15, >= 1.15.4) + rdf (~> 3.3) + rdf-rdfa (~> 3.3) + rdf-xsd (~> 3.3) + rdf-n3 (3.3.0) + ebnf (~> 2.4) + rdf (~> 3.3) + sparql (~> 3.3) + sxp (~> 1.3) + rdf-normalize (0.7.0) + rdf (~> 3.3) + rdf-ordered-repo (3.3.0) + rdf (~> 3.3) + rdf-rdfa (3.3.0) + haml (~> 6.1) htmlentities (~> 4.3) - rdf (~> 3.2) - rdf-aggregate-repo (~> 3.2) - rdf-vocab (~> 3.2) - rdf-xsd (~> 3.2) - rdf-rdfxml (3.2.0) + rdf (~> 3.3) + rdf-aggregate-repo (~> 3.3) + rdf-vocab (~> 3.3) + rdf-xsd (~> 3.3) + rdf-rdfxml (3.3.0) + builder (~> 3.2, >= 3.2.4) htmlentities (~> 4.3) - rdf (~> 3.2) - rdf-rdfa (~> 3.2) - rdf-xsd (~> 3.2) - rdf-reasoner (0.8.0) - rdf (~> 3.2) - rdf-xsd (~> 3.2) - rdf-tabular (3.2.0) + rdf (~> 3.3) + rdf-xsd (~> 3.3) + rdf-reasoner (0.9.0) + rdf (~> 3.3) + rdf-xsd (~> 3.3) + rdf-tabular (3.3.0) addressable (~> 2.8) - bcp47 (~> 0.3, >= 0.3.3) - json-ld (~> 3.2) - rdf (~> 3.2) - rdf-vocab (~> 3.2) - rdf-xsd (~> 3.2) - rdf-trig (3.2.0) - ebnf (~> 2.2) - rdf (~> 3.2) - rdf-turtle (~> 3.2) - rdf-trix (3.2.0) - rdf (~> 3.2) - rdf-xsd (~> 3.2) - rdf-turtle (3.2.0) - ebnf (~> 2.3) - rdf (~> 3.2) - rdf-vocab (3.2.1) - rdf (~> 3.2, >= 3.2.4) - rdf-xsd (3.2.1) - rdf (~> 3.2) + bcp47_spec (~> 0.2) + json-ld (~> 3.3) + rdf (~> 3.3) + rdf-vocab (~> 3.3) + rdf-xsd (~> 3.3) + rdf-trig (3.3.0) + ebnf (~> 2.4) + rdf (~> 3.3) + rdf-turtle (~> 3.3) + rdf-trix (3.3.0) + rdf (~> 3.3) + rdf-xsd (~> 3.3) + rdf-turtle (3.3.0) + ebnf (~> 2.4) + rdf (~> 3.3) + rdf-vocab (3.3.0) + rdf (~> 3.3) + rdf-xsd (3.3.0) + rdf (~> 3.3) rexml (~> 3.2) - redcarpet (3.5.1) - rexml (3.2.5) + redcarpet (3.6.0) + rexml (3.2.6) scanf (1.0.0) - shacl (0.2.1) - json-ld (~> 3.2) - rdf (~> 3.2) - sparql (~> 3.2) + shacl (0.4.1) + json-ld (~> 3.3) + rdf (~> 3.3) + sparql (~> 3.3) sxp (~> 1.2) - shex (0.7.1) - ebnf (~> 2.2) + shex (0.8.0) + ebnf (~> 2.4) htmlentities (~> 4.3) - json-ld (~> 3.2) - json-ld-preloaded (~> 3.2) - rdf (~> 3.2) - rdf-xsd (~> 3.2) - sparql (~> 3.2) - sxp (~> 1.2) - sparql (3.2.1) - builder (~> 3.2) - ebnf (~> 2.2) - logger (~> 1.4) - rdf (~> 3.2, >= 3.2.3) - rdf-aggregate-repo (~> 3.2) - rdf-xsd (~> 3.2) - sparql-client (~> 3.2) - sxp (~> 1.2, >= 1.2.1) - sparql-client (3.2.0) - net-http-persistent (~> 4.0, >= 4.0.1) - rdf (~> 3.2) - sxp (1.2.1) - matrix - rdf (~> 3.2) - temple (0.8.2) - tilt (2.0.10) - unicode-types (1.7.0) + json-ld (~> 3.3) + json-ld-preloaded (~> 3.3) + rdf (~> 3.3) + rdf-xsd (~> 3.3) + sparql (~> 3.3) + sxp (~> 1.3) + sparql (3.3.0) + builder (~> 3.2, >= 3.2.4) + ebnf (~> 2.4) + logger (~> 1.5) + rdf (~> 3.3) + rdf-aggregate-repo (~> 3.3) + rdf-xsd (~> 3.3) + sparql-client (~> 3.3) + sxp (~> 1.3) + sparql-client (3.3.0) + net-http-persistent (~> 4.0, >= 4.0.2) + rdf (~> 3.3) + stringio (3.1.0) + sxp (1.3.0) + matrix (~> 0.4) + rdf (~> 3.3) + temple (0.10.3) + thor (1.3.0) + tilt (2.3.0) + unicode-types (1.9.0) + yaml-ld (0.0.3) + json-ld (~> 3.3) + psych (>= 3.3) + rdf (~> 3.3) + rdf-xsd (~> 3.3) PLATFORMS arm64-darwin-21 @@ -199,6 +207,7 @@ PLATFORMS DEPENDENCIES colorize haml + htmlbeautifier json-ld! linkeddata nokogiri diff --git a/tests/Rakefile b/tests/Rakefile index e79cea0a..b15d206f 100644 --- a/tests/Rakefile +++ b/tests/Rakefile @@ -1,5 +1,6 @@ require 'bundler/setup' require 'haml' +require 'htmlbeautifier' require 'json' task default: %w( manifest.html @@ -15,8 +16,9 @@ task default: %w( rule '.html' => ['.jsonld', 'template.haml'] do |task| puts "build #{task.name} from #{task.prerequisites.first}" @template ||= File.read(File.expand_path('../template.haml', __FILE__)) - @engine ||= Haml::Engine.new(@template, format: :html5) + @engine ||= Haml::Template.new(format: :html5) {@template} manifest = JSON.parse File.read(File.expand_path("../#{task.prerequisites.first}", __FILE__)) html = @engine.render(self, manifest: manifest, json_file: task.prerequisites.first) + html = HtmlBeautifier.beautify(html) if defined?(::HtmlBeautifier) File.open(File.expand_path("../#{task.name}", __FILE__), "w") {|f| f.write(html)} end diff --git a/tests/compact-manifest.html b/tests/compact-manifest.html index 71091512..6e453394 100644 --- a/tests/compact-manifest.html +++ b/tests/compact-manifest.html @@ -1,7427 +1,7402 @@ - - - -Compaction - - - - - -

- -W3C - -

-

Compaction

-

These tests implement the requirements for the JSON-LD Compaction Algorithm.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -compact-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

compact tests have input, expected and context documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output. Additionally, if the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test t0001 drop free-floating nodes -
-
-
-
id
-
#t0001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Unreferenced nodes not containing properties are dropped
-
input
-
-compact/0001-in.jsonld -
-
context
-
-compact/0001-context.jsonld -
-
expect
-
-compact/0001-out.jsonld -
-
-
-
-Test t0002 basic -
-
-
-
id
-
#t0002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Basic term and value compaction
-
input
-
-compact/0002-in.jsonld -
-
context
-
-compact/0002-context.jsonld -
-
expect
-
-compact/0002-out.jsonld -
-
-
-
-Test t0003 drop null and unmapped properties -
-
-
-
id
-
#t0003
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Properties mapped to null or which are never mapped are dropped
-
input
-
-compact/0003-in.jsonld -
-
context
-
-compact/0003-context.jsonld -
-
expect
-
-compact/0003-out.jsonld -
-
-
-
-Test t0004 optimize @set, keep empty arrays -
-
-
-
id
-
#t0004
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Containers mapped to @set keep empty arrays
-
input
-
-compact/0004-in.jsonld -
-
context
-
-compact/0004-context.jsonld -
-
expect
-
-compact/0004-out.jsonld -
-
-
-
-Test t0005 @type and prefix compaction -
-
-
-
id
-
#t0005
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact uses prefixes in @type
-
input
-
-compact/0005-in.jsonld -
-
context
-
-compact/0005-context.jsonld -
-
expect
-
-compact/0005-out.jsonld -
-
-
-
-Test t0006 keep expanded object format if @type doesn't match -
-
-
-
id
-
#t0006
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Values not matching a coerced @type remain in expanded form
-
input
-
-compact/0006-in.jsonld -
-
context
-
-compact/0006-context.jsonld -
-
expect
-
-compact/0006-out.jsonld -
-
-
-
-Test t0007 add context -
-
-
-
id
-
#t0007
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
External context is added to the compacted document
-
input
-
-compact/0007-in.jsonld -
-
context
-
-compact/0007-context.jsonld -
-
expect
-
-compact/0007-out.jsonld -
-
-
-
-Test t0008 alias keywords -
-
-
-
id
-
#t0008
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Aliases for keywords are used in compacted document
-
input
-
-compact/0008-in.jsonld -
-
context
-
-compact/0008-context.jsonld -
-
expect
-
-compact/0008-out.jsonld -
-
-
-
-Test t0009 compact @id -
-
-
-
id
-
#t0009
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Value with @id is compacted to string if property cast to @id
-
input
-
-compact/0009-in.jsonld -
-
context
-
-compact/0009-context.jsonld -
-
expect
-
-compact/0009-out.jsonld -
-
-
-
-Test t0010 array to @graph -
-
-
-
id
-
#t0010
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
An array of objects is serialized with @graph
-
input
-
-compact/0010-in.jsonld -
-
context
-
-compact/0010-context.jsonld -
-
expect
-
-compact/0010-out.jsonld -
-
-
-
-Test t0011 compact date -
-
-
-
id
-
#t0011
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Expanded value with type xsd:dateTime is represented as string with type coercion
-
input
-
-compact/0011-in.jsonld -
-
context
-
-compact/0011-context.jsonld -
-
expect
-
-compact/0011-out.jsonld -
-
-
-
-Test t0012 native types -
-
-
-
id
-
#t0012
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Native values are unmodified during compaction
-
input
-
-compact/0012-in.jsonld -
-
context
-
-compact/0012-context.jsonld -
-
expect
-
-compact/0012-out.jsonld -
-
-
-
-Test t0013 @value with @language -
-
-
-
id
-
#t0013
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Values with @language remain in expanded form by default
-
input
-
-compact/0013-in.jsonld -
-
context
-
-compact/0013-context.jsonld -
-
expect
-
-compact/0013-out.jsonld -
-
-
-
-Test t0014 array to aliased @graph -
-
-
-
id
-
#t0014
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Aliasing @graph uses alias in compacted document
-
input
-
-compact/0014-in.jsonld -
-
context
-
-compact/0014-context.jsonld -
-
expect
-
-compact/0014-out.jsonld -
-
-
-
-Test t0015 best match compaction -
-
-
-
id
-
#t0015
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Property with values of different types use most appropriate term when compacting
-
input
-
-compact/0015-in.jsonld -
-
context
-
-compact/0015-context.jsonld -
-
expect
-
-compact/0015-out.jsonld -
-
-
-
-Test t0016 recursive named graphs -
-
-
-
id
-
#t0016
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting a document with multiple embedded uses of @graph
-
input
-
-compact/0016-in.jsonld -
-
context
-
-compact/0016-context.jsonld -
-
expect
-
-compact/0016-out.jsonld -
-
-
-
-Test t0017 A term mapping to null removes the mapping -
-
-
-
id
-
#t0017
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Mapping a term to null causes the property and its values to be removed from the compacted document
-
input
-
-compact/0017-in.jsonld -
-
context
-
-compact/0017-context.jsonld -
-
expect
-
-compact/0017-out.jsonld -
-
-
-
-Test t0018 best matching term for lists -
-
-
-
id
-
#t0018
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Lists with values of different types use best term in compacted document
-
input
-
-compact/0018-in.jsonld -
-
context
-
-compact/0018-context.jsonld -
-
expect
-
-compact/0018-out.jsonld -
-
-
-
-Test t0019 Keep duplicate values in @list and @set -
-
-
-
id
-
#t0019
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Duplicate values in @list or @set are retained in compacted document
-
input
-
-compact/0019-in.jsonld -
-
context
-
-compact/0019-context.jsonld -
-
expect
-
-compact/0019-out.jsonld -
-
-
-
-Test t0020 Compact @id that is a property IRI when @container is @list -
-
-
-
id
-
#t0020
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
A term with @container: @list is also used as the value of an @id, if appropriate
-
input
-
-compact/0020-in.jsonld -
-
context
-
-compact/0020-context.jsonld -
-
expect
-
-compact/0020-out.jsonld -
-
-
-
-Test t0021 Compact properties and types using @vocab -
-
-
-
id
-
#t0021
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@vocab is used to create relative properties and types if no other term matches
-
input
-
-compact/0021-in.jsonld -
-
context
-
-compact/0021-context.jsonld -
-
expect
-
-compact/0021-out.jsonld -
-
-
-
-Test t0022 @list compaction of nested properties -
-
-
-
id
-
#t0022
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact nested properties using @list containers
-
input
-
-compact/0022-in.jsonld -
-
context
-
-compact/0022-context.jsonld -
-
expect
-
-compact/0022-out.jsonld -
-
-
-
-Test t0023 prefer @vocab over compacted IRIs -
-
-
-
id
-
#t0023
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@vocab takes precedence over prefixes - even if the result is longer
-
input
-
-compact/0023-in.jsonld -
-
context
-
-compact/0023-context.jsonld -
-
expect
-
-compact/0023-out.jsonld -
-
-
-
-Test t0024 most specific term matching in @list. -
-
-
-
id
-
#t0024
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
The most specific term that matches all of the elements in the list, taking into account the default language, must be selected.
-
input
-
-compact/0024-in.jsonld -
-
context
-
-compact/0024-context.jsonld -
-
expect
-
-compact/0024-out.jsonld -
-
-
-
-Test t0025 Language maps -
-
-
-
id
-
#t0025
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Multiple values with different languages use language maps if property has @container: @language
-
input
-
-compact/0025-in.jsonld -
-
context
-
-compact/0025-context.jsonld -
-
expect
-
-compact/0025-out.jsonld -
-
-
-
-Test t0026 Language map term selection with complications -
-
-
-
id
-
#t0026
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Test appropriate property use given language maps with @vocab, a default language, and a competing term
-
input
-
-compact/0026-in.jsonld -
-
context
-
-compact/0026-context.jsonld -
-
expect
-
-compact/0026-out.jsonld -
-
-
-
-Test t0027 @container: @set with multiple values -
-
-
-
id
-
#t0027
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Fall back to term with @set container if term with language map is defined
-
input
-
-compact/0027-in.jsonld -
-
context
-
-compact/0027-context.jsonld -
-
expect
-
-compact/0027-out.jsonld -
-
-
-
-Test t0028 Alias keywords and use @vocab -
-
-
-
id
-
#t0028
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Combination of keyword aliases and @vocab
-
input
-
-compact/0028-in.jsonld -
-
context
-
-compact/0028-context.jsonld -
-
expect
-
-compact/0028-out.jsonld -
-
-
-
-Test t0029 Simple @index map -
-
-
-
id
-
#t0029
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Output uses index mapping if term is defined with @container: @index
-
input
-
-compact/0029-in.jsonld -
-
context
-
-compact/0029-context.jsonld -
-
expect
-
-compact/0029-out.jsonld -
-
-
-
-Test t0030 non-matching @container: @index -
-
-
-
id
-
#t0030
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Preserve @index tags if not compacted to an index map
-
input
-
-compact/0030-in.jsonld -
-
context
-
-compact/0030-context.jsonld -
-
expect
-
-compact/0030-out.jsonld -
-
-
-
-Test t0031 Compact @reverse -
-
-
-
id
-
#t0031
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact traverses through @reverse
-
input
-
-compact/0031-in.jsonld -
-
context
-
-compact/0031-context.jsonld -
-
expect
-
-compact/0031-out.jsonld -
-
-
-
-Test t0032 Compact keys in reverse-maps -
-
-
-
id
-
#t0032
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact traverses through @reverse
-
input
-
-compact/0032-in.jsonld -
-
context
-
-compact/0032-context.jsonld -
-
expect
-
-compact/0032-out.jsonld -
-
-
-
-Test t0033 Compact reverse-map to reverse property -
-
-
-
id
-
#t0033
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
A reverse map is replaced with a matching property defined with @reverse
-
input
-
-compact/0033-in.jsonld -
-
context
-
-compact/0033-context.jsonld -
-
expect
-
-compact/0033-out.jsonld -
-
-
-
-Test t0034 Skip property with @reverse if no match -
-
-
-
id
-
#t0034
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Do not use reverse property if no other property matches as normal property
-
input
-
-compact/0034-in.jsonld -
-
context
-
-compact/0034-context.jsonld -
-
expect
-
-compact/0034-out.jsonld -
-
-
-
-Test t0035 Compact @reverse node references using strings -
-
-
-
id
-
#t0035
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact node references to strings for reverse properties using @type: @id
-
input
-
-compact/0035-in.jsonld -
-
context
-
-compact/0035-context.jsonld -
-
expect
-
-compact/0035-out.jsonld -
-
-
-
-Test t0036 Compact reverse properties using index containers -
-
-
-
id
-
#t0036
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact using both reverse properties and index containers
-
input
-
-compact/0036-in.jsonld -
-
context
-
-compact/0036-context.jsonld -
-
expect
-
-compact/0036-out.jsonld -
-
-
-
-Test t0037 Compact keys in @reverse using @vocab -
-
-
-
id
-
#t0037
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact keys in @reverse using @vocab
-
input
-
-compact/0037-in.jsonld -
-
context
-
-compact/0037-context.jsonld -
-
expect
-
-compact/0037-out.jsonld -
-
-
-
-Test t0038 Index map round-tripping -
-
-
-
id
-
#t0038
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Complex round-tripping use case from Drupal
-
input
-
-compact/0038-in.jsonld -
-
context
-
-compact/0038-context.jsonld -
-
expect
-
-compact/0038-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ta038 Index map round-tripping -
-
-
-
id
-
#ta038
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Complex round-tripping use case from Drupal
-
input
-
-compact/0038-in.jsonld -
-
context
-
-compact/0038-context.jsonld -
-
expect
-
-compact/0038a-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0039 @graph is array -
-
-
-
id
-
#t0039
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Value of @graph is always an array
-
input
-
-compact/0039-in.jsonld -
-
context
-
-compact/0039-context.jsonld -
-
expect
-
-compact/0039-out.jsonld -
-
-
-
-Test t0040 @list is array -
-
-
-
id
-
#t0040
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure that value of @list is always an array
-
input
-
-compact/0040-in.jsonld -
-
context
-
-compact/0040-context.jsonld -
-
expect
-
-compact/0040-out.jsonld -
-
-
-
-Test t0041 index rejects term having @list -
-
-
-
id
-
#t0041
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
If an index is present, a term having an @list container is not selected
-
input
-
-compact/0041-in.jsonld -
-
context
-
-compact/0041-context.jsonld -
-
expect
-
-compact/0041-out.jsonld -
-
-
-
-Test t0042 @list keyword aliasing -
-
-
-
id
-
#t0042
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Make sure keyword aliasing works if a list can't be compacted
-
input
-
-compact/0042-in.jsonld -
-
context
-
-compact/0042-context.jsonld -
-
expect
-
-compact/0042-out.jsonld -
-
-
-
-Test t0043 select term over @vocab -
-
-
-
id
-
#t0043
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure that @vocab compaction isn't used if the result collides with a term
-
input
-
-compact/0043-in.jsonld -
-
context
-
-compact/0043-context.jsonld -
-
expect
-
-compact/0043-out.jsonld -
-
-
-
-Test t0044 @type: @vocab in reverse-map -
-
-
-
id
-
#t0044
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Prefer properties with @type: @vocab in reverse-maps if the value can be compacted to a term
-
input
-
-compact/0044-in.jsonld -
-
context
-
-compact/0044-context.jsonld -
-
expect
-
-compact/0044-out.jsonld -
-
-
-
-Test t0045 @id value uses relative IRI, not term -
-
-
-
id
-
#t0045
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Values of @id are transformed to relative IRIs, terms are ignored
-
input
-
-compact/0045-in.jsonld -
-
context
-
-compact/0045-context.jsonld -
-
expect
-
-compact/0045-out.jsonld -
-
-
-
-Test t0046 multiple objects without @context use @graph -
-
-
-
id
-
#t0046
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Wrap top-level array into @graph even if no context is passed
-
input
-
-compact/0046-in.jsonld -
-
context
-
-compact/0046-context.jsonld -
-
expect
-
-compact/0046-out.jsonld -
-
-
-
-Test t0047 Round-trip relative URLs -
-
-
-
id
-
#t0047
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Relative URLs remain relative after compaction
-
input
-
-compact/0047-in.jsonld -
-
context
-
-compact/0047-context.jsonld -
-
expect
-
-compact/0047-out.jsonld -
-
-
-
-Test t0048 term with @language: null -
-
-
-
id
-
#t0048
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Prefer terms with a language mapping set to null over terms without language-mapping for non-strings
-
input
-
-compact/0048-in.jsonld -
-
context
-
-compact/0048-context.jsonld -
-
expect
-
-compact/0048-out.jsonld -
-
-
-
-Test t0049 Round tripping of lists that contain just IRIs -
-
-
-
id
-
#t0049
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
List compaction without @container: @list still uses strings if @type: @id
-
input
-
-compact/0049-in.jsonld -
-
context
-
-compact/0049-context.jsonld -
-
expect
-
-compact/0049-out.jsonld -
-
-
-
-Test t0050 Reverse properties require @type: @id to use string values -
-
-
-
id
-
#t0050
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Node references in reverse properties are not compacted to strings without explicit type-coercion
-
input
-
-compact/0050-in.jsonld -
-
context
-
-compact/0050-context.jsonld -
-
expect
-
-compact/0050-out.jsonld -
-
-
-
-Test t0051 Round tripping @list with scalar -
-
-
-
id
-
#t0051
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Native values survive round-tripping with @list
-
input
-
-compact/0051-in.jsonld -
-
context
-
-compact/0051-context.jsonld -
-
expect
-
-compact/0051-out.jsonld -
-
-
-
-Test t0052 Round tripping @list with scalar and @graph alias -
-
-
-
id
-
#t0052
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Native values survive round-tripping with @list and @graph alias
-
input
-
-compact/0052-in.jsonld -
-
context
-
-compact/0052-context.jsonld -
-
expect
-
-compact/0052-out.jsonld -
-
-
-
-Test t0053 Use @type: @vocab if no @type: @id -
-
-
-
id
-
#t0053
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact to @type: @vocab when no @type: @id term available
-
input
-
-compact/0053-in.jsonld -
-
context
-
-compact/0053-context.jsonld -
-
expect
-
-compact/0053-out.jsonld -
-
-
-
-Test t0054 Compact to @type: @vocab and compact @id to term -
-
-
-
id
-
#t0054
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact to @type: @vocab and compact @id to term
-
input
-
-compact/0054-in.jsonld -
-
context
-
-compact/0054-context.jsonld -
-
expect
-
-compact/0054-out.jsonld -
-
-
-
-Test t0055 Round tripping @type: @vocab -
-
-
-
id
-
#t0055
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting IRI value of property with @type: @vocab can use term
-
input
-
-compact/0055-in.jsonld -
-
context
-
-compact/0055-context.jsonld -
-
expect
-
-compact/0055-out.jsonld -
-
-
-
-Test t0056 Prefer @type: @vocab over @type: @id for terms -
-
-
-
id
-
#t0056
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting IRI value of property with @type: @vocab can use term
-
input
-
-compact/0056-in.jsonld -
-
context
-
-compact/0056-context.jsonld -
-
expect
-
-compact/0056-out.jsonld -
-
-
-
-Test t0057 Complex round tripping @type: @vocab and @type: @id -
-
-
-
id
-
#t0057
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting IRI value of property with @type: @vocab can use term; more complex
-
input
-
-compact/0057-in.jsonld -
-
context
-
-compact/0057-context.jsonld -
-
expect
-
-compact/0057-out.jsonld -
-
-
-
-Test t0058 Prefer @type: @id over @type: @vocab for non-terms -
-
-
-
id
-
#t0058
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Choose a term having @type: @id over @type: @value if value is not a term
-
input
-
-compact/0058-in.jsonld -
-
context
-
-compact/0058-context.jsonld -
-
expect
-
-compact/0058-out.jsonld -
-
-
-
-Test t0059 Term with @type: @vocab if no @type: @id -
-
-
-
id
-
#t0059
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
If there's no term with @type: @id, use terms with @type: @vocab for IRIs not mapped to terms
-
input
-
-compact/0059-in.jsonld -
-
context
-
-compact/0059-context.jsonld -
-
expect
-
-compact/0059-out.jsonld -
-
-
-
-Test t0060 Term with @type: @id if no @type: @vocab and term value -
-
-
-
id
-
#t0060
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
If there's no term with @type: @vocab, use terms with @type: @id for IRIs mapped to terms
-
input
-
-compact/0060-in.jsonld -
-
context
-
-compact/0060-context.jsonld -
-
expect
-
-compact/0060-out.jsonld -
-
-
-
-Test t0061 @type: @vocab/@id with values matching either -
-
-
-
id
-
#t0061
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Separate IRIs for the same property to use term with more specific @type (@id vs. @vocab)
-
input
-
-compact/0061-in.jsonld -
-
context
-
-compact/0061-context.jsonld -
-
expect
-
-compact/0061-out.jsonld -
-
-
-
-Test t0062 @type: @vocab and relative IRIs -
-
-
-
id
-
#t0062
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Relative IRIs don't round-trip with @type: @vocab
-
input
-
-compact/0062-in.jsonld -
-
context
-
-compact/0062-context.jsonld -
-
expect
-
-compact/0062-out.jsonld -
-
-
-
-Test t0063 Compact IRI round-tripping with @type: @vocab -
-
-
-
id
-
#t0063
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Term with @type: @vocab will use compact IRIs
-
input
-
-compact/0063-in.jsonld -
-
context
-
-compact/0063-context.jsonld -
-
expect
-
-compact/0063-out.jsonld -
-
-
-
-Test t0064 Compact language-tagged and indexed strings to index-map -
-
-
-
id
-
#t0064
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Given values with both @index and @language and term index-map term, use index map
-
input
-
-compact/0064-in.jsonld -
-
context
-
-compact/0064-context.jsonld -
-
expect
-
-compact/0064-out.jsonld -
-
-
-
-Test t0065 Language-tagged and indexed strings with language-map -
-
-
-
id
-
#t0065
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Language-tagged and indexed strings don't compact to language-map
-
input
-
-compact/0065-in.jsonld -
-
context
-
-compact/0065-context.jsonld -
-
expect
-
-compact/0065-out.jsonld -
-
-
-
-Test t0066 Relative IRIs -
-
-
-
id
-
#t0066
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Complex use cases for relative IRI compaction
-
input
-
-compact/0066-in.jsonld -
-
context
-
-compact/0066-context.jsonld -
-
expect
-
-compact/0066-out.jsonld -
-
-
-
-Test t0067 Reverse properties with blank nodes -
-
-
-
id
-
#t0067
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact reverse property whose values are unlabeled blank nodes
-
input
-
-compact/0067-in.jsonld -
-
context
-
-compact/0067-context.jsonld -
-
expect
-
-compact/0067-out.jsonld -
-
-
-
-Test t0068 Single value reverse properties -
-
-
-
id
-
#t0068
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Single values of reverse properties are compacted as values of ordinary properties
-
input
-
-compact/0068-in.jsonld -
-
context
-
-compact/0068-context.jsonld -
-
expect
-
-compact/0068-out.jsonld -
-
-
-
-Test t0069 Single value reverse properties with @set -
-
-
-
id
-
#t0069
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Single values are kept in array form for reverse properties if the container is to @set
-
input
-
-compact/0069-in.jsonld -
-
context
-
-compact/0069-context.jsonld -
-
expect
-
-compact/0069-out.jsonld -
-
-
-
-Test t0070 compactArrays option -
-
-
-
id
-
#t0070
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Setting compactArrays to false causes single element arrays to be retained
-
input
-
-compact/0070-in.jsonld -
-
context
-
-compact/0070-context.jsonld -
-
expect
-
-compact/0070-out.jsonld -
-
Options
-
-
-
compactArrays
-
false
-
-
-
-
-
-Test t0071 Input has multiple @contexts, output has one -
-
-
-
id
-
#t0071
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Expanding input with multiple @contexts and compacting with just one doesn't output undefined properties
-
input
-
-compact/0071-in.jsonld -
-
context
-
-compact/0071-context.jsonld -
-
expect
-
-compact/0071-out.jsonld -
-
-
-
-Test t0072 Default language and unmapped properties -
-
-
-
id
-
#t0072
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure that the default language is handled correctly for unmapped properties
-
input
-
-compact/0072-in.jsonld -
-
context
-
-compact/0072-context.jsonld -
-
expect
-
-compact/0072-out.jsonld -
-
-
-
-Test t0073 Mapped @id and @type -
-
-
-
id
-
#t0073
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure that compaction works with mapped @id and @type
-
input
-
-compact/0073-in.jsonld -
-
context
-
-compact/0073-context.jsonld -
-
expect
-
-compact/0073-out.jsonld -
-
-
-
-Test t0074 Container as a list with type of @id -
-
-
-
id
-
#t0074
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure that compaction works for empty list when property has container declared as @list and type as @id
-
input
-
-compact/0074-in.jsonld -
-
context
-
-compact/0074-context.jsonld -
-
expect
-
-compact/0074-out.jsonld -
-
-
-
-Test t0075 Compact using relative fragment identifier -
-
-
-
id
-
#t0075
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting a relative round-trips
-
input
-
-compact/0075-in.jsonld -
-
context
-
-compact/0075-context.jsonld -
-
expect
-
-compact/0075-out.jsonld -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
base
-
http://example.org/
-
-
-
-
-
-Test t0076 Compacting IRI equivalent to base -
-
-
-
id
-
#t0076
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting IRI equivalent to base, uses last path segment of base ending in '/'
-
input
-
-compact/0076-in.jsonld -
-
context
-
-compact/0076-context.jsonld -
-
expect
-
-compact/0076-out.jsonld -
-
-
-
-Test t0077 Compact a @graph container -
-
-
-
id
-
#t0077
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a @graph container
-
input
-
-compact/0077-in.jsonld -
-
context
-
-compact/0077-context.jsonld -
-
expect
-
-compact/0077-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0078 Compact a [@graph, @set] container -
-
-
-
id
-
#t0078
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact with [@graph, @set]
-
input
-
-compact/0078-in.jsonld -
-
context
-
-compact/0078-context.jsonld -
-
expect
-
-compact/0078-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0079 Compact a @graph container having @index -
-
-
-
id
-
#t0079
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Verify that having both @graph and @index allows @graph container compaction
-
input
-
-compact/0079-in.jsonld -
-
context
-
-compact/0079-context.jsonld -
-
expect
-
-compact/0079-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0080 Do not compact a graph having @id with a term having an @graph container -
-
-
-
id
-
#t0080
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Graph compaction works only on simple graphs
-
input
-
-compact/0080-in.jsonld -
-
context
-
-compact/0080-context.jsonld -
-
expect
-
-compact/0080-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0081 Compact a [@graph, @index] container -
-
-
-
id
-
#t0081
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a @graph container with @index
-
input
-
-compact/0081-in.jsonld -
-
context
-
-compact/0081-context.jsonld -
-
expect
-
-compact/0081-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0082 Compact a [@graph, @index, @set] container -
-
-
-
id
-
#t0082
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a @graph container with @index and @set
-
input
-
-compact/0082-in.jsonld -
-
context
-
-compact/0082-context.jsonld -
-
expect
-
-compact/0082-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0083 [@graph, @index] does not compact graph with @id -
-
-
-
id
-
#t0083
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Graph compaction with @graph and @index works only on simple graphs
-
input
-
-compact/0083-in.jsonld -
-
context
-
-compact/0083-context.jsonld -
-
expect
-
-compact/0083-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0084 Compact a simple graph with a [@graph, @id] container -
-
-
-
id
-
#t0084
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a simple graph using a @graph container with @id
-
input
-
-compact/0084-in.jsonld -
-
context
-
-compact/0084-context.jsonld -
-
expect
-
-compact/0084-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0085 Compact a named graph with a [@graph, @id] container -
-
-
-
id
-
#t0085
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a named graph using a @graph container with @id
-
input
-
-compact/0085-in.jsonld -
-
context
-
-compact/0085-context.jsonld -
-
expect
-
-compact/0085-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0086 Compact a simple graph with a [@graph, @id, @set] container -
-
-
-
id
-
#t0086
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a simple graph using a @graph container with @id and @set
-
input
-
-compact/0086-in.jsonld -
-
context
-
-compact/0086-context.jsonld -
-
expect
-
-compact/0086-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0087 Compact a named graph with a [@graph, @id, @set] container -
-
-
-
id
-
#t0087
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a named graph using a @graph container with @id and @set
-
input
-
-compact/0087-in.jsonld -
-
context
-
-compact/0087-context.jsonld -
-
expect
-
-compact/0087-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0088 Compact a graph with @index using a [@graph, @id] container -
-
-
-
id
-
#t0088
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact a @graph container with @id and @set, discarding an @index value
-
input
-
-compact/0088-in.jsonld -
-
context
-
-compact/0088-context.jsonld -
-
expect
-
-compact/0088-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0089 Language map term selection with complications -
-
-
-
id
-
#t0089
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Test appropriate property use given language maps with @vocab, a default language, no language, and competing terms
-
input
-
-compact/0089-in.jsonld -
-
context
-
-compact/0089-context.jsonld -
-
expect
-
-compact/0089-out.jsonld -
-
-
-
-Test t0090 Compact input with @graph container to output without @graph container -
-
-
-
id
-
#t0090
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0090-in.jsonld -
-
context
-
-compact/0090-context.jsonld -
-
expect
-
-compact/0090-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0091 Compact input with @graph container to output without @graph container with compactArrays unset -
-
-
-
id
-
#t0091
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output with compactArrays unset
-
input
-
-compact/0091-in.jsonld -
-
context
-
-compact/0091-context.jsonld -
-
expect
-
-compact/0091-out.jsonld -
-
Options
-
-
-
compactArrays
-
false
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0092 Compact input with [@graph, @set] container to output without [@graph, @set] container -
-
-
-
id
-
#t0092
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0092-in.jsonld -
-
context
-
-compact/0092-context.jsonld -
-
expect
-
-compact/0092-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0093 Compact input with [@graph, @set] container to output without [@graph, @set] container with compactArrays unset -
-
-
-
id
-
#t0093
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output with compactArrays unset
-
input
-
-compact/0093-in.jsonld -
-
context
-
-compact/0093-context.jsonld -
-
expect
-
-compact/0093-out.jsonld -
-
Options
-
-
-
compactArrays
-
false
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0094 Compact input with [@graph, @set] container to output without [@graph, @set] container -
-
-
-
id
-
#t0094
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0094-in.jsonld -
-
context
-
-compact/0094-context.jsonld -
-
expect
-
-compact/0094-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0095 Relative propererty IRIs with @vocab: '' -
-
-
-
id
-
#t0095
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Complex use cases for relative IRI compaction or properties
-
input
-
-compact/0095-in.jsonld -
-
context
-
-compact/0095-context.jsonld -
-
expect
-
-compact/0095-out.jsonld -
-
-
-
-Test t0096 Compact @graph container (multiple graphs) -
-
-
-
id
-
#t0096
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0096-in.jsonld -
-
context
-
-compact/0096-context.jsonld -
-
expect
-
-compact/0096-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0097 Compact [@graph, @set] container (multiple graphs) -
-
-
-
id
-
#t0097
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0097-in.jsonld -
-
context
-
-compact/0097-context.jsonld -
-
expect
-
-compact/0097-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0098 Compact [@graph, @index] container (multiple indexed objects) -
-
-
-
id
-
#t0098
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0098-in.jsonld -
-
context
-
-compact/0098-context.jsonld -
-
expect
-
-compact/0098-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0099 Compact [@graph, @index, @set] container (multiple indexed objects) -
-
-
-
id
-
#t0099
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0099-in.jsonld -
-
context
-
-compact/0099-context.jsonld -
-
expect
-
-compact/0099-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0100 Compact [@graph, @id] container (multiple indexed objects) -
-
-
-
id
-
#t0100
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0100-in.jsonld -
-
context
-
-compact/0100-context.jsonld -
-
expect
-
-compact/0100-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0101 Compact [@graph, @id, @set] container (multiple indexed objects) -
-
-
-
id
-
#t0101
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0101-in.jsonld -
-
context
-
-compact/0101-context.jsonld -
-
expect
-
-compact/0101-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0102 Compact [@graph, @index] container (multiple indexes and objects) -
-
-
-
id
-
#t0102
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0102-in.jsonld -
-
context
-
-compact/0102-context.jsonld -
-
expect
-
-compact/0102-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0103 Compact [@graph, @id] container (multiple ids and objects) -
-
-
-
id
-
#t0103
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensure @graph appears properly in output
-
input
-
-compact/0103-in.jsonld -
-
context
-
-compact/0103-context.jsonld -
-
expect
-
-compact/0103-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0104 Compact @type with @container: @set -
-
-
-
id
-
#t0104
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensures that a single @type value is represented as an array
-
input
-
-compact/0104-in.jsonld -
-
context
-
-compact/0104-context.jsonld -
-
expect
-
-compact/0104-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0105 Compact @type with @container: @set using an alias of @type -
-
-
-
id
-
#t0105
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensures that a single @type value is represented as an array
-
input
-
-compact/0105-in.jsonld -
-
context
-
-compact/0105-context.jsonld -
-
expect
-
-compact/0105-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0106 Do not compact @type with @container: @set to an array using an alias of @type -
-
-
-
id
-
#t0106
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Ensures that a single @type value is not represented as an array in 1.0
-
input
-
-compact/0106-in.jsonld -
-
context
-
-compact/0106-context.jsonld -
-
expect
-
-compact/0106-out.jsonld -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0107 Relative propererty IRIs with @vocab: '' -
-
-
-
id
-
#t0107
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Complex use cases for relative IRI compaction or properties
-
input
-
-compact/0107-in.jsonld -
-
context
-
-compact/0107-context.jsonld -
-
expect
-
-compact/0107-out.jsonld -
-
-
-
-Test t0108 context with JavaScript Object property names -
-
-
-
id
-
#t0108
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact with context including JavaScript Object property names
-
input
-
-compact/0108-in.jsonld -
-
context
-
-compact/0108-context.jsonld -
-
expect
-
-compact/0108-out.jsonld -
-
-
-
-Test t0109 Compact @graph container (multiple objects) -
-
-
-
id
-
#t0109
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Multiple objects in a simple graph with a graph container need to use @included
-
input
-
-compact/0109-in.jsonld -
-
context
-
-compact/0109-context.jsonld -
-
expect
-
-compact/0109-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0110 Compact [@graph, @set] container (multiple objects) -
-
-
-
id
-
#t0110
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Multiple objects in a simple graph with a graph container need to use @included
-
input
-
-compact/0110-in.jsonld -
-
context
-
-compact/0110-context.jsonld -
-
expect
-
-compact/0110-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0111 Keyword-like relative IRIs -
-
-
-
id
-
#t0111
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Relative IRIs must not have the form a of keyword
-
input
-
-compact/0111-in.jsonld -
-
context
-
-compact/0111-context.jsonld -
-
expect
-
-compact/0111-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0112 Compact property index using Compact IRI index -
-
-
-
id
-
#t0112
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
With @container: @index and @index a compact IRI, ensure round-tripping of compacted representation
-
input
-
-compact/0112-in.jsonld -
-
context
-
-compact/0112-context.jsonld -
-
expect
-
-compact/0112-out.jsonld -
-
-
-
-Test t0113 Compact property index using Absolute IRI index -
-
-
-
id
-
#t0113
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
With @container: @index and @index an absolute IRI, ensure round-tripping of compacted representation
-
input
-
-compact/0113-in.jsonld -
-
context
-
-compact/0113-context.jsonld -
-
expect
-
-compact/0113-out.jsonld -
-
-
-
-Test t0114 Reverse term with property based indexed container -
-
-
-
id
-
#t0114
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using a reverse term with @container indexed on a property (round-trip test of expand#t0131)
-
input
-
-compact/0114-in.jsonld -
-
context
-
-compact/0114-context.jsonld -
-
expect
-
-compact/0114-out.jsonld -
-
Options
-
-
-
base
-
https://example.org/
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc001 adding new term -
-
-
-
id
-
#tc001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using a scoped context uses term scope for selecting proper term
-
input
-
-compact/c001-in.jsonld -
-
context
-
-compact/c001-context.jsonld -
-
expect
-
-compact/c001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc002 overriding a term -
-
-
-
id
-
#tc002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using a scoped context uses term scope for selecting proper term
-
input
-
-compact/c002-in.jsonld -
-
context
-
-compact/c002-context.jsonld -
-
expect
-
-compact/c002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc003 property and value with different terms mapping to the same expanded property -
-
-
-
id
-
#tc003
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using a scoped context uses term scope for selecting proper term
-
input
-
-compact/c003-in.jsonld -
-
context
-
-compact/c003-context.jsonld -
-
expect
-
-compact/c003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc004 deep @context affects nested nodes -
-
-
-
id
-
#tc004
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using a scoped context uses term scope for selecting proper term
-
input
-
-compact/c004-in.jsonld -
-
context
-
-compact/c004-context.jsonld -
-
expect
-
-compact/c004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc005 scoped context layers on intemediate contexts -
-
-
-
id
-
#tc005
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using a scoped context uses term scope for selecting proper term
-
input
-
-compact/c005-in.jsonld -
-
context
-
-compact/c005-context.jsonld -
-
expect
-
-compact/c005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc006 adding new term -
-
-
-
id
-
#tc006
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c006-in.jsonld -
-
context
-
-compact/c006-context.jsonld -
-
expect
-
-compact/c006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc007 overriding a term -
-
-
-
id
-
#tc007
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c007-in.jsonld -
-
context
-
-compact/c007-context.jsonld -
-
expect
-
-compact/c007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc008 alias of @type -
-
-
-
id
-
#tc008
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c008-in.jsonld -
-
context
-
-compact/c008-context.jsonld -
-
expect
-
-compact/c008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc009 deep @type-scoped @context does NOT affect nested nodes -
-
-
-
id
-
#tc009
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c009-in.jsonld -
-
context
-
-compact/c009-context.jsonld -
-
expect
-
-compact/c009-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc010 scoped context layers on intemediate contexts -
-
-
-
id
-
#tc010
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c010-in.jsonld -
-
context
-
-compact/c010-context.jsonld -
-
expect
-
-compact/c010-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc011 applies context for all values -
-
-
-
id
-
#tc011
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c011-in.jsonld -
-
context
-
-compact/c011-context.jsonld -
-
expect
-
-compact/c011-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc012 orders @type terms when applying scoped contexts -
-
-
-
id
-
#tc012
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c012-in.jsonld -
-
context
-
-compact/c012-context.jsonld -
-
expect
-
-compact/c012-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc013 deep property-term scoped @context in @type-scoped @context affects nested nodes -
-
-
-
id
-
#tc013
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/c013-in.jsonld -
-
context
-
-compact/c013-context.jsonld -
-
expect
-
-compact/c013-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc014 type-scoped context nullification -
-
-
-
id
-
#tc014
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Nullifying a type-scoped context continues to use the previous context when compacting @type.
-
input
-
-compact/c014-in.jsonld -
-
context
-
-compact/c014-context.jsonld -
-
expect
-
-compact/c014-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc015 type-scoped base -
-
-
-
id
-
#tc015
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped base
-
input
-
-compact/c015-in.jsonld -
-
context
-
-compact/c015-context.jsonld -
-
expect
-
-compact/c015-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc016 type-scoped vocab -
-
-
-
id
-
#tc016
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped vocab
-
input
-
-compact/c016-in.jsonld -
-
context
-
-compact/c016-context.jsonld -
-
expect
-
-compact/c016-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc017 multiple type-scoped contexts are properly reverted -
-
-
-
id
-
#tc017
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
multiple type-scoped contexts are property reverted
-
input
-
-compact/c017-in.jsonld -
-
context
-
-compact/c017-context.jsonld -
-
expect
-
-compact/c017-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc018 multiple type-scoped types resolved against previous context -
-
-
-
id
-
#tc018
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
multiple type-scoped types resolved against previous context
-
input
-
-compact/c018-in.jsonld -
-
context
-
-compact/c018-context.jsonld -
-
expect
-
-compact/c018-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc019 type-scoped context with multiple property scoped terms -
-
-
-
id
-
#tc019
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped context with multiple property scoped terms
-
input
-
-compact/c019-in.jsonld -
-
context
-
-compact/c019-context.jsonld -
-
expect
-
-compact/c019-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc020 type-scoped value -
-
-
-
id
-
#tc020
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped value
-
input
-
-compact/c020-in.jsonld -
-
context
-
-compact/c020-context.jsonld -
-
expect
-
-compact/c020-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc021 type-scoped value mix -
-
-
-
id
-
#tc021
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped value mix
-
input
-
-compact/c021-in.jsonld -
-
context
-
-compact/c021-context.jsonld -
-
expect
-
-compact/c021-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc022 type-scoped property-scoped contexts including @type:@vocab -
-
-
-
id
-
#tc022
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped property-scoped contexts including @type:@vocab
-
input
-
-compact/c022-in.jsonld -
-
context
-
-compact/c022-context.jsonld -
-
expect
-
-compact/c022-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc023 composed type-scoped property-scoped contexts including @type:@vocab -
-
-
-
id
-
#tc023
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
composed type-scoped property-scoped contexts including @type:@vocab
-
input
-
-compact/c023-in.jsonld -
-
context
-
-compact/c023-context.jsonld -
-
expect
-
-compact/c023-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc024 type-scoped + property-scoped + values evaluates against previous context -
-
-
-
id
-
#tc024
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped + property-scoped + values evaluates against previous context
-
input
-
-compact/c024-in.jsonld -
-
context
-
-compact/c024-context.jsonld -
-
expect
-
-compact/c024-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc025 type-scoped + graph container -
-
-
-
id
-
#tc025
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped + graph container
-
input
-
-compact/c025-in.jsonld -
-
context
-
-compact/c025-context.jsonld -
-
expect
-
-compact/c025-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc026 @propagate: true on type-scoped context -
-
-
-
id
-
#tc026
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
type-scoped context with @propagate: true survive node-objects
-
input
-
-compact/c026-in.jsonld -
-
context
-
-compact/c026-context.jsonld -
-
expect
-
-compact/c026-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc027 @propagate: false on property-scoped context -
-
-
-
id
-
#tc027
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
property-scoped context with @propagate: false do not survive node-objects
-
input
-
-compact/c027-in.jsonld -
-
context
-
-compact/c027-context.jsonld -
-
expect
-
-compact/c027-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc028 Empty-property scoped context does not affect term selection. -
-
-
-
id
-
#tc028
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Adding a minimal/empty property-scoped context should not affect the using terms defined in outer context.
-
input
-
-compact/c028-in.jsonld -
-
context
-
-compact/c028-context.jsonld -
-
expect
-
-compact/c028-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi01 term direction null -
-
-
-
id
-
#tdi01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Uses term with null direction when two terms conflict on direction.
-
input
-
-compact/di01-in.jsonld -
-
context
-
-compact/di01-context.jsonld -
-
expect
-
-compact/di01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi02 use alias of @direction -
-
-
-
id
-
#tdi02
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Use alias of @direction.
-
input
-
-compact/di02-in.jsonld -
-
context
-
-compact/di02-context.jsonld -
-
expect
-
-compact/di02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi03 term selection with lists and direction -
-
-
-
id
-
#tdi03
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Term selection includes values of @list.
-
input
-
-compact/di03-in.jsonld -
-
context
-
-compact/di03-context.jsonld -
-
expect
-
-compact/di03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi04 simple language map with term direction -
-
-
-
id
-
#tdi04
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-compact/di04-in.jsonld -
-
context
-
-compact/di04-context.jsonld -
-
expect
-
-compact/di04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi05 simple language map with overriding term direction -
-
-
-
id
-
#tdi05
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-compact/di05-in.jsonld -
-
context
-
-compact/di05-context.jsonld -
-
expect
-
-compact/di05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi06 simple language map with overriding null direction -
-
-
-
id
-
#tdi06
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-compact/di06-in.jsonld -
-
context
-
-compact/di06-context.jsonld -
-
expect
-
-compact/di06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi07 simple language map with mismatching term direction -
-
-
-
id
-
#tdi07
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-compact/di07-in.jsonld -
-
context
-
-compact/di07-context.jsonld -
-
expect
-
-compact/di07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te001 Compaction to list of lists -
-
-
-
id
-
#te001
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
Verifies that an exception is raised in Compaction when attempting to compact a list of lists
-
input
-
-compact/e001-in.jsonld -
-
context
-
-compact/e001-context.jsonld -
-
expect
-
-compaction to list of lists -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te002 Absolute IRI confused with Compact IRI -
-
-
-
id
-
#te002
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
Verifies that IRI compaction detects when the result is an absolute IRI with a scheme matching a term.
-
input
-
-compact/e002-in.jsonld -
-
context
-
-compact/e002-context.jsonld -
-
expect
-
-IRI confused with prefix -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten01 Nest term not defined -
-
-
-
id
-
#ten01
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
Transparent Nesting
-
input
-
-compact/en01-in.jsonld -
-
context
-
-compact/en01-context.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep05 processingMode json-ld-1.0 conflicts with @version: 1.1 -
-
-
-
id
-
#tep05
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
-
input
-
-compact/ep05-in.jsonld -
-
context
-
-compact/ep05-context.jsonld -
-
expect
-
-processing mode conflict -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep06 @version must be 1.1 -
-
-
-
id
-
#tep06
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
If @version is specified, it must be 1.1
-
input
-
-compact/ep06-in.jsonld -
-
context
-
-compact/ep06-context.jsonld -
-
expect
-
-invalid @version value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep07 @prefix is not allowed in 1.0 -
-
-
-
id
-
#tep07
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
@prefix is not allowed in a term definition 1.0
-
input
-
-compact/ep07-in.jsonld -
-
context
-
-compact/ep07-context.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep08 @prefix must be a boolean -
-
-
-
id
-
#tep08
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
@prefix must be a boolean in a term definition in 1.1
-
input
-
-compact/ep08-in.jsonld -
-
context
-
-compact/ep08-context.jsonld -
-
expect
-
-invalid @prefix value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep09 @prefix not allowed on compact IRI term -
-
-
-
id
-
#tep09
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
If processingMode is json-ld-1.0, or if term contains a colon (:), an invalid term definition has been detected and processing is aborted.
-
input
-
-compact/ep09-in.jsonld -
-
context
-
-compact/ep09-context.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep10 @nest is not allowed in 1.0 -
-
-
-
id
-
#tep10
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
@nest is not allowed in a term definitionin 1.0
-
input
-
-compact/ep10-in.jsonld -
-
context
-
-compact/ep10-context.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep11 @context is not allowed in 1.0 -
-
-
-
id
-
#tep11
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
@context is not allowed in a term definitionin 1.0
-
input
-
-compact/ep11-in.jsonld -
-
context
-
-compact/ep11-context.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep12 @container may not be an array in 1.0 -
-
-
-
id
-
#tep12
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
validate appropriate values of @container
-
input
-
-compact/ep12-in.jsonld -
-
context
-
-compact/ep12-context.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep13 @container may not be @id in 1.0 -
-
-
-
id
-
#tep13
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
validate appropriate values of @container
-
input
-
-compact/ep13-in.jsonld -
-
context
-
-compact/ep13-context.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep14 @container may not be @type in 1.0 -
-
-
-
id
-
#tep14
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
validate appropriate values of @container
-
input
-
-compact/ep14-in.jsonld -
-
context
-
-compact/ep14-context.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep15 @container may not be @graph in 1.0 -
-
-
-
id
-
#tep15
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
validate appropriate values of @container
-
input
-
-compact/ep15-in.jsonld -
-
context
-
-compact/ep15-context.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin01 Basic Included array -
-
-
-
id
-
#tin01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests included blocks.
-
input
-
-compact/in01-in.jsonld -
-
context
-
-compact/in01-context.jsonld -
-
expect
-
-compact/in01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin02 Basic Included object -
-
-
-
id
-
#tin02
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests included blocks.
-
input
-
-compact/in02-in.jsonld -
-
context
-
-compact/in02-context.jsonld -
-
expect
-
-compact/in02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin03 Multiple properties mapping to @included are folded together -
-
-
-
id
-
#tin03
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests included blocks.
-
input
-
-compact/in03-in.jsonld -
-
context
-
-compact/in03-context.jsonld -
-
expect
-
-compact/in03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin04 Included containing @included -
-
-
-
id
-
#tin04
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests included blocks.
-
input
-
-compact/in04-in.jsonld -
-
context
-
-compact/in04-context.jsonld -
-
expect
-
-compact/in04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin05 Property value with @included -
-
-
-
id
-
#tin05
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests included blocks.
-
input
-
-compact/in05-in.jsonld -
-
context
-
-compact/in05-context.jsonld -
-
expect
-
-compact/in05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs01 Compact JSON literal (boolean true) -
-
-
-
id
-
#tjs01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (boolean true).
-
input
-
-compact/js01-in.jsonld -
-
context
-
-compact/js01-context.jsonld -
-
expect
-
-compact/js01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs02 Compact JSON literal (boolean false) -
-
-
-
id
-
#tjs02
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (boolean false).
-
input
-
-compact/js02-in.jsonld -
-
context
-
-compact/js02-context.jsonld -
-
expect
-
-compact/js02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs03 Compact JSON literal (double) -
-
-
-
id
-
#tjs03
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (double).
-
input
-
-compact/js03-in.jsonld -
-
context
-
-compact/js03-context.jsonld -
-
expect
-
-compact/js03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs04 Compact JSON literal (double-zero) -
-
-
-
id
-
#tjs04
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (double-zero).
-
input
-
-compact/js04-in.jsonld -
-
context
-
-compact/js04-context.jsonld -
-
expect
-
-compact/js04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs05 Compact JSON literal (integer) -
-
-
-
id
-
#tjs05
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (integer).
-
input
-
-compact/js05-in.jsonld -
-
context
-
-compact/js05-context.jsonld -
-
expect
-
-compact/js05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs06 Compact JSON literal (object) -
-
-
-
id
-
#tjs06
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (object).
-
input
-
-compact/js06-in.jsonld -
-
context
-
-compact/js06-context.jsonld -
-
expect
-
-compact/js06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs07 Compact JSON literal (array) -
-
-
-
id
-
#tjs07
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (array).
-
input
-
-compact/js07-in.jsonld -
-
context
-
-compact/js07-context.jsonld -
-
expect
-
-compact/js07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs08 Compact already expanded JSON literal -
-
-
-
id
-
#tjs08
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting JSON literal does not expand terms inside json.
-
input
-
-compact/js08-in.jsonld -
-
context
-
-compact/js08-context.jsonld -
-
expect
-
-compact/js08-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs09 Compact already expanded JSON literal with aliased keys -
-
-
-
id
-
#tjs09
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting JSON literal in expanded form.
-
input
-
-compact/js09-in.jsonld -
-
context
-
-compact/js09-context.jsonld -
-
expect
-
-compact/js09-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs10 Compact JSON literal (string) -
-
-
-
id
-
#tjs10
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (string).
-
input
-
-compact/js10-in.jsonld -
-
context
-
-compact/js10-context.jsonld -
-
expect
-
-compact/js10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs11 Compact JSON literal (null) -
-
-
-
id
-
#tjs11
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Tests compacting property with @type @json to a JSON literal (null).
-
input
-
-compact/js11-in.jsonld -
-
context
-
-compact/js11-context.jsonld -
-
expect
-
-compact/js11-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tla01 most specific term matching in @list. -
-
-
-
id
-
#tla01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
The most specific term that matches all of the elements in the list, taking into account the default language, must be selected, without considering case of language.
-
input
-
-compact/la01-in.jsonld -
-
context
-
-compact/la01-context.jsonld -
-
expect
-
-compact/la01-out.jsonld -
-
-
-
-Test tli01 coerced @list containing an empty list -
-
-
-
id
-
#tli01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Lists of Lists
-
input
-
-compact/li01-in.jsonld -
-
context
-
-compact/li01-context.jsonld -
-
expect
-
-compact/li01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli02 coerced @list containing a list -
-
-
-
id
-
#tli02
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Lists of Lists
-
input
-
-compact/li02-in.jsonld -
-
context
-
-compact/li02-context.jsonld -
-
expect
-
-compact/li02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli03 coerced @list containing an deep list -
-
-
-
id
-
#tli03
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Lists of Lists
-
input
-
-compact/li03-in.jsonld -
-
context
-
-compact/li03-context.jsonld -
-
expect
-
-compact/li03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli04 coerced @list containing multiple lists -
-
-
-
id
-
#tli04
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Lists of Lists
-
input
-
-compact/li04-in.jsonld -
-
context
-
-compact/li04-context.jsonld -
-
expect
-
-compact/li04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli05 coerced @list containing mixed list values -
-
-
-
id
-
#tli05
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Lists of Lists
-
input
-
-compact/li05-in.jsonld -
-
context
-
-compact/li05-context.jsonld -
-
expect
-
-compact/li05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm001 Indexes to object not having an @id -
-
-
-
id
-
#tm001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @container: @id
-
input
-
-compact/m001-in.jsonld -
-
context
-
-compact/m001-context.jsonld -
-
expect
-
-compact/m001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm002 Indexes to object already having an @id -
-
-
-
id
-
#tm002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @container: @id
-
input
-
-compact/m002-in.jsonld -
-
context
-
-compact/m002-context.jsonld -
-
expect
-
-compact/m002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm003 Indexes to object not having an @type -
-
-
-
id
-
#tm003
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @container: @type
-
input
-
-compact/m003-in.jsonld -
-
context
-
-compact/m003-context.jsonld -
-
expect
-
-compact/m003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm004 Indexes to object already having an @type -
-
-
-
id
-
#tm004
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @container: @type
-
input
-
-compact/m004-in.jsonld -
-
context
-
-compact/m004-context.jsonld -
-
expect
-
-compact/m004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm005 Indexes to object using compact IRI @id -
-
-
-
id
-
#tm005
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @container: @id
-
input
-
-compact/m005-in.jsonld -
-
context
-
-compact/m005-context.jsonld -
-
expect
-
-compact/m005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm006 Indexes using compacted @type -
-
-
-
id
-
#tm006
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @container: @type
-
input
-
-compact/m006-in.jsonld -
-
context
-
-compact/m006-context.jsonld -
-
expect
-
-compact/m006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm007 When type is in a type map -
-
-
-
id
-
#tm007
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
scoped context on @type
-
input
-
-compact/m007-in.jsonld -
-
context
-
-compact/m007-context.jsonld -
-
expect
-
-compact/m007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm008 @index map with @none node definition -
-
-
-
id
-
#tm008
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @index
-
input
-
-compact/m008-in.jsonld -
-
context
-
-compact/m008-context.jsonld -
-
expect
-
-compact/m008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm009 @index map with @none value -
-
-
-
id
-
#tm009
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @index
-
input
-
-compact/m009-in.jsonld -
-
context
-
-compact/m009-context.jsonld -
-
expect
-
-compact/m009-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm010 @index map with @none value using alias of @none -
-
-
-
id
-
#tm010
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @index
-
input
-
-compact/m010-in.jsonld -
-
context
-
-compact/m010-context.jsonld -
-
expect
-
-compact/m010-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm011 @language map with no @language -
-
-
-
id
-
#tm011
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @language
-
input
-
-compact/m011-in.jsonld -
-
context
-
-compact/m011-context.jsonld -
-
expect
-
-compact/m011-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm012 language map with no @language using alias of @none -
-
-
-
id
-
#tm012
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @language
-
input
-
-compact/m012-in.jsonld -
-
context
-
-compact/m012-context.jsonld -
-
expect
-
-compact/m012-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm013 id map using @none -
-
-
-
id
-
#tm013
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @id
-
input
-
-compact/m013-in.jsonld -
-
context
-
-compact/m013-context.jsonld -
-
expect
-
-compact/m013-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm014 id map using @none with alias -
-
-
-
id
-
#tm014
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @id
-
input
-
-compact/m014-in.jsonld -
-
context
-
-compact/m014-context.jsonld -
-
expect
-
-compact/m014-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm015 type map using @none with alias -
-
-
-
id
-
#tm015
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @type
-
input
-
-compact/m015-in.jsonld -
-
context
-
-compact/m015-context.jsonld -
-
expect
-
-compact/m015-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm016 type map using @none with alias -
-
-
-
id
-
#tm016
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @type
-
input
-
-compact/m016-in.jsonld -
-
context
-
-compact/m016-context.jsonld -
-
expect
-
-compact/m016-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm017 graph index map using @none -
-
-
-
id
-
#tm017
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @graph and @index
-
input
-
-compact/m017-in.jsonld -
-
context
-
-compact/m017-context.jsonld -
-
expect
-
-compact/m017-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm018 graph id map using @none -
-
-
-
id
-
#tm018
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @graph and @id
-
input
-
-compact/m018-in.jsonld -
-
context
-
-compact/m018-context.jsonld -
-
expect
-
-compact/m018-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm019 graph id map using alias of @none -
-
-
-
id
-
#tm019
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @graph and @id
-
input
-
-compact/m019-in.jsonld -
-
context
-
-compact/m019-context.jsonld -
-
expect
-
-compact/m019-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm020 node reference compacts to string value of type map -
-
-
-
id
-
#tm020
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @type
-
input
-
-compact/m020-in.jsonld -
-
context
-
-compact/m020-context.jsonld -
-
expect
-
-compact/m020-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm021 node reference compacts to string value of type map with @type: @id -
-
-
-
id
-
#tm021
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @type
-
input
-
-compact/m021-in.jsonld -
-
context
-
-compact/m021-context.jsonld -
-
expect
-
-compact/m021-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm022 node reference compacts to string value of type map with @type: @vocab -
-
-
-
id
-
#tm022
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
index on @type
-
input
-
-compact/m022-in.jsonld -
-
context
-
-compact/m022-context.jsonld -
-
expect
-
-compact/m022-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn001 Indexes to @nest for property with @nest -
-
-
-
id
-
#tn001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n001-in.jsonld -
-
context
-
-compact/n001-context.jsonld -
-
expect
-
-compact/n001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn002 Indexes to @nest for all properties with @nest -
-
-
-
id
-
#tn002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n002-in.jsonld -
-
context
-
-compact/n002-context.jsonld -
-
expect
-
-compact/n002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn003 Nests using alias of @nest -
-
-
-
id
-
#tn003
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n003-in.jsonld -
-
context
-
-compact/n003-context.jsonld -
-
expect
-
-compact/n003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn004 Arrays of nested values -
-
-
-
id
-
#tn004
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n004-in.jsonld -
-
context
-
-compact/n004-context.jsonld -
-
expect
-
-compact/n004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn005 Nested @container: @list -
-
-
-
id
-
#tn005
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n005-in.jsonld -
-
context
-
-compact/n005-context.jsonld -
-
expect
-
-compact/n005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn006 Nested @container: @index -
-
-
-
id
-
#tn006
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n006-in.jsonld -
-
context
-
-compact/n006-context.jsonld -
-
expect
-
-compact/n006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn007 Nested @container: @language -
-
-
-
id
-
#tn007
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n007-in.jsonld -
-
context
-
-compact/n007-context.jsonld -
-
expect
-
-compact/n007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn008 Nested @container: @type -
-
-
-
id
-
#tn008
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n008-in.jsonld -
-
context
-
-compact/n008-context.jsonld -
-
expect
-
-compact/n008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn009 Nested @container: @id -
-
-
-
id
-
#tn009
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n009-in.jsonld -
-
context
-
-compact/n009-context.jsonld -
-
expect
-
-compact/n009-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn010 Multiple nest aliases -
-
-
-
id
-
#tn010
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n010-in.jsonld -
-
context
-
-compact/n010-context.jsonld -
-
expect
-
-compact/n010-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn011 Nests using alias of @nest (defined with @id) -
-
-
-
id
-
#tn011
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compaction using @nest
-
input
-
-compact/n011-in.jsonld -
-
context
-
-compact/n011-context.jsonld -
-
expect
-
-compact/n011-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp001 Compact IRI will not use an expanded term definition in 1.0 -
-
-
-
id
-
#tp001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Terms with an expanded term definition are not used for creating compact IRIs
-
input
-
-compact/p001-in.jsonld -
-
context
-
-compact/p001-context.jsonld -
-
expect
-
-compact/p001-out.jsonld -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp002 Compact IRI does not use expanded term definition in 1.1 -
-
-
-
id
-
#tp002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Terms with an expanded term definition are not used for creating compact IRIs
-
input
-
-compact/p002-in.jsonld -
-
context
-
-compact/p002-context.jsonld -
-
expect
-
-compact/p002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp003 Compact IRI does not use simple term that does not end with a gen-delim -
-
-
-
id
-
#tp003
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Terms not ending with a gen-delim are not used for creating compact IRIs
-
input
-
-compact/p003-in.jsonld -
-
context
-
-compact/p003-context.jsonld -
-
expect
-
-compact/p003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp004 Compact IRIs using simple terms ending with gen-delim -
-
-
-
id
-
#tp004
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
All simple terms ending with gen-delim are suitable for compaction
-
input
-
-compact/p004-in.jsonld -
-
context
-
-compact/p004-context.jsonld -
-
expect
-
-compact/p004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp005 Compact IRI uses term with definition including @prefix: true -
-
-
-
id
-
#tp005
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Expanded term definition may set prefix explicitly in 1.1
-
input
-
-compact/p005-in.jsonld -
-
context
-
-compact/p005-context.jsonld -
-
expect
-
-compact/p005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp006 Compact IRI uses term with definition including @prefix: true -
-
-
-
id
-
#tp006
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Expanded term definition may set prefix explicitly in 1.1
-
input
-
-compact/p006-in.jsonld -
-
context
-
-compact/p006-context.jsonld -
-
expect
-
-compact/p006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp007 Compact IRI not used as prefix -
-
-
-
id
-
#tp007
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Terms including a colon are excluded from being used as a prefix
-
input
-
-compact/p007-in.jsonld -
-
context
-
-compact/p007-context.jsonld -
-
expect
-
-compact/p007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp008 Compact IRI does not use term with definition including @prefix: false -
-
-
-
id
-
#tp008
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Expanded term definition may set prefix explicitly in 1.1
-
input
-
-compact/p008-in.jsonld -
-
context
-
-compact/p008-context.jsonld -
-
expect
-
-compact/p008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi01 property-valued index indexes property value, instead of property (value) -
-
-
-
id
-
#tpi01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting property-valued indexes.
-
input
-
-compact/pi01-in.jsonld -
-
context
-
-compact/pi01-context.jsonld -
-
expect
-
-compact/pi01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi02 property-valued index indexes property value, instead of property (multiple values) -
-
-
-
id
-
#tpi02
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting property-valued indexes.
-
input
-
-compact/pi02-in.jsonld -
-
context
-
-compact/pi02-context.jsonld -
-
expect
-
-compact/pi02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi03 property-valued index indexes property value, instead of property (node) -
-
-
-
id
-
#tpi03
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting property-valued indexes.
-
input
-
-compact/pi03-in.jsonld -
-
context
-
-compact/pi03-context.jsonld -
-
expect
-
-compact/pi03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi04 property-valued index indexes property value, instead of property (multiple nodes) -
-
-
-
id
-
#tpi04
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting property-valued indexes.
-
input
-
-compact/pi04-in.jsonld -
-
context
-
-compact/pi04-context.jsonld -
-
expect
-
-compact/pi04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi05 property-valued index indexes using @none if no property value exists -
-
-
-
id
-
#tpi05
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting property-valued indexes.
-
input
-
-compact/pi05-in.jsonld -
-
context
-
-compact/pi05-context.jsonld -
-
expect
-
-compact/pi05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi06 property-valued index indexes using @none if no property value does not compact to string -
-
-
-
id
-
#tpi06
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compacting property-valued indexes.
-
input
-
-compact/pi06-in.jsonld -
-
context
-
-compact/pi06-context.jsonld -
-
expect
-
-compact/pi06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr01 Check illegal clearing of context with protected terms -
-
-
-
id
-
#tpr01
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
Check error when clearing a context with protected terms.
-
input
-
-compact/pr01-in.jsonld -
-
context
-
-compact/pr01-context.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr02 Check illegal overriding of protected term -
-
-
-
id
-
#tpr02
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
Check error when overriding a protected term.
-
input
-
-compact/pr02-in.jsonld -
-
context
-
-compact/pr02-context.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr03 Check illegal overriding of protected term from type-scoped context -
-
-
-
id
-
#tpr03
-
Type
-
jld:NegativeEvaluationTest, jld:CompactTest
-
Purpose
-
Check error when overriding a protected term from type-scoped context.
-
input
-
-compact/pr03-in.jsonld -
-
context
-
-compact/pr03-context.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr04 Check legal overriding of protected term from property-scoped context -
-
-
-
id
-
#tpr04
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Check overriding a protected term from property-scoped context.
-
input
-
-compact/pr04-in.jsonld -
-
context
-
-compact/pr04-context.jsonld -
-
expect
-
-compact/pr04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr05 Check legal overriding of type-scoped protected term from nested node -
-
-
-
id
-
#tpr05
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Check legal overriding of type-scoped protected term from nested node.
-
input
-
-compact/pr05-in.jsonld -
-
context
-
-compact/pr05-context.jsonld -
-
expect
-
-compact/pr05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tr001 Expands and compacts to document base by default -
-
-
-
id
-
#tr001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
Compact IRI attempts to compact document-relative IRIs
-
input
-
-compact/r001-in.jsonld -
-
context
-
-compact/r001-context.jsonld -
-
expect
-
-compact/r001-out.jsonld -
-
Options
-
-
-
base
-
http://example.org/
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tr002 Expands and does not compact to document base with compactToRelative false -
-
-
-
id
-
#tr002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
With compactToRelative option set to false, IRIs which could be made relative to the document base are not made relative.
-
input
-
-compact/r002-in.jsonld -
-
context
-
-compact/r002-context.jsonld -
-
expect
-
-compact/r002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
compactToRelative
-
false
-
-
-
-
-
-Test ts001 @context with single array values -
-
-
-
id
-
#ts001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@context values may be in an array
-
input
-
-compact/s001-in.jsonld -
-
context
-
-compact/s001-context.jsonld -
-
expect
-
-compact/s001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ts002 @context with array including @set uses array values -
-
-
-
id
-
#ts002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@context values may include @set along with another compatible value
-
input
-
-compact/s002-in.jsonld -
-
context
-
-compact/s002-context.jsonld -
-
expect
-
-compact/s002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ttn01 @type: @none does not compact values -
-
-
-
id
-
#ttn01
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@type: @none does not compact values.
-
input
-
-compact/tn01-in.jsonld -
-
context
-
-compact/tn01-context.jsonld -
-
expect
-
-compact/tn01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ttn02 @type: @none does not use arrays by default -
-
-
-
id
-
#ttn02
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@type: @none honors @container.
-
input
-
-compact/tn02-in.jsonld -
-
context
-
-compact/tn02-context.jsonld -
-
expect
-
-compact/tn02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ttn03 @type: @none uses arrays with @container: @set -
-
-
-
id
-
#ttn03
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest
-
Purpose
-
@type: @none honors @container.
-
input
-
-compact/tn03-in.jsonld -
-
context
-
-compact/tn03-context.jsonld -
-
expect
-
-compact/tn03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-
- - + + + + Compaction + + + + + +

+ + W3C + +

+

Compaction

+

These tests implement the requirements for the JSON-LD Compaction Algorithm.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + compact-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

compact tests have input, expected and context documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output. Additionally, if the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test t0001 drop free-floating nodes +
+
+
+
id
+
#t0001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Unreferenced nodes not containing properties are dropped
+
input
+
+ compact/0001-in.jsonld +
+
context
+
+ compact/0001-context.jsonld +
+
expect
+
+ compact/0001-out.jsonld +
+
+
+
+ Test t0002 basic +
+
+
+
id
+
#t0002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Basic term and value compaction
+
input
+
+ compact/0002-in.jsonld +
+
context
+
+ compact/0002-context.jsonld +
+
expect
+
+ compact/0002-out.jsonld +
+
+
+
+ Test t0003 drop null and unmapped properties +
+
+
+
id
+
#t0003
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Properties mapped to null or which are never mapped are dropped
+
input
+
+ compact/0003-in.jsonld +
+
context
+
+ compact/0003-context.jsonld +
+
expect
+
+ compact/0003-out.jsonld +
+
+
+
+ Test t0004 optimize @set, keep empty arrays +
+
+
+
id
+
#t0004
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Containers mapped to @set keep empty arrays
+
input
+
+ compact/0004-in.jsonld +
+
context
+
+ compact/0004-context.jsonld +
+
expect
+
+ compact/0004-out.jsonld +
+
+
+
+ Test t0005 @type and prefix compaction +
+
+
+
id
+
#t0005
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact uses prefixes in @type
+
input
+
+ compact/0005-in.jsonld +
+
context
+
+ compact/0005-context.jsonld +
+
expect
+
+ compact/0005-out.jsonld +
+
+
+
+ Test t0006 keep expanded object format if @type doesn't match +
+
+
+
id
+
#t0006
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Values not matching a coerced @type remain in expanded form
+
input
+
+ compact/0006-in.jsonld +
+
context
+
+ compact/0006-context.jsonld +
+
expect
+
+ compact/0006-out.jsonld +
+
+
+
+ Test t0007 add context +
+
+
+
id
+
#t0007
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
External context is added to the compacted document
+
input
+
+ compact/0007-in.jsonld +
+
context
+
+ compact/0007-context.jsonld +
+
expect
+
+ compact/0007-out.jsonld +
+
+
+
+ Test t0008 alias keywords +
+
+
+
id
+
#t0008
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Aliases for keywords are used in compacted document
+
input
+
+ compact/0008-in.jsonld +
+
context
+
+ compact/0008-context.jsonld +
+
expect
+
+ compact/0008-out.jsonld +
+
+
+
+ Test t0009 compact @id +
+
+
+
id
+
#t0009
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Value with @id is compacted to string if property cast to @id
+
input
+
+ compact/0009-in.jsonld +
+
context
+
+ compact/0009-context.jsonld +
+
expect
+
+ compact/0009-out.jsonld +
+
+
+
+ Test t0010 array to @graph +
+
+
+
id
+
#t0010
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
An array of objects is serialized with @graph
+
input
+
+ compact/0010-in.jsonld +
+
context
+
+ compact/0010-context.jsonld +
+
expect
+
+ compact/0010-out.jsonld +
+
+
+
+ Test t0011 compact date +
+
+
+
id
+
#t0011
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Expanded value with type xsd:dateTime is represented as string with type coercion
+
input
+
+ compact/0011-in.jsonld +
+
context
+
+ compact/0011-context.jsonld +
+
expect
+
+ compact/0011-out.jsonld +
+
+
+
+ Test t0012 native types +
+
+
+
id
+
#t0012
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Native values are unmodified during compaction
+
input
+
+ compact/0012-in.jsonld +
+
context
+
+ compact/0012-context.jsonld +
+
expect
+
+ compact/0012-out.jsonld +
+
+
+
+ Test t0013 @value with @language +
+
+
+
id
+
#t0013
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Values with @language remain in expanded form by default
+
input
+
+ compact/0013-in.jsonld +
+
context
+
+ compact/0013-context.jsonld +
+
expect
+
+ compact/0013-out.jsonld +
+
+
+
+ Test t0014 array to aliased @graph +
+
+
+
id
+
#t0014
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Aliasing @graph uses alias in compacted document
+
input
+
+ compact/0014-in.jsonld +
+
context
+
+ compact/0014-context.jsonld +
+
expect
+
+ compact/0014-out.jsonld +
+
+
+
+ Test t0015 best match compaction +
+
+
+
id
+
#t0015
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Property with values of different types use most appropriate term when compacting
+
input
+
+ compact/0015-in.jsonld +
+
context
+
+ compact/0015-context.jsonld +
+
expect
+
+ compact/0015-out.jsonld +
+
+
+
+ Test t0016 recursive named graphs +
+
+
+
id
+
#t0016
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting a document with multiple embedded uses of @graph
+
input
+
+ compact/0016-in.jsonld +
+
context
+
+ compact/0016-context.jsonld +
+
expect
+
+ compact/0016-out.jsonld +
+
+
+
+ Test t0017 A term mapping to null removes the mapping +
+
+
+
id
+
#t0017
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Mapping a term to null causes the property and its values to be removed from the compacted document
+
input
+
+ compact/0017-in.jsonld +
+
context
+
+ compact/0017-context.jsonld +
+
expect
+
+ compact/0017-out.jsonld +
+
+
+
+ Test t0018 best matching term for lists +
+
+
+
id
+
#t0018
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Lists with values of different types use best term in compacted document
+
input
+
+ compact/0018-in.jsonld +
+
context
+
+ compact/0018-context.jsonld +
+
expect
+
+ compact/0018-out.jsonld +
+
+
+
+ Test t0019 Keep duplicate values in @list and @set +
+
+
+
id
+
#t0019
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Duplicate values in @list or @set are retained in compacted document
+
input
+
+ compact/0019-in.jsonld +
+
context
+
+ compact/0019-context.jsonld +
+
expect
+
+ compact/0019-out.jsonld +
+
+
+
+ Test t0020 Compact @id that is a property IRI when @container is @list +
+
+
+
id
+
#t0020
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
A term with @container: @list is also used as the value of an @id, if appropriate
+
input
+
+ compact/0020-in.jsonld +
+
context
+
+ compact/0020-context.jsonld +
+
expect
+
+ compact/0020-out.jsonld +
+
+
+
+ Test t0021 Compact properties and types using @vocab +
+
+
+
id
+
#t0021
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@vocab is used to create relative properties and types if no other term matches
+
input
+
+ compact/0021-in.jsonld +
+
context
+
+ compact/0021-context.jsonld +
+
expect
+
+ compact/0021-out.jsonld +
+
+
+
+ Test t0022 @list compaction of nested properties +
+
+
+
id
+
#t0022
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact nested properties using @list containers
+
input
+
+ compact/0022-in.jsonld +
+
context
+
+ compact/0022-context.jsonld +
+
expect
+
+ compact/0022-out.jsonld +
+
+
+
+ Test t0023 prefer @vocab over compacted IRIs +
+
+
+
id
+
#t0023
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@vocab takes precedence over prefixes - even if the result is longer
+
input
+
+ compact/0023-in.jsonld +
+
context
+
+ compact/0023-context.jsonld +
+
expect
+
+ compact/0023-out.jsonld +
+
+
+
+ Test t0024 most specific term matching in @list. +
+
+
+
id
+
#t0024
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
The most specific term that matches all of the elements in the list, taking into account the default language, must be selected.
+
input
+
+ compact/0024-in.jsonld +
+
context
+
+ compact/0024-context.jsonld +
+
expect
+
+ compact/0024-out.jsonld +
+
+
+
+ Test t0025 Language maps +
+
+
+
id
+
#t0025
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Multiple values with different languages use language maps if property has @container: @language
+
input
+
+ compact/0025-in.jsonld +
+
context
+
+ compact/0025-context.jsonld +
+
expect
+
+ compact/0025-out.jsonld +
+
+
+
+ Test t0026 Language map term selection with complications +
+
+
+
id
+
#t0026
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Test appropriate property use given language maps with @vocab, a default language, and a competing term
+
input
+
+ compact/0026-in.jsonld +
+
context
+
+ compact/0026-context.jsonld +
+
expect
+
+ compact/0026-out.jsonld +
+
+
+
+ Test t0027 @container: @set with multiple values +
+
+
+
id
+
#t0027
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Fall back to term with @set container if term with language map is defined
+
input
+
+ compact/0027-in.jsonld +
+
context
+
+ compact/0027-context.jsonld +
+
expect
+
+ compact/0027-out.jsonld +
+
+
+
+ Test t0028 Alias keywords and use @vocab +
+
+
+
id
+
#t0028
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Combination of keyword aliases and @vocab
+
input
+
+ compact/0028-in.jsonld +
+
context
+
+ compact/0028-context.jsonld +
+
expect
+
+ compact/0028-out.jsonld +
+
+
+
+ Test t0029 Simple @index map +
+
+
+
id
+
#t0029
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Output uses index mapping if term is defined with @container: @index
+
input
+
+ compact/0029-in.jsonld +
+
context
+
+ compact/0029-context.jsonld +
+
expect
+
+ compact/0029-out.jsonld +
+
+
+
+ Test t0030 non-matching @container: @index +
+
+
+
id
+
#t0030
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Preserve @index tags if not compacted to an index map
+
input
+
+ compact/0030-in.jsonld +
+
context
+
+ compact/0030-context.jsonld +
+
expect
+
+ compact/0030-out.jsonld +
+
+
+
+ Test t0031 Compact @reverse +
+
+
+
id
+
#t0031
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact traverses through @reverse
+
input
+
+ compact/0031-in.jsonld +
+
context
+
+ compact/0031-context.jsonld +
+
expect
+
+ compact/0031-out.jsonld +
+
+
+
+ Test t0032 Compact keys in reverse-maps +
+
+
+
id
+
#t0032
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact traverses through @reverse
+
input
+
+ compact/0032-in.jsonld +
+
context
+
+ compact/0032-context.jsonld +
+
expect
+
+ compact/0032-out.jsonld +
+
+
+
+ Test t0033 Compact reverse-map to reverse property +
+
+
+
id
+
#t0033
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
A reverse map is replaced with a matching property defined with @reverse
+
input
+
+ compact/0033-in.jsonld +
+
context
+
+ compact/0033-context.jsonld +
+
expect
+
+ compact/0033-out.jsonld +
+
+
+
+ Test t0034 Skip property with @reverse if no match +
+
+
+
id
+
#t0034
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Do not use reverse property if no other property matches as normal property
+
input
+
+ compact/0034-in.jsonld +
+
context
+
+ compact/0034-context.jsonld +
+
expect
+
+ compact/0034-out.jsonld +
+
+
+
+ Test t0035 Compact @reverse node references using strings +
+
+
+
id
+
#t0035
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact node references to strings for reverse properties using @type: @id
+
input
+
+ compact/0035-in.jsonld +
+
context
+
+ compact/0035-context.jsonld +
+
expect
+
+ compact/0035-out.jsonld +
+
+
+
+ Test t0036 Compact reverse properties using index containers +
+
+
+
id
+
#t0036
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact using both reverse properties and index containers
+
input
+
+ compact/0036-in.jsonld +
+
context
+
+ compact/0036-context.jsonld +
+
expect
+
+ compact/0036-out.jsonld +
+
+
+
+ Test t0037 Compact keys in @reverse using @vocab +
+
+
+
id
+
#t0037
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact keys in @reverse using @vocab
+
input
+
+ compact/0037-in.jsonld +
+
context
+
+ compact/0037-context.jsonld +
+
expect
+
+ compact/0037-out.jsonld +
+
+
+
+ Test t0038 Index map round-tripping +
+
+
+
id
+
#t0038
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Complex round-tripping use case from Drupal
+
input
+
+ compact/0038-in.jsonld +
+
context
+
+ compact/0038-context.jsonld +
+
expect
+
+ compact/0038-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ta038 Index map round-tripping +
+
+
+
id
+
#ta038
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Complex round-tripping use case from Drupal
+
input
+
+ compact/0038-in.jsonld +
+
context
+
+ compact/0038-context.jsonld +
+
expect
+
+ compact/0038a-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0039 @graph is array +
+
+
+
id
+
#t0039
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Value of @graph is always an array
+
input
+
+ compact/0039-in.jsonld +
+
context
+
+ compact/0039-context.jsonld +
+
expect
+
+ compact/0039-out.jsonld +
+
+
+
+ Test t0040 @list is array +
+
+
+
id
+
#t0040
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure that value of @list is always an array
+
input
+
+ compact/0040-in.jsonld +
+
context
+
+ compact/0040-context.jsonld +
+
expect
+
+ compact/0040-out.jsonld +
+
+
+
+ Test t0041 index rejects term having @list +
+
+
+
id
+
#t0041
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
If an index is present, a term having an @list container is not selected
+
input
+
+ compact/0041-in.jsonld +
+
context
+
+ compact/0041-context.jsonld +
+
expect
+
+ compact/0041-out.jsonld +
+
+
+
+ Test t0042 @list keyword aliasing +
+
+
+
id
+
#t0042
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Make sure keyword aliasing works if a list can't be compacted
+
input
+
+ compact/0042-in.jsonld +
+
context
+
+ compact/0042-context.jsonld +
+
expect
+
+ compact/0042-out.jsonld +
+
+
+
+ Test t0043 select term over @vocab +
+
+
+
id
+
#t0043
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure that @vocab compaction isn't used if the result collides with a term
+
input
+
+ compact/0043-in.jsonld +
+
context
+
+ compact/0043-context.jsonld +
+
expect
+
+ compact/0043-out.jsonld +
+
+
+
+ Test t0044 @type: @vocab in reverse-map +
+
+
+
id
+
#t0044
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Prefer properties with @type: @vocab in reverse-maps if the value can be compacted to a term
+
input
+
+ compact/0044-in.jsonld +
+
context
+
+ compact/0044-context.jsonld +
+
expect
+
+ compact/0044-out.jsonld +
+
+
+
+ Test t0045 @id value uses relative IRI, not term +
+
+
+
id
+
#t0045
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Values of @id are transformed to relative IRIs, terms are ignored
+
input
+
+ compact/0045-in.jsonld +
+
context
+
+ compact/0045-context.jsonld +
+
expect
+
+ compact/0045-out.jsonld +
+
+
+
+ Test t0046 multiple objects without @context use @graph +
+
+
+
id
+
#t0046
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Wrap top-level array into @graph even if no context is passed
+
input
+
+ compact/0046-in.jsonld +
+
context
+
+ compact/0046-context.jsonld +
+
expect
+
+ compact/0046-out.jsonld +
+
+
+
+ Test t0047 Round-trip relative URLs +
+
+
+
id
+
#t0047
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Relative URLs remain relative after compaction
+
input
+
+ compact/0047-in.jsonld +
+
context
+
+ compact/0047-context.jsonld +
+
expect
+
+ compact/0047-out.jsonld +
+
+
+
+ Test t0048 term with @language: null +
+
+
+
id
+
#t0048
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Prefer terms with a language mapping set to null over terms without language-mapping for non-strings
+
input
+
+ compact/0048-in.jsonld +
+
context
+
+ compact/0048-context.jsonld +
+
expect
+
+ compact/0048-out.jsonld +
+
+
+
+ Test t0049 Round tripping of lists that contain just IRIs +
+
+
+
id
+
#t0049
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
List compaction without @container: @list still uses strings if @type: @id
+
input
+
+ compact/0049-in.jsonld +
+
context
+
+ compact/0049-context.jsonld +
+
expect
+
+ compact/0049-out.jsonld +
+
+
+
+ Test t0050 Reverse properties require @type: @id to use string values +
+
+
+
id
+
#t0050
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Node references in reverse properties are not compacted to strings without explicit type-coercion
+
input
+
+ compact/0050-in.jsonld +
+
context
+
+ compact/0050-context.jsonld +
+
expect
+
+ compact/0050-out.jsonld +
+
+
+
+ Test t0051 Round tripping @list with scalar +
+
+
+
id
+
#t0051
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Native values survive round-tripping with @list
+
input
+
+ compact/0051-in.jsonld +
+
context
+
+ compact/0051-context.jsonld +
+
expect
+
+ compact/0051-out.jsonld +
+
+
+
+ Test t0052 Round tripping @list with scalar and @graph alias +
+
+
+
id
+
#t0052
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Native values survive round-tripping with @list and @graph alias
+
input
+
+ compact/0052-in.jsonld +
+
context
+
+ compact/0052-context.jsonld +
+
expect
+
+ compact/0052-out.jsonld +
+
+
+
+ Test t0053 Use @type: @vocab if no @type: @id +
+
+
+
id
+
#t0053
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact to @type: @vocab when no @type: @id term available
+
input
+
+ compact/0053-in.jsonld +
+
context
+
+ compact/0053-context.jsonld +
+
expect
+
+ compact/0053-out.jsonld +
+
+
+
+ Test t0054 Compact to @type: @vocab and compact @id to term +
+
+
+
id
+
#t0054
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact to @type: @vocab and compact @id to term
+
input
+
+ compact/0054-in.jsonld +
+
context
+
+ compact/0054-context.jsonld +
+
expect
+
+ compact/0054-out.jsonld +
+
+
+
+ Test t0055 Round tripping @type: @vocab +
+
+
+
id
+
#t0055
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting IRI value of property with @type: @vocab can use term
+
input
+
+ compact/0055-in.jsonld +
+
context
+
+ compact/0055-context.jsonld +
+
expect
+
+ compact/0055-out.jsonld +
+
+
+
+ Test t0056 Prefer @type: @vocab over @type: @id for terms +
+
+
+
id
+
#t0056
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting IRI value of property with @type: @vocab can use term
+
input
+
+ compact/0056-in.jsonld +
+
context
+
+ compact/0056-context.jsonld +
+
expect
+
+ compact/0056-out.jsonld +
+
+
+
+ Test t0057 Complex round tripping @type: @vocab and @type: @id +
+
+
+
id
+
#t0057
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting IRI value of property with @type: @vocab can use term; more complex
+
input
+
+ compact/0057-in.jsonld +
+
context
+
+ compact/0057-context.jsonld +
+
expect
+
+ compact/0057-out.jsonld +
+
+
+
+ Test t0058 Prefer @type: @id over @type: @vocab for non-terms +
+
+
+
id
+
#t0058
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Choose a term having @type: @id over @type: @value if value is not a term
+
input
+
+ compact/0058-in.jsonld +
+
context
+
+ compact/0058-context.jsonld +
+
expect
+
+ compact/0058-out.jsonld +
+
+
+
+ Test t0059 Term with @type: @vocab if no @type: @id +
+
+
+
id
+
#t0059
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
If there's no term with @type: @id, use terms with @type: @vocab for IRIs not mapped to terms
+
input
+
+ compact/0059-in.jsonld +
+
context
+
+ compact/0059-context.jsonld +
+
expect
+
+ compact/0059-out.jsonld +
+
+
+
+ Test t0060 Term with @type: @id if no @type: @vocab and term value +
+
+
+
id
+
#t0060
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
If there's no term with @type: @vocab, use terms with @type: @id for IRIs mapped to terms
+
input
+
+ compact/0060-in.jsonld +
+
context
+
+ compact/0060-context.jsonld +
+
expect
+
+ compact/0060-out.jsonld +
+
+
+
+ Test t0061 @type: @vocab/@id with values matching either +
+
+
+
id
+
#t0061
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Separate IRIs for the same property to use term with more specific @type (@id vs. @vocab)
+
input
+
+ compact/0061-in.jsonld +
+
context
+
+ compact/0061-context.jsonld +
+
expect
+
+ compact/0061-out.jsonld +
+
+
+
+ Test t0062 @type: @vocab and relative IRIs +
+
+
+
id
+
#t0062
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Relative IRIs don't round-trip with @type: @vocab
+
input
+
+ compact/0062-in.jsonld +
+
context
+
+ compact/0062-context.jsonld +
+
expect
+
+ compact/0062-out.jsonld +
+
+
+
+ Test t0063 Compact IRI round-tripping with @type: @vocab +
+
+
+
id
+
#t0063
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Term with @type: @vocab will use compact IRIs
+
input
+
+ compact/0063-in.jsonld +
+
context
+
+ compact/0063-context.jsonld +
+
expect
+
+ compact/0063-out.jsonld +
+
+
+
+ Test t0064 Compact language-tagged and indexed strings to index-map +
+
+
+
id
+
#t0064
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Given values with both @index and @language and term index-map term, use index map
+
input
+
+ compact/0064-in.jsonld +
+
context
+
+ compact/0064-context.jsonld +
+
expect
+
+ compact/0064-out.jsonld +
+
+
+
+ Test t0065 Language-tagged and indexed strings with language-map +
+
+
+
id
+
#t0065
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Language-tagged and indexed strings don't compact to language-map
+
input
+
+ compact/0065-in.jsonld +
+
context
+
+ compact/0065-context.jsonld +
+
expect
+
+ compact/0065-out.jsonld +
+
+
+
+ Test t0066 Relative IRIs +
+
+
+
id
+
#t0066
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Complex use cases for relative IRI compaction
+
input
+
+ compact/0066-in.jsonld +
+
context
+
+ compact/0066-context.jsonld +
+
expect
+
+ compact/0066-out.jsonld +
+
+
+
+ Test t0067 Reverse properties with blank nodes +
+
+
+
id
+
#t0067
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact reverse property whose values are unlabeled blank nodes
+
input
+
+ compact/0067-in.jsonld +
+
context
+
+ compact/0067-context.jsonld +
+
expect
+
+ compact/0067-out.jsonld +
+
+
+
+ Test t0068 Single value reverse properties +
+
+
+
id
+
#t0068
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Single values of reverse properties are compacted as values of ordinary properties
+
input
+
+ compact/0068-in.jsonld +
+
context
+
+ compact/0068-context.jsonld +
+
expect
+
+ compact/0068-out.jsonld +
+
+
+
+ Test t0069 Single value reverse properties with @set +
+
+
+
id
+
#t0069
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Single values are kept in array form for reverse properties if the container is to @set
+
input
+
+ compact/0069-in.jsonld +
+
context
+
+ compact/0069-context.jsonld +
+
expect
+
+ compact/0069-out.jsonld +
+
+
+
+ Test t0070 compactArrays option +
+
+
+
id
+
#t0070
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Setting compactArrays to false causes single element arrays to be retained
+
input
+
+ compact/0070-in.jsonld +
+
context
+
+ compact/0070-context.jsonld +
+
expect
+
+ compact/0070-out.jsonld +
+
Options
+
+
+
compactArrays
+
false
+
+
+
+
+
+ Test t0071 Input has multiple @contexts, output has one +
+
+
+
id
+
#t0071
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Expanding input with multiple @contexts and compacting with just one doesn't output undefined properties
+
input
+
+ compact/0071-in.jsonld +
+
context
+
+ compact/0071-context.jsonld +
+
expect
+
+ compact/0071-out.jsonld +
+
+
+
+ Test t0072 Default language and unmapped properties +
+
+
+
id
+
#t0072
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure that the default language is handled correctly for unmapped properties
+
input
+
+ compact/0072-in.jsonld +
+
context
+
+ compact/0072-context.jsonld +
+
expect
+
+ compact/0072-out.jsonld +
+
+
+
+ Test t0073 Mapped @id and @type +
+
+
+
id
+
#t0073
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure that compaction works with mapped @id and @type
+
input
+
+ compact/0073-in.jsonld +
+
context
+
+ compact/0073-context.jsonld +
+
expect
+
+ compact/0073-out.jsonld +
+
+
+
+ Test t0074 Container as a list with type of @id +
+
+
+
id
+
#t0074
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure that compaction works for empty list when property has container declared as @list and type as @id
+
input
+
+ compact/0074-in.jsonld +
+
context
+
+ compact/0074-context.jsonld +
+
expect
+
+ compact/0074-out.jsonld +
+
+
+
+ Test t0075 Compact using relative fragment identifier +
+
+
+
id
+
#t0075
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting a relative round-trips
+
input
+
+ compact/0075-in.jsonld +
+
context
+
+ compact/0075-context.jsonld +
+
expect
+
+ compact/0075-out.jsonld +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
base
+
http://example.org/
+
+
+
+
+
+ Test t0076 Compacting IRI equivalent to base +
+
+
+
id
+
#t0076
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting IRI equivalent to base, uses last path segment of base ending in '/'
+
input
+
+ compact/0076-in.jsonld +
+
context
+
+ compact/0076-context.jsonld +
+
expect
+
+ compact/0076-out.jsonld +
+
+
+
+ Test t0077 Compact a @graph container +
+
+
+
id
+
#t0077
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a @graph container
+
input
+
+ compact/0077-in.jsonld +
+
context
+
+ compact/0077-context.jsonld +
+
expect
+
+ compact/0077-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0078 Compact a [@graph, @set] container +
+
+
+
id
+
#t0078
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact with [@graph, @set]
+
input
+
+ compact/0078-in.jsonld +
+
context
+
+ compact/0078-context.jsonld +
+
expect
+
+ compact/0078-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0079 Compact a @graph container having @index +
+
+
+
id
+
#t0079
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Verify that having both @graph and @index allows @graph container compaction
+
input
+
+ compact/0079-in.jsonld +
+
context
+
+ compact/0079-context.jsonld +
+
expect
+
+ compact/0079-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0080 Do not compact a graph having @id with a term having an @graph container +
+
+
+
id
+
#t0080
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Graph compaction works only on simple graphs
+
input
+
+ compact/0080-in.jsonld +
+
context
+
+ compact/0080-context.jsonld +
+
expect
+
+ compact/0080-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0081 Compact a [@graph, @index] container +
+
+
+
id
+
#t0081
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a @graph container with @index
+
input
+
+ compact/0081-in.jsonld +
+
context
+
+ compact/0081-context.jsonld +
+
expect
+
+ compact/0081-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0082 Compact a [@graph, @index, @set] container +
+
+
+
id
+
#t0082
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a @graph container with @index and @set
+
input
+
+ compact/0082-in.jsonld +
+
context
+
+ compact/0082-context.jsonld +
+
expect
+
+ compact/0082-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0083 [@graph, @index] does not compact graph with @id +
+
+
+
id
+
#t0083
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Graph compaction with @graph and @index works only on simple graphs
+
input
+
+ compact/0083-in.jsonld +
+
context
+
+ compact/0083-context.jsonld +
+
expect
+
+ compact/0083-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0084 Compact a simple graph with a [@graph, @id] container +
+
+
+
id
+
#t0084
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a simple graph using a @graph container with @id
+
input
+
+ compact/0084-in.jsonld +
+
context
+
+ compact/0084-context.jsonld +
+
expect
+
+ compact/0084-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0085 Compact a named graph with a [@graph, @id] container +
+
+
+
id
+
#t0085
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a named graph using a @graph container with @id
+
input
+
+ compact/0085-in.jsonld +
+
context
+
+ compact/0085-context.jsonld +
+
expect
+
+ compact/0085-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0086 Compact a simple graph with a [@graph, @id, @set] container +
+
+
+
id
+
#t0086
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a simple graph using a @graph container with @id and @set
+
input
+
+ compact/0086-in.jsonld +
+
context
+
+ compact/0086-context.jsonld +
+
expect
+
+ compact/0086-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0087 Compact a named graph with a [@graph, @id, @set] container +
+
+
+
id
+
#t0087
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a named graph using a @graph container with @id and @set
+
input
+
+ compact/0087-in.jsonld +
+
context
+
+ compact/0087-context.jsonld +
+
expect
+
+ compact/0087-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0088 Compact a graph with @index using a [@graph, @id] container +
+
+
+
id
+
#t0088
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact a @graph container with @id and @set, discarding an @index value
+
input
+
+ compact/0088-in.jsonld +
+
context
+
+ compact/0088-context.jsonld +
+
expect
+
+ compact/0088-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0089 Language map term selection with complications +
+
+
+
id
+
#t0089
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Test appropriate property use given language maps with @vocab, a default language, no language, and competing terms
+
input
+
+ compact/0089-in.jsonld +
+
context
+
+ compact/0089-context.jsonld +
+
expect
+
+ compact/0089-out.jsonld +
+
+
+
+ Test t0090 Compact input with @graph container to output without @graph container +
+
+
+
id
+
#t0090
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0090-in.jsonld +
+
context
+
+ compact/0090-context.jsonld +
+
expect
+
+ compact/0090-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0091 Compact input with @graph container to output without @graph container with compactArrays unset +
+
+
+
id
+
#t0091
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output with compactArrays unset
+
input
+
+ compact/0091-in.jsonld +
+
context
+
+ compact/0091-context.jsonld +
+
expect
+
+ compact/0091-out.jsonld +
+
Options
+
+
+
compactArrays
+
false
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0092 Compact input with [@graph, @set] container to output without [@graph, @set] container +
+
+
+
id
+
#t0092
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0092-in.jsonld +
+
context
+
+ compact/0092-context.jsonld +
+
expect
+
+ compact/0092-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0093 Compact input with [@graph, @set] container to output without [@graph, @set] container with compactArrays unset +
+
+
+
id
+
#t0093
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output with compactArrays unset
+
input
+
+ compact/0093-in.jsonld +
+
context
+
+ compact/0093-context.jsonld +
+
expect
+
+ compact/0093-out.jsonld +
+
Options
+
+
+
compactArrays
+
false
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0094 Compact input with [@graph, @set] container to output without [@graph, @set] container +
+
+
+
id
+
#t0094
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0094-in.jsonld +
+
context
+
+ compact/0094-context.jsonld +
+
expect
+
+ compact/0094-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0095 Relative propererty IRIs with @vocab: '' +
+
+
+
id
+
#t0095
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Complex use cases for relative IRI compaction or properties
+
input
+
+ compact/0095-in.jsonld +
+
context
+
+ compact/0095-context.jsonld +
+
expect
+
+ compact/0095-out.jsonld +
+
+
+
+ Test t0096 Compact @graph container (multiple graphs) +
+
+
+
id
+
#t0096
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0096-in.jsonld +
+
context
+
+ compact/0096-context.jsonld +
+
expect
+
+ compact/0096-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0097 Compact [@graph, @set] container (multiple graphs) +
+
+
+
id
+
#t0097
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0097-in.jsonld +
+
context
+
+ compact/0097-context.jsonld +
+
expect
+
+ compact/0097-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0098 Compact [@graph, @index] container (multiple indexed objects) +
+
+
+
id
+
#t0098
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0098-in.jsonld +
+
context
+
+ compact/0098-context.jsonld +
+
expect
+
+ compact/0098-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0099 Compact [@graph, @index, @set] container (multiple indexed objects) +
+
+
+
id
+
#t0099
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0099-in.jsonld +
+
context
+
+ compact/0099-context.jsonld +
+
expect
+
+ compact/0099-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0100 Compact [@graph, @id] container (multiple indexed objects) +
+
+
+
id
+
#t0100
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0100-in.jsonld +
+
context
+
+ compact/0100-context.jsonld +
+
expect
+
+ compact/0100-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0101 Compact [@graph, @id, @set] container (multiple indexed objects) +
+
+
+
id
+
#t0101
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0101-in.jsonld +
+
context
+
+ compact/0101-context.jsonld +
+
expect
+
+ compact/0101-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0102 Compact [@graph, @index] container (multiple indexes and objects) +
+
+
+
id
+
#t0102
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0102-in.jsonld +
+
context
+
+ compact/0102-context.jsonld +
+
expect
+
+ compact/0102-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0103 Compact [@graph, @id] container (multiple ids and objects) +
+
+
+
id
+
#t0103
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensure @graph appears properly in output
+
input
+
+ compact/0103-in.jsonld +
+
context
+
+ compact/0103-context.jsonld +
+
expect
+
+ compact/0103-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0104 Compact @type with @container: @set +
+
+
+
id
+
#t0104
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensures that a single @type value is represented as an array
+
input
+
+ compact/0104-in.jsonld +
+
context
+
+ compact/0104-context.jsonld +
+
expect
+
+ compact/0104-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0105 Compact @type with @container: @set using an alias of @type +
+
+
+
id
+
#t0105
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensures that a single @type value is represented as an array
+
input
+
+ compact/0105-in.jsonld +
+
context
+
+ compact/0105-context.jsonld +
+
expect
+
+ compact/0105-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0106 Do not compact @type with @container: @set to an array using an alias of @type +
+
+
+
id
+
#t0106
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Ensures that a single @type value is not represented as an array in 1.0
+
input
+
+ compact/0106-in.jsonld +
+
context
+
+ compact/0106-context.jsonld +
+
expect
+
+ compact/0106-out.jsonld +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0107 Relative propererty IRIs with @vocab: '' +
+
+
+
id
+
#t0107
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Complex use cases for relative IRI compaction or properties
+
input
+
+ compact/0107-in.jsonld +
+
context
+
+ compact/0107-context.jsonld +
+
expect
+
+ compact/0107-out.jsonld +
+
+
+
+ Test t0108 context with JavaScript Object property names +
+
+
+
id
+
#t0108
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact with context including JavaScript Object property names
+
input
+
+ compact/0108-in.jsonld +
+
context
+
+ compact/0108-context.jsonld +
+
expect
+
+ compact/0108-out.jsonld +
+
+
+
+ Test t0109 Compact @graph container (multiple objects) +
+
+
+
id
+
#t0109
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Multiple objects in a simple graph with a graph container need to use @included
+
input
+
+ compact/0109-in.jsonld +
+
context
+
+ compact/0109-context.jsonld +
+
expect
+
+ compact/0109-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0110 Compact [@graph, @set] container (multiple objects) +
+
+
+
id
+
#t0110
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Multiple objects in a simple graph with a graph container need to use @included
+
input
+
+ compact/0110-in.jsonld +
+
context
+
+ compact/0110-context.jsonld +
+
expect
+
+ compact/0110-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0111 Keyword-like relative IRIs +
+
+
+
id
+
#t0111
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Relative IRIs must not have the form a of keyword
+
input
+
+ compact/0111-in.jsonld +
+
context
+
+ compact/0111-context.jsonld +
+
expect
+
+ compact/0111-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0112 Compact property index using Compact IRI index +
+
+
+
id
+
#t0112
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
With @container: @index and @index a compact IRI, ensure round-tripping of compacted representation
+
input
+
+ compact/0112-in.jsonld +
+
context
+
+ compact/0112-context.jsonld +
+
expect
+
+ compact/0112-out.jsonld +
+
+
+
+ Test t0113 Compact property index using Absolute IRI index +
+
+
+
id
+
#t0113
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
With @container: @index and @index an absolute IRI, ensure round-tripping of compacted representation
+
input
+
+ compact/0113-in.jsonld +
+
context
+
+ compact/0113-context.jsonld +
+
expect
+
+ compact/0113-out.jsonld +
+
+
+
+ Test t0114 Reverse term with property based indexed container +
+
+
+
id
+
#t0114
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using a reverse term with @container indexed on a property (round-trip test of expand#t0131)
+
input
+
+ compact/0114-in.jsonld +
+
context
+
+ compact/0114-context.jsonld +
+
expect
+
+ compact/0114-out.jsonld +
+
Options
+
+
+
base
+
https://example.org/
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc001 adding new term +
+
+
+
id
+
#tc001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using a scoped context uses term scope for selecting proper term
+
input
+
+ compact/c001-in.jsonld +
+
context
+
+ compact/c001-context.jsonld +
+
expect
+
+ compact/c001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc002 overriding a term +
+
+
+
id
+
#tc002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using a scoped context uses term scope for selecting proper term
+
input
+
+ compact/c002-in.jsonld +
+
context
+
+ compact/c002-context.jsonld +
+
expect
+
+ compact/c002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc003 property and value with different terms mapping to the same expanded property +
+
+
+
id
+
#tc003
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using a scoped context uses term scope for selecting proper term
+
input
+
+ compact/c003-in.jsonld +
+
context
+
+ compact/c003-context.jsonld +
+
expect
+
+ compact/c003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc004 deep @context affects nested nodes +
+
+
+
id
+
#tc004
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using a scoped context uses term scope for selecting proper term
+
input
+
+ compact/c004-in.jsonld +
+
context
+
+ compact/c004-context.jsonld +
+
expect
+
+ compact/c004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc005 scoped context layers on intemediate contexts +
+
+
+
id
+
#tc005
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using a scoped context uses term scope for selecting proper term
+
input
+
+ compact/c005-in.jsonld +
+
context
+
+ compact/c005-context.jsonld +
+
expect
+
+ compact/c005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc006 adding new term +
+
+
+
id
+
#tc006
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c006-in.jsonld +
+
context
+
+ compact/c006-context.jsonld +
+
expect
+
+ compact/c006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc007 overriding a term +
+
+
+
id
+
#tc007
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c007-in.jsonld +
+
context
+
+ compact/c007-context.jsonld +
+
expect
+
+ compact/c007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc008 alias of @type +
+
+
+
id
+
#tc008
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c008-in.jsonld +
+
context
+
+ compact/c008-context.jsonld +
+
expect
+
+ compact/c008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc009 deep @type-scoped @context does NOT affect nested nodes +
+
+
+
id
+
#tc009
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c009-in.jsonld +
+
context
+
+ compact/c009-context.jsonld +
+
expect
+
+ compact/c009-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc010 scoped context layers on intemediate contexts +
+
+
+
id
+
#tc010
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c010-in.jsonld +
+
context
+
+ compact/c010-context.jsonld +
+
expect
+
+ compact/c010-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc011 applies context for all values +
+
+
+
id
+
#tc011
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c011-in.jsonld +
+
context
+
+ compact/c011-context.jsonld +
+
expect
+
+ compact/c011-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc012 orders @type terms when applying scoped contexts +
+
+
+
id
+
#tc012
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c012-in.jsonld +
+
context
+
+ compact/c012-context.jsonld +
+
expect
+
+ compact/c012-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc013 deep property-term scoped @context in @type-scoped @context affects nested nodes +
+
+
+
id
+
#tc013
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/c013-in.jsonld +
+
context
+
+ compact/c013-context.jsonld +
+
expect
+
+ compact/c013-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc014 type-scoped context nullification +
+
+
+
id
+
#tc014
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Nullifying a type-scoped context continues to use the previous context when compacting @type.
+
input
+
+ compact/c014-in.jsonld +
+
context
+
+ compact/c014-context.jsonld +
+
expect
+
+ compact/c014-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc015 type-scoped base +
+
+
+
id
+
#tc015
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped base
+
input
+
+ compact/c015-in.jsonld +
+
context
+
+ compact/c015-context.jsonld +
+
expect
+
+ compact/c015-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc016 type-scoped vocab +
+
+
+
id
+
#tc016
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped vocab
+
input
+
+ compact/c016-in.jsonld +
+
context
+
+ compact/c016-context.jsonld +
+
expect
+
+ compact/c016-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc017 multiple type-scoped contexts are properly reverted +
+
+
+
id
+
#tc017
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
multiple type-scoped contexts are property reverted
+
input
+
+ compact/c017-in.jsonld +
+
context
+
+ compact/c017-context.jsonld +
+
expect
+
+ compact/c017-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc018 multiple type-scoped types resolved against previous context +
+
+
+
id
+
#tc018
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
multiple type-scoped types resolved against previous context
+
input
+
+ compact/c018-in.jsonld +
+
context
+
+ compact/c018-context.jsonld +
+
expect
+
+ compact/c018-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc019 type-scoped context with multiple property scoped terms +
+
+
+
id
+
#tc019
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped context with multiple property scoped terms
+
input
+
+ compact/c019-in.jsonld +
+
context
+
+ compact/c019-context.jsonld +
+
expect
+
+ compact/c019-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc020 type-scoped value +
+
+
+
id
+
#tc020
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped value
+
input
+
+ compact/c020-in.jsonld +
+
context
+
+ compact/c020-context.jsonld +
+
expect
+
+ compact/c020-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc021 type-scoped value mix +
+
+
+
id
+
#tc021
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped value mix
+
input
+
+ compact/c021-in.jsonld +
+
context
+
+ compact/c021-context.jsonld +
+
expect
+
+ compact/c021-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc022 type-scoped property-scoped contexts including @type:@vocab +
+
+
+
id
+
#tc022
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped property-scoped contexts including @type:@vocab
+
input
+
+ compact/c022-in.jsonld +
+
context
+
+ compact/c022-context.jsonld +
+
expect
+
+ compact/c022-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc023 composed type-scoped property-scoped contexts including @type:@vocab +
+
+
+
id
+
#tc023
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
composed type-scoped property-scoped contexts including @type:@vocab
+
input
+
+ compact/c023-in.jsonld +
+
context
+
+ compact/c023-context.jsonld +
+
expect
+
+ compact/c023-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc024 type-scoped + property-scoped + values evaluates against previous context +
+
+
+
id
+
#tc024
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped + property-scoped + values evaluates against previous context
+
input
+
+ compact/c024-in.jsonld +
+
context
+
+ compact/c024-context.jsonld +
+
expect
+
+ compact/c024-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc025 type-scoped + graph container +
+
+
+
id
+
#tc025
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped + graph container
+
input
+
+ compact/c025-in.jsonld +
+
context
+
+ compact/c025-context.jsonld +
+
expect
+
+ compact/c025-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc026 @propagate: true on type-scoped context +
+
+
+
id
+
#tc026
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
type-scoped context with @propagate: true survive node-objects
+
input
+
+ compact/c026-in.jsonld +
+
context
+
+ compact/c026-context.jsonld +
+
expect
+
+ compact/c026-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc027 @propagate: false on property-scoped context +
+
+
+
id
+
#tc027
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
property-scoped context with @propagate: false do not survive node-objects
+
input
+
+ compact/c027-in.jsonld +
+
context
+
+ compact/c027-context.jsonld +
+
expect
+
+ compact/c027-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc028 Empty-property scoped context does not affect term selection. +
+
+
+
id
+
#tc028
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Adding a minimal/empty property-scoped context should not affect the using terms defined in outer context.
+
input
+
+ compact/c028-in.jsonld +
+
context
+
+ compact/c028-context.jsonld +
+
expect
+
+ compact/c028-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi01 term direction null +
+
+
+
id
+
#tdi01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Uses term with null direction when two terms conflict on direction.
+
input
+
+ compact/di01-in.jsonld +
+
context
+
+ compact/di01-context.jsonld +
+
expect
+
+ compact/di01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi02 use alias of @direction +
+
+
+
id
+
#tdi02
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Use alias of @direction.
+
input
+
+ compact/di02-in.jsonld +
+
context
+
+ compact/di02-context.jsonld +
+
expect
+
+ compact/di02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi03 term selection with lists and direction +
+
+
+
id
+
#tdi03
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Term selection includes values of @list.
+
input
+
+ compact/di03-in.jsonld +
+
context
+
+ compact/di03-context.jsonld +
+
expect
+
+ compact/di03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi04 simple language map with term direction +
+
+
+
id
+
#tdi04
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ compact/di04-in.jsonld +
+
context
+
+ compact/di04-context.jsonld +
+
expect
+
+ compact/di04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi05 simple language map with overriding term direction +
+
+
+
id
+
#tdi05
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ compact/di05-in.jsonld +
+
context
+
+ compact/di05-context.jsonld +
+
expect
+
+ compact/di05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi06 simple language map with overriding null direction +
+
+
+
id
+
#tdi06
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ compact/di06-in.jsonld +
+
context
+
+ compact/di06-context.jsonld +
+
expect
+
+ compact/di06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi07 simple language map with mismatching term direction +
+
+
+
id
+
#tdi07
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ compact/di07-in.jsonld +
+
context
+
+ compact/di07-context.jsonld +
+
expect
+
+ compact/di07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te001 Compaction to list of lists +
+
+
+
id
+
#te001
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
Verifies that an exception is raised in Compaction when attempting to compact a list of lists
+
input
+
+ compact/e001-in.jsonld +
+
context
+
+ compact/e001-context.jsonld +
+
expect
+
+ compaction to list of lists +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te002 Absolute IRI confused with Compact IRI +
+
+
+
id
+
#te002
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
Verifies that IRI compaction detects when the result is an absolute IRI with a scheme matching a term.
+
input
+
+ compact/e002-in.jsonld +
+
context
+
+ compact/e002-context.jsonld +
+
expect
+
+ IRI confused with prefix +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten01 Nest term not defined +
+
+
+
id
+
#ten01
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
Transparent Nesting
+
input
+
+ compact/en01-in.jsonld +
+
context
+
+ compact/en01-context.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep05 processingMode json-ld-1.0 conflicts with @version: 1.1 +
+
+
+
id
+
#tep05
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
+
input
+
+ compact/ep05-in.jsonld +
+
context
+
+ compact/ep05-context.jsonld +
+
expect
+
+ processing mode conflict +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep06 @version must be 1.1 +
+
+
+
id
+
#tep06
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
If @version is specified, it must be 1.1
+
input
+
+ compact/ep06-in.jsonld +
+
context
+
+ compact/ep06-context.jsonld +
+
expect
+
+ invalid @version value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep07 @prefix is not allowed in 1.0 +
+
+
+
id
+
#tep07
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
@prefix is not allowed in a term definition 1.0
+
input
+
+ compact/ep07-in.jsonld +
+
context
+
+ compact/ep07-context.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep08 @prefix must be a boolean +
+
+
+
id
+
#tep08
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
@prefix must be a boolean in a term definition in 1.1
+
input
+
+ compact/ep08-in.jsonld +
+
context
+
+ compact/ep08-context.jsonld +
+
expect
+
+ invalid @prefix value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep09 @prefix not allowed on compact IRI term +
+
+
+
id
+
#tep09
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
If processingMode is json-ld-1.0, or if term contains a colon (:), an invalid term definition has been detected and processing is aborted.
+
input
+
+ compact/ep09-in.jsonld +
+
context
+
+ compact/ep09-context.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep10 @nest is not allowed in 1.0 +
+
+
+
id
+
#tep10
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
@nest is not allowed in a term definitionin 1.0
+
input
+
+ compact/ep10-in.jsonld +
+
context
+
+ compact/ep10-context.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep11 @context is not allowed in 1.0 +
+
+
+
id
+
#tep11
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
@context is not allowed in a term definitionin 1.0
+
input
+
+ compact/ep11-in.jsonld +
+
context
+
+ compact/ep11-context.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep12 @container may not be an array in 1.0 +
+
+
+
id
+
#tep12
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
validate appropriate values of @container
+
input
+
+ compact/ep12-in.jsonld +
+
context
+
+ compact/ep12-context.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep13 @container may not be @id in 1.0 +
+
+
+
id
+
#tep13
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
validate appropriate values of @container
+
input
+
+ compact/ep13-in.jsonld +
+
context
+
+ compact/ep13-context.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep14 @container may not be @type in 1.0 +
+
+
+
id
+
#tep14
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
validate appropriate values of @container
+
input
+
+ compact/ep14-in.jsonld +
+
context
+
+ compact/ep14-context.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep15 @container may not be @graph in 1.0 +
+
+
+
id
+
#tep15
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
validate appropriate values of @container
+
input
+
+ compact/ep15-in.jsonld +
+
context
+
+ compact/ep15-context.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin01 Basic Included array +
+
+
+
id
+
#tin01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests included blocks.
+
input
+
+ compact/in01-in.jsonld +
+
context
+
+ compact/in01-context.jsonld +
+
expect
+
+ compact/in01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin02 Basic Included object +
+
+
+
id
+
#tin02
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests included blocks.
+
input
+
+ compact/in02-in.jsonld +
+
context
+
+ compact/in02-context.jsonld +
+
expect
+
+ compact/in02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin03 Multiple properties mapping to @included are folded together +
+
+
+
id
+
#tin03
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests included blocks.
+
input
+
+ compact/in03-in.jsonld +
+
context
+
+ compact/in03-context.jsonld +
+
expect
+
+ compact/in03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin04 Included containing @included +
+
+
+
id
+
#tin04
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests included blocks.
+
input
+
+ compact/in04-in.jsonld +
+
context
+
+ compact/in04-context.jsonld +
+
expect
+
+ compact/in04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin05 Property value with @included +
+
+
+
id
+
#tin05
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests included blocks.
+
input
+
+ compact/in05-in.jsonld +
+
context
+
+ compact/in05-context.jsonld +
+
expect
+
+ compact/in05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs01 Compact JSON literal (boolean true) +
+
+
+
id
+
#tjs01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (boolean true).
+
input
+
+ compact/js01-in.jsonld +
+
context
+
+ compact/js01-context.jsonld +
+
expect
+
+ compact/js01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs02 Compact JSON literal (boolean false) +
+
+
+
id
+
#tjs02
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (boolean false).
+
input
+
+ compact/js02-in.jsonld +
+
context
+
+ compact/js02-context.jsonld +
+
expect
+
+ compact/js02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs03 Compact JSON literal (double) +
+
+
+
id
+
#tjs03
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (double).
+
input
+
+ compact/js03-in.jsonld +
+
context
+
+ compact/js03-context.jsonld +
+
expect
+
+ compact/js03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs04 Compact JSON literal (double-zero) +
+
+
+
id
+
#tjs04
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (double-zero).
+
input
+
+ compact/js04-in.jsonld +
+
context
+
+ compact/js04-context.jsonld +
+
expect
+
+ compact/js04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs05 Compact JSON literal (integer) +
+
+
+
id
+
#tjs05
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (integer).
+
input
+
+ compact/js05-in.jsonld +
+
context
+
+ compact/js05-context.jsonld +
+
expect
+
+ compact/js05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs06 Compact JSON literal (object) +
+
+
+
id
+
#tjs06
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (object).
+
input
+
+ compact/js06-in.jsonld +
+
context
+
+ compact/js06-context.jsonld +
+
expect
+
+ compact/js06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs07 Compact JSON literal (array) +
+
+
+
id
+
#tjs07
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (array).
+
input
+
+ compact/js07-in.jsonld +
+
context
+
+ compact/js07-context.jsonld +
+
expect
+
+ compact/js07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs08 Compact already expanded JSON literal +
+
+
+
id
+
#tjs08
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting JSON literal does not expand terms inside json.
+
input
+
+ compact/js08-in.jsonld +
+
context
+
+ compact/js08-context.jsonld +
+
expect
+
+ compact/js08-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs09 Compact already expanded JSON literal with aliased keys +
+
+
+
id
+
#tjs09
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting JSON literal in expanded form.
+
input
+
+ compact/js09-in.jsonld +
+
context
+
+ compact/js09-context.jsonld +
+
expect
+
+ compact/js09-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs10 Compact JSON literal (string) +
+
+
+
id
+
#tjs10
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (string).
+
input
+
+ compact/js10-in.jsonld +
+
context
+
+ compact/js10-context.jsonld +
+
expect
+
+ compact/js10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs11 Compact JSON literal (null) +
+
+
+
id
+
#tjs11
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Tests compacting property with @type @json to a JSON literal (null).
+
input
+
+ compact/js11-in.jsonld +
+
context
+
+ compact/js11-context.jsonld +
+
expect
+
+ compact/js11-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tla01 most specific term matching in @list. +
+
+
+
id
+
#tla01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
The most specific term that matches all of the elements in the list, taking into account the default language, must be selected, without considering case of language.
+
input
+
+ compact/la01-in.jsonld +
+
context
+
+ compact/la01-context.jsonld +
+
expect
+
+ compact/la01-out.jsonld +
+
+
+
+ Test tli01 coerced @list containing an empty list +
+
+
+
id
+
#tli01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Lists of Lists
+
input
+
+ compact/li01-in.jsonld +
+
context
+
+ compact/li01-context.jsonld +
+
expect
+
+ compact/li01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli02 coerced @list containing a list +
+
+
+
id
+
#tli02
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Lists of Lists
+
input
+
+ compact/li02-in.jsonld +
+
context
+
+ compact/li02-context.jsonld +
+
expect
+
+ compact/li02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli03 coerced @list containing an deep list +
+
+
+
id
+
#tli03
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Lists of Lists
+
input
+
+ compact/li03-in.jsonld +
+
context
+
+ compact/li03-context.jsonld +
+
expect
+
+ compact/li03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli04 coerced @list containing multiple lists +
+
+
+
id
+
#tli04
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Lists of Lists
+
input
+
+ compact/li04-in.jsonld +
+
context
+
+ compact/li04-context.jsonld +
+
expect
+
+ compact/li04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli05 coerced @list containing mixed list values +
+
+
+
id
+
#tli05
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Lists of Lists
+
input
+
+ compact/li05-in.jsonld +
+
context
+
+ compact/li05-context.jsonld +
+
expect
+
+ compact/li05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm001 Indexes to object not having an @id +
+
+
+
id
+
#tm001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @container: @id
+
input
+
+ compact/m001-in.jsonld +
+
context
+
+ compact/m001-context.jsonld +
+
expect
+
+ compact/m001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm002 Indexes to object already having an @id +
+
+
+
id
+
#tm002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @container: @id
+
input
+
+ compact/m002-in.jsonld +
+
context
+
+ compact/m002-context.jsonld +
+
expect
+
+ compact/m002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm003 Indexes to object not having an @type +
+
+
+
id
+
#tm003
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @container: @type
+
input
+
+ compact/m003-in.jsonld +
+
context
+
+ compact/m003-context.jsonld +
+
expect
+
+ compact/m003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm004 Indexes to object already having an @type +
+
+
+
id
+
#tm004
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @container: @type
+
input
+
+ compact/m004-in.jsonld +
+
context
+
+ compact/m004-context.jsonld +
+
expect
+
+ compact/m004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm005 Indexes to object using compact IRI @id +
+
+
+
id
+
#tm005
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @container: @id
+
input
+
+ compact/m005-in.jsonld +
+
context
+
+ compact/m005-context.jsonld +
+
expect
+
+ compact/m005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm006 Indexes using compacted @type +
+
+
+
id
+
#tm006
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @container: @type
+
input
+
+ compact/m006-in.jsonld +
+
context
+
+ compact/m006-context.jsonld +
+
expect
+
+ compact/m006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm007 When type is in a type map +
+
+
+
id
+
#tm007
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
scoped context on @type
+
input
+
+ compact/m007-in.jsonld +
+
context
+
+ compact/m007-context.jsonld +
+
expect
+
+ compact/m007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm008 @index map with @none node definition +
+
+
+
id
+
#tm008
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @index
+
input
+
+ compact/m008-in.jsonld +
+
context
+
+ compact/m008-context.jsonld +
+
expect
+
+ compact/m008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm009 @index map with @none value +
+
+
+
id
+
#tm009
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @index
+
input
+
+ compact/m009-in.jsonld +
+
context
+
+ compact/m009-context.jsonld +
+
expect
+
+ compact/m009-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm010 @index map with @none value using alias of @none +
+
+
+
id
+
#tm010
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @index
+
input
+
+ compact/m010-in.jsonld +
+
context
+
+ compact/m010-context.jsonld +
+
expect
+
+ compact/m010-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm011 @language map with no @language +
+
+
+
id
+
#tm011
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @language
+
input
+
+ compact/m011-in.jsonld +
+
context
+
+ compact/m011-context.jsonld +
+
expect
+
+ compact/m011-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm012 language map with no @language using alias of @none +
+
+
+
id
+
#tm012
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @language
+
input
+
+ compact/m012-in.jsonld +
+
context
+
+ compact/m012-context.jsonld +
+
expect
+
+ compact/m012-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm013 id map using @none +
+
+
+
id
+
#tm013
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @id
+
input
+
+ compact/m013-in.jsonld +
+
context
+
+ compact/m013-context.jsonld +
+
expect
+
+ compact/m013-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm014 id map using @none with alias +
+
+
+
id
+
#tm014
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @id
+
input
+
+ compact/m014-in.jsonld +
+
context
+
+ compact/m014-context.jsonld +
+
expect
+
+ compact/m014-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm015 type map using @none with alias +
+
+
+
id
+
#tm015
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @type
+
input
+
+ compact/m015-in.jsonld +
+
context
+
+ compact/m015-context.jsonld +
+
expect
+
+ compact/m015-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm016 type map using @none with alias +
+
+
+
id
+
#tm016
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @type
+
input
+
+ compact/m016-in.jsonld +
+
context
+
+ compact/m016-context.jsonld +
+
expect
+
+ compact/m016-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm017 graph index map using @none +
+
+
+
id
+
#tm017
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @graph and @index
+
input
+
+ compact/m017-in.jsonld +
+
context
+
+ compact/m017-context.jsonld +
+
expect
+
+ compact/m017-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm018 graph id map using @none +
+
+
+
id
+
#tm018
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @graph and @id
+
input
+
+ compact/m018-in.jsonld +
+
context
+
+ compact/m018-context.jsonld +
+
expect
+
+ compact/m018-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm019 graph id map using alias of @none +
+
+
+
id
+
#tm019
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @graph and @id
+
input
+
+ compact/m019-in.jsonld +
+
context
+
+ compact/m019-context.jsonld +
+
expect
+
+ compact/m019-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm020 node reference compacts to string value of type map +
+
+
+
id
+
#tm020
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @type
+
input
+
+ compact/m020-in.jsonld +
+
context
+
+ compact/m020-context.jsonld +
+
expect
+
+ compact/m020-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm021 node reference compacts to string value of type map with @type: @id +
+
+
+
id
+
#tm021
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @type
+
input
+
+ compact/m021-in.jsonld +
+
context
+
+ compact/m021-context.jsonld +
+
expect
+
+ compact/m021-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm022 node reference compacts to string value of type map with @type: @vocab +
+
+
+
id
+
#tm022
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
index on @type
+
input
+
+ compact/m022-in.jsonld +
+
context
+
+ compact/m022-context.jsonld +
+
expect
+
+ compact/m022-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn001 Indexes to @nest for property with @nest +
+
+
+
id
+
#tn001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n001-in.jsonld +
+
context
+
+ compact/n001-context.jsonld +
+
expect
+
+ compact/n001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn002 Indexes to @nest for all properties with @nest +
+
+
+
id
+
#tn002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n002-in.jsonld +
+
context
+
+ compact/n002-context.jsonld +
+
expect
+
+ compact/n002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn003 Nests using alias of @nest +
+
+
+
id
+
#tn003
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n003-in.jsonld +
+
context
+
+ compact/n003-context.jsonld +
+
expect
+
+ compact/n003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn004 Arrays of nested values +
+
+
+
id
+
#tn004
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n004-in.jsonld +
+
context
+
+ compact/n004-context.jsonld +
+
expect
+
+ compact/n004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn005 Nested @container: @list +
+
+
+
id
+
#tn005
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n005-in.jsonld +
+
context
+
+ compact/n005-context.jsonld +
+
expect
+
+ compact/n005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn006 Nested @container: @index +
+
+
+
id
+
#tn006
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n006-in.jsonld +
+
context
+
+ compact/n006-context.jsonld +
+
expect
+
+ compact/n006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn007 Nested @container: @language +
+
+
+
id
+
#tn007
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n007-in.jsonld +
+
context
+
+ compact/n007-context.jsonld +
+
expect
+
+ compact/n007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn008 Nested @container: @type +
+
+
+
id
+
#tn008
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n008-in.jsonld +
+
context
+
+ compact/n008-context.jsonld +
+
expect
+
+ compact/n008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn009 Nested @container: @id +
+
+
+
id
+
#tn009
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n009-in.jsonld +
+
context
+
+ compact/n009-context.jsonld +
+
expect
+
+ compact/n009-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn010 Multiple nest aliases +
+
+
+
id
+
#tn010
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n010-in.jsonld +
+
context
+
+ compact/n010-context.jsonld +
+
expect
+
+ compact/n010-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn011 Nests using alias of @nest (defined with @id) +
+
+
+
id
+
#tn011
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compaction using @nest
+
input
+
+ compact/n011-in.jsonld +
+
context
+
+ compact/n011-context.jsonld +
+
expect
+
+ compact/n011-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp001 Compact IRI will not use an expanded term definition in 1.0 +
+
+
+
id
+
#tp001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Terms with an expanded term definition are not used for creating compact IRIs
+
input
+
+ compact/p001-in.jsonld +
+
context
+
+ compact/p001-context.jsonld +
+
expect
+
+ compact/p001-out.jsonld +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp002 Compact IRI does not use expanded term definition in 1.1 +
+
+
+
id
+
#tp002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Terms with an expanded term definition are not used for creating compact IRIs
+
input
+
+ compact/p002-in.jsonld +
+
context
+
+ compact/p002-context.jsonld +
+
expect
+
+ compact/p002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp003 Compact IRI does not use simple term that does not end with a gen-delim +
+
+
+
id
+
#tp003
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Terms not ending with a gen-delim are not used for creating compact IRIs
+
input
+
+ compact/p003-in.jsonld +
+
context
+
+ compact/p003-context.jsonld +
+
expect
+
+ compact/p003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp004 Compact IRIs using simple terms ending with gen-delim +
+
+
+
id
+
#tp004
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
All simple terms ending with gen-delim are suitable for compaction
+
input
+
+ compact/p004-in.jsonld +
+
context
+
+ compact/p004-context.jsonld +
+
expect
+
+ compact/p004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp005 Compact IRI uses term with definition including @prefix: true +
+
+
+
id
+
#tp005
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Expanded term definition may set prefix explicitly in 1.1
+
input
+
+ compact/p005-in.jsonld +
+
context
+
+ compact/p005-context.jsonld +
+
expect
+
+ compact/p005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp006 Compact IRI uses term with definition including @prefix: true +
+
+
+
id
+
#tp006
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Expanded term definition may set prefix explicitly in 1.1
+
input
+
+ compact/p006-in.jsonld +
+
context
+
+ compact/p006-context.jsonld +
+
expect
+
+ compact/p006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp007 Compact IRI not used as prefix +
+
+
+
id
+
#tp007
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Terms including a colon are excluded from being used as a prefix
+
input
+
+ compact/p007-in.jsonld +
+
context
+
+ compact/p007-context.jsonld +
+
expect
+
+ compact/p007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp008 Compact IRI does not use term with definition including @prefix: false +
+
+
+
id
+
#tp008
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Expanded term definition may set prefix explicitly in 1.1
+
input
+
+ compact/p008-in.jsonld +
+
context
+
+ compact/p008-context.jsonld +
+
expect
+
+ compact/p008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi01 property-valued index indexes property value, instead of property (value) +
+
+
+
id
+
#tpi01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting property-valued indexes.
+
input
+
+ compact/pi01-in.jsonld +
+
context
+
+ compact/pi01-context.jsonld +
+
expect
+
+ compact/pi01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi02 property-valued index indexes property value, instead of property (multiple values) +
+
+
+
id
+
#tpi02
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting property-valued indexes.
+
input
+
+ compact/pi02-in.jsonld +
+
context
+
+ compact/pi02-context.jsonld +
+
expect
+
+ compact/pi02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi03 property-valued index indexes property value, instead of property (node) +
+
+
+
id
+
#tpi03
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting property-valued indexes.
+
input
+
+ compact/pi03-in.jsonld +
+
context
+
+ compact/pi03-context.jsonld +
+
expect
+
+ compact/pi03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi04 property-valued index indexes property value, instead of property (multiple nodes) +
+
+
+
id
+
#tpi04
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting property-valued indexes.
+
input
+
+ compact/pi04-in.jsonld +
+
context
+
+ compact/pi04-context.jsonld +
+
expect
+
+ compact/pi04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi05 property-valued index indexes using @none if no property value exists +
+
+
+
id
+
#tpi05
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting property-valued indexes.
+
input
+
+ compact/pi05-in.jsonld +
+
context
+
+ compact/pi05-context.jsonld +
+
expect
+
+ compact/pi05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi06 property-valued index indexes using @none if no property value does not compact to string +
+
+
+
id
+
#tpi06
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compacting property-valued indexes.
+
input
+
+ compact/pi06-in.jsonld +
+
context
+
+ compact/pi06-context.jsonld +
+
expect
+
+ compact/pi06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr01 Check illegal clearing of context with protected terms +
+
+
+
id
+
#tpr01
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
Check error when clearing a context with protected terms.
+
input
+
+ compact/pr01-in.jsonld +
+
context
+
+ compact/pr01-context.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr02 Check illegal overriding of protected term +
+
+
+
id
+
#tpr02
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
Check error when overriding a protected term.
+
input
+
+ compact/pr02-in.jsonld +
+
context
+
+ compact/pr02-context.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr03 Check illegal overriding of protected term from type-scoped context +
+
+
+
id
+
#tpr03
+
Type
+
jld:NegativeEvaluationTest, jld:CompactTest
+
Purpose
+
Check error when overriding a protected term from type-scoped context.
+
input
+
+ compact/pr03-in.jsonld +
+
context
+
+ compact/pr03-context.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr04 Check legal overriding of protected term from property-scoped context +
+
+
+
id
+
#tpr04
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Check overriding a protected term from property-scoped context.
+
input
+
+ compact/pr04-in.jsonld +
+
context
+
+ compact/pr04-context.jsonld +
+
expect
+
+ compact/pr04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr05 Check legal overriding of type-scoped protected term from nested node +
+
+
+
id
+
#tpr05
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Check legal overriding of type-scoped protected term from nested node.
+
input
+
+ compact/pr05-in.jsonld +
+
context
+
+ compact/pr05-context.jsonld +
+
expect
+
+ compact/pr05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tr001 Expands and compacts to document base by default +
+
+
+
id
+
#tr001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
Compact IRI attempts to compact document-relative IRIs
+
input
+
+ compact/r001-in.jsonld +
+
context
+
+ compact/r001-context.jsonld +
+
expect
+
+ compact/r001-out.jsonld +
+
Options
+
+
+
base
+
http://example.org/
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tr002 Expands and does not compact to document base with compactToRelative false +
+
+
+
id
+
#tr002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
With compactToRelative option set to false, IRIs which could be made relative to the document base are not made relative.
+
input
+
+ compact/r002-in.jsonld +
+
context
+
+ compact/r002-context.jsonld +
+
expect
+
+ compact/r002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
compactToRelative
+
false
+
+
+
+
+
+ Test ts001 @context with single array values +
+
+
+
id
+
#ts001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@context values may be in an array
+
input
+
+ compact/s001-in.jsonld +
+
context
+
+ compact/s001-context.jsonld +
+
expect
+
+ compact/s001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ts002 @context with array including @set uses array values +
+
+
+
id
+
#ts002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@context values may include @set along with another compatible value
+
input
+
+ compact/s002-in.jsonld +
+
context
+
+ compact/s002-context.jsonld +
+
expect
+
+ compact/s002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ttn01 @type: @none does not compact values +
+
+
+
id
+
#ttn01
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@type: @none does not compact values.
+
input
+
+ compact/tn01-in.jsonld +
+
context
+
+ compact/tn01-context.jsonld +
+
expect
+
+ compact/tn01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ttn02 @type: @none does not use arrays by default +
+
+
+
id
+
#ttn02
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@type: @none honors @container.
+
input
+
+ compact/tn02-in.jsonld +
+
context
+
+ compact/tn02-context.jsonld +
+
expect
+
+ compact/tn02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ttn03 @type: @none uses arrays with @container: @set +
+
+
+
id
+
#ttn03
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest
+
Purpose
+
@type: @none honors @container.
+
input
+
+ compact/tn03-in.jsonld +
+
context
+
+ compact/tn03-context.jsonld +
+
expect
+
+ compact/tn03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index 61fc01d7..110ba47b 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -1,9994 +1,9996 @@ - - - -Expansion - - - - - -

- -W3C - -

-

Expansion

-

These tests implement the requirements for the JSON-LD Expansion Algorithm.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -expand-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

expand tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

- -

Expansion tests may have a expandContext option, which is treated -as an IRI relative to the manifest.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test t0001 drop free-floating nodes -
-
-
-
id
-
#t0001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expand drops unreferenced nodes having only @id
-
input
-
-expand/0001-in.jsonld -
-
expect
-
-expand/0001-out.jsonld -
-
-
-
-Test t0002 basic -
-
-
-
id
-
#t0002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding terms with different types of values
-
input
-
-expand/0002-in.jsonld -
-
expect
-
-expand/0002-out.jsonld -
-
-
-
-Test t0003 drop null and unmapped properties -
-
-
-
id
-
#t0003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that null values and unmapped properties are removed from expanded output
-
input
-
-expand/0003-in.jsonld -
-
expect
-
-expand/0003-out.jsonld -
-
-
-
-Test t0004 optimize @set, keep empty arrays -
-
-
-
id
-
#t0004
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained
-
input
-
-expand/0004-in.jsonld -
-
expect
-
-expand/0004-out.jsonld -
-
-
-
-Test t0005 do not expand aliased @id/@type -
-
-
-
id
-
#t0005
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If a keyword is aliased, it is not used when expanding
-
input
-
-expand/0005-in.jsonld -
-
expect
-
-expand/0005-out.jsonld -
-
-
-
-Test t0006 alias keywords -
-
-
-
id
-
#t0006
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Aliased keywords expand in resulting document
-
input
-
-expand/0006-in.jsonld -
-
expect
-
-expand/0006-out.jsonld -
-
-
-
-Test t0007 date type-coercion -
-
-
-
id
-
#t0007
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expand strings to expanded value with @type: xsd:dateTime
-
input
-
-expand/0007-in.jsonld -
-
expect
-
-expand/0007-out.jsonld -
-
-
-
-Test t0008 @value with @language -
-
-
-
id
-
#t0008
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Keep expanded values with @language, drop non-conforming value objects containing just @language
-
input
-
-expand/0008-in.jsonld -
-
expect
-
-expand/0008-out.jsonld -
-
-
-
-Test t0009 @graph with terms -
-
-
-
id
-
#t0009
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph to contain multiple nodes within array
-
input
-
-expand/0009-in.jsonld -
-
expect
-
-expand/0009-out.jsonld -
-
-
-
-Test t0010 native types -
-
-
-
id
-
#t0010
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding native scalar retains native scalar within expanded value
-
input
-
-expand/0010-in.jsonld -
-
expect
-
-expand/0010-out.jsonld -
-
-
-
-Test t0011 coerced @id -
-
-
-
id
-
#t0011
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
A value of a property with @type: @id coercion expands to a node reference
-
input
-
-expand/0011-in.jsonld -
-
expect
-
-expand/0011-out.jsonld -
-
-
-
-Test t0012 @graph with embed -
-
-
-
id
-
#t0012
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph to contain multiple nodes within array
-
input
-
-expand/0012-in.jsonld -
-
expect
-
-expand/0012-out.jsonld -
-
-
-
-Test t0013 expand already expanded -
-
-
-
id
-
#t0013
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expand does not mess up already expanded document
-
input
-
-expand/0013-in.jsonld -
-
expect
-
-expand/0013-out.jsonld -
-
-
-
-Test t0014 @set of @value objects with keyword aliases -
-
-
-
id
-
#t0014
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding aliased @set and @value
-
input
-
-expand/0014-in.jsonld -
-
expect
-
-expand/0014-out.jsonld -
-
-
-
-Test t0015 collapse set of sets, keep empty lists -
-
-
-
id
-
#t0015
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
An array of multiple @set nodes are collapsed into a single array
-
input
-
-expand/0015-in.jsonld -
-
expect
-
-expand/0015-out.jsonld -
-
-
-
-Test t0016 context reset -
-
-
-
id
-
#t0016
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Setting @context to null within an embedded object resets back to initial context state
-
input
-
-expand/0016-in.jsonld -
-
expect
-
-expand/0016-out.jsonld -
-
-
-
-Test t0017 @graph and @id aliased -
-
-
-
id
-
#t0017
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding with @graph and @id aliases
-
input
-
-expand/0017-in.jsonld -
-
expect
-
-expand/0017-out.jsonld -
-
-
-
-Test t0018 override default @language -
-
-
-
id
-
#t0018
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
override default @language in terms; only language-tag strings
-
input
-
-expand/0018-in.jsonld -
-
expect
-
-expand/0018-out.jsonld -
-
-
-
-Test t0019 remove @value = null -
-
-
-
id
-
#t0019
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding a value of null removes the value
-
input
-
-expand/0019-in.jsonld -
-
expect
-
-expand/0019-out.jsonld -
-
-
-
-Test t0020 do not remove @graph if not at top-level -
-
-
-
id
-
#t0020
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
@graph used under a node is retained
-
input
-
-expand/0020-in.jsonld -
-
expect
-
-expand/0020-out.jsonld -
-
-
-
-Test t0021 do not remove @graph at top-level if not only property -
-
-
-
id
-
#t0021
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
@graph used at the top level is retained if there are other properties
-
input
-
-expand/0021-in.jsonld -
-
expect
-
-expand/0021-out.jsonld -
-
-
-
-Test t0022 expand value with default language -
-
-
-
id
-
#t0022
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding with a default language applies that language to string values
-
input
-
-expand/0022-in.jsonld -
-
expect
-
-expand/0022-out.jsonld -
-
-
-
-Test t0023 Expanding list/set with coercion -
-
-
-
id
-
#t0023
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding lists and sets with properties having coercion coerces list/set values
-
input
-
-expand/0023-in.jsonld -
-
expect
-
-expand/0023-out.jsonld -
-
-
-
-Test t0024 Multiple contexts -
-
-
-
id
-
#t0024
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests that contexts in an array are merged
-
input
-
-expand/0024-in.jsonld -
-
expect
-
-expand/0024-out.jsonld -
-
-
-
-Test t0025 Problematic IRI expansion tests -
-
-
-
id
-
#t0025
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding different kinds of terms and Compact IRIs
-
input
-
-expand/0025-in.jsonld -
-
expect
-
-expand/0025-out.jsonld -
-
-
-
-Test t0026 Term definition with @id: @type -
-
-
-
id
-
#t0026
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding term mapping to @type uses @type syntax
-
input
-
-expand/0026-in.jsonld -
-
expect
-
-expand/0026-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0027 Duplicate values in @list and @set -
-
-
-
id
-
#t0027
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Duplicate values in @list and @set are not merged
-
input
-
-expand/0027-in.jsonld -
-
expect
-
-expand/0027-out.jsonld -
-
-
-
-Test t0028 Use @vocab in properties and @type but not in @id -
-
-
-
id
-
#t0028
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
@vocab is used to compact properties and @type, but is not used for @id
-
input
-
-expand/0028-in.jsonld -
-
expect
-
-expand/0028-out.jsonld -
-
-
-
-Test t0029 Relative IRIs -
-
-
-
id
-
#t0029
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
@base is used to compact @id; test with different relative IRIs
-
input
-
-expand/0029-in.jsonld -
-
expect
-
-expand/0029-out.jsonld -
-
-
-
-Test t0030 Language maps -
-
-
-
id
-
#t0030
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Language Maps expand values to include @language
-
input
-
-expand/0030-in.jsonld -
-
expect
-
-expand/0030-out.jsonld -
-
-
-
-Test t0031 type-coercion of native types -
-
-
-
id
-
#t0031
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation
-
input
-
-expand/0031-in.jsonld -
-
expect
-
-expand/0031-out.jsonld -
-
-
-
-Test t0032 Null term and @vocab -
-
-
-
id
-
#t0032
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Mapping a term to null decouples it from @vocab
-
input
-
-expand/0032-in.jsonld -
-
expect
-
-expand/0032-out.jsonld -
-
-
-
-Test t0033 Using @vocab with with type-coercion -
-
-
-
id
-
#t0033
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that terms can be defined using @vocab
-
input
-
-expand/0033-in.jsonld -
-
expect
-
-expand/0033-out.jsonld -
-
-
-
-Test t0034 Multiple properties expanding to the same IRI -
-
-
-
id
-
#t0034
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
-
input
-
-expand/0034-in.jsonld -
-
expect
-
-expand/0034-out.jsonld -
-
-
-
-Test t0035 Language maps with @vocab, default language, and colliding property -
-
-
-
id
-
#t0035
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Pathological tests of language maps
-
input
-
-expand/0035-in.jsonld -
-
expect
-
-expand/0035-out.jsonld -
-
-
-
-Test t0036 Expanding @index -
-
-
-
id
-
#t0036
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps for terms defined with @container: @index
-
input
-
-expand/0036-in.jsonld -
-
expect
-
-expand/0036-out.jsonld -
-
-
-
-Test t0037 Expanding @reverse -
-
-
-
id
-
#t0037
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding @reverse keeps @reverse
-
input
-
-expand/0037-in.jsonld -
-
expect
-
-expand/0037-out.jsonld -
-
-
-
-Test t0038 Expanding blank node labels -
-
-
-
id
-
#t0038
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Blank nodes are not relabeled during expansion
-
input
-
-expand/0038-in.jsonld -
-
expect
-
-expand/0038-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0039 Using terms in a reverse-maps -
-
-
-
id
-
#t0039
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms within @reverse are expanded
-
input
-
-expand/0039-in.jsonld -
-
expect
-
-expand/0039-out.jsonld -
-
-
-
-Test t0040 language and index expansion on non-objects -
-
-
-
id
-
#t0040
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Only invoke language and index map expansion if the value is a JSON object
-
input
-
-expand/0040-in.jsonld -
-
expect
-
-expand/0040-out.jsonld -
-
-
-
-Test t0041 @language: null resets the default language -
-
-
-
id
-
#t0041
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
-
input
-
-expand/0041-in.jsonld -
-
expect
-
-expand/0041-out.jsonld -
-
-
-
-Test t0042 Reverse properties -
-
-
-
id
-
#t0042
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding terms defined as reverse properties uses @reverse in expanded document
-
input
-
-expand/0042-in.jsonld -
-
expect
-
-expand/0042-out.jsonld -
-
-
-
-Test t0043 Using reverse properties inside a @reverse-container -
-
-
-
id
-
#t0043
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding a reverse property within a @reverse undoes both reversals
-
input
-
-expand/0043-in.jsonld -
-
expect
-
-expand/0043-out.jsonld -
-
-
-
-Test t0044 Index maps with language mappings -
-
-
-
id
-
#t0044
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Ensure index maps use language mapping
-
input
-
-expand/0044-in.jsonld -
-
expect
-
-expand/0044-out.jsonld -
-
-
-
-Test t0045 Top-level value objects -
-
-
-
id
-
#t0045
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding top-level value objects causes them to be removed
-
input
-
-expand/0045-in.jsonld -
-
expect
-
-expand/0045-out.jsonld -
-
-
-
-Test t0046 Free-floating nodes -
-
-
-
id
-
#t0046
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding free-floating nodes causes them to be removed
-
input
-
-expand/0046-in.jsonld -
-
expect
-
-expand/0046-out.jsonld -
-
-
-
-Test t0047 Free-floating values in sets and free-floating lists -
-
-
-
id
-
#t0047
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Free-floating values in sets are removed, free-floating lists are removed completely
-
input
-
-expand/0047-in.jsonld -
-
expect
-
-expand/0047-out.jsonld -
-
-
-
-Test t0048 Terms are ignored in @id -
-
-
-
id
-
#t0048
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Values of @id are not expanded as terms
-
input
-
-expand/0048-in.jsonld -
-
expect
-
-expand/0048-out.jsonld -
-
-
-
-Test t0049 String values of reverse properties -
-
-
-
id
-
#t0049
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
String values of a reverse property with @type: @id are treated as IRIs
-
input
-
-expand/0049-in.jsonld -
-
expect
-
-expand/0049-out.jsonld -
-
-
-
-Test t0050 Term definitions with prefix separate from prefix definitions -
-
-
-
id
-
#t0050
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Term definitions using compact IRIs don't inherit the definitions of the prefix
-
input
-
-expand/0050-in.jsonld -
-
expect
-
-expand/0050-out.jsonld -
-
-
-
-Test t0051 Expansion of keyword aliases in term definitions -
-
-
-
id
-
#t0051
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding terms which are keyword aliases
-
input
-
-expand/0051-in.jsonld -
-
expect
-
-expand/0051-out.jsonld -
-
-
-
-Test t0052 @vocab-relative IRIs in term definitions -
-
-
-
id
-
#t0052
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If @vocab is defined, term definitions are expanded relative to @vocab
-
input
-
-expand/0052-in.jsonld -
-
expect
-
-expand/0052-out.jsonld -
-
-
-
-Test t0053 Expand absolute IRI with @type: @vocab -
-
-
-
id
-
#t0053
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding values of properties of @type: @vocab does not further expand absolute IRIs
-
input
-
-expand/0053-in.jsonld -
-
expect
-
-expand/0053-out.jsonld -
-
-
-
-Test t0054 Expand term with @type: @vocab -
-
-
-
id
-
#t0054
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding values of properties of @type: @vocab does not expand term values
-
input
-
-expand/0054-in.jsonld -
-
expect
-
-expand/0054-out.jsonld -
-
-
-
-Test t0055 Expand @vocab-relative term with @type: @vocab -
-
-
-
id
-
#t0055
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding values of properties of @type: @vocab expands relative IRIs using @vocab
-
input
-
-expand/0055-in.jsonld -
-
expect
-
-expand/0055-out.jsonld -
-
-
-
-Test t0056 Use terms with @type: @vocab but not with @type: @id -
-
-
-
id
-
#t0056
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Checks that expansion uses appropriate base depending on term definition having @type @id or @vocab
-
input
-
-expand/0056-in.jsonld -
-
expect
-
-expand/0056-out.jsonld -
-
-
-
-Test t0057 Expand relative IRI with @type: @vocab -
-
-
-
id
-
#t0057
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Relative values of terms with @type: @vocab expand relative to @vocab
-
input
-
-expand/0057-in.jsonld -
-
expect
-
-expand/0057-out.jsonld -
-
-
-
-Test t0058 Expand compact IRI with @type: @vocab -
-
-
-
id
-
#t0058
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Compact IRIs are expanded normally even if term has @type: @vocab
-
input
-
-expand/0058-in.jsonld -
-
expect
-
-expand/0058-out.jsonld -
-
-
-
-Test t0059 Reset @vocab by setting it to null -
-
-
-
id
-
#t0059
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Setting @vocab to null removes a previous definition
-
input
-
-expand/0059-in.jsonld -
-
expect
-
-expand/0059-out.jsonld -
-
-
-
-Test t0060 Overwrite document base with @base and reset it again -
-
-
-
id
-
#t0060
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Setting @base to an IRI and then resetting it to nil
-
input
-
-expand/0060-in.jsonld -
-
expect
-
-expand/0060-out.jsonld -
-
-
-
-Test t0061 Coercing native types to arbitrary datatypes -
-
-
-
id
-
#t0061
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding native types when coercing to arbitrary datatypes
-
input
-
-expand/0061-in.jsonld -
-
expect
-
-expand/0061-out.jsonld -
-
-
-
-Test t0062 Various relative IRIs with with @base -
-
-
-
id
-
#t0062
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Pathological relative IRIs
-
input
-
-expand/0062-in.jsonld -
-
expect
-
-expand/0062-out.jsonld -
-
-
-
-Test t0063 Reverse property and index container -
-
-
-
id
-
#t0063
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expaning reverse properties with an index-container
-
input
-
-expand/0063-in.jsonld -
-
expect
-
-expand/0063-out.jsonld -
-
-
-
-Test t0064 bnode values of reverse properties -
-
-
-
id
-
#t0064
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expand reverse property whose values are unlabeled blank nodes
-
input
-
-expand/0064-in.jsonld -
-
expect
-
-expand/0064-out.jsonld -
-
-
-
-Test t0065 Drop unmapped keys in reverse map -
-
-
-
id
-
#t0065
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Keys that are not mapped to an IRI in a reverse-map are dropped
-
input
-
-expand/0065-in.jsonld -
-
expect
-
-expand/0065-out.jsonld -
-
-
-
-Test t0066 Reverse-map keys with @vocab -
-
-
-
id
-
#t0066
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expand uses @vocab to expand keys in reverse-maps
-
input
-
-expand/0066-in.jsonld -
-
expect
-
-expand/0066-out.jsonld -
-
-
-
-Test t0067 prefix://suffix not a compact IRI -
-
-
-
id
-
#t0067
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
prefix:suffix values are not interpreted as compact IRIs if suffix begins with two slashes
-
input
-
-expand/0067-in.jsonld -
-
expect
-
-expand/0067-out.jsonld -
-
-
-
-Test t0068 _:suffix values are not a compact IRI -
-
-
-
id
-
#t0068
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
prefix:suffix values are not interpreted as compact IRIs if prefix is an underscore
-
input
-
-expand/0068-in.jsonld -
-
expect
-
-expand/0068-out.jsonld -
-
-
-
-Test t0069 Compact IRI as term with type mapping -
-
-
-
id
-
#t0069
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Redefine compact IRI to define type mapping using the compact IRI itself as value of @id
-
input
-
-expand/0069-in.jsonld -
-
expect
-
-expand/0069-out.jsonld -
-
-
-
-Test t0070 Compact IRI as term defined using equivalent compact IRI -
-
-
-
id
-
#t0070
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Redefine compact IRI to define type mapping using the compact IRI itself as string value
-
input
-
-expand/0070-in.jsonld -
-
expect
-
-expand/0070-out.jsonld -
-
-
-
-Test t0071 Redefine terms looking like compact IRIs -
-
-
-
id
-
#t0071
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Term definitions may look like compact IRIs
-
input
-
-expand/0071-in.jsonld -
-
expect
-
-expand/0071-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0072 Redefine term using @vocab, not itself -
-
-
-
id
-
#t0072
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Redefining a term as itself when @vocab is defined uses @vocab, not previous term definition
-
input
-
-expand/0072-in.jsonld -
-
expect
-
-expand/0072-out.jsonld -
-
-
-
-Test t0073 @context not first property -
-
-
-
id
-
#t0073
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
-
input
-
-expand/0073-in.jsonld -
-
expect
-
-expand/0073-out.jsonld -
-
-
-
-Test t0074 @id not first property -
-
-
-
id
-
#t0074
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
-
input
-
-expand/0074-in.jsonld -
-
expect
-
-expand/0074-out.jsonld -
-
-
-
-Test t0075 @vocab as blank node identifier -
-
-
-
id
-
#t0075
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use @vocab to map all properties to blank node identifiers
-
input
-
-expand/0075-in.jsonld -
-
expect
-
-expand/0075-out.jsonld -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test t0076 base option overrides document location -
-
-
-
id
-
#t0076
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of the base option overrides the document location
-
input
-
-expand/0076-in.jsonld -
-
expect
-
-expand/0076-out.jsonld -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test t0077 expandContext option -
-
-
-
id
-
#t0077
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of the expandContext option to expand the input document
-
input
-
-expand/0077-in.jsonld -
-
expect
-
-expand/0077-out.jsonld -
-
Options
-
-
-
expandContext
-
expand/0077-context.jsonld
-
-
-
-
-
-Test t0078 multiple reverse properties -
-
-
-
id
-
#t0078
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of multiple reverse properties
-
input
-
-expand/0078-in.jsonld -
-
expect
-
-expand/0078-out.jsonld -
-
-
-
-Test t0079 expand @graph container -
-
-
-
id
-
#t0079
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers
-
input
-
-expand/0079-in.jsonld -
-
expect
-
-expand/0079-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0080 expand [@graph, @set] container -
-
-
-
id
-
#t0080
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of [@graph, @set] containers
-
input
-
-expand/0080-in.jsonld -
-
expect
-
-expand/0080-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0081 Creates an @graph container if value is a graph -
-
-
-
id
-
#t0081
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Don't double-expand an already expanded graph
-
input
-
-expand/0081-in.jsonld -
-
expect
-
-expand/0081-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0082 expand [@graph, @index] container -
-
-
-
id
-
#t0082
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @index
-
input
-
-expand/0082-in.jsonld -
-
expect
-
-expand/0082-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0083 expand [@graph, @index, @set] container -
-
-
-
id
-
#t0083
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @index and @set
-
input
-
-expand/0083-in.jsonld -
-
expect
-
-expand/0083-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0084 Do not expand [@graph, @index] container if value is a graph -
-
-
-
id
-
#t0084
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-expand/0084-in.jsonld -
-
expect
-
-expand/0084-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0085 expand [@graph, @id] container -
-
-
-
id
-
#t0085
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @id
-
input
-
-expand/0085-in.jsonld -
-
expect
-
-expand/0085-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0086 expand [@graph, @id, @set] container -
-
-
-
id
-
#t0086
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @id and @set
-
input
-
-expand/0086-in.jsonld -
-
expect
-
-expand/0086-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0087 Do not expand [@graph, @id] container if value is a graph -
-
-
-
id
-
#t0087
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-expand/0087-in.jsonld -
-
expect
-
-expand/0087-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0088 Do not expand native values to IRIs -
-
-
-
id
-
#t0088
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Value Expansion does not expand native values, such as booleans, to a node object
-
input
-
-expand/0088-in.jsonld -
-
expect
-
-expand/0088-out.jsonld -
-
-
-
-Test t0089 empty @base applied to the base option -
-
-
-
id
-
#t0089
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of an empty @base is applied to the base option
-
input
-
-expand/0089-in.jsonld -
-
expect
-
-expand/0089-out.jsonld -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test t0090 relative @base overrides base option and document location -
-
-
-
id
-
#t0090
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of a relative @base overrides base option and document location
-
input
-
-expand/0090-in.jsonld -
-
expect
-
-expand/0090-out.jsonld -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test t0091 relative and absolute @base overrides base option and document location -
-
-
-
id
-
#t0091
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of a relative and absolute @base overrides base option and document location
-
input
-
-expand/0091-in.jsonld -
-
expect
-
-expand/0091-out.jsonld -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test t0092 Various relative IRIs as properties with with @vocab: '' -
-
-
-
id
-
#t0092
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-expand/0092-in.jsonld -
-
expect
-
-expand/0092-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0093 expand @graph container (multiple objects) -
-
-
-
id
-
#t0093
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers
-
input
-
-expand/0093-in.jsonld -
-
expect
-
-expand/0093-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0094 expand [@graph, @set] container (multiple objects) -
-
-
-
id
-
#t0094
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of [@graph, @set] containers
-
input
-
-expand/0094-in.jsonld -
-
expect
-
-expand/0094-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0095 Creates an @graph container if value is a graph (multiple objects) -
-
-
-
id
-
#t0095
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Double-expand an already expanded graph
-
input
-
-expand/0095-in.jsonld -
-
expect
-
-expand/0095-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0096 expand [@graph, @index] container (multiple indexed objects) -
-
-
-
id
-
#t0096
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @index
-
input
-
-expand/0096-in.jsonld -
-
expect
-
-expand/0096-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0097 expand [@graph, @index, @set] container (multiple objects) -
-
-
-
id
-
#t0097
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @index and @set
-
input
-
-expand/0097-in.jsonld -
-
expect
-
-expand/0097-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0098 Do not expand [@graph, @index] container if value is a graph (multiple objects) -
-
-
-
id
-
#t0098
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-expand/0098-in.jsonld -
-
expect
-
-expand/0098-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0099 expand [@graph, @id] container (multiple objects) -
-
-
-
id
-
#t0099
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @id
-
input
-
-expand/0099-in.jsonld -
-
expect
-
-expand/0099-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0100 expand [@graph, @id, @set] container (multiple objects) -
-
-
-
id
-
#t0100
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @id and @set
-
input
-
-expand/0100-in.jsonld -
-
expect
-
-expand/0100-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0101 Do not expand [@graph, @id] container if value is a graph (multiple objects) -
-
-
-
id
-
#t0101
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-expand/0101-in.jsonld -
-
expect
-
-expand/0101-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0102 Expand @graph container if value is a graph (multiple objects) -
-
-
-
id
-
#t0102
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Creates a new graph object if indexed value is already a graph object
-
input
-
-expand/0102-in.jsonld -
-
expect
-
-expand/0102-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0103 Expand @graph container if value is a graph (multiple graphs) -
-
-
-
id
-
#t0103
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Creates a new graph object if indexed value is already a graph object
-
input
-
-expand/0103-in.jsonld -
-
expect
-
-expand/0103-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0104 Creates an @graph container if value is a graph (mixed graph and object) -
-
-
-
id
-
#t0104
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Double-expand an already expanded graph
-
input
-
-expand/0104-in.jsonld -
-
expect
-
-expand/0104-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0105 Do not expand [@graph, @index] container if value is a graph (mixed graph and object) -
-
-
-
id
-
#t0105
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-expand/0105-in.jsonld -
-
expect
-
-expand/0105-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0106 Do not expand [@graph, @id] container if value is a graph (mixed graph and object) -
-
-
-
id
-
#t0106
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-expand/0106-in.jsonld -
-
expect
-
-expand/0106-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0107 expand [@graph, @index] container (indexes with multiple objects) -
-
-
-
id
-
#t0107
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @index
-
input
-
-expand/0107-in.jsonld -
-
expect
-
-expand/0107-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0108 expand [@graph, @id] container (multiple ids and objects) -
-
-
-
id
-
#t0108
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Use of @graph containers with @id
-
input
-
-expand/0108-in.jsonld -
-
expect
-
-expand/0108-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0109 IRI expansion of fragments including ':' -
-
-
-
id
-
#t0109
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
-
input
-
-expand/0109-in.jsonld -
-
expect
-
-expand/0109-out.jsonld -
-
-
-
-Test t0110 Various relative IRIs as properties with with relative @vocab -
-
-
-
id
-
#t0110
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-expand/0110-in.jsonld -
-
expect
-
-expand/0110-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0111 Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base -
-
-
-
id
-
#t0111
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-expand/0111-in.jsonld -
-
expect
-
-expand/0111-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0112 Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base -
-
-
-
id
-
#t0112
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-expand/0112-in.jsonld -
-
expect
-
-expand/0112-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0113 context with JavaScript Object property names -
-
-
-
id
-
#t0113
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expand with context including JavaScript Object property names
-
input
-
-expand/0113-in.jsonld -
-
expect
-
-expand/0113-out.jsonld -
-
-
-
-Test t0114 Expansion allows multiple properties expanding to @type -
-
-
-
id
-
#t0114
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
An exception for the colliding keywords error is made for @type
-
input
-
-expand/0114-in.jsonld -
-
expect
-
-expand/0114-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0115 Verifies that relative IRIs as properties with @vocab: '' in 1.0 generate an error -
-
-
-
id
-
#t0115
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Relative property IRIs with relative @vocab in 1.0
-
input
-
-expand/0115-in.jsonld -
-
expect
-
-invalid vocab mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0116 Verifies that relative IRIs as properties with relative @vocab in 1.0 generate an error -
-
-
-
id
-
#t0116
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Relative property IRIs with relative @vocab in 1.0
-
input
-
-expand/0116-in.jsonld -
-
expect
-
-invalid vocab mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0117 A term starting with a colon can expand to a different IRI -
-
-
-
id
-
#t0117
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms may begin with a colon and not be treated as IRIs.
-
input
-
-expand/0117-in.jsonld -
-
expect
-
-expand/0117-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0118 Expanding a value staring with a colon does not treat that value as an IRI -
-
-
-
id
-
#t0118
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms may begin with a colon and not be treated as IRIs.
-
input
-
-expand/0118-in.jsonld -
-
expect
-
-expand/0118-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0119 Ignore some terms with @, allow others. -
-
-
-
id
-
#t0119
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
-
input
-
-expand/0119-in.jsonld -
-
expect
-
-expand/0119-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0120 Ignore some values of @id with @, allow others. -
-
-
-
id
-
#t0120
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
-
input
-
-expand/0120-in.jsonld -
-
expect
-
-expand/0120-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0121 Ignore some values of @reverse with @, allow others. -
-
-
-
id
-
#t0121
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
-
input
-
-expand/0121-in.jsonld -
-
expect
-
-expand/0121-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0122 Ignore some IRIs when that start with @ when expanding. -
-
-
-
id
-
#t0122
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword. (Note: the resulting document will not be valid JSON-LD, due to the `null` value for `@id`)
-
input
-
-expand/0122-in.jsonld -
-
expect
-
-expand/0122-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
normative
-
false
-
-
-
-
-
-Test t0123 Value objects including invalid literal datatype IRIs are rejected -
-
-
-
id
-
#t0123
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Processors MUST validate datatype IRIs.
-
input
-
-expand/0123-in.jsonld -
-
expect
-
-invalid typed value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0124 compact IRI as @vocab -
-
-
-
id
-
#t0124
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that @vocab defined as a compact IRI expands properly
-
input
-
-expand/0124-in.jsonld -
-
expect
-
-expand/0124-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0125 term as @vocab -
-
-
-
id
-
#t0125
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that @vocab defined as a term expands properly
-
input
-
-expand/0125-in.jsonld -
-
expect
-
-expand/0125-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0126 A scoped context may include itself recursively (direct) -
-
-
-
id
-
#t0126
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
-
input
-
-expand/0126-in.jsonld -
-
expect
-
-expand/0126-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0127 A scoped context may include itself recursively (indirect) -
-
-
-
id
-
#t0127
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
-
input
-
-expand/0127-in.jsonld -
-
expect
-
-expand/0127-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0128 Two scoped context may include a shared context -
-
-
-
id
-
#t0128
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
-
input
-
-expand/0128-in.jsonld -
-
expect
-
-expand/0128-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test t0129 Base without trailing slash, without path -
-
-
-
id
-
#t0129
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
-
input
-
-expand/0129-in.jsonld -
-
expect
-
-expand/0129-out.jsonld -
-
-
-
-Test t0130 Base without trailing slash, with path -
-
-
-
id
-
#t0130
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
-
input
-
-expand/0130-in.jsonld -
-
expect
-
-expand/0130-out.jsonld -
-
-
-
-Test t0131 Reverse term with property based indexed container -
-
-
-
id
-
#t0131
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding a reverse term using @container: @index and @index set to a property
-
input
-
-expand/0131-in.jsonld -
-
expect
-
-expand/0131-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc001 adding new term -
-
-
-
id
-
#tc001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-expand/c001-in.jsonld -
-
expect
-
-expand/c001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc002 overriding a term -
-
-
-
id
-
#tc002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-expand/c002-in.jsonld -
-
expect
-
-expand/c002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc003 property and value with different terms mapping to the same expanded property -
-
-
-
id
-
#tc003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-expand/c003-in.jsonld -
-
expect
-
-expand/c003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc004 deep @context affects nested nodes -
-
-
-
id
-
#tc004
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-expand/c004-in.jsonld -
-
expect
-
-expand/c004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc005 scoped context layers on intemediate contexts -
-
-
-
id
-
#tc005
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-expand/c005-in.jsonld -
-
expect
-
-expand/c005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc006 adding new term -
-
-
-
id
-
#tc006
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c006-in.jsonld -
-
expect
-
-expand/c006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc007 overriding a term -
-
-
-
id
-
#tc007
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c007-in.jsonld -
-
expect
-
-expand/c007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc008 alias of @type -
-
-
-
id
-
#tc008
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c008-in.jsonld -
-
expect
-
-expand/c008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc009 deep @type-scoped @context does NOT affect nested nodes -
-
-
-
id
-
#tc009
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c009-in.jsonld -
-
expect
-
-expand/c009-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc010 scoped context layers on intemediate contexts -
-
-
-
id
-
#tc010
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c010-in.jsonld -
-
expect
-
-expand/c010-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc011 orders @type terms when applying scoped contexts -
-
-
-
id
-
#tc011
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c011-in.jsonld -
-
expect
-
-expand/c011-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc012 deep property-term scoped @context in @type-scoped @context affects nested nodes -
-
-
-
id
-
#tc012
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c012-in.jsonld -
-
expect
-
-expand/c012-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc013 type maps use scoped context from type index and not scoped context from containing -
-
-
-
id
-
#tc013
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/c013-in.jsonld -
-
expect
-
-expand/c013-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc014 type-scoped context nullification -
-
-
-
id
-
#tc014
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped context nullification
-
input
-
-expand/c014-in.jsonld -
-
expect
-
-expand/c014-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc015 type-scoped base -
-
-
-
id
-
#tc015
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped base
-
input
-
-expand/c015-in.jsonld -
-
expect
-
-expand/c015-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc016 type-scoped vocab -
-
-
-
id
-
#tc016
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped vocab
-
input
-
-expand/c016-in.jsonld -
-
expect
-
-expand/c016-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc017 multiple type-scoped contexts are properly reverted -
-
-
-
id
-
#tc017
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
multiple type-scoped contexts are property reverted
-
input
-
-expand/c017-in.jsonld -
-
expect
-
-expand/c017-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc018 multiple type-scoped types resolved against previous context -
-
-
-
id
-
#tc018
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
multiple type-scoped types resolved against previous context
-
input
-
-expand/c018-in.jsonld -
-
expect
-
-expand/c018-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc019 type-scoped context with multiple property scoped terms -
-
-
-
id
-
#tc019
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped context with multiple property scoped terms
-
input
-
-expand/c019-in.jsonld -
-
expect
-
-expand/c019-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc020 type-scoped value -
-
-
-
id
-
#tc020
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped value
-
input
-
-expand/c020-in.jsonld -
-
expect
-
-expand/c020-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc021 type-scoped value mix -
-
-
-
id
-
#tc021
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped value mix
-
input
-
-expand/c021-in.jsonld -
-
expect
-
-expand/c021-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc022 type-scoped property-scoped contexts including @type:@vocab -
-
-
-
id
-
#tc022
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped property-scoped contexts including @type:@vocab
-
input
-
-expand/c022-in.jsonld -
-
expect
-
-expand/c022-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc023 composed type-scoped property-scoped contexts including @type:@vocab -
-
-
-
id
-
#tc023
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
composed type-scoped property-scoped contexts including @type:@vocab
-
input
-
-expand/c023-in.jsonld -
-
expect
-
-expand/c023-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc024 type-scoped + property-scoped + values evaluates against previous context -
-
-
-
id
-
#tc024
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped + property-scoped + values evaluates against previous context
-
input
-
-expand/c024-in.jsonld -
-
expect
-
-expand/c024-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc025 type-scoped + graph container -
-
-
-
id
-
#tc025
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped + graph container
-
input
-
-expand/c025-in.jsonld -
-
expect
-
-expand/c025-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc026 @propagate: true on type-scoped context -
-
-
-
id
-
#tc026
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped context with @propagate: true survive node-objects
-
input
-
-expand/c026-in.jsonld -
-
expect
-
-expand/c026-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc027 @propagate: false on property-scoped context -
-
-
-
id
-
#tc027
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
property-scoped context with @propagate: false do not survive node-objects
-
input
-
-expand/c027-in.jsonld -
-
expect
-
-expand/c027-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc028 @propagate: false on embedded context -
-
-
-
id
-
#tc028
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
embedded context with @propagate: false do not survive node-objects
-
input
-
-expand/c028-in.jsonld -
-
expect
-
-expand/c028-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc029 @propagate is invalid in 1.0 -
-
-
-
id
-
#tc029
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@propagate is invalid in 1.0
-
input
-
-expand/c029-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test tc030 @propagate must be boolean valued -
-
-
-
id
-
#tc030
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@propagate must be boolean valued
-
input
-
-expand/c030-in.jsonld -
-
expect
-
-invalid @propagate value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc031 @context resolutions respects relative URLs. -
-
-
-
id
-
#tc031
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
URL resolution follows RFC3986
-
input
-
-expand/c031-in.jsonld -
-
expect
-
-expand/c031-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc032 Unused embedded context with error. -
-
-
-
id
-
#tc032
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
An embedded context which is never used should still be checked.
-
input
-
-expand/c032-in.jsonld -
-
expect
-
-invalid scoped context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc033 Unused context with an embedded context error. -
-
-
-
id
-
#tc033
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
An unused context with an embedded context should still be checked.
-
input
-
-expand/c033-in.jsonld -
-
expect
-
-invalid scoped context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc034 Remote scoped context. -
-
-
-
id
-
#tc034
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Scoped contexts may be externally loaded.
-
input
-
-expand/c034-in.jsonld -
-
expect
-
-expand/c034-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc035 Term scoping with embedded contexts. -
-
-
-
id
-
#tc035
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
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 -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc036 Expansion with empty property-scoped context. -
-
-
-
id
-
#tc036
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
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 -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc037 property-scoped contexts which are alias of @nest -
-
-
-
id
-
#tc037
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Nesting terms may have property-scoped contexts defined.
-
input
-
-expand/c037-in.jsonld -
-
expect
-
-expand/c037-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc038 Bibframe example (poor-mans inferrence) -
-
-
-
id
-
#tc038
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Nesting terms may have property-scoped contexts defined.
-
input
-
-expand/c038-in.jsonld -
-
expect
-
-expand/c038-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi01 Expand string using default and term directions -
-
-
-
id
-
#tdi01
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Strings are coerced to have @direction based on default and term direction.
-
input
-
-expand/di01-in.jsonld -
-
expect
-
-expand/di01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi02 Expand string using default and term directions and languages -
-
-
-
id
-
#tdi02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Strings are coerced to have @direction based on default and term direction.
-
input
-
-expand/di02-in.jsonld -
-
expect
-
-expand/di02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi03 expand list values with @direction -
-
-
-
id
-
#tdi03
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List values where the term has @direction are used in expansion.
-
input
-
-expand/di03-in.jsonld -
-
expect
-
-expand/di03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi04 simple language map with term direction -
-
-
-
id
-
#tdi04
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-expand/di04-in.jsonld -
-
expect
-
-expand/di04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi05 simple language mapwith overriding term direction -
-
-
-
id
-
#tdi05
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-expand/di05-in.jsonld -
-
expect
-
-expand/di05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi06 simple language mapwith overriding null direction -
-
-
-
id
-
#tdi06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-expand/di06-in.jsonld -
-
expect
-
-expand/di06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi07 simple language map with mismatching term direction -
-
-
-
id
-
#tdi07
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-expand/di07-in.jsonld -
-
expect
-
-expand/di07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi08 @direction must be one of ltr or rtl -
-
-
-
id
-
#tdi08
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Generate an error if @direction has illegal value.
-
input
-
-expand/di08-in.jsonld -
-
expect
-
-invalid base direction -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi09 @direction is incompatible with @type -
-
-
-
id
-
#tdi09
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Value objects can have either @type but not @language or @direction.
-
input
-
-expand/di09-in.jsonld -
-
expect
-
-invalid value object -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tec01 Invalid keyword in term definition -
-
-
-
id
-
#tec01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid term definition is found
-
input
-
-expand/ec01-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tec02 Term definition on @type with empty map -
-
-
-
id
-
#tec02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised if @type is defined as a term with an empty map
-
input
-
-expand/ec02-in.jsonld -
-
expect
-
-keyword redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tem01 Invalid container mapping -
-
-
-
id
-
#tem01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid container mapping is found
-
input
-
-expand/em01-in.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten01 @nest MUST NOT have a string value -
-
-
-
id
-
#ten01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
container: @nest
-
input
-
-expand/en01-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten02 @nest MUST NOT have a boolen value -
-
-
-
id
-
#ten02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Transparent Nesting
-
input
-
-expand/en02-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten03 @nest MUST NOT have a numeric value -
-
-
-
id
-
#ten03
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Transparent Nesting
-
input
-
-expand/en03-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten04 @nest MUST NOT have a value object value -
-
-
-
id
-
#ten04
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Transparent Nesting
-
input
-
-expand/en04-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten05 does not allow a keyword other than @nest for the value of @nest -
-
-
-
id
-
#ten05
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Transparent Nesting
-
input
-
-expand/en05-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten06 does not allow @nest with @reverse -
-
-
-
id
-
#ten06
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Transparent Nesting
-
input
-
-expand/en06-in.jsonld -
-
expect
-
-invalid reverse property -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1 -
-
-
-
id
-
#tep02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
-
input
-
-expand/ep02-in.jsonld -
-
expect
-
-processing mode conflict -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep03 @version must be 1.1 -
-
-
-
id
-
#tep03
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
If @version is specified, it must be 1.1
-
input
-
-expand/ep03-in.jsonld -
-
expect
-
-invalid @version value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter01 Keywords cannot be aliased to other keywords -
-
-
-
id
-
#ter01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
-
input
-
-expand/er01-in.jsonld -
-
expect
-
-keyword redefinition -
-
-
-
-Test ter02 A context may not include itself recursively (direct) -
-
-
-
id
-
#ter02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing a context referencing itself
-
input
-
-expand/er02-in.jsonld -
-
expect
-
-recursive context inclusion -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter03 A context may not include itself recursively (indirect) -
-
-
-
id
-
#ter03
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
-
input
-
-expand/er03-in.jsonld -
-
expect
-
-recursive context inclusion -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter04 Error dereferencing a remote context -
-
-
-
id
-
#ter04
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context dereference results in an error
-
input
-
-expand/er04-in.jsonld -
-
expect
-
-loading remote context failed -
-
-
-
-Test ter05 Invalid remote context -
-
-
-
id
-
#ter05
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a remote context is not an object containing @context
-
input
-
-expand/er05-in.jsonld -
-
expect
-
-invalid remote context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter06 Invalid local context -
-
-
-
id
-
#ter06
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context is not a string or object
-
input
-
-expand/er06-in.jsonld -
-
expect
-
-invalid local context -
-
-
-
-Test ter07 Invalid base IRI -
-
-
-
id
-
#ter07
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @base
-
input
-
-expand/er07-in.jsonld -
-
expect
-
-invalid base IRI -
-
-
-
-Test ter08 Invalid vocab mapping -
-
-
-
id
-
#ter08
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
-
input
-
-expand/er08-in.jsonld -
-
expect
-
-invalid vocab mapping -
-
-
-
-Test ter09 Invalid default language -
-
-
-
id
-
#ter09
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @language
-
input
-
-expand/er09-in.jsonld -
-
expect
-
-invalid default language -
-
-
-
-Test ter10 Cyclic IRI mapping -
-
-
-
id
-
#ter10
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
-
input
-
-expand/er10-in.jsonld -
-
expect
-
-cyclic IRI mapping -
-
-
-
-Test ter11 Invalid term definition -
-
-
-
id
-
#ter11
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid term definition is found
-
input
-
-expand/er11-in.jsonld -
-
expect
-
-invalid term definition -
-
-
-
-Test ter12 Invalid type mapping (not a string) -
-
-
-
id
-
#ter12
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid type mapping is found
-
input
-
-expand/er12-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test ter13 Invalid type mapping (not absolute IRI) -
-
-
-
id
-
#ter13
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid type mapping is found
-
input
-
-expand/er13-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test ter14 Invalid reverse property (contains @id) -
-
-
-
id
-
#ter14
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid reverse property is found
-
input
-
-expand/er14-in.jsonld -
-
expect
-
-invalid reverse property -
-
-
-
-Test ter15 Invalid IRI mapping (@reverse not a string) -
-
-
-
id
-
#ter15
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
-
input
-
-expand/er15-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter17 Invalid reverse property (invalid @container) -
-
-
-
id
-
#ter17
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid reverse property is found
-
input
-
-expand/er17-in.jsonld -
-
expect
-
-invalid reverse property -
-
-
-
-Test ter18 Invalid IRI mapping (@id not a string) -
-
-
-
id
-
#ter18
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
-
input
-
-expand/er18-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter19 Invalid keyword alias (@context) -
-
-
-
id
-
#ter19
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid keyword alias is found
-
input
-
-expand/er19-in.jsonld -
-
expect
-
-invalid keyword alias -
-
-
-
-Test ter20 Invalid IRI mapping (no vocab mapping) -
-
-
-
id
-
#ter20
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
-
input
-
-expand/er20-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter21 Invalid container mapping -
-
-
-
id
-
#ter21
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid container mapping is found
-
input
-
-expand/er21-in.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter22 Invalid language mapping -
-
-
-
id
-
#ter22
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid language mapping is found
-
input
-
-expand/er22-in.jsonld -
-
expect
-
-invalid language mapping -
-
-
-
-Test ter23 Invalid IRI mapping (relative IRI in @type) -
-
-
-
id
-
#ter23
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid type mapping is found
-
input
-
-expand/er23-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test ter24 List of lists (from array) -
-
-
-
id
-
#ter24
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when a list of lists is found
-
input
-
-expand/er24-in.jsonld -
-
expect
-
-list of lists -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter25 Invalid reverse property map -
-
-
-
id
-
#ter25
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when a invalid reverse property map is found
-
input
-
-expand/er25-in.jsonld -
-
expect
-
-invalid reverse property map -
-
-
-
-Test ter26 Colliding keywords -
-
-
-
id
-
#ter26
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when colliding keywords are found
-
input
-
-expand/er26-in.jsonld -
-
expect
-
-colliding keywords -
-
-
-
-Test ter27 Invalid @id value -
-
-
-
id
-
#ter27
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid @id value is found
-
input
-
-expand/er27-in.jsonld -
-
expect
-
-invalid @id value -
-
-
-
-Test ter28 Invalid type value -
-
-
-
id
-
#ter28
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid type value is found
-
input
-
-expand/er28-in.jsonld -
-
expect
-
-invalid type value -
-
-
-
-Test ter29 Invalid value object value -
-
-
-
id
-
#ter29
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object value is found
-
input
-
-expand/er29-in.jsonld -
-
expect
-
-invalid value object value -
-
-
-
-Test ter30 Invalid language-tagged string -
-
-
-
id
-
#ter30
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
-
input
-
-expand/er30-in.jsonld -
-
expect
-
-invalid language-tagged string -
-
-
-
-Test ter31 Invalid @index value -
-
-
-
id
-
#ter31
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid @index value value is found
-
input
-
-expand/er31-in.jsonld -
-
expect
-
-invalid @index value -
-
-
-
-Test ter32 List of lists (from array) -
-
-
-
id
-
#ter32
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when a list of lists is found
-
input
-
-expand/er32-in.jsonld -
-
expect
-
-list of lists -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter33 Invalid @reverse value -
-
-
-
id
-
#ter33
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid @reverse value is found
-
input
-
-expand/er33-in.jsonld -
-
expect
-
-invalid @reverse value -
-
-
-
-Test ter34 Invalid reverse property value (in @reverse) -
-
-
-
id
-
#ter34
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
-
input
-
-expand/er34-in.jsonld -
-
expect
-
-invalid reverse property value -
-
-
-
-Test ter35 Invalid language map value -
-
-
-
id
-
#ter35
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid language map value is found
-
input
-
-expand/er35-in.jsonld -
-
expect
-
-invalid language map value -
-
-
-
-Test ter36 Invalid reverse property value (through coercion) -
-
-
-
id
-
#ter36
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
-
input
-
-expand/er36-in.jsonld -
-
expect
-
-invalid reverse property value -
-
-
-
-Test ter37 Invalid value object (unexpected keyword) -
-
-
-
id
-
#ter37
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object is found
-
input
-
-expand/er37-in.jsonld -
-
expect
-
-invalid value object -
-
-
-
-Test ter38 Invalid value object (@type and @language) -
-
-
-
id
-
#ter38
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object is found
-
input
-
-expand/er38-in.jsonld -
-
expect
-
-invalid value object -
-
-
-
-Test ter39 Invalid language-tagged value -
-
-
-
id
-
#ter39
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
-
input
-
-expand/er39-in.jsonld -
-
expect
-
-invalid language-tagged value -
-
-
-
-Test ter40 Invalid typed value -
-
-
-
id
-
#ter40
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid typed value is found
-
input
-
-expand/er40-in.jsonld -
-
expect
-
-invalid typed value -
-
-
-
-Test ter41 Invalid set or list object -
-
-
-
id
-
#ter41
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid set or list object is found
-
input
-
-expand/er41-in.jsonld -
-
expect
-
-invalid set or list object -
-
-
-
-Test ter42 Keywords may not be redefined in 1.0 -
-
-
-
id
-
#ter42
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
-
input
-
-expand/er42-in.jsonld -
-
expect
-
-keyword redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test ter43 Term definition with @id: @type -
-
-
-
id
-
#ter43
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding term mapping to @type uses @type syntax now illegal
-
input
-
-expand/er43-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter44 Redefine terms looking like compact IRIs -
-
-
-
id
-
#ter44
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Term definitions may look like compact IRIs, but must be consistent.
-
input
-
-expand/er44-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter48 Invalid term as relative IRI -
-
-
-
id
-
#ter48
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that a relative IRI cannot be used as a term.
-
input
-
-expand/er48-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter49 A relative IRI cannot be used as a prefix -
-
-
-
id
-
#ter49
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that a relative IRI cannot be used as a term.
-
input
-
-expand/er49-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter50 Invalid reverse id -
-
-
-
id
-
#ter50
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
-
input
-
-expand/er50-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter51 Invalid value object value using a value alias -
-
-
-
id
-
#ter51
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object value is found using a value alias
-
input
-
-expand/er51-in.jsonld -
-
expect
-
-invalid value object value -
-
-
-
-Test ter52 Definition for the empty term -
-
-
-
id
-
#ter52
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains a definition for the empty term
-
input
-
-expand/er52-in.jsonld -
-
expect
-
-invalid term definition -
-
-
-
-Test ter53 Invalid prefix value -
-
-
-
id
-
#ter53
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
-
input
-
-expand/er53-in.jsonld -
-
expect
-
-invalid @prefix value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter54 Invalid value object, multiple values for @type. -
-
-
-
id
-
#ter54
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
The value of @type in a value object MUST be a string or null.
-
input
-
-expand/er54-in.jsonld -
-
expect
-
-invalid typed value -
-
-
-
-Test ter55 Invalid term definition, multiple values for @type. -
-
-
-
id
-
#ter55
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
The value of @type in an expanded term definition object MUST be a string or null.
-
input
-
-expand/er55-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test tes01 Using an array value for @context is illegal in JSON-LD 1.0 -
-
-
-
id
-
#tes01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid container mapping is found
-
input
-
-expand/es01-in.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tes02 Mapping @container: [@list, @set] is invalid -
-
-
-
id
-
#tes02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Testing legal combinations of @set with other container values
-
input
-
-expand/es02-in.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin01 Basic Included array -
-
-
-
id
-
#tin01
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in01-in.jsonld -
-
expect
-
-expand/in01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin02 Basic Included object -
-
-
-
id
-
#tin02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in02-in.jsonld -
-
expect
-
-expand/in02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin03 Multiple properties mapping to @included are folded together -
-
-
-
id
-
#tin03
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in03-in.jsonld -
-
expect
-
-expand/in03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin04 Included containing @included -
-
-
-
id
-
#tin04
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in04-in.jsonld -
-
expect
-
-expand/in04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin05 Property value with @included -
-
-
-
id
-
#tin05
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in05-in.jsonld -
-
expect
-
-expand/in05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin06 json.api example -
-
-
-
id
-
#tin06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in06-in.jsonld -
-
expect
-
-expand/in06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin07 Error if @included value is a string -
-
-
-
id
-
#tin07
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in07-in.jsonld -
-
expect
-
-invalid @included value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin08 Error if @included value is a value object -
-
-
-
id
-
#tin08
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in08-in.jsonld -
-
expect
-
-invalid @included value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin09 Error if @included value is a list object -
-
-
-
id
-
#tin09
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests included blocks.
-
input
-
-expand/in09-in.jsonld -
-
expect
-
-invalid @included value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs01 Expand JSON literal (boolean true) -
-
-
-
id
-
#tjs01
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (boolean true).
-
input
-
-expand/js01-in.jsonld -
-
expect
-
-expand/js01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs02 Expand JSON literal (boolean false) -
-
-
-
id
-
#tjs02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (boolean false).
-
input
-
-expand/js02-in.jsonld -
-
expect
-
-expand/js02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs03 Expand JSON literal (double) -
-
-
-
id
-
#tjs03
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (double).
-
input
-
-expand/js03-in.jsonld -
-
expect
-
-expand/js03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs04 Expand JSON literal (double-zero) -
-
-
-
id
-
#tjs04
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (double-zero).
-
input
-
-expand/js04-in.jsonld -
-
expect
-
-expand/js04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs05 Expand JSON literal (integer) -
-
-
-
id
-
#tjs05
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (integer).
-
input
-
-expand/js05-in.jsonld -
-
expect
-
-expand/js05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs06 Expand JSON literal (object) -
-
-
-
id
-
#tjs06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (object).
-
input
-
-expand/js06-in.jsonld -
-
expect
-
-expand/js06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs07 Expand JSON literal (array) -
-
-
-
id
-
#tjs07
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (array).
-
input
-
-expand/js07-in.jsonld -
-
expect
-
-expand/js07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs08 Expand JSON literal with array canonicalization -
-
-
-
id
-
#tjs08
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with array canonicalization.
-
input
-
-expand/js08-in.jsonld -
-
expect
-
-expand/js08-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs09 Transform JSON literal with string canonicalization -
-
-
-
id
-
#tjs09
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with string canonicalization.
-
input
-
-expand/js09-in.jsonld -
-
expect
-
-expand/js09-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs10 Expand JSON literal with structural canonicalization -
-
-
-
id
-
#tjs10
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with structural canonicalization.
-
input
-
-expand/js10-in.jsonld -
-
expect
-
-expand/js10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs11 Expand JSON literal with unicode canonicalization -
-
-
-
id
-
#tjs11
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with unicode canonicalization.
-
input
-
-expand/js11-in.jsonld -
-
expect
-
-expand/js11-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs12 Expand JSON literal with value canonicalization -
-
-
-
id
-
#tjs12
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with value canonicalization.
-
input
-
-expand/js12-in.jsonld -
-
expect
-
-expand/js12-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs13 Expand JSON literal with wierd canonicalization -
-
-
-
id
-
#tjs13
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with wierd canonicalization.
-
input
-
-expand/js13-in.jsonld -
-
expect
-
-expand/js13-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs14 Expand JSON literal without expanding contents -
-
-
-
id
-
#tjs14
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal does not expand terms inside json.
-
input
-
-expand/js14-in.jsonld -
-
expect
-
-expand/js14-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs15 Expand JSON literal aleady in expanded form -
-
-
-
id
-
#tjs15
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal in expanded form.
-
input
-
-expand/js15-in.jsonld -
-
expect
-
-expand/js15-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs16 Expand JSON literal aleady in expanded form with aliased keys -
-
-
-
id
-
#tjs16
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal in expanded form with aliased keys in value object.
-
input
-
-expand/js16-in.jsonld -
-
expect
-
-expand/js16-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs17 Expand JSON literal (string) -
-
-
-
id
-
#tjs17
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (string).
-
input
-
-expand/js17-in.jsonld -
-
expect
-
-expand/js17-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs18 Expand JSON literal (null) -
-
-
-
id
-
#tjs18
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (null).
-
input
-
-expand/js18-in.jsonld -
-
expect
-
-expand/js18-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs19 Expand JSON literal with aliased @type -
-
-
-
id
-
#tjs19
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with aliased @type.
-
input
-
-expand/js19-in.jsonld -
-
expect
-
-expand/js19-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs20 Expand JSON literal with aliased @value -
-
-
-
id
-
#tjs20
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with aliased @value.
-
input
-
-expand/js20-in.jsonld -
-
expect
-
-expand/js20-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs21 Expand JSON literal with @context -
-
-
-
id
-
#tjs21
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding JSON literal with a @context.
-
input
-
-expand/js21-in.jsonld -
-
expect
-
-expand/js21-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs22 Expand JSON literal (null) aleady in expanded form. -
-
-
-
id
-
#tjs22
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (null).
-
input
-
-expand/js22-in.jsonld -
-
expect
-
-expand/js22-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs23 Expand JSON literal (empty array). -
-
-
-
id
-
#tjs23
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Tests expanding property with @type @json to a JSON literal (empty array).
-
input
-
-expand/js23-in.jsonld -
-
expect
-
-expand/js23-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tl001 Language map with null value -
-
-
-
id
-
#tl001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
A language map may have a null value, which is ignored
-
input
-
-expand/l001-in.jsonld -
-
expect
-
-expand/l001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli01 @list containing @list -
-
-
-
id
-
#tli01
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li01-in.jsonld -
-
expect
-
-expand/li01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli02 @list containing empty @list -
-
-
-
id
-
#tli02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li02-in.jsonld -
-
expect
-
-expand/li02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli03 @list containing @list (with coercion) -
-
-
-
id
-
#tli03
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li03-in.jsonld -
-
expect
-
-expand/li03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli04 @list containing empty @list (with coercion) -
-
-
-
id
-
#tli04
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li04-in.jsonld -
-
expect
-
-expand/li04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli05 coerced @list containing an array -
-
-
-
id
-
#tli05
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li05-in.jsonld -
-
expect
-
-expand/li05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli06 coerced @list containing an empty array -
-
-
-
id
-
#tli06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li06-in.jsonld -
-
expect
-
-expand/li06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli07 coerced @list containing deep arrays -
-
-
-
id
-
#tli07
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li07-in.jsonld -
-
expect
-
-expand/li07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli08 coerced @list containing deep empty arrays -
-
-
-
id
-
#tli08
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li08-in.jsonld -
-
expect
-
-expand/li08-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli09 coerced @list containing multiple lists -
-
-
-
id
-
#tli09
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li09-in.jsonld -
-
expect
-
-expand/li09-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli10 coerced @list containing mixed list values -
-
-
-
id
-
#tli10
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
List of lists
-
input
-
-expand/li10-in.jsonld -
-
expect
-
-expand/li10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm001 Adds @id to object not having an @id -
-
-
-
id
-
#tm001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @id
-
input
-
-expand/m001-in.jsonld -
-
expect
-
-expand/m001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm002 Retains @id in object already having an @id -
-
-
-
id
-
#tm002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @id
-
input
-
-expand/m002-in.jsonld -
-
expect
-
-expand/m002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm003 Adds @type to object not having an @type -
-
-
-
id
-
#tm003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-expand/m003-in.jsonld -
-
expect
-
-expand/m003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm004 Prepends @type in object already having an @type -
-
-
-
id
-
#tm004
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-expand/m004-in.jsonld -
-
expect
-
-expand/m004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm005 Adds expanded @id to object -
-
-
-
id
-
#tm005
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @id
-
input
-
-expand/m005-in.jsonld -
-
expect
-
-expand/m005-out.jsonld -
-
Options
-
-
-
base
-
http://example.org/
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm006 Adds vocabulary expanded @type to object -
-
-
-
id
-
#tm006
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-expand/m006-in.jsonld -
-
expect
-
-expand/m006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm007 Adds document expanded @type to object -
-
-
-
id
-
#tm007
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-expand/m007-in.jsonld -
-
expect
-
-expand/m007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm008 When type is in a type map -
-
-
-
id
-
#tm008
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
scoped context on @type
-
input
-
-expand/m008-in.jsonld -
-
expect
-
-expand/m008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm009 language map with @none -
-
-
-
id
-
#tm009
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @language
-
input
-
-expand/m009-in.jsonld -
-
expect
-
-expand/m009-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm010 language map with alias of @none -
-
-
-
id
-
#tm010
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @language
-
input
-
-expand/m010-in.jsonld -
-
expect
-
-expand/m010-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm011 id map with @none -
-
-
-
id
-
#tm011
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @id
-
input
-
-expand/m011-in.jsonld -
-
expect
-
-expand/m011-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm012 type map with alias of @none -
-
-
-
id
-
#tm012
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @type
-
input
-
-expand/m012-in.jsonld -
-
expect
-
-expand/m012-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm013 graph index map with @none -
-
-
-
id
-
#tm013
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @graph and @index
-
input
-
-expand/m013-in.jsonld -
-
expect
-
-expand/m013-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm014 graph index map with alias @none -
-
-
-
id
-
#tm014
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @graph and @index
-
input
-
-expand/m014-in.jsonld -
-
expect
-
-expand/m014-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm015 graph id index map with aliased @none -
-
-
-
id
-
#tm015
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @graph and @id with @none
-
input
-
-expand/m015-in.jsonld -
-
expect
-
-expand/m015-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm016 graph id index map with aliased @none -
-
-
-
id
-
#tm016
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @graph and @id with @none
-
input
-
-expand/m016-in.jsonld -
-
expect
-
-expand/m016-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm017 string value of type map expands to node reference -
-
-
-
id
-
#tm017
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @type
-
input
-
-expand/m017-in.jsonld -
-
expect
-
-expand/m017-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm018 string value of type map expands to node reference with @type: @id -
-
-
-
id
-
#tm018
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @type
-
input
-
-expand/m018-in.jsonld -
-
expect
-
-expand/m018-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm019 string value of type map expands to node reference with @type: @vocab -
-
-
-
id
-
#tm019
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @type
-
input
-
-expand/m019-in.jsonld -
-
expect
-
-expand/m019-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm020 string value of type map must not be a literal -
-
-
-
id
-
#tm020
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
index on @type
-
input
-
-expand/m020-in.jsonld -
-
expect
-
-invalid type mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn001 Expands input using @nest -
-
-
-
id
-
#tn001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n001-in.jsonld -
-
expect
-
-expand/n001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn002 Expands input using aliased @nest -
-
-
-
id
-
#tn002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n002-in.jsonld -
-
expect
-
-expand/n002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn003 Appends nested values when property at base and nested -
-
-
-
id
-
#tn003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n003-in.jsonld -
-
expect
-
-expand/n003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn004 Appends nested values from all @nest aliases -
-
-
-
id
-
#tn004
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n004-in.jsonld -
-
expect
-
-expand/n004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn005 Nested nested containers -
-
-
-
id
-
#tn005
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n005-in.jsonld -
-
expect
-
-expand/n005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn006 Arrays of nested values -
-
-
-
id
-
#tn006
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n006-in.jsonld -
-
expect
-
-expand/n006-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn007 A nest of arrays -
-
-
-
id
-
#tn007
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n007-in.jsonld -
-
expect
-
-expand/n007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn008 Multiple keys may mapping to @type when nesting -
-
-
-
id
-
#tn008
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion using @nest
-
input
-
-expand/n008-in.jsonld -
-
expect
-
-expand/n008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp001 @version may be specified after first context -
-
-
-
id
-
#tp001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-expand/p001-in.jsonld -
-
expect
-
-expand/p001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp002 @version setting [1.0, 1.1, 1.0] -
-
-
-
id
-
#tp002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-expand/p002-in.jsonld -
-
expect
-
-expand/p002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp003 @version setting [1.1, 1.0] -
-
-
-
id
-
#tp003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-expand/p003-in.jsonld -
-
expect
-
-expand/p003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp004 @version setting [1.1, 1.0, 1.1] -
-
-
-
id
-
#tp004
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-expand/p004-in.jsonld -
-
expect
-
-expand/p004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi01 error if @version is json-ld-1.0 for property-valued index -
-
-
-
id
-
#tpi01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi01-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test tpi02 error if @container does not include @index for property-valued index -
-
-
-
id
-
#tpi02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi02-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi03 error if @index is a keyword for property-valued index -
-
-
-
id
-
#tpi03
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi03-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi04 error if @index is not a string for property-valued index -
-
-
-
id
-
#tpi04
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi04-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi05 error if attempting to add property to value object for property-valued index -
-
-
-
id
-
#tpi05
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi05-in.jsonld -
-
expect
-
-invalid value object -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi06 property-valued index expands to property value, instead of @index (value) -
-
-
-
id
-
#tpi06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi06-in.jsonld -
-
expect
-
-expand/pi06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi07 property-valued index appends to property value, instead of @index (value) -
-
-
-
id
-
#tpi07
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi07-in.jsonld -
-
expect
-
-expand/pi07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi08 property-valued index expands to property value, instead of @index (node) -
-
-
-
id
-
#tpi08
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi08-in.jsonld -
-
expect
-
-expand/pi08-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi09 property-valued index appends to property value, instead of @index (node) -
-
-
-
id
-
#tpi09
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi09-in.jsonld -
-
expect
-
-expand/pi09-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi10 property-valued index does not output property for @none -
-
-
-
id
-
#tpi10
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi10-in.jsonld -
-
expect
-
-expand/pi10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi11 property-valued index adds property to graph object -
-
-
-
id
-
#tpi11
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-expand/pi11-in.jsonld -
-
expect
-
-expand/pi11-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr01 Protect a term -
-
-
-
id
-
#tpr01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Check error when overriding a protected term.
-
input
-
-expand/pr01-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr02 Set a term to not be protected -
-
-
-
id
-
#tpr02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
A term with @protected: false is not protected.
-
input
-
-expand/pr02-in.jsonld -
-
expect
-
-expand/pr02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr03 Protect all terms in context -
-
-
-
id
-
#tpr03
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
A protected context protects all term definitions.
-
input
-
-expand/pr03-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr04 Do not protect term with @protected: false -
-
-
-
id
-
#tpr04
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
A protected context does not protect terms with @protected: false.
-
input
-
-expand/pr04-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr05 Clear active context with protected terms from an embedded context -
-
-
-
id
-
#tpr05
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
The Active context be set to null from an embedded context.
-
input
-
-expand/pr05-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr06 Clear active context of protected terms from a term. -
-
-
-
id
-
#tpr06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
The Active context may be set to null from a scoped context of a term.
-
input
-
-expand/pr06-in.jsonld -
-
expect
-
-expand/pr06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr08 Term with protected scoped context. -
-
-
-
id
-
#tpr08
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
A scoped context can protect terms.
-
input
-
-expand/pr08-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr09 Attempt to redefine term in other protected context. -
-
-
-
id
-
#tpr09
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
A protected term cannot redefine another protected term.
-
input
-
-expand/pr09-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr10 Simple protected and unprotected terms. -
-
-
-
id
-
#tpr10
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Simple protected and unprotected terms.
-
input
-
-expand/pr10-in.jsonld -
-
expect
-
-expand/pr10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr11 Fail to override protected term. -
-
-
-
id
-
#tpr11
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Fail to override protected term.
-
input
-
-expand/pr11-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr12 Scoped context fail to override protected term. -
-
-
-
id
-
#tpr12
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Scoped context fail to override protected term.
-
input
-
-expand/pr12-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr13 Override unprotected term. -
-
-
-
id
-
#tpr13
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Override unprotected term.
-
input
-
-expand/pr13-in.jsonld -
-
expect
-
-expand/pr13-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr14 Clear protection with null context. -
-
-
-
id
-
#tpr14
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Clear protection with null context.
-
input
-
-expand/pr14-in.jsonld -
-
expect
-
-expand/pr14-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr15 Clear protection with array with null context -
-
-
-
id
-
#tpr15
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Clear protection with array with null context
-
input
-
-expand/pr15-in.jsonld -
-
expect
-
-expand/pr15-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr16 Override protected terms after null. -
-
-
-
id
-
#tpr16
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Override protected terms after null.
-
input
-
-expand/pr16-in.jsonld -
-
expect
-
-expand/pr16-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr17 Fail to override protected terms with type. -
-
-
-
id
-
#tpr17
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Fail to override protected terms with type.
-
input
-
-expand/pr17-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr18 Fail to override protected terms with type+null+ctx. -
-
-
-
id
-
#tpr18
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Fail to override protected terms with type+null+ctx.
-
input
-
-expand/pr18-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr19 Mix of protected and unprotected terms. -
-
-
-
id
-
#tpr19
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Mix of protected and unprotected terms.
-
input
-
-expand/pr19-in.jsonld -
-
expect
-
-expand/pr19-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr20 Fail with mix of protected and unprotected terms with type+null+ctx. -
-
-
-
id
-
#tpr20
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Fail with mix of protected and unprotected terms with type+null+ctx.
-
input
-
-expand/pr20-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr21 Fail with mix of protected and unprotected terms with type+null. -
-
-
-
id
-
#tpr21
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Fail with mix of protected and unprotected terms with type+null.
-
input
-
-expand/pr21-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr22 Check legal overriding of type-scoped protected term from nested node. -
-
-
-
id
-
#tpr22
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Check legal overriding of type-scoped protected term from nested node.
-
input
-
-expand/pr22-in.jsonld -
-
expect
-
-expand/pr22-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr23 Allows redefinition of protected alias term with same definition. -
-
-
-
id
-
#tpr23
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Allows redefinition of protected alias term with same definition.
-
input
-
-expand/pr23-in.jsonld -
-
expect
-
-expand/pr23-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr24 Allows redefinition of protected prefix term with same definition. -
-
-
-
id
-
#tpr24
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Allows redefinition of protected prefix term with same definition.
-
input
-
-expand/pr24-in.jsonld -
-
expect
-
-expand/pr24-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr25 Allows redefinition of terms with scoped contexts using same definitions. -
-
-
-
id
-
#tpr25
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Allows redefinition of terms with scoped contexts using same definitions.
-
input
-
-expand/pr25-in.jsonld -
-
expect
-
-expand/pr25-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr26 Fails on redefinition of terms with scoped contexts using different definitions. -
-
-
-
id
-
#tpr26
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Fails on redefinition of terms with scoped contexts using different definitions.
-
input
-
-expand/pr26-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag. -
-
-
-
id
-
#tpr27
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Allows redefinition of protected alias term with same definition modulo protected flag.
-
input
-
-expand/pr27-in.jsonld -
-
expect
-
-expand/pr27-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr28 Fails if trying to redefine a protected null term. -
-
-
-
id
-
#tpr28
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
A protected term with a null IRI mapping cannot be redefined.
-
input
-
-expand/pr28-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr29 Does not expand a Compact IRI using a non-prefix term. -
-
-
-
id
-
#tpr29
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Expansion of Compact IRIs considers if the term can be used as a prefix.
-
input
-
-expand/pr29-in.jsonld -
-
expect
-
-expand/pr29-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr30 Keywords may be protected. -
-
-
-
id
-
#tpr30
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Keywords may not be redefined other than to protect them.
-
input
-
-expand/pr30-in.jsonld -
-
expect
-
-expand/pr30-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr31 Protected keyword aliases cannot be overridden. -
-
-
-
id
-
#tpr31
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Keywords may not be redefined other than to protect them.
-
input
-
-expand/pr31-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr32 Protected @type cannot be overridden. -
-
-
-
id
-
#tpr32
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Keywords may not be redefined other than to protect them.
-
input
-
-expand/pr32-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr33 Fails if trying to declare a keyword alias as prefix. -
-
-
-
id
-
#tpr33
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Keyword aliases can not be used as prefixes.
-
input
-
-expand/pr33-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr34 Ignores a non-keyword term starting with '@' -
-
-
-
id
-
#tpr34
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-expand/pr34-in.jsonld -
-
expect
-
-expand/pr34-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab) -
-
-
-
id
-
#tpr35
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-expand/pr35-in.jsonld -
-
expect
-
-expand/pr35-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr36 Ignores a term mapping to a value in the form of a keyword. -
-
-
-
id
-
#tpr36
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-expand/pr36-in.jsonld -
-
expect
-
-expand/pr36-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr37 Ignores a term mapping to a value in the form of a keyword (with @vocab). -
-
-
-
id
-
#tpr37
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-expand/pr37-in.jsonld -
-
expect
-
-expand/pr37-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr38 Ignores a term mapping to a value in the form of a keyword (@reverse). -
-
-
-
id
-
#tpr38
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-expand/pr38-in.jsonld -
-
expect
-
-expand/pr38-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr39 Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab). -
-
-
-
id
-
#tpr39
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-expand/pr39-in.jsonld -
-
expect
-
-expand/pr39-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr40 Protected terms and property-scoped contexts -
-
-
-
id
-
#tpr40
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Check overriding of protected term from property-scoped context.
-
input
-
-expand/pr40-in.jsonld -
-
expect
-
-expand/pr40-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso01 @import is invalid in 1.0. -
-
-
-
id
-
#tso01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@import is invalid in 1.0.
-
input
-
-expand/so01-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test tso02 @import must be a string -
-
-
-
id
-
#tso02
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@import must be a string.
-
input
-
-expand/so02-in.jsonld -
-
expect
-
-invalid @import value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso03 @import overflow -
-
-
-
id
-
#tso03
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Processors must detect source contexts that include @import.
-
input
-
-expand/so03-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso05 @propagate: true on type-scoped context with @import -
-
-
-
id
-
#tso05
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
type-scoped context with @propagate: true survive node-objects (with @import)
-
input
-
-expand/so05-in.jsonld -
-
expect
-
-expand/so05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso06 @propagate: false on property-scoped context with @import -
-
-
-
id
-
#tso06
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
property-scoped context with @propagate: false do not survive node-objects (with @import)
-
input
-
-expand/so06-in.jsonld -
-
expect
-
-expand/so06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso07 Protect all terms in sourced context -
-
-
-
id
-
#tso07
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
A protected context protects all term definitions.
-
input
-
-expand/so07-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso08 Override term defined in sourced context -
-
-
-
id
-
#tso08
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-expand/so08-in.jsonld -
-
expect
-
-expand/so08-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso09 Override @vocab defined in sourced context -
-
-
-
id
-
#tso09
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-expand/so09-in.jsonld -
-
expect
-
-expand/so09-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso10 Protect terms in sourced context -
-
-
-
id
-
#tso10
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-expand/so10-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso11 Override protected terms in sourced context -
-
-
-
id
-
#tso11
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-expand/so11-in.jsonld -
-
expect
-
-expand/so11-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso12 @import may not be used in an imported context. -
-
-
-
id
-
#tso12
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@import only valid within a term definition.
-
input
-
-expand/so12-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso13 @import can only reference a single context -
-
-
-
id
-
#tso13
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@import can only reference a single context.
-
input
-
-expand/so13-in.jsonld -
-
expect
-
-invalid remote context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ttn01 @type: @none is illegal in 1.0. -
-
-
-
id
-
#ttn01
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
@type: @none is illegal in json-ld-1.0.
-
input
-
-expand/tn01-in.jsonld -
-
expect
-
-invalid type mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test ttn02 @type: @none expands strings as value objects -
-
-
-
id
-
#ttn02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
@type: @none leaves inputs other than strings alone
-
input
-
-expand/tn02-in.jsonld -
-
expect
-
-expand/tn02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-
- - + + + + Expansion + + + + + +

+ + W3C + +

+

Expansion

+

These tests implement the requirements for the JSON-LD Expansion Algorithm.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + expand-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

expand tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

Expansion tests may have a expandContext option, which is treated + as an IRI relative to the manifest.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test t0001 drop free-floating nodes +
+
+
+
id
+
#t0001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expand drops unreferenced nodes having only @id
+
input
+
+ expand/0001-in.jsonld +
+
expect
+
+ expand/0001-out.jsonld +
+
+
+
+ Test t0002 basic +
+
+
+
id
+
#t0002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding terms with different types of values
+
input
+
+ expand/0002-in.jsonld +
+
expect
+
+ expand/0002-out.jsonld +
+
+
+
+ Test t0003 drop null and unmapped properties +
+
+
+
id
+
#t0003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that null values and unmapped properties are removed from expanded output
+
input
+
+ expand/0003-in.jsonld +
+
expect
+
+ expand/0003-out.jsonld +
+
+
+
+ Test t0004 optimize @set, keep empty arrays +
+
+
+
id
+
#t0004
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained
+
input
+
+ expand/0004-in.jsonld +
+
expect
+
+ expand/0004-out.jsonld +
+
+
+
+ Test t0005 do not expand aliased @id/@type +
+
+
+
id
+
#t0005
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If a keyword is aliased, it is not used when expanding
+
input
+
+ expand/0005-in.jsonld +
+
expect
+
+ expand/0005-out.jsonld +
+
+
+
+ Test t0006 alias keywords +
+
+
+
id
+
#t0006
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Aliased keywords expand in resulting document
+
input
+
+ expand/0006-in.jsonld +
+
expect
+
+ expand/0006-out.jsonld +
+
+
+
+ Test t0007 date type-coercion +
+
+
+
id
+
#t0007
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expand strings to expanded value with @type: xsd:dateTime
+
input
+
+ expand/0007-in.jsonld +
+
expect
+
+ expand/0007-out.jsonld +
+
+
+
+ Test t0008 @value with @language +
+
+
+
id
+
#t0008
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Keep expanded values with @language, drop non-conforming value objects containing just @language
+
input
+
+ expand/0008-in.jsonld +
+
expect
+
+ expand/0008-out.jsonld +
+
+
+
+ Test t0009 @graph with terms +
+
+
+
id
+
#t0009
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph to contain multiple nodes within array
+
input
+
+ expand/0009-in.jsonld +
+
expect
+
+ expand/0009-out.jsonld +
+
+
+
+ Test t0010 native types +
+
+
+
id
+
#t0010
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding native scalar retains native scalar within expanded value
+
input
+
+ expand/0010-in.jsonld +
+
expect
+
+ expand/0010-out.jsonld +
+
+
+
+ Test t0011 coerced @id +
+
+
+
id
+
#t0011
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
A value of a property with @type: @id coercion expands to a node reference
+
input
+
+ expand/0011-in.jsonld +
+
expect
+
+ expand/0011-out.jsonld +
+
+
+
+ Test t0012 @graph with embed +
+
+
+
id
+
#t0012
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph to contain multiple nodes within array
+
input
+
+ expand/0012-in.jsonld +
+
expect
+
+ expand/0012-out.jsonld +
+
+
+
+ Test t0013 expand already expanded +
+
+
+
id
+
#t0013
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expand does not mess up already expanded document
+
input
+
+ expand/0013-in.jsonld +
+
expect
+
+ expand/0013-out.jsonld +
+
+
+
+ Test t0014 @set of @value objects with keyword aliases +
+
+
+
id
+
#t0014
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding aliased @set and @value
+
input
+
+ expand/0014-in.jsonld +
+
expect
+
+ expand/0014-out.jsonld +
+
+
+
+ Test t0015 collapse set of sets, keep empty lists +
+
+
+
id
+
#t0015
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
An array of multiple @set nodes are collapsed into a single array
+
input
+
+ expand/0015-in.jsonld +
+
expect
+
+ expand/0015-out.jsonld +
+
+
+
+ Test t0016 context reset +
+
+
+
id
+
#t0016
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Setting @context to null within an embedded object resets back to initial context state
+
input
+
+ expand/0016-in.jsonld +
+
expect
+
+ expand/0016-out.jsonld +
+
+
+
+ Test t0017 @graph and @id aliased +
+
+
+
id
+
#t0017
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding with @graph and @id aliases
+
input
+
+ expand/0017-in.jsonld +
+
expect
+
+ expand/0017-out.jsonld +
+
+
+
+ Test t0018 override default @language +
+
+
+
id
+
#t0018
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
override default @language in terms; only language-tag strings
+
input
+
+ expand/0018-in.jsonld +
+
expect
+
+ expand/0018-out.jsonld +
+
+
+
+ Test t0019 remove @value = null +
+
+
+
id
+
#t0019
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding a value of null removes the value
+
input
+
+ expand/0019-in.jsonld +
+
expect
+
+ expand/0019-out.jsonld +
+
+
+
+ Test t0020 do not remove @graph if not at top-level +
+
+
+
id
+
#t0020
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
@graph used under a node is retained
+
input
+
+ expand/0020-in.jsonld +
+
expect
+
+ expand/0020-out.jsonld +
+
+
+
+ Test t0021 do not remove @graph at top-level if not only property +
+
+
+
id
+
#t0021
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
@graph used at the top level is retained if there are other properties
+
input
+
+ expand/0021-in.jsonld +
+
expect
+
+ expand/0021-out.jsonld +
+
+
+
+ Test t0022 expand value with default language +
+
+
+
id
+
#t0022
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding with a default language applies that language to string values
+
input
+
+ expand/0022-in.jsonld +
+
expect
+
+ expand/0022-out.jsonld +
+
+
+
+ Test t0023 Expanding list/set with coercion +
+
+
+
id
+
#t0023
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding lists and sets with properties having coercion coerces list/set values
+
input
+
+ expand/0023-in.jsonld +
+
expect
+
+ expand/0023-out.jsonld +
+
+
+
+ Test t0024 Multiple contexts +
+
+
+
id
+
#t0024
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests that contexts in an array are merged
+
input
+
+ expand/0024-in.jsonld +
+
expect
+
+ expand/0024-out.jsonld +
+
+
+
+ Test t0025 Problematic IRI expansion tests +
+
+
+
id
+
#t0025
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding different kinds of terms and Compact IRIs
+
input
+
+ expand/0025-in.jsonld +
+
expect
+
+ expand/0025-out.jsonld +
+
+
+
+ Test t0026 Term definition with @id: @type +
+
+
+
id
+
#t0026
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding term mapping to @type uses @type syntax
+
input
+
+ expand/0026-in.jsonld +
+
expect
+
+ expand/0026-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0027 Duplicate values in @list and @set +
+
+
+
id
+
#t0027
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Duplicate values in @list and @set are not merged
+
input
+
+ expand/0027-in.jsonld +
+
expect
+
+ expand/0027-out.jsonld +
+
+
+
+ Test t0028 Use @vocab in properties and @type but not in @id +
+
+
+
id
+
#t0028
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
@vocab is used to compact properties and @type, but is not used for @id
+
input
+
+ expand/0028-in.jsonld +
+
expect
+
+ expand/0028-out.jsonld +
+
+
+
+ Test t0029 Relative IRIs +
+
+
+
id
+
#t0029
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
@base is used to compact @id; test with different relative IRIs
+
input
+
+ expand/0029-in.jsonld +
+
expect
+
+ expand/0029-out.jsonld +
+
+
+
+ Test t0030 Language maps +
+
+
+
id
+
#t0030
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Language Maps expand values to include @language
+
input
+
+ expand/0030-in.jsonld +
+
expect
+
+ expand/0030-out.jsonld +
+
+
+
+ Test t0031 type-coercion of native types +
+
+
+
id
+
#t0031
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation
+
input
+
+ expand/0031-in.jsonld +
+
expect
+
+ expand/0031-out.jsonld +
+
+
+
+ Test t0032 Null term and @vocab +
+
+
+
id
+
#t0032
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Mapping a term to null decouples it from @vocab
+
input
+
+ expand/0032-in.jsonld +
+
expect
+
+ expand/0032-out.jsonld +
+
+
+
+ Test t0033 Using @vocab with with type-coercion +
+
+
+
id
+
#t0033
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that terms can be defined using @vocab
+
input
+
+ expand/0033-in.jsonld +
+
expect
+
+ expand/0033-out.jsonld +
+
+
+
+ Test t0034 Multiple properties expanding to the same IRI +
+
+
+
id
+
#t0034
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
+
input
+
+ expand/0034-in.jsonld +
+
expect
+
+ expand/0034-out.jsonld +
+
+
+
+ Test t0035 Language maps with @vocab, default language, and colliding property +
+
+
+
id
+
#t0035
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Pathological tests of language maps
+
input
+
+ expand/0035-in.jsonld +
+
expect
+
+ expand/0035-out.jsonld +
+
+
+
+ Test t0036 Expanding @index +
+
+
+
id
+
#t0036
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps for terms defined with @container: @index
+
input
+
+ expand/0036-in.jsonld +
+
expect
+
+ expand/0036-out.jsonld +
+
+
+
+ Test t0037 Expanding @reverse +
+
+
+
id
+
#t0037
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding @reverse keeps @reverse
+
input
+
+ expand/0037-in.jsonld +
+
expect
+
+ expand/0037-out.jsonld +
+
+
+
+ Test t0038 Expanding blank node labels +
+
+
+
id
+
#t0038
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Blank nodes are not relabeled during expansion
+
input
+
+ expand/0038-in.jsonld +
+
expect
+
+ expand/0038-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0039 Using terms in a reverse-maps +
+
+
+
id
+
#t0039
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms within @reverse are expanded
+
input
+
+ expand/0039-in.jsonld +
+
expect
+
+ expand/0039-out.jsonld +
+
+
+
+ Test t0040 language and index expansion on non-objects +
+
+
+
id
+
#t0040
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Only invoke language and index map expansion if the value is a JSON object
+
input
+
+ expand/0040-in.jsonld +
+
expect
+
+ expand/0040-out.jsonld +
+
+
+
+ Test t0041 @language: null resets the default language +
+
+
+
id
+
#t0041
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
+
input
+
+ expand/0041-in.jsonld +
+
expect
+
+ expand/0041-out.jsonld +
+
+
+
+ Test t0042 Reverse properties +
+
+
+
id
+
#t0042
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding terms defined as reverse properties uses @reverse in expanded document
+
input
+
+ expand/0042-in.jsonld +
+
expect
+
+ expand/0042-out.jsonld +
+
+
+
+ Test t0043 Using reverse properties inside a @reverse-container +
+
+
+
id
+
#t0043
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding a reverse property within a @reverse undoes both reversals
+
input
+
+ expand/0043-in.jsonld +
+
expect
+
+ expand/0043-out.jsonld +
+
+
+
+ Test t0044 Index maps with language mappings +
+
+
+
id
+
#t0044
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Ensure index maps use language mapping
+
input
+
+ expand/0044-in.jsonld +
+
expect
+
+ expand/0044-out.jsonld +
+
+
+
+ Test t0045 Top-level value objects +
+
+
+
id
+
#t0045
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding top-level value objects causes them to be removed
+
input
+
+ expand/0045-in.jsonld +
+
expect
+
+ expand/0045-out.jsonld +
+
+
+
+ Test t0046 Free-floating nodes +
+
+
+
id
+
#t0046
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding free-floating nodes causes them to be removed
+
input
+
+ expand/0046-in.jsonld +
+
expect
+
+ expand/0046-out.jsonld +
+
+
+
+ Test t0047 Free-floating values in sets and free-floating lists +
+
+
+
id
+
#t0047
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Free-floating values in sets are removed, free-floating lists are removed completely
+
input
+
+ expand/0047-in.jsonld +
+
expect
+
+ expand/0047-out.jsonld +
+
+
+
+ Test t0048 Terms are ignored in @id +
+
+
+
id
+
#t0048
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Values of @id are not expanded as terms
+
input
+
+ expand/0048-in.jsonld +
+
expect
+
+ expand/0048-out.jsonld +
+
+
+
+ Test t0049 String values of reverse properties +
+
+
+
id
+
#t0049
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
String values of a reverse property with @type: @id are treated as IRIs
+
input
+
+ expand/0049-in.jsonld +
+
expect
+
+ expand/0049-out.jsonld +
+
+
+
+ Test t0050 Term definitions with prefix separate from prefix definitions +
+
+
+
id
+
#t0050
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Term definitions using compact IRIs don't inherit the definitions of the prefix
+
input
+
+ expand/0050-in.jsonld +
+
expect
+
+ expand/0050-out.jsonld +
+
+
+
+ Test t0051 Expansion of keyword aliases in term definitions +
+
+
+
id
+
#t0051
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding terms which are keyword aliases
+
input
+
+ expand/0051-in.jsonld +
+
expect
+
+ expand/0051-out.jsonld +
+
+
+
+ Test t0052 @vocab-relative IRIs in term definitions +
+
+
+
id
+
#t0052
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If @vocab is defined, term definitions are expanded relative to @vocab
+
input
+
+ expand/0052-in.jsonld +
+
expect
+
+ expand/0052-out.jsonld +
+
+
+
+ Test t0053 Expand absolute IRI with @type: @vocab +
+
+
+
id
+
#t0053
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding values of properties of @type: @vocab does not further expand absolute IRIs
+
input
+
+ expand/0053-in.jsonld +
+
expect
+
+ expand/0053-out.jsonld +
+
+
+
+ Test t0054 Expand term with @type: @vocab +
+
+
+
id
+
#t0054
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding values of properties of @type: @vocab does not expand term values
+
input
+
+ expand/0054-in.jsonld +
+
expect
+
+ expand/0054-out.jsonld +
+
+
+
+ Test t0055 Expand @vocab-relative term with @type: @vocab +
+
+
+
id
+
#t0055
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding values of properties of @type: @vocab expands relative IRIs using @vocab
+
input
+
+ expand/0055-in.jsonld +
+
expect
+
+ expand/0055-out.jsonld +
+
+
+
+ Test t0056 Use terms with @type: @vocab but not with @type: @id +
+
+
+
id
+
#t0056
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Checks that expansion uses appropriate base depending on term definition having @type @id or @vocab
+
input
+
+ expand/0056-in.jsonld +
+
expect
+
+ expand/0056-out.jsonld +
+
+
+
+ Test t0057 Expand relative IRI with @type: @vocab +
+
+
+
id
+
#t0057
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Relative values of terms with @type: @vocab expand relative to @vocab
+
input
+
+ expand/0057-in.jsonld +
+
expect
+
+ expand/0057-out.jsonld +
+
+
+
+ Test t0058 Expand compact IRI with @type: @vocab +
+
+
+
id
+
#t0058
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Compact IRIs are expanded normally even if term has @type: @vocab
+
input
+
+ expand/0058-in.jsonld +
+
expect
+
+ expand/0058-out.jsonld +
+
+
+
+ Test t0059 Reset @vocab by setting it to null +
+
+
+
id
+
#t0059
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Setting @vocab to null removes a previous definition
+
input
+
+ expand/0059-in.jsonld +
+
expect
+
+ expand/0059-out.jsonld +
+
+
+
+ Test t0060 Overwrite document base with @base and reset it again +
+
+
+
id
+
#t0060
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Setting @base to an IRI and then resetting it to nil
+
input
+
+ expand/0060-in.jsonld +
+
expect
+
+ expand/0060-out.jsonld +
+
+
+
+ Test t0061 Coercing native types to arbitrary datatypes +
+
+
+
id
+
#t0061
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding native types when coercing to arbitrary datatypes
+
input
+
+ expand/0061-in.jsonld +
+
expect
+
+ expand/0061-out.jsonld +
+
+
+
+ Test t0062 Various relative IRIs with with @base +
+
+
+
id
+
#t0062
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Pathological relative IRIs
+
input
+
+ expand/0062-in.jsonld +
+
expect
+
+ expand/0062-out.jsonld +
+
+
+
+ Test t0063 Reverse property and index container +
+
+
+
id
+
#t0063
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expaning reverse properties with an index-container
+
input
+
+ expand/0063-in.jsonld +
+
expect
+
+ expand/0063-out.jsonld +
+
+
+
+ Test t0064 bnode values of reverse properties +
+
+
+
id
+
#t0064
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expand reverse property whose values are unlabeled blank nodes
+
input
+
+ expand/0064-in.jsonld +
+
expect
+
+ expand/0064-out.jsonld +
+
+
+
+ Test t0065 Drop unmapped keys in reverse map +
+
+
+
id
+
#t0065
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Keys that are not mapped to an IRI in a reverse-map are dropped
+
input
+
+ expand/0065-in.jsonld +
+
expect
+
+ expand/0065-out.jsonld +
+
+
+
+ Test t0066 Reverse-map keys with @vocab +
+
+
+
id
+
#t0066
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expand uses @vocab to expand keys in reverse-maps
+
input
+
+ expand/0066-in.jsonld +
+
expect
+
+ expand/0066-out.jsonld +
+
+
+
+ Test t0067 prefix://suffix not a compact IRI +
+
+
+
id
+
#t0067
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
prefix:suffix values are not interpreted as compact IRIs if suffix begins with two slashes
+
input
+
+ expand/0067-in.jsonld +
+
expect
+
+ expand/0067-out.jsonld +
+
+
+
+ Test t0068 _:suffix values are not a compact IRI +
+
+
+
id
+
#t0068
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
prefix:suffix values are not interpreted as compact IRIs if prefix is an underscore
+
input
+
+ expand/0068-in.jsonld +
+
expect
+
+ expand/0068-out.jsonld +
+
+
+
+ Test t0069 Compact IRI as term with type mapping +
+
+
+
id
+
#t0069
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Redefine compact IRI to define type mapping using the compact IRI itself as value of @id
+
input
+
+ expand/0069-in.jsonld +
+
expect
+
+ expand/0069-out.jsonld +
+
+
+
+ Test t0070 Compact IRI as term defined using equivalent compact IRI +
+
+
+
id
+
#t0070
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Redefine compact IRI to define type mapping using the compact IRI itself as string value
+
input
+
+ expand/0070-in.jsonld +
+
expect
+
+ expand/0070-out.jsonld +
+
+
+
+ Test t0071 Redefine terms looking like compact IRIs +
+
+
+
id
+
#t0071
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Term definitions may look like compact IRIs
+
input
+
+ expand/0071-in.jsonld +
+
expect
+
+ expand/0071-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0072 Redefine term using @vocab, not itself +
+
+
+
id
+
#t0072
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Redefining a term as itself when @vocab is defined uses @vocab, not previous term definition
+
input
+
+ expand/0072-in.jsonld +
+
expect
+
+ expand/0072-out.jsonld +
+
+
+
+ Test t0073 @context not first property +
+
+
+
id
+
#t0073
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
+
input
+
+ expand/0073-in.jsonld +
+
expect
+
+ expand/0073-out.jsonld +
+
+
+
+ Test t0074 @id not first property +
+
+
+
id
+
#t0074
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
+
input
+
+ expand/0074-in.jsonld +
+
expect
+
+ expand/0074-out.jsonld +
+
+
+
+ Test t0075 @vocab as blank node identifier +
+
+
+
id
+
#t0075
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use @vocab to map all properties to blank node identifiers
+
input
+
+ expand/0075-in.jsonld +
+
expect
+
+ expand/0075-out.jsonld +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test t0076 base option overrides document location +
+
+
+
id
+
#t0076
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of the base option overrides the document location
+
input
+
+ expand/0076-in.jsonld +
+
expect
+
+ expand/0076-out.jsonld +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test t0077 expandContext option +
+
+
+
id
+
#t0077
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of the expandContext option to expand the input document
+
input
+
+ expand/0077-in.jsonld +
+
expect
+
+ expand/0077-out.jsonld +
+
Options
+
+
+
expandContext
+
expand/0077-context.jsonld
+
+
+
+
+
+ Test t0078 multiple reverse properties +
+
+
+
id
+
#t0078
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of multiple reverse properties
+
input
+
+ expand/0078-in.jsonld +
+
expect
+
+ expand/0078-out.jsonld +
+
+
+
+ Test t0079 expand @graph container +
+
+
+
id
+
#t0079
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers
+
input
+
+ expand/0079-in.jsonld +
+
expect
+
+ expand/0079-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0080 expand [@graph, @set] container +
+
+
+
id
+
#t0080
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of [@graph, @set] containers
+
input
+
+ expand/0080-in.jsonld +
+
expect
+
+ expand/0080-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0081 Creates an @graph container if value is a graph +
+
+
+
id
+
#t0081
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Don't double-expand an already expanded graph
+
input
+
+ expand/0081-in.jsonld +
+
expect
+
+ expand/0081-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0082 expand [@graph, @index] container +
+
+
+
id
+
#t0082
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @index
+
input
+
+ expand/0082-in.jsonld +
+
expect
+
+ expand/0082-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0083 expand [@graph, @index, @set] container +
+
+
+
id
+
#t0083
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @index and @set
+
input
+
+ expand/0083-in.jsonld +
+
expect
+
+ expand/0083-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0084 Do not expand [@graph, @index] container if value is a graph +
+
+
+
id
+
#t0084
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ expand/0084-in.jsonld +
+
expect
+
+ expand/0084-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0085 expand [@graph, @id] container +
+
+
+
id
+
#t0085
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @id
+
input
+
+ expand/0085-in.jsonld +
+
expect
+
+ expand/0085-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0086 expand [@graph, @id, @set] container +
+
+
+
id
+
#t0086
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @id and @set
+
input
+
+ expand/0086-in.jsonld +
+
expect
+
+ expand/0086-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0087 Do not expand [@graph, @id] container if value is a graph +
+
+
+
id
+
#t0087
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ expand/0087-in.jsonld +
+
expect
+
+ expand/0087-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0088 Do not expand native values to IRIs +
+
+
+
id
+
#t0088
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Value Expansion does not expand native values, such as booleans, to a node object
+
input
+
+ expand/0088-in.jsonld +
+
expect
+
+ expand/0088-out.jsonld +
+
+
+
+ Test t0089 empty @base applied to the base option +
+
+
+
id
+
#t0089
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of an empty @base is applied to the base option
+
input
+
+ expand/0089-in.jsonld +
+
expect
+
+ expand/0089-out.jsonld +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test t0090 relative @base overrides base option and document location +
+
+
+
id
+
#t0090
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of a relative @base overrides base option and document location
+
input
+
+ expand/0090-in.jsonld +
+
expect
+
+ expand/0090-out.jsonld +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test t0091 relative and absolute @base overrides base option and document location +
+
+
+
id
+
#t0091
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of a relative and absolute @base overrides base option and document location
+
input
+
+ expand/0091-in.jsonld +
+
expect
+
+ expand/0091-out.jsonld +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test t0092 Various relative IRIs as properties with with @vocab: '' +
+
+
+
id
+
#t0092
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ expand/0092-in.jsonld +
+
expect
+
+ expand/0092-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0093 expand @graph container (multiple objects) +
+
+
+
id
+
#t0093
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers
+
input
+
+ expand/0093-in.jsonld +
+
expect
+
+ expand/0093-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0094 expand [@graph, @set] container (multiple objects) +
+
+
+
id
+
#t0094
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of [@graph, @set] containers
+
input
+
+ expand/0094-in.jsonld +
+
expect
+
+ expand/0094-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0095 Creates an @graph container if value is a graph (multiple objects) +
+
+
+
id
+
#t0095
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Double-expand an already expanded graph
+
input
+
+ expand/0095-in.jsonld +
+
expect
+
+ expand/0095-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0096 expand [@graph, @index] container (multiple indexed objects) +
+
+
+
id
+
#t0096
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @index
+
input
+
+ expand/0096-in.jsonld +
+
expect
+
+ expand/0096-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0097 expand [@graph, @index, @set] container (multiple objects) +
+
+
+
id
+
#t0097
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @index and @set
+
input
+
+ expand/0097-in.jsonld +
+
expect
+
+ expand/0097-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0098 Do not expand [@graph, @index] container if value is a graph (multiple objects) +
+
+
+
id
+
#t0098
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ expand/0098-in.jsonld +
+
expect
+
+ expand/0098-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0099 expand [@graph, @id] container (multiple objects) +
+
+
+
id
+
#t0099
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @id
+
input
+
+ expand/0099-in.jsonld +
+
expect
+
+ expand/0099-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0100 expand [@graph, @id, @set] container (multiple objects) +
+
+
+
id
+
#t0100
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @id and @set
+
input
+
+ expand/0100-in.jsonld +
+
expect
+
+ expand/0100-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0101 Do not expand [@graph, @id] container if value is a graph (multiple objects) +
+
+
+
id
+
#t0101
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ expand/0101-in.jsonld +
+
expect
+
+ expand/0101-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0102 Expand @graph container if value is a graph (multiple objects) +
+
+
+
id
+
#t0102
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Creates a new graph object if indexed value is already a graph object
+
input
+
+ expand/0102-in.jsonld +
+
expect
+
+ expand/0102-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0103 Expand @graph container if value is a graph (multiple graphs) +
+
+
+
id
+
#t0103
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Creates a new graph object if indexed value is already a graph object
+
input
+
+ expand/0103-in.jsonld +
+
expect
+
+ expand/0103-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0104 Creates an @graph container if value is a graph (mixed graph and object) +
+
+
+
id
+
#t0104
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Double-expand an already expanded graph
+
input
+
+ expand/0104-in.jsonld +
+
expect
+
+ expand/0104-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0105 Do not expand [@graph, @index] container if value is a graph (mixed graph and object) +
+
+
+
id
+
#t0105
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ expand/0105-in.jsonld +
+
expect
+
+ expand/0105-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0106 Do not expand [@graph, @id] container if value is a graph (mixed graph and object) +
+
+
+
id
+
#t0106
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ expand/0106-in.jsonld +
+
expect
+
+ expand/0106-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0107 expand [@graph, @index] container (indexes with multiple objects) +
+
+
+
id
+
#t0107
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @index
+
input
+
+ expand/0107-in.jsonld +
+
expect
+
+ expand/0107-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0108 expand [@graph, @id] container (multiple ids and objects) +
+
+
+
id
+
#t0108
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Use of @graph containers with @id
+
input
+
+ expand/0108-in.jsonld +
+
expect
+
+ expand/0108-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0109 IRI expansion of fragments including ':' +
+
+
+
id
+
#t0109
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
+
input
+
+ expand/0109-in.jsonld +
+
expect
+
+ expand/0109-out.jsonld +
+
+
+
+ Test t0110 Various relative IRIs as properties with with relative @vocab +
+
+
+
id
+
#t0110
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ expand/0110-in.jsonld +
+
expect
+
+ expand/0110-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0111 Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base +
+
+
+
id
+
#t0111
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ expand/0111-in.jsonld +
+
expect
+
+ expand/0111-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0112 Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base +
+
+
+
id
+
#t0112
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ expand/0112-in.jsonld +
+
expect
+
+ expand/0112-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0113 context with JavaScript Object property names +
+
+
+
id
+
#t0113
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expand with context including JavaScript Object property names
+
input
+
+ expand/0113-in.jsonld +
+
expect
+
+ expand/0113-out.jsonld +
+
+
+
+ Test t0114 Expansion allows multiple properties expanding to @type +
+
+
+
id
+
#t0114
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
An exception for the colliding keywords error is made for @type
+
input
+
+ expand/0114-in.jsonld +
+
expect
+
+ expand/0114-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0115 Verifies that relative IRIs as properties with @vocab: '' in 1.0 generate an error +
+
+
+
id
+
#t0115
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Relative property IRIs with relative @vocab in 1.0
+
input
+
+ expand/0115-in.jsonld +
+
expect
+
+ invalid vocab mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0116 Verifies that relative IRIs as properties with relative @vocab in 1.0 generate an error +
+
+
+
id
+
#t0116
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Relative property IRIs with relative @vocab in 1.0
+
input
+
+ expand/0116-in.jsonld +
+
expect
+
+ invalid vocab mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0117 A term starting with a colon can expand to a different IRI +
+
+
+
id
+
#t0117
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms may begin with a colon and not be treated as IRIs.
+
input
+
+ expand/0117-in.jsonld +
+
expect
+
+ expand/0117-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0118 Expanding a value staring with a colon does not treat that value as an IRI +
+
+
+
id
+
#t0118
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms may begin with a colon and not be treated as IRIs.
+
input
+
+ expand/0118-in.jsonld +
+
expect
+
+ expand/0118-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0119 Ignore some terms with @, allow others. +
+
+
+
id
+
#t0119
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
+
input
+
+ expand/0119-in.jsonld +
+
expect
+
+ expand/0119-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0120 Ignore some values of @id with @, allow others. +
+
+
+
id
+
#t0120
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
+
input
+
+ expand/0120-in.jsonld +
+
expect
+
+ expand/0120-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0121 Ignore some values of @reverse with @, allow others. +
+
+
+
id
+
#t0121
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
+
input
+
+ expand/0121-in.jsonld +
+
expect
+
+ expand/0121-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0122 Ignore some IRIs when that start with @ when expanding. +
+
+
+
id
+
#t0122
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword. (Note: the resulting document will not be valid JSON-LD, due to the `null` value for `@id`)
+
input
+
+ expand/0122-in.jsonld +
+
expect
+
+ expand/0122-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
normative
+
false
+
+
+
+
+
+ Test t0123 Value objects including invalid literal datatype IRIs are rejected +
+
+
+
id
+
#t0123
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Processors MUST validate datatype IRIs.
+
input
+
+ expand/0123-in.jsonld +
+
expect
+
+ invalid typed value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0124 compact IRI as @vocab +
+
+
+
id
+
#t0124
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that @vocab defined as a compact IRI expands properly
+
input
+
+ expand/0124-in.jsonld +
+
expect
+
+ expand/0124-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0125 term as @vocab +
+
+
+
id
+
#t0125
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that @vocab defined as a term expands properly
+
input
+
+ expand/0125-in.jsonld +
+
expect
+
+ expand/0125-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0126 A scoped context may include itself recursively (direct) +
+
+
+
id
+
#t0126
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
+
input
+
+ expand/0126-in.jsonld +
+
expect
+
+ expand/0126-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0127 A scoped context may include itself recursively (indirect) +
+
+
+
id
+
#t0127
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
+
input
+
+ expand/0127-in.jsonld +
+
expect
+
+ expand/0127-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0128 Two scoped context may include a shared context +
+
+
+
id
+
#t0128
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
+
input
+
+ expand/0128-in.jsonld +
+
expect
+
+ expand/0128-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test t0129 Base without trailing slash, without path +
+
+
+
id
+
#t0129
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
+
input
+
+ expand/0129-in.jsonld +
+
expect
+
+ expand/0129-out.jsonld +
+
+
+
+ Test t0130 Base without trailing slash, with path +
+
+
+
id
+
#t0130
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
+
input
+
+ expand/0130-in.jsonld +
+
expect
+
+ expand/0130-out.jsonld +
+
+
+
+ Test t0131 Reverse term with property based indexed container +
+
+
+
id
+
#t0131
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding a reverse term using @container: @index and @index set to a property
+
input
+
+ expand/0131-in.jsonld +
+
expect
+
+ expand/0131-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc001 adding new term +
+
+
+
id
+
#tc001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ expand/c001-in.jsonld +
+
expect
+
+ expand/c001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc002 overriding a term +
+
+
+
id
+
#tc002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ expand/c002-in.jsonld +
+
expect
+
+ expand/c002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc003 property and value with different terms mapping to the same expanded property +
+
+
+
id
+
#tc003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ expand/c003-in.jsonld +
+
expect
+
+ expand/c003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc004 deep @context affects nested nodes +
+
+
+
id
+
#tc004
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ expand/c004-in.jsonld +
+
expect
+
+ expand/c004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc005 scoped context layers on intemediate contexts +
+
+
+
id
+
#tc005
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ expand/c005-in.jsonld +
+
expect
+
+ expand/c005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc006 adding new term +
+
+
+
id
+
#tc006
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c006-in.jsonld +
+
expect
+
+ expand/c006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc007 overriding a term +
+
+
+
id
+
#tc007
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c007-in.jsonld +
+
expect
+
+ expand/c007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc008 alias of @type +
+
+
+
id
+
#tc008
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c008-in.jsonld +
+
expect
+
+ expand/c008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc009 deep @type-scoped @context does NOT affect nested nodes +
+
+
+
id
+
#tc009
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c009-in.jsonld +
+
expect
+
+ expand/c009-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc010 scoped context layers on intemediate contexts +
+
+
+
id
+
#tc010
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c010-in.jsonld +
+
expect
+
+ expand/c010-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc011 orders @type terms when applying scoped contexts +
+
+
+
id
+
#tc011
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c011-in.jsonld +
+
expect
+
+ expand/c011-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc012 deep property-term scoped @context in @type-scoped @context affects nested nodes +
+
+
+
id
+
#tc012
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c012-in.jsonld +
+
expect
+
+ expand/c012-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc013 type maps use scoped context from type index and not scoped context from containing +
+
+
+
id
+
#tc013
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/c013-in.jsonld +
+
expect
+
+ expand/c013-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc014 type-scoped context nullification +
+
+
+
id
+
#tc014
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped context nullification
+
input
+
+ expand/c014-in.jsonld +
+
expect
+
+ expand/c014-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc015 type-scoped base +
+
+
+
id
+
#tc015
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped base
+
input
+
+ expand/c015-in.jsonld +
+
expect
+
+ expand/c015-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc016 type-scoped vocab +
+
+
+
id
+
#tc016
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped vocab
+
input
+
+ expand/c016-in.jsonld +
+
expect
+
+ expand/c016-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc017 multiple type-scoped contexts are properly reverted +
+
+
+
id
+
#tc017
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
multiple type-scoped contexts are property reverted
+
input
+
+ expand/c017-in.jsonld +
+
expect
+
+ expand/c017-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc018 multiple type-scoped types resolved against previous context +
+
+
+
id
+
#tc018
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
multiple type-scoped types resolved against previous context
+
input
+
+ expand/c018-in.jsonld +
+
expect
+
+ expand/c018-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc019 type-scoped context with multiple property scoped terms +
+
+
+
id
+
#tc019
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped context with multiple property scoped terms
+
input
+
+ expand/c019-in.jsonld +
+
expect
+
+ expand/c019-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc020 type-scoped value +
+
+
+
id
+
#tc020
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped value
+
input
+
+ expand/c020-in.jsonld +
+
expect
+
+ expand/c020-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc021 type-scoped value mix +
+
+
+
id
+
#tc021
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped value mix
+
input
+
+ expand/c021-in.jsonld +
+
expect
+
+ expand/c021-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc022 type-scoped property-scoped contexts including @type:@vocab +
+
+
+
id
+
#tc022
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped property-scoped contexts including @type:@vocab
+
input
+
+ expand/c022-in.jsonld +
+
expect
+
+ expand/c022-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc023 composed type-scoped property-scoped contexts including @type:@vocab +
+
+
+
id
+
#tc023
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
composed type-scoped property-scoped contexts including @type:@vocab
+
input
+
+ expand/c023-in.jsonld +
+
expect
+
+ expand/c023-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc024 type-scoped + property-scoped + values evaluates against previous context +
+
+
+
id
+
#tc024
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped + property-scoped + values evaluates against previous context
+
input
+
+ expand/c024-in.jsonld +
+
expect
+
+ expand/c024-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc025 type-scoped + graph container +
+
+
+
id
+
#tc025
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped + graph container
+
input
+
+ expand/c025-in.jsonld +
+
expect
+
+ expand/c025-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc026 @propagate: true on type-scoped context +
+
+
+
id
+
#tc026
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped context with @propagate: true survive node-objects
+
input
+
+ expand/c026-in.jsonld +
+
expect
+
+ expand/c026-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc027 @propagate: false on property-scoped context +
+
+
+
id
+
#tc027
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
property-scoped context with @propagate: false do not survive node-objects
+
input
+
+ expand/c027-in.jsonld +
+
expect
+
+ expand/c027-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc028 @propagate: false on embedded context +
+
+
+
id
+
#tc028
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
embedded context with @propagate: false do not survive node-objects
+
input
+
+ expand/c028-in.jsonld +
+
expect
+
+ expand/c028-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc029 @propagate is invalid in 1.0 +
+
+
+
id
+
#tc029
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@propagate is invalid in 1.0
+
input
+
+ expand/c029-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test tc030 @propagate must be boolean valued +
+
+
+
id
+
#tc030
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@propagate must be boolean valued
+
input
+
+ expand/c030-in.jsonld +
+
expect
+
+ invalid @propagate value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc031 @context resolutions respects relative URLs. +
+
+
+
id
+
#tc031
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
URL resolution follows RFC3986
+
input
+
+ expand/c031-in.jsonld +
+
expect
+
+ expand/c031-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc032 Unused embedded context with error. +
+
+
+
id
+
#tc032
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
An embedded context which is never used should still be checked.
+
input
+
+ expand/c032-in.jsonld +
+
expect
+
+ invalid scoped context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc033 Unused context with an embedded context error. +
+
+
+
id
+
#tc033
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
An unused context with an embedded context should still be checked.
+
input
+
+ expand/c033-in.jsonld +
+
expect
+
+ invalid scoped context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc034 Remote scoped context. +
+
+
+
id
+
#tc034
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Scoped contexts may be externally loaded.
+
input
+
+ expand/c034-in.jsonld +
+
expect
+
+ expand/c034-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc035 Term scoping with embedded contexts. +
+
+
+
id
+
#tc035
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
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 +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc036 Expansion with empty property-scoped context. +
+
+
+
id
+
#tc036
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
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 +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc037 property-scoped contexts which are alias of @nest +
+
+
+
id
+
#tc037
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Nesting terms may have property-scoped contexts defined.
+
input
+
+ expand/c037-in.jsonld +
+
expect
+
+ expand/c037-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc038 Bibframe example (poor-mans inferrence) +
+
+
+
id
+
#tc038
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Nesting terms may have property-scoped contexts defined.
+
input
+
+ expand/c038-in.jsonld +
+
expect
+
+ expand/c038-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi01 Expand string using default and term directions +
+
+
+
id
+
#tdi01
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Strings are coerced to have @direction based on default and term direction.
+
input
+
+ expand/di01-in.jsonld +
+
expect
+
+ expand/di01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi02 Expand string using default and term directions and languages +
+
+
+
id
+
#tdi02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Strings are coerced to have @direction based on default and term direction.
+
input
+
+ expand/di02-in.jsonld +
+
expect
+
+ expand/di02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi03 expand list values with @direction +
+
+
+
id
+
#tdi03
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List values where the term has @direction are used in expansion.
+
input
+
+ expand/di03-in.jsonld +
+
expect
+
+ expand/di03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi04 simple language map with term direction +
+
+
+
id
+
#tdi04
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ expand/di04-in.jsonld +
+
expect
+
+ expand/di04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi05 simple language mapwith overriding term direction +
+
+
+
id
+
#tdi05
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ expand/di05-in.jsonld +
+
expect
+
+ expand/di05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi06 simple language mapwith overriding null direction +
+
+
+
id
+
#tdi06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ expand/di06-in.jsonld +
+
expect
+
+ expand/di06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi07 simple language map with mismatching term direction +
+
+
+
id
+
#tdi07
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ expand/di07-in.jsonld +
+
expect
+
+ expand/di07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi08 @direction must be one of ltr or rtl +
+
+
+
id
+
#tdi08
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Generate an error if @direction has illegal value.
+
input
+
+ expand/di08-in.jsonld +
+
expect
+
+ invalid base direction +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi09 @direction is incompatible with @type +
+
+
+
id
+
#tdi09
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Value objects can have either @type but not @language or @direction.
+
input
+
+ expand/di09-in.jsonld +
+
expect
+
+ invalid value object +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tec01 Invalid keyword in term definition +
+
+
+
id
+
#tec01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid term definition is found
+
input
+
+ expand/ec01-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tec02 Term definition on @type with empty map +
+
+
+
id
+
#tec02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised if @type is defined as a term with an empty map
+
input
+
+ expand/ec02-in.jsonld +
+
expect
+
+ keyword redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tem01 Invalid container mapping +
+
+
+
id
+
#tem01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid container mapping is found
+
input
+
+ expand/em01-in.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten01 @nest MUST NOT have a string value +
+
+
+
id
+
#ten01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
container: @nest
+
input
+
+ expand/en01-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten02 @nest MUST NOT have a boolen value +
+
+
+
id
+
#ten02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Transparent Nesting
+
input
+
+ expand/en02-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten03 @nest MUST NOT have a numeric value +
+
+
+
id
+
#ten03
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Transparent Nesting
+
input
+
+ expand/en03-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten04 @nest MUST NOT have a value object value +
+
+
+
id
+
#ten04
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Transparent Nesting
+
input
+
+ expand/en04-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten05 does not allow a keyword other than @nest for the value of @nest +
+
+
+
id
+
#ten05
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Transparent Nesting
+
input
+
+ expand/en05-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten06 does not allow @nest with @reverse +
+
+
+
id
+
#ten06
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Transparent Nesting
+
input
+
+ expand/en06-in.jsonld +
+
expect
+
+ invalid reverse property +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1 +
+
+
+
id
+
#tep02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
+
input
+
+ expand/ep02-in.jsonld +
+
expect
+
+ processing mode conflict +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep03 @version must be 1.1 +
+
+
+
id
+
#tep03
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
If @version is specified, it must be 1.1
+
input
+
+ expand/ep03-in.jsonld +
+
expect
+
+ invalid @version value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter01 Keywords cannot be aliased to other keywords +
+
+
+
id
+
#ter01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
+
input
+
+ expand/er01-in.jsonld +
+
expect
+
+ keyword redefinition +
+
+
+
+ Test ter02 A context may not include itself recursively (direct) +
+
+
+
id
+
#ter02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing a context referencing itself
+
input
+
+ expand/er02-in.jsonld +
+
expect
+
+ recursive context inclusion +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter03 A context may not include itself recursively (indirect) +
+
+
+
id
+
#ter03
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
+
input
+
+ expand/er03-in.jsonld +
+
expect
+
+ recursive context inclusion +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter04 Error dereferencing a remote context +
+
+
+
id
+
#ter04
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context dereference results in an error
+
input
+
+ expand/er04-in.jsonld +
+
expect
+
+ loading remote context failed +
+
+
+
+ Test ter05 Invalid remote context +
+
+
+
id
+
#ter05
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a remote context is not an object containing @context
+
input
+
+ expand/er05-in.jsonld +
+
expect
+
+ invalid remote context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter06 Invalid local context +
+
+
+
id
+
#ter06
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context is not a string or object
+
input
+
+ expand/er06-in.jsonld +
+
expect
+
+ invalid local context +
+
+
+
+ Test ter07 Invalid base IRI +
+
+
+
id
+
#ter07
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @base
+
input
+
+ expand/er07-in.jsonld +
+
expect
+
+ invalid base IRI +
+
+
+
+ Test ter08 Invalid vocab mapping +
+
+
+
id
+
#ter08
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
+
input
+
+ expand/er08-in.jsonld +
+
expect
+
+ invalid vocab mapping +
+
+
+
+ Test ter09 Invalid default language +
+
+
+
id
+
#ter09
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @language
+
input
+
+ expand/er09-in.jsonld +
+
expect
+
+ invalid default language +
+
+
+
+ Test ter10 Cyclic IRI mapping +
+
+
+
id
+
#ter10
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
+
input
+
+ expand/er10-in.jsonld +
+
expect
+
+ cyclic IRI mapping +
+
+
+
+ Test ter11 Invalid term definition +
+
+
+
id
+
#ter11
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid term definition is found
+
input
+
+ expand/er11-in.jsonld +
+
expect
+
+ invalid term definition +
+
+
+
+ Test ter12 Invalid type mapping (not a string) +
+
+
+
id
+
#ter12
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid type mapping is found
+
input
+
+ expand/er12-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test ter13 Invalid type mapping (not absolute IRI) +
+
+
+
id
+
#ter13
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid type mapping is found
+
input
+
+ expand/er13-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test ter14 Invalid reverse property (contains @id) +
+
+
+
id
+
#ter14
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid reverse property is found
+
input
+
+ expand/er14-in.jsonld +
+
expect
+
+ invalid reverse property +
+
+
+
+ Test ter15 Invalid IRI mapping (@reverse not a string) +
+
+
+
id
+
#ter15
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
+
input
+
+ expand/er15-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter17 Invalid reverse property (invalid @container) +
+
+
+
id
+
#ter17
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid reverse property is found
+
input
+
+ expand/er17-in.jsonld +
+
expect
+
+ invalid reverse property +
+
+
+
+ Test ter18 Invalid IRI mapping (@id not a string) +
+
+
+
id
+
#ter18
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
+
input
+
+ expand/er18-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter19 Invalid keyword alias (@context) +
+
+
+
id
+
#ter19
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid keyword alias is found
+
input
+
+ expand/er19-in.jsonld +
+
expect
+
+ invalid keyword alias +
+
+
+
+ Test ter20 Invalid IRI mapping (no vocab mapping) +
+
+
+
id
+
#ter20
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
+
input
+
+ expand/er20-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter21 Invalid container mapping +
+
+
+
id
+
#ter21
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid container mapping is found
+
input
+
+ expand/er21-in.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter22 Invalid language mapping +
+
+
+
id
+
#ter22
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid language mapping is found
+
input
+
+ expand/er22-in.jsonld +
+
expect
+
+ invalid language mapping +
+
+
+
+ Test ter23 Invalid IRI mapping (relative IRI in @type) +
+
+
+
id
+
#ter23
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid type mapping is found
+
input
+
+ expand/er23-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test ter24 List of lists (from array) +
+
+
+
id
+
#ter24
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when a list of lists is found
+
input
+
+ expand/er24-in.jsonld +
+
expect
+
+ list of lists +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter25 Invalid reverse property map +
+
+
+
id
+
#ter25
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when a invalid reverse property map is found
+
input
+
+ expand/er25-in.jsonld +
+
expect
+
+ invalid reverse property map +
+
+
+
+ Test ter26 Colliding keywords +
+
+
+
id
+
#ter26
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when colliding keywords are found
+
input
+
+ expand/er26-in.jsonld +
+
expect
+
+ colliding keywords +
+
+
+
+ Test ter27 Invalid @id value +
+
+
+
id
+
#ter27
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid @id value is found
+
input
+
+ expand/er27-in.jsonld +
+
expect
+
+ invalid @id value +
+
+
+
+ Test ter28 Invalid type value +
+
+
+
id
+
#ter28
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid type value is found
+
input
+
+ expand/er28-in.jsonld +
+
expect
+
+ invalid type value +
+
+
+
+ Test ter29 Invalid value object value +
+
+
+
id
+
#ter29
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object value is found
+
input
+
+ expand/er29-in.jsonld +
+
expect
+
+ invalid value object value +
+
+
+
+ Test ter30 Invalid language-tagged string +
+
+
+
id
+
#ter30
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
+
input
+
+ expand/er30-in.jsonld +
+
expect
+
+ invalid language-tagged string +
+
+
+
+ Test ter31 Invalid @index value +
+
+
+
id
+
#ter31
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid @index value value is found
+
input
+
+ expand/er31-in.jsonld +
+
expect
+
+ invalid @index value +
+
+
+
+ Test ter32 List of lists (from array) +
+
+
+
id
+
#ter32
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when a list of lists is found
+
input
+
+ expand/er32-in.jsonld +
+
expect
+
+ list of lists +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter33 Invalid @reverse value +
+
+
+
id
+
#ter33
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid @reverse value is found
+
input
+
+ expand/er33-in.jsonld +
+
expect
+
+ invalid @reverse value +
+
+
+
+ Test ter34 Invalid reverse property value (in @reverse) +
+
+
+
id
+
#ter34
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
+
input
+
+ expand/er34-in.jsonld +
+
expect
+
+ invalid reverse property value +
+
+
+
+ Test ter35 Invalid language map value +
+
+
+
id
+
#ter35
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid language map value is found
+
input
+
+ expand/er35-in.jsonld +
+
expect
+
+ invalid language map value +
+
+
+
+ Test ter36 Invalid reverse property value (through coercion) +
+
+
+
id
+
#ter36
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
+
input
+
+ expand/er36-in.jsonld +
+
expect
+
+ invalid reverse property value +
+
+
+
+ Test ter37 Invalid value object (unexpected keyword) +
+
+
+
id
+
#ter37
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object is found
+
input
+
+ expand/er37-in.jsonld +
+
expect
+
+ invalid value object +
+
+
+
+ Test ter38 Invalid value object (@type and @language) +
+
+
+
id
+
#ter38
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object is found
+
input
+
+ expand/er38-in.jsonld +
+
expect
+
+ invalid value object +
+
+
+
+ Test ter39 Invalid language-tagged value +
+
+
+
id
+
#ter39
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
+
input
+
+ expand/er39-in.jsonld +
+
expect
+
+ invalid language-tagged value +
+
+
+
+ Test ter40 Invalid typed value +
+
+
+
id
+
#ter40
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid typed value is found
+
input
+
+ expand/er40-in.jsonld +
+
expect
+
+ invalid typed value +
+
+
+
+ Test ter41 Invalid set or list object +
+
+
+
id
+
#ter41
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid set or list object is found
+
input
+
+ expand/er41-in.jsonld +
+
expect
+
+ invalid set or list object +
+
+
+
+ Test ter42 Keywords may not be redefined in 1.0 +
+
+
+
id
+
#ter42
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
+
input
+
+ expand/er42-in.jsonld +
+
expect
+
+ keyword redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test ter43 Term definition with @id: @type +
+
+
+
id
+
#ter43
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding term mapping to @type uses @type syntax now illegal
+
input
+
+ expand/er43-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter44 Redefine terms looking like compact IRIs +
+
+
+
id
+
#ter44
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Term definitions may look like compact IRIs, but must be consistent.
+
input
+
+ expand/er44-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter48 Invalid term as relative IRI +
+
+
+
id
+
#ter48
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that a relative IRI cannot be used as a term.
+
input
+
+ expand/er48-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter49 A relative IRI cannot be used as a prefix +
+
+
+
id
+
#ter49
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that a relative IRI cannot be used as a term.
+
input
+
+ expand/er49-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter50 Invalid reverse id +
+
+
+
id
+
#ter50
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
+
input
+
+ expand/er50-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter51 Invalid value object value using a value alias +
+
+
+
id
+
#ter51
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object value is found using a value alias
+
input
+
+ expand/er51-in.jsonld +
+
expect
+
+ invalid value object value +
+
+
+
+ Test ter52 Definition for the empty term +
+
+
+
id
+
#ter52
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains a definition for the empty term
+
input
+
+ expand/er52-in.jsonld +
+
expect
+
+ invalid term definition +
+
+
+
+ Test ter53 Invalid prefix value +
+
+
+
id
+
#ter53
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
+
input
+
+ expand/er53-in.jsonld +
+
expect
+
+ invalid @prefix value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter54 Invalid value object, multiple values for @type. +
+
+
+
id
+
#ter54
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
The value of @type in a value object MUST be a string or null.
+
input
+
+ expand/er54-in.jsonld +
+
expect
+
+ invalid typed value +
+
+
+
+ Test ter55 Invalid term definition, multiple values for @type. +
+
+
+
id
+
#ter55
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
The value of @type in an expanded term definition object MUST be a string or null.
+
input
+
+ expand/er55-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test tes01 Using an array value for @context is illegal in JSON-LD 1.0 +
+
+
+
id
+
#tes01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid container mapping is found
+
input
+
+ expand/es01-in.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tes02 Mapping @container: [@list, @set] is invalid +
+
+
+
id
+
#tes02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Testing legal combinations of @set with other container values
+
input
+
+ expand/es02-in.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin01 Basic Included array +
+
+
+
id
+
#tin01
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in01-in.jsonld +
+
expect
+
+ expand/in01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin02 Basic Included object +
+
+
+
id
+
#tin02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in02-in.jsonld +
+
expect
+
+ expand/in02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin03 Multiple properties mapping to @included are folded together +
+
+
+
id
+
#tin03
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in03-in.jsonld +
+
expect
+
+ expand/in03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin04 Included containing @included +
+
+
+
id
+
#tin04
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in04-in.jsonld +
+
expect
+
+ expand/in04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin05 Property value with @included +
+
+
+
id
+
#tin05
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in05-in.jsonld +
+
expect
+
+ expand/in05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin06 json.api example +
+
+
+
id
+
#tin06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in06-in.jsonld +
+
expect
+
+ expand/in06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin07 Error if @included value is a string +
+
+
+
id
+
#tin07
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in07-in.jsonld +
+
expect
+
+ invalid @included value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin08 Error if @included value is a value object +
+
+
+
id
+
#tin08
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in08-in.jsonld +
+
expect
+
+ invalid @included value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin09 Error if @included value is a list object +
+
+
+
id
+
#tin09
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests included blocks.
+
input
+
+ expand/in09-in.jsonld +
+
expect
+
+ invalid @included value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs01 Expand JSON literal (boolean true) +
+
+
+
id
+
#tjs01
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (boolean true).
+
input
+
+ expand/js01-in.jsonld +
+
expect
+
+ expand/js01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs02 Expand JSON literal (boolean false) +
+
+
+
id
+
#tjs02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (boolean false).
+
input
+
+ expand/js02-in.jsonld +
+
expect
+
+ expand/js02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs03 Expand JSON literal (double) +
+
+
+
id
+
#tjs03
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (double).
+
input
+
+ expand/js03-in.jsonld +
+
expect
+
+ expand/js03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs04 Expand JSON literal (double-zero) +
+
+
+
id
+
#tjs04
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (double-zero).
+
input
+
+ expand/js04-in.jsonld +
+
expect
+
+ expand/js04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs05 Expand JSON literal (integer) +
+
+
+
id
+
#tjs05
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (integer).
+
input
+
+ expand/js05-in.jsonld +
+
expect
+
+ expand/js05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs06 Expand JSON literal (object) +
+
+
+
id
+
#tjs06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (object).
+
input
+
+ expand/js06-in.jsonld +
+
expect
+
+ expand/js06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs07 Expand JSON literal (array) +
+
+
+
id
+
#tjs07
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (array).
+
input
+
+ expand/js07-in.jsonld +
+
expect
+
+ expand/js07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs08 Expand JSON literal with array canonicalization +
+
+
+
id
+
#tjs08
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with array canonicalization.
+
input
+
+ expand/js08-in.jsonld +
+
expect
+
+ expand/js08-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs09 Transform JSON literal with string canonicalization +
+
+
+
id
+
#tjs09
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with string canonicalization.
+
input
+
+ expand/js09-in.jsonld +
+
expect
+
+ expand/js09-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs10 Expand JSON literal with structural canonicalization +
+
+
+
id
+
#tjs10
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with structural canonicalization.
+
input
+
+ expand/js10-in.jsonld +
+
expect
+
+ expand/js10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs11 Expand JSON literal with unicode canonicalization +
+
+
+
id
+
#tjs11
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with unicode canonicalization.
+
input
+
+ expand/js11-in.jsonld +
+
expect
+
+ expand/js11-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs12 Expand JSON literal with value canonicalization +
+
+
+
id
+
#tjs12
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with value canonicalization.
+
input
+
+ expand/js12-in.jsonld +
+
expect
+
+ expand/js12-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs13 Expand JSON literal with wierd canonicalization +
+
+
+
id
+
#tjs13
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with wierd canonicalization.
+
input
+
+ expand/js13-in.jsonld +
+
expect
+
+ expand/js13-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs14 Expand JSON literal without expanding contents +
+
+
+
id
+
#tjs14
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal does not expand terms inside json.
+
input
+
+ expand/js14-in.jsonld +
+
expect
+
+ expand/js14-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs15 Expand JSON literal aleady in expanded form +
+
+
+
id
+
#tjs15
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal in expanded form.
+
input
+
+ expand/js15-in.jsonld +
+
expect
+
+ expand/js15-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs16 Expand JSON literal aleady in expanded form with aliased keys +
+
+
+
id
+
#tjs16
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal in expanded form with aliased keys in value object.
+
input
+
+ expand/js16-in.jsonld +
+
expect
+
+ expand/js16-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs17 Expand JSON literal (string) +
+
+
+
id
+
#tjs17
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (string).
+
input
+
+ expand/js17-in.jsonld +
+
expect
+
+ expand/js17-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs18 Expand JSON literal (null) +
+
+
+
id
+
#tjs18
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (null).
+
input
+
+ expand/js18-in.jsonld +
+
expect
+
+ expand/js18-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs19 Expand JSON literal with aliased @type +
+
+
+
id
+
#tjs19
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with aliased @type.
+
input
+
+ expand/js19-in.jsonld +
+
expect
+
+ expand/js19-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs20 Expand JSON literal with aliased @value +
+
+
+
id
+
#tjs20
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with aliased @value.
+
input
+
+ expand/js20-in.jsonld +
+
expect
+
+ expand/js20-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs21 Expand JSON literal with @context +
+
+
+
id
+
#tjs21
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding JSON literal with a @context.
+
input
+
+ expand/js21-in.jsonld +
+
expect
+
+ expand/js21-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs22 Expand JSON literal (null) aleady in expanded form. +
+
+
+
id
+
#tjs22
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (null).
+
input
+
+ expand/js22-in.jsonld +
+
expect
+
+ expand/js22-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs23 Expand JSON literal (empty array). +
+
+
+
id
+
#tjs23
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Tests expanding property with @type @json to a JSON literal (empty array).
+
input
+
+ expand/js23-in.jsonld +
+
expect
+
+ expand/js23-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tl001 Language map with null value +
+
+
+
id
+
#tl001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
A language map may have a null value, which is ignored
+
input
+
+ expand/l001-in.jsonld +
+
expect
+
+ expand/l001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli01 @list containing @list +
+
+
+
id
+
#tli01
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li01-in.jsonld +
+
expect
+
+ expand/li01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli02 @list containing empty @list +
+
+
+
id
+
#tli02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li02-in.jsonld +
+
expect
+
+ expand/li02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli03 @list containing @list (with coercion) +
+
+
+
id
+
#tli03
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li03-in.jsonld +
+
expect
+
+ expand/li03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli04 @list containing empty @list (with coercion) +
+
+
+
id
+
#tli04
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li04-in.jsonld +
+
expect
+
+ expand/li04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli05 coerced @list containing an array +
+
+
+
id
+
#tli05
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li05-in.jsonld +
+
expect
+
+ expand/li05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli06 coerced @list containing an empty array +
+
+
+
id
+
#tli06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li06-in.jsonld +
+
expect
+
+ expand/li06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli07 coerced @list containing deep arrays +
+
+
+
id
+
#tli07
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li07-in.jsonld +
+
expect
+
+ expand/li07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli08 coerced @list containing deep empty arrays +
+
+
+
id
+
#tli08
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li08-in.jsonld +
+
expect
+
+ expand/li08-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli09 coerced @list containing multiple lists +
+
+
+
id
+
#tli09
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li09-in.jsonld +
+
expect
+
+ expand/li09-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli10 coerced @list containing mixed list values +
+
+
+
id
+
#tli10
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
List of lists
+
input
+
+ expand/li10-in.jsonld +
+
expect
+
+ expand/li10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm001 Adds @id to object not having an @id +
+
+
+
id
+
#tm001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @id
+
input
+
+ expand/m001-in.jsonld +
+
expect
+
+ expand/m001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm002 Retains @id in object already having an @id +
+
+
+
id
+
#tm002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @id
+
input
+
+ expand/m002-in.jsonld +
+
expect
+
+ expand/m002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm003 Adds @type to object not having an @type +
+
+
+
id
+
#tm003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ expand/m003-in.jsonld +
+
expect
+
+ expand/m003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm004 Prepends @type in object already having an @type +
+
+
+
id
+
#tm004
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ expand/m004-in.jsonld +
+
expect
+
+ expand/m004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm005 Adds expanded @id to object +
+
+
+
id
+
#tm005
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @id
+
input
+
+ expand/m005-in.jsonld +
+
expect
+
+ expand/m005-out.jsonld +
+
Options
+
+
+
base
+
http://example.org/
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm006 Adds vocabulary expanded @type to object +
+
+
+
id
+
#tm006
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ expand/m006-in.jsonld +
+
expect
+
+ expand/m006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm007 Adds document expanded @type to object +
+
+
+
id
+
#tm007
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ expand/m007-in.jsonld +
+
expect
+
+ expand/m007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm008 When type is in a type map +
+
+
+
id
+
#tm008
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
scoped context on @type
+
input
+
+ expand/m008-in.jsonld +
+
expect
+
+ expand/m008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm009 language map with @none +
+
+
+
id
+
#tm009
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @language
+
input
+
+ expand/m009-in.jsonld +
+
expect
+
+ expand/m009-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm010 language map with alias of @none +
+
+
+
id
+
#tm010
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @language
+
input
+
+ expand/m010-in.jsonld +
+
expect
+
+ expand/m010-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm011 id map with @none +
+
+
+
id
+
#tm011
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @id
+
input
+
+ expand/m011-in.jsonld +
+
expect
+
+ expand/m011-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm012 type map with alias of @none +
+
+
+
id
+
#tm012
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @type
+
input
+
+ expand/m012-in.jsonld +
+
expect
+
+ expand/m012-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm013 graph index map with @none +
+
+
+
id
+
#tm013
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @graph and @index
+
input
+
+ expand/m013-in.jsonld +
+
expect
+
+ expand/m013-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm014 graph index map with alias @none +
+
+
+
id
+
#tm014
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @graph and @index
+
input
+
+ expand/m014-in.jsonld +
+
expect
+
+ expand/m014-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm015 graph id index map with aliased @none +
+
+
+
id
+
#tm015
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @graph and @id with @none
+
input
+
+ expand/m015-in.jsonld +
+
expect
+
+ expand/m015-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm016 graph id index map with aliased @none +
+
+
+
id
+
#tm016
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @graph and @id with @none
+
input
+
+ expand/m016-in.jsonld +
+
expect
+
+ expand/m016-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm017 string value of type map expands to node reference +
+
+
+
id
+
#tm017
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @type
+
input
+
+ expand/m017-in.jsonld +
+
expect
+
+ expand/m017-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm018 string value of type map expands to node reference with @type: @id +
+
+
+
id
+
#tm018
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @type
+
input
+
+ expand/m018-in.jsonld +
+
expect
+
+ expand/m018-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm019 string value of type map expands to node reference with @type: @vocab +
+
+
+
id
+
#tm019
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @type
+
input
+
+ expand/m019-in.jsonld +
+
expect
+
+ expand/m019-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm020 string value of type map must not be a literal +
+
+
+
id
+
#tm020
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
index on @type
+
input
+
+ expand/m020-in.jsonld +
+
expect
+
+ invalid type mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn001 Expands input using @nest +
+
+
+
id
+
#tn001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n001-in.jsonld +
+
expect
+
+ expand/n001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn002 Expands input using aliased @nest +
+
+
+
id
+
#tn002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n002-in.jsonld +
+
expect
+
+ expand/n002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn003 Appends nested values when property at base and nested +
+
+
+
id
+
#tn003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n003-in.jsonld +
+
expect
+
+ expand/n003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn004 Appends nested values from all @nest aliases +
+
+
+
id
+
#tn004
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n004-in.jsonld +
+
expect
+
+ expand/n004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn005 Nested nested containers +
+
+
+
id
+
#tn005
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n005-in.jsonld +
+
expect
+
+ expand/n005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn006 Arrays of nested values +
+
+
+
id
+
#tn006
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n006-in.jsonld +
+
expect
+
+ expand/n006-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn007 A nest of arrays +
+
+
+
id
+
#tn007
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n007-in.jsonld +
+
expect
+
+ expand/n007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn008 Multiple keys may mapping to @type when nesting +
+
+
+
id
+
#tn008
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion using @nest
+
input
+
+ expand/n008-in.jsonld +
+
expect
+
+ expand/n008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp001 @version may be specified after first context +
+
+
+
id
+
#tp001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ expand/p001-in.jsonld +
+
expect
+
+ expand/p001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp002 @version setting [1.0, 1.1, 1.0] +
+
+
+
id
+
#tp002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ expand/p002-in.jsonld +
+
expect
+
+ expand/p002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp003 @version setting [1.1, 1.0] +
+
+
+
id
+
#tp003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ expand/p003-in.jsonld +
+
expect
+
+ expand/p003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp004 @version setting [1.1, 1.0, 1.1] +
+
+
+
id
+
#tp004
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ expand/p004-in.jsonld +
+
expect
+
+ expand/p004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi01 error if @version is json-ld-1.0 for property-valued index +
+
+
+
id
+
#tpi01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi01-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test tpi02 error if @container does not include @index for property-valued index +
+
+
+
id
+
#tpi02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi02-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi03 error if @index is a keyword for property-valued index +
+
+
+
id
+
#tpi03
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi03-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi04 error if @index is not a string for property-valued index +
+
+
+
id
+
#tpi04
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi04-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi05 error if attempting to add property to value object for property-valued index +
+
+
+
id
+
#tpi05
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi05-in.jsonld +
+
expect
+
+ invalid value object +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi06 property-valued index expands to property value, instead of @index (value) +
+
+
+
id
+
#tpi06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi06-in.jsonld +
+
expect
+
+ expand/pi06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi07 property-valued index appends to property value, instead of @index (value) +
+
+
+
id
+
#tpi07
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi07-in.jsonld +
+
expect
+
+ expand/pi07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi08 property-valued index expands to property value, instead of @index (node) +
+
+
+
id
+
#tpi08
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi08-in.jsonld +
+
expect
+
+ expand/pi08-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi09 property-valued index appends to property value, instead of @index (node) +
+
+
+
id
+
#tpi09
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi09-in.jsonld +
+
expect
+
+ expand/pi09-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi10 property-valued index does not output property for @none +
+
+
+
id
+
#tpi10
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi10-in.jsonld +
+
expect
+
+ expand/pi10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi11 property-valued index adds property to graph object +
+
+
+
id
+
#tpi11
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ expand/pi11-in.jsonld +
+
expect
+
+ expand/pi11-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr01 Protect a term +
+
+
+
id
+
#tpr01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Check error when overriding a protected term.
+
input
+
+ expand/pr01-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr02 Set a term to not be protected +
+
+
+
id
+
#tpr02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
A term with @protected: false is not protected.
+
input
+
+ expand/pr02-in.jsonld +
+
expect
+
+ expand/pr02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr03 Protect all terms in context +
+
+
+
id
+
#tpr03
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
A protected context protects all term definitions.
+
input
+
+ expand/pr03-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr04 Do not protect term with @protected: false +
+
+
+
id
+
#tpr04
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
A protected context does not protect terms with @protected: false.
+
input
+
+ expand/pr04-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr05 Clear active context with protected terms from an embedded context +
+
+
+
id
+
#tpr05
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
The Active context be set to null from an embedded context.
+
input
+
+ expand/pr05-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr06 Clear active context of protected terms from a term. +
+
+
+
id
+
#tpr06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
The Active context may be set to null from a scoped context of a term.
+
input
+
+ expand/pr06-in.jsonld +
+
expect
+
+ expand/pr06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr08 Term with protected scoped context. +
+
+
+
id
+
#tpr08
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
A scoped context can protect terms.
+
input
+
+ expand/pr08-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr09 Attempt to redefine term in other protected context. +
+
+
+
id
+
#tpr09
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
A protected term cannot redefine another protected term.
+
input
+
+ expand/pr09-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr10 Simple protected and unprotected terms. +
+
+
+
id
+
#tpr10
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Simple protected and unprotected terms.
+
input
+
+ expand/pr10-in.jsonld +
+
expect
+
+ expand/pr10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr11 Fail to override protected term. +
+
+
+
id
+
#tpr11
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Fail to override protected term.
+
input
+
+ expand/pr11-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr12 Scoped context fail to override protected term. +
+
+
+
id
+
#tpr12
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Scoped context fail to override protected term.
+
input
+
+ expand/pr12-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr13 Override unprotected term. +
+
+
+
id
+
#tpr13
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Override unprotected term.
+
input
+
+ expand/pr13-in.jsonld +
+
expect
+
+ expand/pr13-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr14 Clear protection with null context. +
+
+
+
id
+
#tpr14
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Clear protection with null context.
+
input
+
+ expand/pr14-in.jsonld +
+
expect
+
+ expand/pr14-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr15 Clear protection with array with null context +
+
+
+
id
+
#tpr15
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Clear protection with array with null context
+
input
+
+ expand/pr15-in.jsonld +
+
expect
+
+ expand/pr15-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr16 Override protected terms after null. +
+
+
+
id
+
#tpr16
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Override protected terms after null.
+
input
+
+ expand/pr16-in.jsonld +
+
expect
+
+ expand/pr16-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr17 Fail to override protected terms with type. +
+
+
+
id
+
#tpr17
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Fail to override protected terms with type.
+
input
+
+ expand/pr17-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr18 Fail to override protected terms with type+null+ctx. +
+
+
+
id
+
#tpr18
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Fail to override protected terms with type+null+ctx.
+
input
+
+ expand/pr18-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr19 Mix of protected and unprotected terms. +
+
+
+
id
+
#tpr19
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Mix of protected and unprotected terms.
+
input
+
+ expand/pr19-in.jsonld +
+
expect
+
+ expand/pr19-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr20 Fail with mix of protected and unprotected terms with type+null+ctx. +
+
+
+
id
+
#tpr20
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Fail with mix of protected and unprotected terms with type+null+ctx.
+
input
+
+ expand/pr20-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr21 Fail with mix of protected and unprotected terms with type+null. +
+
+
+
id
+
#tpr21
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Fail with mix of protected and unprotected terms with type+null.
+
input
+
+ expand/pr21-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr22 Check legal overriding of type-scoped protected term from nested node. +
+
+
+
id
+
#tpr22
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Check legal overriding of type-scoped protected term from nested node.
+
input
+
+ expand/pr22-in.jsonld +
+
expect
+
+ expand/pr22-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr23 Allows redefinition of protected alias term with same definition. +
+
+
+
id
+
#tpr23
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Allows redefinition of protected alias term with same definition.
+
input
+
+ expand/pr23-in.jsonld +
+
expect
+
+ expand/pr23-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr24 Allows redefinition of protected prefix term with same definition. +
+
+
+
id
+
#tpr24
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Allows redefinition of protected prefix term with same definition.
+
input
+
+ expand/pr24-in.jsonld +
+
expect
+
+ expand/pr24-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr25 Allows redefinition of terms with scoped contexts using same definitions. +
+
+
+
id
+
#tpr25
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Allows redefinition of terms with scoped contexts using same definitions.
+
input
+
+ expand/pr25-in.jsonld +
+
expect
+
+ expand/pr25-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr26 Fails on redefinition of terms with scoped contexts using different definitions. +
+
+
+
id
+
#tpr26
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Fails on redefinition of terms with scoped contexts using different definitions.
+
input
+
+ expand/pr26-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag. +
+
+
+
id
+
#tpr27
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Allows redefinition of protected alias term with same definition modulo protected flag.
+
input
+
+ expand/pr27-in.jsonld +
+
expect
+
+ expand/pr27-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr28 Fails if trying to redefine a protected null term. +
+
+
+
id
+
#tpr28
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
A protected term with a null IRI mapping cannot be redefined.
+
input
+
+ expand/pr28-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr29 Does not expand a Compact IRI using a non-prefix term. +
+
+
+
id
+
#tpr29
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Expansion of Compact IRIs considers if the term can be used as a prefix.
+
input
+
+ expand/pr29-in.jsonld +
+
expect
+
+ expand/pr29-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr30 Keywords may be protected. +
+
+
+
id
+
#tpr30
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Keywords may not be redefined other than to protect them.
+
input
+
+ expand/pr30-in.jsonld +
+
expect
+
+ expand/pr30-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr31 Protected keyword aliases cannot be overridden. +
+
+
+
id
+
#tpr31
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Keywords may not be redefined other than to protect them.
+
input
+
+ expand/pr31-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr32 Protected @type cannot be overridden. +
+
+
+
id
+
#tpr32
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Keywords may not be redefined other than to protect them.
+
input
+
+ expand/pr32-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr33 Fails if trying to declare a keyword alias as prefix. +
+
+
+
id
+
#tpr33
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Keyword aliases can not be used as prefixes.
+
input
+
+ expand/pr33-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr34 Ignores a non-keyword term starting with '@' +
+
+
+
id
+
#tpr34
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ expand/pr34-in.jsonld +
+
expect
+
+ expand/pr34-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab) +
+
+
+
id
+
#tpr35
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ expand/pr35-in.jsonld +
+
expect
+
+ expand/pr35-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr36 Ignores a term mapping to a value in the form of a keyword. +
+
+
+
id
+
#tpr36
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ expand/pr36-in.jsonld +
+
expect
+
+ expand/pr36-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr37 Ignores a term mapping to a value in the form of a keyword (with @vocab). +
+
+
+
id
+
#tpr37
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ expand/pr37-in.jsonld +
+
expect
+
+ expand/pr37-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr38 Ignores a term mapping to a value in the form of a keyword (@reverse). +
+
+
+
id
+
#tpr38
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ expand/pr38-in.jsonld +
+
expect
+
+ expand/pr38-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr39 Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab). +
+
+
+
id
+
#tpr39
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ expand/pr39-in.jsonld +
+
expect
+
+ expand/pr39-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr40 Protected terms and property-scoped contexts +
+
+
+
id
+
#tpr40
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Check overriding of protected term from property-scoped context.
+
input
+
+ expand/pr40-in.jsonld +
+
expect
+
+ expand/pr40-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr41 Allows protected redefinition of equivalent id terms +
+
+
+
id
+
#tpr41
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Check protected redefinition of equivalent id terms in different forms.
+
input
+
+ expand/pr41-in.jsonld +
+
expect
+
+ expand/pr41-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso01 @import is invalid in 1.0. +
+
+
+
id
+
#tso01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@import is invalid in 1.0.
+
input
+
+ expand/so01-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test tso02 @import must be a string +
+
+
+
id
+
#tso02
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@import must be a string.
+
input
+
+ expand/so02-in.jsonld +
+
expect
+
+ invalid @import value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso03 @import overflow +
+
+
+
id
+
#tso03
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Processors must detect source contexts that include @import.
+
input
+
+ expand/so03-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso05 @propagate: true on type-scoped context with @import +
+
+
+
id
+
#tso05
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
type-scoped context with @propagate: true survive node-objects (with @import)
+
input
+
+ expand/so05-in.jsonld +
+
expect
+
+ expand/so05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso06 @propagate: false on property-scoped context with @import +
+
+
+
id
+
#tso06
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
property-scoped context with @propagate: false do not survive node-objects (with @import)
+
input
+
+ expand/so06-in.jsonld +
+
expect
+
+ expand/so06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso07 Protect all terms in sourced context +
+
+
+
id
+
#tso07
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
A protected context protects all term definitions.
+
input
+
+ expand/so07-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso08 Override term defined in sourced context +
+
+
+
id
+
#tso08
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ expand/so08-in.jsonld +
+
expect
+
+ expand/so08-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso09 Override @vocab defined in sourced context +
+
+
+
id
+
#tso09
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ expand/so09-in.jsonld +
+
expect
+
+ expand/so09-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso10 Protect terms in sourced context +
+
+
+
id
+
#tso10
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ expand/so10-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso11 Override protected terms in sourced context +
+
+
+
id
+
#tso11
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ expand/so11-in.jsonld +
+
expect
+
+ expand/so11-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso12 @import may not be used in an imported context. +
+
+
+
id
+
#tso12
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@import only valid within a term definition.
+
input
+
+ expand/so12-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso13 @import can only reference a single context +
+
+
+
id
+
#tso13
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@import can only reference a single context.
+
input
+
+ expand/so13-in.jsonld +
+
expect
+
+ invalid remote context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ttn01 @type: @none is illegal in 1.0. +
+
+
+
id
+
#ttn01
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
@type: @none is illegal in json-ld-1.0.
+
input
+
+ expand/tn01-in.jsonld +
+
expect
+
+ invalid type mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test ttn02 @type: @none expands strings as value objects +
+
+
+
id
+
#ttn02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
@type: @none leaves inputs other than strings alone
+
input
+
+ expand/tn02-in.jsonld +
+
expect
+
+ expand/tn02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/tests/flatten-manifest.html b/tests/flatten-manifest.html index db263741..4382b5de 100644 --- a/tests/flatten-manifest.html +++ b/tests/flatten-manifest.html @@ -1,1442 +1,1417 @@ - - - -Flattening - - - - - -

- -W3C - -

-

Flattening

-

These tests implement the requirements for the JSON-LD Flattening Algorithm.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -flatten-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

flatten tests have input and expected documents and an optional context document.

- -

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test t0001 drop free-floating nodes -
-
-
-
id
-
#t0001
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening drops unreferenced nodes having only @id
-
input
-
-flatten/0001-in.jsonld -
-
expect
-
-flatten/0001-out.jsonld -
-
-
-
-Test t0002 basic -
-
-
-
id
-
#t0002
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening terms with different types of values
-
input
-
-flatten/0002-in.jsonld -
-
expect
-
-flatten/0002-out.jsonld -
-
-
-
-Test t0003 drop null and unmapped properties -
-
-
-
id
-
#t0003
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Verifies that null values and unmapped properties are removed from expanded output
-
input
-
-flatten/0003-in.jsonld -
-
expect
-
-flatten/0003-out.jsonld -
-
-
-
-Test t0004 optimize @set, keep empty arrays -
-
-
-
id
-
#t0004
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained
-
input
-
-flatten/0004-in.jsonld -
-
expect
-
-flatten/0004-out.jsonld -
-
-
-
-Test t0005 do not expand aliased @id/@type -
-
-
-
id
-
#t0005
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
If a keyword is aliased, it is not used when flattening
-
input
-
-flatten/0005-in.jsonld -
-
expect
-
-flatten/0005-out.jsonld -
-
-
-
-Test t0006 alias keywords -
-
-
-
id
-
#t0006
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Aliased keywords expand in resulting document
-
input
-
-flatten/0006-in.jsonld -
-
expect
-
-flatten/0006-out.jsonld -
-
-
-
-Test t0007 date type-coercion -
-
-
-
id
-
#t0007
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Expand strings to expanded value with @type: xsd:dateTime
-
input
-
-flatten/0007-in.jsonld -
-
expect
-
-flatten/0007-out.jsonld -
-
-
-
-Test t0008 @value with @language -
-
-
-
id
-
#t0008
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Keep expanded values with @language, drop non-conforming value objects containing just @language
-
input
-
-flatten/0008-in.jsonld -
-
expect
-
-flatten/0008-out.jsonld -
-
-
-
-Test t0009 @graph with terms -
-
-
-
id
-
#t0009
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Use of @graph to contain multiple nodes within array
-
input
-
-flatten/0009-in.jsonld -
-
expect
-
-flatten/0009-out.jsonld -
-
-
-
-Test t0010 native types -
-
-
-
id
-
#t0010
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening native scalar retains native scalar within expanded value
-
input
-
-flatten/0010-in.jsonld -
-
expect
-
-flatten/0010-out.jsonld -
-
-
-
-Test t0011 coerced @id -
-
-
-
id
-
#t0011
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
A value of a property with @type: @id coercion expands to a node reference
-
input
-
-flatten/0011-in.jsonld -
-
expect
-
-flatten/0011-out.jsonld -
-
-
-
-Test t0012 @graph with embed -
-
-
-
id
-
#t0012
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening objects containing chained objects flattens all objects
-
input
-
-flatten/0012-in.jsonld -
-
expect
-
-flatten/0012-out.jsonld -
-
-
-
-Test t0013 flatten already expanded -
-
-
-
id
-
#t0013
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening an expanded/flattened document maintains input document
-
input
-
-flatten/0013-in.jsonld -
-
expect
-
-flatten/0013-out.jsonld -
-
-
-
-Test t0014 @set of @value objects with keyword aliases -
-
-
-
id
-
#t0014
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening aliased @set and @value
-
input
-
-flatten/0014-in.jsonld -
-
expect
-
-flatten/0014-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0015 collapse set of sets, keep empty lists -
-
-
-
id
-
#t0015
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
An array of multiple @set nodes are collapsed into a single array
-
input
-
-flatten/0015-in.jsonld -
-
expect
-
-flatten/0015-out.jsonld -
-
-
-
-Test t0016 context reset -
-
-
-
id
-
#t0016
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Setting @context to null within an embedded object resets back to initial context state
-
input
-
-flatten/0016-in.jsonld -
-
expect
-
-flatten/0016-out.jsonld -
-
-
-
-Test t0017 @graph and @id aliased -
-
-
-
id
-
#t0017
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening with @graph and @id aliases
-
input
-
-flatten/0017-in.jsonld -
-
expect
-
-flatten/0017-out.jsonld -
-
-
-
-Test t0018 override default @language -
-
-
-
id
-
#t0018
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
override default @language in terms; only language-tag strings
-
input
-
-flatten/0018-in.jsonld -
-
expect
-
-flatten/0018-out.jsonld -
-
-
-
-Test t0019 remove @value = null -
-
-
-
id
-
#t0019
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening a value of null removes the value
-
input
-
-flatten/0019-in.jsonld -
-
expect
-
-flatten/0019-out.jsonld -
-
-
-
-Test t0020 do not remove @graph if not at top-level -
-
-
-
id
-
#t0020
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
@graph used under a node is retained
-
input
-
-flatten/0020-in.jsonld -
-
expect
-
-flatten/0020-out.jsonld -
-
-
-
-Test t0021 do not remove @graph at top-level if not only property -
-
-
-
id
-
#t0021
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
@graph used at the top level is retained if there are other properties
-
input
-
-flatten/0021-in.jsonld -
-
expect
-
-flatten/0021-out.jsonld -
-
-
-
-Test t0022 flatten value with default language -
-
-
-
id
-
#t0022
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening with a default language applies that language to string values
-
input
-
-flatten/0022-in.jsonld -
-
expect
-
-flatten/0022-out.jsonld -
-
-
-
-Test t0023 Flattening list/set with coercion -
-
-
-
id
-
#t0023
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening lists and sets with properties having coercion coerces list/set values
-
input
-
-flatten/0023-in.jsonld -
-
expect
-
-flatten/0023-out.jsonld -
-
-
-
-Test t0024 Multiple contexts -
-
-
-
id
-
#t0024
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests that contexts in an array are merged
-
input
-
-flatten/0024-in.jsonld -
-
expect
-
-flatten/0024-out.jsonld -
-
-
-
-Test t0025 Problematic IRI flattening tests -
-
-
-
id
-
#t0025
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening different kinds of terms and Compact IRIs
-
input
-
-flatten/0025-in.jsonld -
-
expect
-
-flatten/0025-out.jsonld -
-
-
-
-Test t0026 Term definition with @id: @type -
-
-
-
id
-
#t0026
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening term mapping to @type uses @type syntax
-
input
-
-flatten/0026-in.jsonld -
-
expect
-
-flatten/0026-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0027 Duplicate values in @list and @set -
-
-
-
id
-
#t0027
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Duplicate values in @list and @set are not merged
-
input
-
-flatten/0027-in.jsonld -
-
expect
-
-flatten/0027-out.jsonld -
-
-
-
-Test t0028 Use @vocab in properties and @type but not in @id -
-
-
-
id
-
#t0028
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
@vocab is used to compact properties and @type, but is not used for @id
-
input
-
-flatten/0028-in.jsonld -
-
expect
-
-flatten/0028-out.jsonld -
-
-
-
-Test t0030 Language maps -
-
-
-
id
-
#t0030
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Language Maps expand values to include @language
-
input
-
-flatten/0030-in.jsonld -
-
expect
-
-flatten/0030-out.jsonld -
-
-
-
-Test t0031 type-coercion of native types -
-
-
-
id
-
#t0031
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation
-
input
-
-flatten/0031-in.jsonld -
-
expect
-
-flatten/0031-out.jsonld -
-
-
-
-Test t0032 Null term and @vocab -
-
-
-
id
-
#t0032
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Mapping a term to null decouples it from @vocab
-
input
-
-flatten/0032-in.jsonld -
-
expect
-
-flatten/0032-out.jsonld -
-
-
-
-Test t0033 Using @vocab with with type-coercion -
-
-
-
id
-
#t0033
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Verifies that terms can be defined using @vocab
-
input
-
-flatten/0033-in.jsonld -
-
expect
-
-flatten/0033-out.jsonld -
-
-
-
-Test t0034 Multiple properties expanding to the same IRI -
-
-
-
id
-
#t0034
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
-
input
-
-flatten/0034-in.jsonld -
-
expect
-
-flatten/0034-out.jsonld -
-
-
-
-Test t0035 Language maps with @vocab, default language, and colliding property -
-
-
-
id
-
#t0035
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Pathological tests of language maps
-
input
-
-flatten/0035-in.jsonld -
-
expect
-
-flatten/0035-out.jsonld -
-
-
-
-Test t0036 Flattening @index -
-
-
-
id
-
#t0036
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening index maps for terms defined with @container: @index
-
input
-
-flatten/0036-in.jsonld -
-
expect
-
-flatten/0036-out.jsonld -
-
-
-
-Test t0037 Flattening reverse properties -
-
-
-
id
-
#t0037
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flattening @reverse keeps @reverse
-
input
-
-flatten/0037-in.jsonld -
-
expect
-
-flatten/0037-out.jsonld -
-
-
-
-Test t0038 Flattening blank node labels -
-
-
-
id
-
#t0038
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Blank nodes are not relabeled during expansion
-
input
-
-flatten/0038-in.jsonld -
-
expect
-
-flatten/0038-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0039 Using terms in a reverse-maps -
-
-
-
id
-
#t0039
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Terms within @reverse are expanded
-
input
-
-flatten/0039-in.jsonld -
-
expect
-
-flatten/0039-out.jsonld -
-
-
-
-Test t0040 language and index expansion on non-objects -
-
-
-
id
-
#t0040
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Only invoke language and index map expansion if the value is a JSON object
-
input
-
-flatten/0040-in.jsonld -
-
expect
-
-flatten/0040-out.jsonld -
-
-
-
-Test t0041 Free-floating sets and lists -
-
-
-
id
-
#t0041
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Free-floating values in sets are removed, free-floating lists are removed completely
-
input
-
-flatten/0041-in.jsonld -
-
expect
-
-flatten/0041-out.jsonld -
-
-
-
-Test t0042 List objects not equivalent -
-
-
-
id
-
#t0042
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Lists objects are implicit unlabeled blank nodes and thus never equivalent
-
input
-
-flatten/0042-in.jsonld -
-
expect
-
-flatten/0042-out.jsonld -
-
-
-
-Test t0043 Sample test manifest extract -
-
-
-
id
-
#t0043
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flatten a test manifest
-
input
-
-flatten/0043-in.jsonld -
-
expect
-
-flatten/0043-out.jsonld -
-
-
-
-Test t0044 compactArrays option -
-
-
-
id
-
#t0044
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Setting compactArrays to false causes single element arrays to be retained
-
input
-
-flatten/0044-in.jsonld -
-
context
-
-flatten/0044-context.jsonld -
-
expect
-
-flatten/0044-out.jsonld -
-
Options
-
-
-
compactArrays
-
false
-
-
-
-
-
-Test t0045 Blank nodes with reverse properties -
-
-
-
id
-
#t0045
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Proper (re-)labeling of blank nodes if used with reverse properties.
-
input
-
-flatten/0045-in.jsonld -
-
expect
-
-flatten/0045-out.jsonld -
-
-
-
-Test t0046 Empty string as identifier -
-
-
-
id
-
#t0046
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Usage of empty strings in identifiers needs special care when constructing the node map.
-
input
-
-flatten/0046-in.jsonld -
-
expect
-
-flatten/0046-out.jsonld -
-
-
-
-Test t0047 Flatten using relative fragment identifier properly joins to base -
-
-
-
id
-
#t0047
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Compacting a relative round-trips
-
input
-
-flatten/0047-in.jsonld -
-
expect
-
-flatten/0047-out.jsonld -
-
Options
-
-
-
base
-
http://example.org/
-
-
-
-
-
-Test t0048 @list with embedded object -
-
-
-
id
-
#t0048
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Node definitions contained within lists are flattend to top level.
-
input
-
-flatten/0048-in.jsonld -
-
expect
-
-flatten/0048-out.jsonld -
-
-
-
-Test t0049 context with JavaScript Object property names -
-
-
-
id
-
#t0049
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Flatten with context including JavaScript Object property names
-
input
-
-flatten/0049-in.jsonld -
-
expect
-
-flatten/0049-out.jsonld -
-
-
-
-Test te001 Conflicting indexes -
-
-
-
id
-
#te001
-
Type
-
jld:NegativeEvaluationTest, jld:FlattenTest
-
Purpose
-
Verifies that an exception is raised in Flattening when conflicting indexes are found
-
input
-
-flatten/e001-in.jsonld -
-
expect
-
-conflicting indexes -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin01 Basic Included array -
-
-
-
id
-
#tin01
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests included blocks.
-
input
-
-flatten/in01-in.jsonld -
-
expect
-
-flatten/in01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin02 Basic Included object -
-
-
-
id
-
#tin02
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests included blocks.
-
input
-
-flatten/in02-in.jsonld -
-
expect
-
-flatten/in02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin03 Multiple properties mapping to @included are folded together -
-
-
-
id
-
#tin03
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests included blocks.
-
input
-
-flatten/in03-in.jsonld -
-
expect
-
-flatten/in03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin04 Included containing @included -
-
-
-
id
-
#tin04
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests included blocks.
-
input
-
-flatten/in04-in.jsonld -
-
expect
-
-flatten/in04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin05 Property value with @included -
-
-
-
id
-
#tin05
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests included blocks.
-
input
-
-flatten/in05-in.jsonld -
-
expect
-
-flatten/in05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin06 json.api example -
-
-
-
id
-
#tin06
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Tests included blocks.
-
input
-
-flatten/in06-in.jsonld -
-
expect
-
-flatten/in06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli01 @list containing an deep list -
-
-
-
id
-
#tli01
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Lists of lists
-
input
-
-flatten/li01-in.jsonld -
-
expect
-
-flatten/li01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli02 @list containing empty @list -
-
-
-
id
-
#tli02
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Lists of lists
-
input
-
-flatten/li02-in.jsonld -
-
expect
-
-flatten/li02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli03 @list containing mixed list values -
-
-
-
id
-
#tli03
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest
-
Purpose
-
Lists of lists
-
input
-
-flatten/li03-in.jsonld -
-
expect
-
-flatten/li03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-
- - + + + + Flattening + + + + + +

+ + W3C + +

+

Flattening

+

These tests implement the requirements for the JSON-LD Flattening Algorithm.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + flatten-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

flatten tests have input and expected documents and an optional context document.

+

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test t0001 drop free-floating nodes +
+
+
+
id
+
#t0001
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening drops unreferenced nodes having only @id
+
input
+
+ flatten/0001-in.jsonld +
+
expect
+
+ flatten/0001-out.jsonld +
+
+
+
+ Test t0002 basic +
+
+
+
id
+
#t0002
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening terms with different types of values
+
input
+
+ flatten/0002-in.jsonld +
+
expect
+
+ flatten/0002-out.jsonld +
+
+
+
+ Test t0003 drop null and unmapped properties +
+
+
+
id
+
#t0003
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Verifies that null values and unmapped properties are removed from expanded output
+
input
+
+ flatten/0003-in.jsonld +
+
expect
+
+ flatten/0003-out.jsonld +
+
+
+
+ Test t0004 optimize @set, keep empty arrays +
+
+
+
id
+
#t0004
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained
+
input
+
+ flatten/0004-in.jsonld +
+
expect
+
+ flatten/0004-out.jsonld +
+
+
+
+ Test t0005 do not expand aliased @id/@type +
+
+
+
id
+
#t0005
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
If a keyword is aliased, it is not used when flattening
+
input
+
+ flatten/0005-in.jsonld +
+
expect
+
+ flatten/0005-out.jsonld +
+
+
+
+ Test t0006 alias keywords +
+
+
+
id
+
#t0006
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Aliased keywords expand in resulting document
+
input
+
+ flatten/0006-in.jsonld +
+
expect
+
+ flatten/0006-out.jsonld +
+
+
+
+ Test t0007 date type-coercion +
+
+
+
id
+
#t0007
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Expand strings to expanded value with @type: xsd:dateTime
+
input
+
+ flatten/0007-in.jsonld +
+
expect
+
+ flatten/0007-out.jsonld +
+
+
+
+ Test t0008 @value with @language +
+
+
+
id
+
#t0008
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Keep expanded values with @language, drop non-conforming value objects containing just @language
+
input
+
+ flatten/0008-in.jsonld +
+
expect
+
+ flatten/0008-out.jsonld +
+
+
+
+ Test t0009 @graph with terms +
+
+
+
id
+
#t0009
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Use of @graph to contain multiple nodes within array
+
input
+
+ flatten/0009-in.jsonld +
+
expect
+
+ flatten/0009-out.jsonld +
+
+
+
+ Test t0010 native types +
+
+
+
id
+
#t0010
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening native scalar retains native scalar within expanded value
+
input
+
+ flatten/0010-in.jsonld +
+
expect
+
+ flatten/0010-out.jsonld +
+
+
+
+ Test t0011 coerced @id +
+
+
+
id
+
#t0011
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
A value of a property with @type: @id coercion expands to a node reference
+
input
+
+ flatten/0011-in.jsonld +
+
expect
+
+ flatten/0011-out.jsonld +
+
+
+
+ Test t0012 @graph with embed +
+
+
+
id
+
#t0012
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening objects containing chained objects flattens all objects
+
input
+
+ flatten/0012-in.jsonld +
+
expect
+
+ flatten/0012-out.jsonld +
+
+
+
+ Test t0013 flatten already expanded +
+
+
+
id
+
#t0013
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening an expanded/flattened document maintains input document
+
input
+
+ flatten/0013-in.jsonld +
+
expect
+
+ flatten/0013-out.jsonld +
+
+
+
+ Test t0014 @set of @value objects with keyword aliases +
+
+
+
id
+
#t0014
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening aliased @set and @value
+
input
+
+ flatten/0014-in.jsonld +
+
expect
+
+ flatten/0014-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0015 collapse set of sets, keep empty lists +
+
+
+
id
+
#t0015
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
An array of multiple @set nodes are collapsed into a single array
+
input
+
+ flatten/0015-in.jsonld +
+
expect
+
+ flatten/0015-out.jsonld +
+
+
+
+ Test t0016 context reset +
+
+
+
id
+
#t0016
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Setting @context to null within an embedded object resets back to initial context state
+
input
+
+ flatten/0016-in.jsonld +
+
expect
+
+ flatten/0016-out.jsonld +
+
+
+
+ Test t0017 @graph and @id aliased +
+
+
+
id
+
#t0017
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening with @graph and @id aliases
+
input
+
+ flatten/0017-in.jsonld +
+
expect
+
+ flatten/0017-out.jsonld +
+
+
+
+ Test t0018 override default @language +
+
+
+
id
+
#t0018
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
override default @language in terms; only language-tag strings
+
input
+
+ flatten/0018-in.jsonld +
+
expect
+
+ flatten/0018-out.jsonld +
+
+
+
+ Test t0019 remove @value = null +
+
+
+
id
+
#t0019
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening a value of null removes the value
+
input
+
+ flatten/0019-in.jsonld +
+
expect
+
+ flatten/0019-out.jsonld +
+
+
+
+ Test t0020 do not remove @graph if not at top-level +
+
+
+
id
+
#t0020
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
@graph used under a node is retained
+
input
+
+ flatten/0020-in.jsonld +
+
expect
+
+ flatten/0020-out.jsonld +
+
+
+
+ Test t0021 do not remove @graph at top-level if not only property +
+
+
+
id
+
#t0021
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
@graph used at the top level is retained if there are other properties
+
input
+
+ flatten/0021-in.jsonld +
+
expect
+
+ flatten/0021-out.jsonld +
+
+
+
+ Test t0022 flatten value with default language +
+
+
+
id
+
#t0022
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening with a default language applies that language to string values
+
input
+
+ flatten/0022-in.jsonld +
+
expect
+
+ flatten/0022-out.jsonld +
+
+
+
+ Test t0023 Flattening list/set with coercion +
+
+
+
id
+
#t0023
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening lists and sets with properties having coercion coerces list/set values
+
input
+
+ flatten/0023-in.jsonld +
+
expect
+
+ flatten/0023-out.jsonld +
+
+
+
+ Test t0024 Multiple contexts +
+
+
+
id
+
#t0024
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests that contexts in an array are merged
+
input
+
+ flatten/0024-in.jsonld +
+
expect
+
+ flatten/0024-out.jsonld +
+
+
+
+ Test t0025 Problematic IRI flattening tests +
+
+
+
id
+
#t0025
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening different kinds of terms and Compact IRIs
+
input
+
+ flatten/0025-in.jsonld +
+
expect
+
+ flatten/0025-out.jsonld +
+
+
+
+ Test t0026 Term definition with @id: @type +
+
+
+
id
+
#t0026
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening term mapping to @type uses @type syntax
+
input
+
+ flatten/0026-in.jsonld +
+
expect
+
+ flatten/0026-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0027 Duplicate values in @list and @set +
+
+
+
id
+
#t0027
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Duplicate values in @list and @set are not merged
+
input
+
+ flatten/0027-in.jsonld +
+
expect
+
+ flatten/0027-out.jsonld +
+
+
+
+ Test t0028 Use @vocab in properties and @type but not in @id +
+
+
+
id
+
#t0028
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
@vocab is used to compact properties and @type, but is not used for @id
+
input
+
+ flatten/0028-in.jsonld +
+
expect
+
+ flatten/0028-out.jsonld +
+
+
+
+ Test t0030 Language maps +
+
+
+
id
+
#t0030
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Language Maps expand values to include @language
+
input
+
+ flatten/0030-in.jsonld +
+
expect
+
+ flatten/0030-out.jsonld +
+
+
+
+ Test t0031 type-coercion of native types +
+
+
+
id
+
#t0031
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation
+
input
+
+ flatten/0031-in.jsonld +
+
expect
+
+ flatten/0031-out.jsonld +
+
+
+
+ Test t0032 Null term and @vocab +
+
+
+
id
+
#t0032
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Mapping a term to null decouples it from @vocab
+
input
+
+ flatten/0032-in.jsonld +
+
expect
+
+ flatten/0032-out.jsonld +
+
+
+
+ Test t0033 Using @vocab with with type-coercion +
+
+
+
id
+
#t0033
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Verifies that terms can be defined using @vocab
+
input
+
+ flatten/0033-in.jsonld +
+
expect
+
+ flatten/0033-out.jsonld +
+
+
+
+ Test t0034 Multiple properties expanding to the same IRI +
+
+
+
id
+
#t0034
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
+
input
+
+ flatten/0034-in.jsonld +
+
expect
+
+ flatten/0034-out.jsonld +
+
+
+
+ Test t0035 Language maps with @vocab, default language, and colliding property +
+
+
+
id
+
#t0035
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Pathological tests of language maps
+
input
+
+ flatten/0035-in.jsonld +
+
expect
+
+ flatten/0035-out.jsonld +
+
+
+
+ Test t0036 Flattening @index +
+
+
+
id
+
#t0036
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening index maps for terms defined with @container: @index
+
input
+
+ flatten/0036-in.jsonld +
+
expect
+
+ flatten/0036-out.jsonld +
+
+
+
+ Test t0037 Flattening reverse properties +
+
+
+
id
+
#t0037
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flattening @reverse keeps @reverse
+
input
+
+ flatten/0037-in.jsonld +
+
expect
+
+ flatten/0037-out.jsonld +
+
+
+
+ Test t0038 Flattening blank node labels +
+
+
+
id
+
#t0038
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Blank nodes are not relabeled during expansion
+
input
+
+ flatten/0038-in.jsonld +
+
expect
+
+ flatten/0038-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0039 Using terms in a reverse-maps +
+
+
+
id
+
#t0039
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Terms within @reverse are expanded
+
input
+
+ flatten/0039-in.jsonld +
+
expect
+
+ flatten/0039-out.jsonld +
+
+
+
+ Test t0040 language and index expansion on non-objects +
+
+
+
id
+
#t0040
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Only invoke language and index map expansion if the value is a JSON object
+
input
+
+ flatten/0040-in.jsonld +
+
expect
+
+ flatten/0040-out.jsonld +
+
+
+
+ Test t0041 Free-floating sets and lists +
+
+
+
id
+
#t0041
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Free-floating values in sets are removed, free-floating lists are removed completely
+
input
+
+ flatten/0041-in.jsonld +
+
expect
+
+ flatten/0041-out.jsonld +
+
+
+
+ Test t0042 List objects not equivalent +
+
+
+
id
+
#t0042
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Lists objects are implicit unlabeled blank nodes and thus never equivalent
+
input
+
+ flatten/0042-in.jsonld +
+
expect
+
+ flatten/0042-out.jsonld +
+
+
+
+ Test t0043 Sample test manifest extract +
+
+
+
id
+
#t0043
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flatten a test manifest
+
input
+
+ flatten/0043-in.jsonld +
+
expect
+
+ flatten/0043-out.jsonld +
+
+
+
+ Test t0044 compactArrays option +
+
+
+
id
+
#t0044
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Setting compactArrays to false causes single element arrays to be retained
+
input
+
+ flatten/0044-in.jsonld +
+
context
+
+ flatten/0044-context.jsonld +
+
expect
+
+ flatten/0044-out.jsonld +
+
Options
+
+
+
compactArrays
+
false
+
+
+
+
+
+ Test t0045 Blank nodes with reverse properties +
+
+
+
id
+
#t0045
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Proper (re-)labeling of blank nodes if used with reverse properties.
+
input
+
+ flatten/0045-in.jsonld +
+
expect
+
+ flatten/0045-out.jsonld +
+
+
+
+ Test t0046 Empty string as identifier +
+
+
+
id
+
#t0046
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Usage of empty strings in identifiers needs special care when constructing the node map.
+
input
+
+ flatten/0046-in.jsonld +
+
expect
+
+ flatten/0046-out.jsonld +
+
+
+
+ Test t0047 Flatten using relative fragment identifier properly joins to base +
+
+
+
id
+
#t0047
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Compacting a relative round-trips
+
input
+
+ flatten/0047-in.jsonld +
+
expect
+
+ flatten/0047-out.jsonld +
+
Options
+
+
+
base
+
http://example.org/
+
+
+
+
+
+ Test t0048 @list with embedded object +
+
+
+
id
+
#t0048
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Node definitions contained within lists are flattend to top level.
+
input
+
+ flatten/0048-in.jsonld +
+
expect
+
+ flatten/0048-out.jsonld +
+
+
+
+ Test t0049 context with JavaScript Object property names +
+
+
+
id
+
#t0049
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Flatten with context including JavaScript Object property names
+
input
+
+ flatten/0049-in.jsonld +
+
expect
+
+ flatten/0049-out.jsonld +
+
+
+
+ Test te001 Conflicting indexes +
+
+
+
id
+
#te001
+
Type
+
jld:NegativeEvaluationTest, jld:FlattenTest
+
Purpose
+
Verifies that an exception is raised in Flattening when conflicting indexes are found
+
input
+
+ flatten/e001-in.jsonld +
+
expect
+
+ conflicting indexes +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin01 Basic Included array +
+
+
+
id
+
#tin01
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests included blocks.
+
input
+
+ flatten/in01-in.jsonld +
+
expect
+
+ flatten/in01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin02 Basic Included object +
+
+
+
id
+
#tin02
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests included blocks.
+
input
+
+ flatten/in02-in.jsonld +
+
expect
+
+ flatten/in02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin03 Multiple properties mapping to @included are folded together +
+
+
+
id
+
#tin03
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests included blocks.
+
input
+
+ flatten/in03-in.jsonld +
+
expect
+
+ flatten/in03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin04 Included containing @included +
+
+
+
id
+
#tin04
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests included blocks.
+
input
+
+ flatten/in04-in.jsonld +
+
expect
+
+ flatten/in04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin05 Property value with @included +
+
+
+
id
+
#tin05
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests included blocks.
+
input
+
+ flatten/in05-in.jsonld +
+
expect
+
+ flatten/in05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin06 json.api example +
+
+
+
id
+
#tin06
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Tests included blocks.
+
input
+
+ flatten/in06-in.jsonld +
+
expect
+
+ flatten/in06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli01 @list containing an deep list +
+
+
+
id
+
#tli01
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Lists of lists
+
input
+
+ flatten/li01-in.jsonld +
+
expect
+
+ flatten/li01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli02 @list containing empty @list +
+
+
+
id
+
#tli02
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Lists of lists
+
input
+
+ flatten/li02-in.jsonld +
+
expect
+
+ flatten/li02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli03 @list containing mixed list values +
+
+
+
id
+
#tli03
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest
+
Purpose
+
Lists of lists
+
input
+
+ flatten/li03-in.jsonld +
+
expect
+
+ flatten/li03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/tests/fromRdf-manifest.html b/tests/fromRdf-manifest.html index 050fd81f..ca803b4b 100644 --- a/tests/fromRdf-manifest.html +++ b/tests/fromRdf-manifest.html @@ -1,1437 +1,1414 @@ - - - -Transform RDF to JSON-LD - - - - - -

- -W3C - -

-

Transform RDF to JSON-LD

-

These tests implement the requirements for the JSON-LD Serialize RDF as JSON-LD Algorithm.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -fromRdf-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test t0001 Object Lists -
-
-
-
id
-
#t0001
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests generation using different types of objects.
-
input
-
-fromRdf/0001-in.nq -
-
expect
-
-fromRdf/0001-out.jsonld -
-
-
-
-Test t0002 Native Types -
-
-
-
id
-
#t0002
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Do not use native datatypes for xsd:boolean, xsd:integer, and xsd:double by default.
-
input
-
-fromRdf/0002-in.nq -
-
expect
-
-fromRdf/0002-out.jsonld -
-
-
-
-Test t0003 BNodes and references -
-
-
-
id
-
#t0003
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
BNode name generation and references between resources.
-
input
-
-fromRdf/0003-in.nq -
-
expect
-
-fromRdf/0003-out.jsonld -
-
-
-
-Test t0004 Lists -
-
-
-
id
-
#t0004
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Multiple lists with different types of element.
-
input
-
-fromRdf/0004-in.nq -
-
expect
-
-fromRdf/0004-out.jsonld -
-
-
-
-Test t0005 Document with list -
-
-
-
id
-
#t0005
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Uses a named graph containing a list.
-
input
-
-fromRdf/0005-in.nq -
-
expect
-
-fromRdf/0005-out.jsonld -
-
-
-
-Test t0006 Two graphs having same subject but different values -
-
-
-
id
-
#t0006
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Ensure that properties and list elements aren't confused between graphs.
-
input
-
-fromRdf/0006-in.nq -
-
expect
-
-fromRdf/0006-out.jsonld -
-
-
-
-Test t0007 Graph with multiple named graphs -
-
-
-
id
-
#t0007
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Testing @graph recursion.
-
input
-
-fromRdf/0007-in.nq -
-
expect
-
-fromRdf/0007-out.jsonld -
-
-
-
-Test t0008 List conversion -
-
-
-
id
-
#t0008
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Conversion of lists of lists (the triples in the input are only partially ordered on purpose (1.0 semantics)
-
input
-
-fromRdf/0008-in.nq -
-
expect
-
-fromRdf/0008-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test t0009 List conversion with IRI nodes -
-
-
-
id
-
#t0009
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Preserve IRI list nodes (i.e., not blank nodes) when converting to @list
-
input
-
-fromRdf/0009-in.nq -
-
expect
-
-fromRdf/0009-out.jsonld -
-
-
-
-Test t0010 List pattern without rdf:nil -
-
-
-
id
-
#t0010
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Do not convert lists that are not terminated by rdf:nil to @list.
-
input
-
-fromRdf/0010-in.nq -
-
expect
-
-fromRdf/0010-out.jsonld -
-
-
-
-Test t0011 List pattern with extra properties -
-
-
-
id
-
#t0011
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
If additional properties are associated to a list node, the list is only partially converted to @list.
-
input
-
-fromRdf/0011-in.nq -
-
expect
-
-fromRdf/0011-out.jsonld -
-
-
-
-Test t0012 List pattern with cycles -
-
-
-
id
-
#t0012
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Detect lists containing cycles and do not convert them to @list.
-
input
-
-fromRdf/0012-in.nq -
-
expect
-
-fromRdf/0012-out.jsonld -
-
-
-
-Test t0013 List pattern with multiple values of rdf:first -
-
-
-
id
-
#t0013
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Do not convert list nodes to @list if nodes contain more than one value for rdf:first.
-
input
-
-fromRdf/0013-in.nq -
-
expect
-
-fromRdf/0013-out.jsonld -
-
-
-
-Test t0014 List pattern with multiple values of rdf:rest -
-
-
-
id
-
#t0014
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Do not convert list nodes to @list if nodes contain more than one value for rdf:rest.
-
input
-
-fromRdf/0014-in.nq -
-
expect
-
-fromRdf/0014-out.jsonld -
-
-
-
-Test t0015 List pattern with IRI rdf:rest -
-
-
-
id
-
#t0015
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Do not convert lists to @list if a list node's rdf:rest is an IRI.
-
input
-
-fromRdf/0015-in.nq -
-
expect
-
-fromRdf/0015-out.jsonld -
-
-
-
-Test t0016 List pattern with type rdf:List -
-
-
-
id
-
#t0016
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
List nodes may have a rdf:type rdf:List.
-
input
-
-fromRdf/0016-in.nq -
-
expect
-
-fromRdf/0016-out.jsonld -
-
-
-
-Test t0017 Remove duplicate triples -
-
-
-
id
-
#t0017
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Equivalent triples are used only once
-
input
-
-fromRdf/0017-in.nq -
-
expect
-
-fromRdf/0017-out.jsonld -
-
-
-
-Test t0018 use native types flag set to true -
-
-
-
id
-
#t0018
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Literals with datatype xsd:boolean, xsd:integer, and xsd:double are serialized using native scalar values
-
input
-
-fromRdf/0018-in.nq -
-
expect
-
-fromRdf/0018-out.jsonld -
-
Options
-
-
-
useNativeTypes
-
true
-
-
-
-
-
-Test t0019 use rdf:type flag set to false -
-
-
-
id
-
#t0019
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Setting useRdfType to true causes an rdf:type predicate to be treated like a normal property, not @type
-
input
-
-fromRdf/0019-in.nq -
-
expect
-
-fromRdf/0019-out.jsonld -
-
Options
-
-
-
useRdfType
-
true
-
-
-
-
-
-Test t0020 list with node shared across graphs -
-
-
-
id
-
#t0020
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
An otherwise conformant list with a node shared across different lists does not serialize using @list
-
input
-
-fromRdf/0020-in.nq -
-
expect
-
-fromRdf/0020-out.jsonld -
-
-
-
-Test t0021 list with node shared across graphs (same triple in different graphs) -
-
-
-
id
-
#t0021
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
If a list node is used in different graphs, it isn't removed and converted to @list
-
input
-
-fromRdf/0021-in.nq -
-
expect
-
-fromRdf/0021-out.jsonld -
-
-
-
-Test t0022 list from duplicate triples -
-
-
-
id
-
#t0022
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Duplicate triples for a list node will not prevent @list from being properly generated
-
input
-
-fromRdf/0022-in.nq -
-
expect
-
-fromRdf/0022-out.jsonld -
-
-
-
-Test t0023 triple with RDF nil subject -
-
-
-
id
-
#t0023
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Test triple with RDF nil subject
-
input
-
-fromRdf/0023-in.nq -
-
expect
-
-fromRdf/0023-out.jsonld -
-
-
-
-Test t0024 multiple languages for same subject+property+value -
-
-
-
id
-
#t0024
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Uniqness of triples should include the value language
-
input
-
-fromRdf/0024-in.nq -
-
expect
-
-fromRdf/0024-out.jsonld -
-
-
-
-Test t0025 multiple types for same subject+property+value -
-
-
-
id
-
#t0025
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Uniqness of triples should include the value type
-
input
-
-fromRdf/0025-in.nq -
-
expect
-
-fromRdf/0025-out.jsonld -
-
-
-
-Test t0026 triple with rdf:first property and rdf:nil value -
-
-
-
id
-
#t0026
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Check list generation with rdf:first property and rdf:nil value.
-
input
-
-fromRdf/0026-in.nq -
-
expect
-
-fromRdf/0026-out.jsonld -
-
-
-
-Test tdi01 rdfDirection: null with i18n literal with direction and no language -
-
-
-
id
-
#tdi01
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse i18n datatype without proper option.
-
input
-
-fromRdf/di01-in.nq -
-
expect
-
-fromRdf/di01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi02 rdfDirection: null with i18n literal with direction and language -
-
-
-
id
-
#tdi02
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse i18n datatype without proper option.
-
input
-
-fromRdf/di02-in.nq -
-
expect
-
-fromRdf/di02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi03 rdfDirection: null with compound literal with direction and no language -
-
-
-
id
-
#tdi03
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse compound literal without proper option.
-
input
-
-fromRdf/di03-in.nq -
-
expect
-
-fromRdf/di03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi04 rdfDirection: null with compound literal with direction and language -
-
-
-
id
-
#tdi04
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse compound literal without proper option.
-
input
-
-fromRdf/di04-in.nq -
-
expect
-
-fromRdf/di04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi05 rdfDirection: i18n-datatype with i18n literal with direction and no language -
-
-
-
id
-
#tdi05
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Parses i18n datatype with proper option.
-
input
-
-fromRdf/di05-in.nq -
-
expect
-
-fromRdf/di05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
i18n-datatype
-
normative
-
false
-
-
-
-
-
-Test tdi06 rdfDirection: i18n-datatype with i18n literal with direction and language -
-
-
-
id
-
#tdi06
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Parses i18n datatype with proper option.
-
input
-
-fromRdf/di06-in.nq -
-
expect
-
-fromRdf/di06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
i18n-datatype
-
normative
-
false
-
-
-
-
-
-Test tdi07 rdfDirection: i18n-datatype with compound literal with direction and no language -
-
-
-
id
-
#tdi07
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse compound literal without proper option.
-
input
-
-fromRdf/di07-in.nq -
-
expect
-
-fromRdf/di07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
i18n-datatype
-
normative
-
false
-
-
-
-
-
-Test tdi08 rdfDirection: i18n-datatype with compound literal with direction and language -
-
-
-
id
-
#tdi08
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse compound literal without proper option.
-
input
-
-fromRdf/di08-in.nq -
-
expect
-
-fromRdf/di08-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
i18n-datatype
-
normative
-
false
-
-
-
-
-
-Test tdi09 rdfDirection: compound-literal with i18n literal with direction and no language -
-
-
-
id
-
#tdi09
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse i18n datatype without proper option.
-
input
-
-fromRdf/di09-in.nq -
-
expect
-
-fromRdf/di09-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
compound-literal
-
normative
-
false
-
-
-
-
-
-Test tdi10 rdfDirection: compound-literal with i18n literal with direction and language -
-
-
-
id
-
#tdi10
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Does not parse i18n datatype without proper option.
-
input
-
-fromRdf/di10-in.nq -
-
expect
-
-fromRdf/di10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
compound-literal
-
normative
-
false
-
-
-
-
-
-Test tdi11 rdfDirection: compound-literal with compound literal with direction and no language -
-
-
-
id
-
#tdi11
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Parses compound literal with proper option.
-
input
-
-fromRdf/di11-in.nq -
-
expect
-
-fromRdf/di11-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
compound-literal
-
normative
-
false
-
-
-
-
-
-Test tdi12 rdfDirection: compound-literal with compound literal with direction and language -
-
-
-
id
-
#tdi12
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Parses compound literal with proper option.
-
input
-
-fromRdf/di12-in.nq -
-
expect
-
-fromRdf/di12-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
compound-literal
-
normative
-
false
-
-
-
-
-
-Test tjs01 JSON literal (boolean true) -
-
-
-
id
-
#tjs01
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (boolean true).
-
input
-
-fromRdf/js01-in.nq -
-
expect
-
-fromRdf/js01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs02 JSON literal (boolean false) -
-
-
-
id
-
#tjs02
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (boolean false).
-
input
-
-fromRdf/js02-in.nq -
-
expect
-
-fromRdf/js02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs03 JSON literal (double) -
-
-
-
id
-
#tjs03
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (double).
-
input
-
-fromRdf/js03-in.nq -
-
expect
-
-fromRdf/js03-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs04 JSON literal (double-zero) -
-
-
-
id
-
#tjs04
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (double-zero).
-
input
-
-fromRdf/js04-in.nq -
-
expect
-
-fromRdf/js04-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs05 JSON literal (integer) -
-
-
-
id
-
#tjs05
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (integer).
-
input
-
-fromRdf/js05-in.nq -
-
expect
-
-fromRdf/js05-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs06 JSON literal (object) -
-
-
-
id
-
#tjs06
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (object).
-
input
-
-fromRdf/js06-in.nq -
-
expect
-
-fromRdf/js06-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs07 JSON literal (array) -
-
-
-
id
-
#tjs07
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (array).
-
input
-
-fromRdf/js07-in.nq -
-
expect
-
-fromRdf/js07-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs08 Invalid JSON literal (bare-word) -
-
-
-
id
-
#tjs08
-
Type
-
jld:NegativeEvaluationTest, jld:FromRDFTest
-
Purpose
-
Processors must generate an error when deserializing an invalid JSON literal.
-
input
-
-fromRdf/js08-in.nq -
-
expect
-
-invalid JSON literal -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs09 Invalid JSON literal (invalid structure) -
-
-
-
id
-
#tjs09
-
Type
-
jld:NegativeEvaluationTest, jld:FromRDFTest
-
Purpose
-
Processors must generate an error when deserializing an invalid JSON literal.
-
input
-
-fromRdf/js09-in.nq -
-
expect
-
-invalid JSON literal -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs10 JSON literal (string) -
-
-
-
id
-
#tjs10
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (string).
-
input
-
-fromRdf/js10-in.nq -
-
expect
-
-fromRdf/js10-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs11 JSON literal (null) -
-
-
-
id
-
#tjs11
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
Tests creating property with rdf:type rdf:JSON to a JSON literal (null).
-
input
-
-fromRdf/js11-in.nq -
-
expect
-
-fromRdf/js11-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli01 @list containing empty @list -
-
-
-
id
-
#tli01
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
List of lists
-
input
-
-fromRdf/li01-in.nq -
-
expect
-
-fromRdf/li01-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli02 @list containing multiple lists -
-
-
-
id
-
#tli02
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
List of lists
-
input
-
-fromRdf/li02-in.nq -
-
expect
-
-fromRdf/li02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli03 t0008 as interpreted for 1.1. -
-
-
-
id
-
#tli03
-
Type
-
jld:PositiveEvaluationTest, jld:FromRDFTest
-
Purpose
-
List of lists
-
input
-
-fromRdf/li02-in.nq -
-
expect
-
-fromRdf/li02-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-
- - + + + + Transform RDF to JSON-LD + + + + + +

+ + W3C + +

+

Transform RDF to JSON-LD

+

These tests implement the requirements for the JSON-LD Serialize RDF as JSON-LD Algorithm.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + fromRdf-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test t0001 Object Lists +
+
+
+
id
+
#t0001
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests generation using different types of objects.
+
input
+
+ fromRdf/0001-in.nq +
+
expect
+
+ fromRdf/0001-out.jsonld +
+
+
+
+ Test t0002 Native Types +
+
+
+
id
+
#t0002
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Do not use native datatypes for xsd:boolean, xsd:integer, and xsd:double by default.
+
input
+
+ fromRdf/0002-in.nq +
+
expect
+
+ fromRdf/0002-out.jsonld +
+
+
+
+ Test t0003 BNodes and references +
+
+
+
id
+
#t0003
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
BNode name generation and references between resources.
+
input
+
+ fromRdf/0003-in.nq +
+
expect
+
+ fromRdf/0003-out.jsonld +
+
+
+
+ Test t0004 Lists +
+
+
+
id
+
#t0004
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Multiple lists with different types of element.
+
input
+
+ fromRdf/0004-in.nq +
+
expect
+
+ fromRdf/0004-out.jsonld +
+
+
+
+ Test t0005 Document with list +
+
+
+
id
+
#t0005
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Uses a named graph containing a list.
+
input
+
+ fromRdf/0005-in.nq +
+
expect
+
+ fromRdf/0005-out.jsonld +
+
+
+
+ Test t0006 Two graphs having same subject but different values +
+
+
+
id
+
#t0006
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Ensure that properties and list elements aren't confused between graphs.
+
input
+
+ fromRdf/0006-in.nq +
+
expect
+
+ fromRdf/0006-out.jsonld +
+
+
+
+ Test t0007 Graph with multiple named graphs +
+
+
+
id
+
#t0007
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Testing @graph recursion.
+
input
+
+ fromRdf/0007-in.nq +
+
expect
+
+ fromRdf/0007-out.jsonld +
+
+
+
+ Test t0008 List conversion +
+
+
+
id
+
#t0008
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Conversion of lists of lists (the triples in the input are only partially ordered on purpose (1.0 semantics)
+
input
+
+ fromRdf/0008-in.nq +
+
expect
+
+ fromRdf/0008-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test t0009 List conversion with IRI nodes +
+
+
+
id
+
#t0009
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Preserve IRI list nodes (i.e., not blank nodes) when converting to @list
+
input
+
+ fromRdf/0009-in.nq +
+
expect
+
+ fromRdf/0009-out.jsonld +
+
+
+
+ Test t0010 List pattern without rdf:nil +
+
+
+
id
+
#t0010
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Do not convert lists that are not terminated by rdf:nil to @list.
+
input
+
+ fromRdf/0010-in.nq +
+
expect
+
+ fromRdf/0010-out.jsonld +
+
+
+
+ Test t0011 List pattern with extra properties +
+
+
+
id
+
#t0011
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
If additional properties are associated to a list node, the list is only partially converted to @list.
+
input
+
+ fromRdf/0011-in.nq +
+
expect
+
+ fromRdf/0011-out.jsonld +
+
+
+
+ Test t0012 List pattern with cycles +
+
+
+
id
+
#t0012
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Detect lists containing cycles and do not convert them to @list.
+
input
+
+ fromRdf/0012-in.nq +
+
expect
+
+ fromRdf/0012-out.jsonld +
+
+
+
+ Test t0013 List pattern with multiple values of rdf:first +
+
+
+
id
+
#t0013
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Do not convert list nodes to @list if nodes contain more than one value for rdf:first.
+
input
+
+ fromRdf/0013-in.nq +
+
expect
+
+ fromRdf/0013-out.jsonld +
+
+
+
+ Test t0014 List pattern with multiple values of rdf:rest +
+
+
+
id
+
#t0014
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Do not convert list nodes to @list if nodes contain more than one value for rdf:rest.
+
input
+
+ fromRdf/0014-in.nq +
+
expect
+
+ fromRdf/0014-out.jsonld +
+
+
+
+ Test t0015 List pattern with IRI rdf:rest +
+
+
+
id
+
#t0015
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Do not convert lists to @list if a list node's rdf:rest is an IRI.
+
input
+
+ fromRdf/0015-in.nq +
+
expect
+
+ fromRdf/0015-out.jsonld +
+
+
+
+ Test t0016 List pattern with type rdf:List +
+
+
+
id
+
#t0016
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
List nodes may have a rdf:type rdf:List.
+
input
+
+ fromRdf/0016-in.nq +
+
expect
+
+ fromRdf/0016-out.jsonld +
+
+
+
+ Test t0017 Remove duplicate triples +
+
+
+
id
+
#t0017
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Equivalent triples are used only once
+
input
+
+ fromRdf/0017-in.nq +
+
expect
+
+ fromRdf/0017-out.jsonld +
+
+
+
+ Test t0018 use native types flag set to true +
+
+
+
id
+
#t0018
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Literals with datatype xsd:boolean, xsd:integer, and xsd:double are serialized using native scalar values
+
input
+
+ fromRdf/0018-in.nq +
+
expect
+
+ fromRdf/0018-out.jsonld +
+
Options
+
+
+
useNativeTypes
+
true
+
+
+
+
+
+ Test t0019 use rdf:type flag set to false +
+
+
+
id
+
#t0019
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Setting useRdfType to true causes an rdf:type predicate to be treated like a normal property, not @type
+
input
+
+ fromRdf/0019-in.nq +
+
expect
+
+ fromRdf/0019-out.jsonld +
+
Options
+
+
+
useRdfType
+
true
+
+
+
+
+
+ Test t0020 list with node shared across graphs +
+
+
+
id
+
#t0020
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
An otherwise conformant list with a node shared across different lists does not serialize using @list
+
input
+
+ fromRdf/0020-in.nq +
+
expect
+
+ fromRdf/0020-out.jsonld +
+
+
+
+ Test t0021 list with node shared across graphs (same triple in different graphs) +
+
+
+
id
+
#t0021
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
If a list node is used in different graphs, it isn't removed and converted to @list
+
input
+
+ fromRdf/0021-in.nq +
+
expect
+
+ fromRdf/0021-out.jsonld +
+
+
+
+ Test t0022 list from duplicate triples +
+
+
+
id
+
#t0022
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Duplicate triples for a list node will not prevent @list from being properly generated
+
input
+
+ fromRdf/0022-in.nq +
+
expect
+
+ fromRdf/0022-out.jsonld +
+
+
+
+ Test t0023 triple with RDF nil subject +
+
+
+
id
+
#t0023
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Test triple with RDF nil subject
+
input
+
+ fromRdf/0023-in.nq +
+
expect
+
+ fromRdf/0023-out.jsonld +
+
+
+
+ Test t0024 multiple languages for same subject+property+value +
+
+
+
id
+
#t0024
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Uniqness of triples should include the value language
+
input
+
+ fromRdf/0024-in.nq +
+
expect
+
+ fromRdf/0024-out.jsonld +
+
+
+
+ Test t0025 multiple types for same subject+property+value +
+
+
+
id
+
#t0025
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Uniqness of triples should include the value type
+
input
+
+ fromRdf/0025-in.nq +
+
expect
+
+ fromRdf/0025-out.jsonld +
+
+
+
+ Test t0026 triple with rdf:first property and rdf:nil value +
+
+
+
id
+
#t0026
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Check list generation with rdf:first property and rdf:nil value.
+
input
+
+ fromRdf/0026-in.nq +
+
expect
+
+ fromRdf/0026-out.jsonld +
+
+
+
+ Test tdi01 rdfDirection: null with i18n literal with direction and no language +
+
+
+
id
+
#tdi01
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse i18n datatype without proper option.
+
input
+
+ fromRdf/di01-in.nq +
+
expect
+
+ fromRdf/di01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi02 rdfDirection: null with i18n literal with direction and language +
+
+
+
id
+
#tdi02
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse i18n datatype without proper option.
+
input
+
+ fromRdf/di02-in.nq +
+
expect
+
+ fromRdf/di02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi03 rdfDirection: null with compound literal with direction and no language +
+
+
+
id
+
#tdi03
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse compound literal without proper option.
+
input
+
+ fromRdf/di03-in.nq +
+
expect
+
+ fromRdf/di03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi04 rdfDirection: null with compound literal with direction and language +
+
+
+
id
+
#tdi04
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse compound literal without proper option.
+
input
+
+ fromRdf/di04-in.nq +
+
expect
+
+ fromRdf/di04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi05 rdfDirection: i18n-datatype with i18n literal with direction and no language +
+
+
+
id
+
#tdi05
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Parses i18n datatype with proper option.
+
input
+
+ fromRdf/di05-in.nq +
+
expect
+
+ fromRdf/di05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
i18n-datatype
+
normative
+
false
+
+
+
+
+
+ Test tdi06 rdfDirection: i18n-datatype with i18n literal with direction and language +
+
+
+
id
+
#tdi06
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Parses i18n datatype with proper option.
+
input
+
+ fromRdf/di06-in.nq +
+
expect
+
+ fromRdf/di06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
i18n-datatype
+
normative
+
false
+
+
+
+
+
+ Test tdi07 rdfDirection: i18n-datatype with compound literal with direction and no language +
+
+
+
id
+
#tdi07
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse compound literal without proper option.
+
input
+
+ fromRdf/di07-in.nq +
+
expect
+
+ fromRdf/di07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
i18n-datatype
+
normative
+
false
+
+
+
+
+
+ Test tdi08 rdfDirection: i18n-datatype with compound literal with direction and language +
+
+
+
id
+
#tdi08
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse compound literal without proper option.
+
input
+
+ fromRdf/di08-in.nq +
+
expect
+
+ fromRdf/di08-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
i18n-datatype
+
normative
+
false
+
+
+
+
+
+ Test tdi09 rdfDirection: compound-literal with i18n literal with direction and no language +
+
+
+
id
+
#tdi09
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse i18n datatype without proper option.
+
input
+
+ fromRdf/di09-in.nq +
+
expect
+
+ fromRdf/di09-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
compound-literal
+
normative
+
false
+
+
+
+
+
+ Test tdi10 rdfDirection: compound-literal with i18n literal with direction and language +
+
+
+
id
+
#tdi10
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Does not parse i18n datatype without proper option.
+
input
+
+ fromRdf/di10-in.nq +
+
expect
+
+ fromRdf/di10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
compound-literal
+
normative
+
false
+
+
+
+
+
+ Test tdi11 rdfDirection: compound-literal with compound literal with direction and no language +
+
+
+
id
+
#tdi11
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Parses compound literal with proper option.
+
input
+
+ fromRdf/di11-in.nq +
+
expect
+
+ fromRdf/di11-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
compound-literal
+
normative
+
false
+
+
+
+
+
+ Test tdi12 rdfDirection: compound-literal with compound literal with direction and language +
+
+
+
id
+
#tdi12
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Parses compound literal with proper option.
+
input
+
+ fromRdf/di12-in.nq +
+
expect
+
+ fromRdf/di12-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
compound-literal
+
normative
+
false
+
+
+
+
+
+ Test tjs01 JSON literal (boolean true) +
+
+
+
id
+
#tjs01
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (boolean true).
+
input
+
+ fromRdf/js01-in.nq +
+
expect
+
+ fromRdf/js01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs02 JSON literal (boolean false) +
+
+
+
id
+
#tjs02
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (boolean false).
+
input
+
+ fromRdf/js02-in.nq +
+
expect
+
+ fromRdf/js02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs03 JSON literal (double) +
+
+
+
id
+
#tjs03
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (double).
+
input
+
+ fromRdf/js03-in.nq +
+
expect
+
+ fromRdf/js03-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs04 JSON literal (double-zero) +
+
+
+
id
+
#tjs04
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (double-zero).
+
input
+
+ fromRdf/js04-in.nq +
+
expect
+
+ fromRdf/js04-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs05 JSON literal (integer) +
+
+
+
id
+
#tjs05
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (integer).
+
input
+
+ fromRdf/js05-in.nq +
+
expect
+
+ fromRdf/js05-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs06 JSON literal (object) +
+
+
+
id
+
#tjs06
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (object).
+
input
+
+ fromRdf/js06-in.nq +
+
expect
+
+ fromRdf/js06-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs07 JSON literal (array) +
+
+
+
id
+
#tjs07
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (array).
+
input
+
+ fromRdf/js07-in.nq +
+
expect
+
+ fromRdf/js07-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs08 Invalid JSON literal (bare-word) +
+
+
+
id
+
#tjs08
+
Type
+
jld:NegativeEvaluationTest, jld:FromRDFTest
+
Purpose
+
Processors must generate an error when deserializing an invalid JSON literal.
+
input
+
+ fromRdf/js08-in.nq +
+
expect
+
+ invalid JSON literal +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs09 Invalid JSON literal (invalid structure) +
+
+
+
id
+
#tjs09
+
Type
+
jld:NegativeEvaluationTest, jld:FromRDFTest
+
Purpose
+
Processors must generate an error when deserializing an invalid JSON literal.
+
input
+
+ fromRdf/js09-in.nq +
+
expect
+
+ invalid JSON literal +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs10 JSON literal (string) +
+
+
+
id
+
#tjs10
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (string).
+
input
+
+ fromRdf/js10-in.nq +
+
expect
+
+ fromRdf/js10-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs11 JSON literal (null) +
+
+
+
id
+
#tjs11
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
Tests creating property with rdf:type rdf:JSON to a JSON literal (null).
+
input
+
+ fromRdf/js11-in.nq +
+
expect
+
+ fromRdf/js11-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli01 @list containing empty @list +
+
+
+
id
+
#tli01
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
List of lists
+
input
+
+ fromRdf/li01-in.nq +
+
expect
+
+ fromRdf/li01-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli02 @list containing multiple lists +
+
+
+
id
+
#tli02
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
List of lists
+
input
+
+ fromRdf/li02-in.nq +
+
expect
+
+ fromRdf/li02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli03 t0008 as interpreted for 1.1. +
+
+
+
id
+
#tli03
+
Type
+
jld:PositiveEvaluationTest, jld:FromRDFTest
+
Purpose
+
List of lists
+
input
+
+ fromRdf/li02-in.nq +
+
expect
+
+ fromRdf/li02-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/tests/html-manifest.html b/tests/html-manifest.html index 1259b2ff..debac48c 100644 --- a/tests/html-manifest.html +++ b/tests/html-manifest.html @@ -1,1667 +1,1635 @@ - - - -HTML - - - - - -

- -W3C - -

-

HTML

-

These tests implement the requirements for the JSON-LD HTML Content Algorithms.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -html-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

compact tests have input, expected and context documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output. Additionally, if the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

expand tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

- -

Expansion tests may have a expandContext option, which is treated -as an IRI relative to the manifest.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

html tests have input and expected documents and an optional context document.

- -

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

flatten tests have input and expected documents and an optional context document.

- -

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test te001 Expands embedded JSON-LD script element -
-
-
-
id
-
#te001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/e001-in.html -
-
expect
-
-html/e001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tex01 Expands embedded JSON-LD script element (xhtml) -
-
-
-
id
-
#tex01
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in XHTML
-
input
-
-html/e001-in.html -
-
expect
-
-html/e001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
contentType
-
application/xhtml+xml
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te002 Expands first embedded JSON-LD script element -
-
-
-
id
-
#te002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/e002-in.html -
-
expect
-
-html/e002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te003 Expands targeted JSON-LD script element -
-
-
-
id
-
#te003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier
-
input
-
-html/e003-in.html#second -
-
expect
-
-html/e003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te004 Expands all embedded JSON-LD script elements with extractAllScripts option -
-
-
-
id
-
#te004
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML extracting all elements
-
input
-
-html/e004-in.html -
-
expect
-
-html/e004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te005 Expands multiple embedded JSON-LD script elements where one is an array -
-
-
-
id
-
#te005
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML extracting all elements with array
-
input
-
-html/e005-in.html -
-
expect
-
-html/e005-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te006 Expands as empty with no embedded JSON-LD script elements -
-
-
-
id
-
#te006
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML when none exist
-
input
-
-html/e006-in.html -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te007 Expands as empty with no embedded JSON-LD script elements and extractAllScripts -
-
-
-
id
-
#te007
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML when none exist extracting all elements
-
input
-
-html/e007-in.html -
-
expect
-
-html/e007-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te010 Expands embedded JSON-LD script element with HTML character references -
-
-
-
id
-
#te010
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with character references
-
input
-
-html/e010-in.html -
-
expect
-
-html/e010-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te011 Errors if no element found at target -
-
-
-
id
-
#te011
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist
-
input
-
-html/e011-in.html#third -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te012 Errors if targeted element is not a script element -
-
-
-
id
-
#te012
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML which isn't a script element
-
input
-
-html/e012-in.html#first -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te013 Errors if targeted element does not have type application/ld+json -
-
-
-
id
-
#te013
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with wrong type
-
input
-
-html/e013-in.html#first -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te014 Errors if uncommented script text contains comment -
-
-
-
id
-
#te014
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with comments leftover
-
input
-
-html/e014-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te015 Errors if end comment missing -
-
-
-
id
-
#te015
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with unballanced comments
-
input
-
-html/e015-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te016 Errors if start comment missing -
-
-
-
id
-
#te016
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with unballanced comments
-
input
-
-html/e016-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te017 Errors if uncommented script is not valid JSON -
-
-
-
id
-
#te017
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML which is invalid JSON
-
input
-
-html/e017-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te018 Expands embedded JSON-LD script element relative to document base -
-
-
-
id
-
#te018
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/e018-in.html -
-
expect
-
-html/e018-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te019 Expands embedded JSON-LD script element relative to base option -
-
-
-
id
-
#te019
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/e019-in.html -
-
expect
-
-html/e019-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://a.example.com/doc
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te020 Expands embedded JSON-LD script element relative to HTML base -
-
-
-
id
-
#te020
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/e020-in.html -
-
expect
-
-html/e020-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://a.example.com/doc
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te021 Expands embedded JSON-LD script element relative to relative HTML base -
-
-
-
id
-
#te021
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/e021-in.html -
-
expect
-
-html/e021-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://a.example.com/doc
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test te022 Expands targeted JSON-LD script element with fragment and HTML base -
-
-
-
id
-
#te022
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier
-
input
-
-html/e022-in.html#second -
-
expect
-
-html/e022-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tc001 Compacts embedded JSON-LD script element -
-
-
-
id
-
#tc001
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/c001-in.html -
-
context
-
-html/c001-context.jsonld -
-
expect
-
-html/c001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tc002 Compacts first embedded JSON-LD script element -
-
-
-
id
-
#tc002
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/c002-in.html -
-
context
-
-html/c002-context.jsonld -
-
expect
-
-html/c002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tc003 Compacts targeted JSON-LD script element -
-
-
-
id
-
#tc003
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier
-
input
-
-html/c003-in.html#second -
-
context
-
-html/c003-context.jsonld -
-
expect
-
-html/c003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tc004 Compacts all embedded JSON-LD script elements with extractAllScripts option -
-
-
-
id
-
#tc004
-
Type
-
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML extracting all elements
-
input
-
-html/c004-in.html -
-
context
-
-html/c004-context.jsonld -
-
expect
-
-html/c004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tf001 Flattens embedded JSON-LD script element -
-
-
-
id
-
#tf001
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/f001-in.html -
-
context
-
-html/f001-context.jsonld -
-
expect
-
-html/f001-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tf002 Flattens first embedded JSON-LD script element -
-
-
-
id
-
#tf002
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/f002-in.html -
-
context
-
-html/f002-context.jsonld -
-
expect
-
-html/f002-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
false
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tf003 Flattens targeted JSON-LD script element -
-
-
-
id
-
#tf003
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier
-
input
-
-html/f003-in.html#second -
-
context
-
-html/f003-context.jsonld -
-
expect
-
-html/f003-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tf004 Flattens all script elements by default -
-
-
-
id
-
#tf004
-
Type
-
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML multiple script elements
-
input
-
-html/f004-in.html -
-
context
-
-html/f004-context.jsonld -
-
expect
-
-html/f004-out.jsonld -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr001 Transforms embedded JSON-LD script element -
-
-
-
id
-
#tr001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/r001-in.html -
-
expect
-
-html/r001-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr002 Transforms first embedded JSON-LD script element -
-
-
-
id
-
#tr002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/r002-in.html -
-
expect
-
-html/r002-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
false
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr003 Transforms targeted JSON-LD script element -
-
-
-
id
-
#tr003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier
-
input
-
-html/r003-in.html#second -
-
expect
-
-html/r003-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr004 Expands all embedded JSON-LD script elements with extractAllScripts option -
-
-
-
id
-
#tr004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML extracting all elements
-
input
-
-html/r004-in.html -
-
expect
-
-html/r004-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr005 Expands multiple embedded JSON-LD script elements where one is an array -
-
-
-
id
-
#tr005
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML extracting all elements with array
-
input
-
-html/r005-in.html -
-
expect
-
-html/r005-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr006 Expands as empty with no embedded JSON-LD script elements -
-
-
-
id
-
#tr006
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML when none exist
-
input
-
-html/r006-in.html -
-
expect
-
-html/r006-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr007 Expands as empty with no embedded JSON-LD script elements and extractAllScripts -
-
-
-
id
-
#tr007
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML when none exist extracting all elements
-
input
-
-html/r007-in.html -
-
expect
-
-html/r007-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
extractAllScripts
-
true
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr010 Expands embedded JSON-LD script element with HTML character references -
-
-
-
id
-
#tr010
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with character references
-
input
-
-html/r010-in.html -
-
expect
-
-html/r010-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr011 Errors if no element found at target -
-
-
-
id
-
#tr011
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist
-
input
-
-html/r011-in.html#third -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr012 Errors if targeted element is not a script element -
-
-
-
id
-
#tr012
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML which isn't a script element
-
input
-
-html/r012-in.html#first -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr013 Errors if targeted element does not have type application/ld+json -
-
-
-
id
-
#tr013
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with wrong type
-
input
-
-html/r013-in.html#first -
-
expect
-
-loading document failed -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr014 Errors if uncommented script text contains comment -
-
-
-
id
-
#tr014
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with comments leftover
-
input
-
-html/r014-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr015 Errors if end comment missing -
-
-
-
id
-
#tr015
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with unballanced comments
-
input
-
-html/r015-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr016 Errors if start comment missing -
-
-
-
id
-
#tr016
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with unballanced comments
-
input
-
-html/r016-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr017 Errors if uncommented script is not valid JSON -
-
-
-
id
-
#tr017
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML which is invalid JSON
-
input
-
-html/r017-in.html -
-
expect
-
-invalid script element -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr018 Expands embedded JSON-LD script element relative to document base -
-
-
-
id
-
#tr018
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/r018-in.html -
-
expect
-
-html/r018-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr019 Expands embedded JSON-LD script element relative to base option -
-
-
-
id
-
#tr019
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/r019-in.html -
-
expect
-
-html/r019-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://a.example.com/doc
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr020 Expands embedded JSON-LD script element relative to HTML base -
-
-
-
id
-
#tr020
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/r020-in.html -
-
expect
-
-html/r020-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://a.example.com/doc
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr021 Expands embedded JSON-LD script element relative to relative HTML base -
-
-
-
id
-
#tr021
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML
-
input
-
-html/r021-in.html -
-
expect
-
-html/r021-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://a.example.com/doc
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tr022 Expands targeted JSON-LD script element with fragment and HTML base -
-
-
-
id
-
#tr022
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
-
Purpose
-
Tests embedded JSON-LD in HTML with fragment identifier
-
input
-
-html/r022-in.html#second -
-
expect
-
-html/r022-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-
- - + + + + HTML + + + + + +

+ + W3C + +

+

HTML

+

These tests implement the requirements for the JSON-LD HTML Content Algorithms.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + html-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

compact tests have input, expected and context documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output. Additionally, if the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

expand tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

Expansion tests may have a expandContext option, which is treated + as an IRI relative to the manifest.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

html tests have input and expected documents and an optional context document.

+

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

flatten tests have input and expected documents and an optional context document.

+

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test te001 Expands embedded JSON-LD script element +
+
+
+
id
+
#te001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/e001-in.html +
+
expect
+
+ html/e001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tex01 Expands embedded JSON-LD script element (xhtml) +
+
+
+
id
+
#tex01
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in XHTML
+
input
+
+ html/e001-in.html +
+
expect
+
+ html/e001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
contentType
+
application/xhtml+xml
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te002 Expands first embedded JSON-LD script element +
+
+
+
id
+
#te002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/e002-in.html +
+
expect
+
+ html/e002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te003 Expands targeted JSON-LD script element +
+
+
+
id
+
#te003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier
+
input
+
+ html/e003-in.html#second +
+
expect
+
+ html/e003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te004 Expands all embedded JSON-LD script elements with extractAllScripts option +
+
+
+
id
+
#te004
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML extracting all elements
+
input
+
+ html/e004-in.html +
+
expect
+
+ html/e004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te005 Expands multiple embedded JSON-LD script elements where one is an array +
+
+
+
id
+
#te005
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML extracting all elements with array
+
input
+
+ html/e005-in.html +
+
expect
+
+ html/e005-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te006 Expands as empty with no embedded JSON-LD script elements +
+
+
+
id
+
#te006
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML when none exist
+
input
+
+ html/e006-in.html +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te007 Expands as empty with no embedded JSON-LD script elements and extractAllScripts +
+
+
+
id
+
#te007
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML when none exist extracting all elements
+
input
+
+ html/e007-in.html +
+
expect
+
+ html/e007-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te010 Expands embedded JSON-LD script element with HTML character references +
+
+
+
id
+
#te010
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with character references
+
input
+
+ html/e010-in.html +
+
expect
+
+ html/e010-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te011 Errors if no element found at target +
+
+
+
id
+
#te011
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist
+
input
+
+ html/e011-in.html#third +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te012 Errors if targeted element is not a script element +
+
+
+
id
+
#te012
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML which isn't a script element
+
input
+
+ html/e012-in.html#first +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te013 Errors if targeted element does not have type application/ld+json +
+
+
+
id
+
#te013
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with wrong type
+
input
+
+ html/e013-in.html#first +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te014 Errors if uncommented script text contains comment +
+
+
+
id
+
#te014
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with comments leftover
+
input
+
+ html/e014-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te015 Errors if end comment missing +
+
+
+
id
+
#te015
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with unballanced comments
+
input
+
+ html/e015-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te016 Errors if start comment missing +
+
+
+
id
+
#te016
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with unballanced comments
+
input
+
+ html/e016-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te017 Errors if uncommented script is not valid JSON +
+
+
+
id
+
#te017
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML which is invalid JSON
+
input
+
+ html/e017-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te018 Expands embedded JSON-LD script element relative to document base +
+
+
+
id
+
#te018
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/e018-in.html +
+
expect
+
+ html/e018-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te019 Expands embedded JSON-LD script element relative to base option +
+
+
+
id
+
#te019
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/e019-in.html +
+
expect
+
+ html/e019-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://a.example.com/doc
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te020 Expands embedded JSON-LD script element relative to HTML base +
+
+
+
id
+
#te020
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/e020-in.html +
+
expect
+
+ html/e020-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://a.example.com/doc
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te021 Expands embedded JSON-LD script element relative to relative HTML base +
+
+
+
id
+
#te021
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/e021-in.html +
+
expect
+
+ html/e021-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://a.example.com/doc
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test te022 Expands targeted JSON-LD script element with fragment and HTML base +
+
+
+
id
+
#te022
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier
+
input
+
+ html/e022-in.html#second +
+
expect
+
+ html/e022-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tc001 Compacts embedded JSON-LD script element +
+
+
+
id
+
#tc001
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/c001-in.html +
+
context
+
+ html/c001-context.jsonld +
+
expect
+
+ html/c001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tc002 Compacts first embedded JSON-LD script element +
+
+
+
id
+
#tc002
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/c002-in.html +
+
context
+
+ html/c002-context.jsonld +
+
expect
+
+ html/c002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tc003 Compacts targeted JSON-LD script element +
+
+
+
id
+
#tc003
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier
+
input
+
+ html/c003-in.html#second +
+
context
+
+ html/c003-context.jsonld +
+
expect
+
+ html/c003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tc004 Compacts all embedded JSON-LD script elements with extractAllScripts option +
+
+
+
id
+
#tc004
+
Type
+
jld:PositiveEvaluationTest, jld:CompactTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML extracting all elements
+
input
+
+ html/c004-in.html +
+
context
+
+ html/c004-context.jsonld +
+
expect
+
+ html/c004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tf001 Flattens embedded JSON-LD script element +
+
+
+
id
+
#tf001
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/f001-in.html +
+
context
+
+ html/f001-context.jsonld +
+
expect
+
+ html/f001-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tf002 Flattens first embedded JSON-LD script element +
+
+
+
id
+
#tf002
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/f002-in.html +
+
context
+
+ html/f002-context.jsonld +
+
expect
+
+ html/f002-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
false
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tf003 Flattens targeted JSON-LD script element +
+
+
+
id
+
#tf003
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier
+
input
+
+ html/f003-in.html#second +
+
context
+
+ html/f003-context.jsonld +
+
expect
+
+ html/f003-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tf004 Flattens all script elements by default +
+
+
+
id
+
#tf004
+
Type
+
jld:PositiveEvaluationTest, jld:FlattenTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML multiple script elements
+
input
+
+ html/f004-in.html +
+
context
+
+ html/f004-context.jsonld +
+
expect
+
+ html/f004-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr001 Transforms embedded JSON-LD script element +
+
+
+
id
+
#tr001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/r001-in.html +
+
expect
+
+ html/r001-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr002 Transforms first embedded JSON-LD script element +
+
+
+
id
+
#tr002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/r002-in.html +
+
expect
+
+ html/r002-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
false
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr003 Transforms targeted JSON-LD script element +
+
+
+
id
+
#tr003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier
+
input
+
+ html/r003-in.html#second +
+
expect
+
+ html/r003-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr004 Expands all embedded JSON-LD script elements with extractAllScripts option +
+
+
+
id
+
#tr004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML extracting all elements
+
input
+
+ html/r004-in.html +
+
expect
+
+ html/r004-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr005 Expands multiple embedded JSON-LD script elements where one is an array +
+
+
+
id
+
#tr005
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML extracting all elements with array
+
input
+
+ html/r005-in.html +
+
expect
+
+ html/r005-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr006 Expands as empty with no embedded JSON-LD script elements +
+
+
+
id
+
#tr006
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML when none exist
+
input
+
+ html/r006-in.html +
+
expect
+
+ html/r006-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr007 Expands as empty with no embedded JSON-LD script elements and extractAllScripts +
+
+
+
id
+
#tr007
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML when none exist extracting all elements
+
input
+
+ html/r007-in.html +
+
expect
+
+ html/r007-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
extractAllScripts
+
true
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr010 Expands embedded JSON-LD script element with HTML character references +
+
+
+
id
+
#tr010
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with character references
+
input
+
+ html/r010-in.html +
+
expect
+
+ html/r010-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr011 Errors if no element found at target +
+
+
+
id
+
#tr011
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist
+
input
+
+ html/r011-in.html#third +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr012 Errors if targeted element is not a script element +
+
+
+
id
+
#tr012
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML which isn't a script element
+
input
+
+ html/r012-in.html#first +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr013 Errors if targeted element does not have type application/ld+json +
+
+
+
id
+
#tr013
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with wrong type
+
input
+
+ html/r013-in.html#first +
+
expect
+
+ loading document failed +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr014 Errors if uncommented script text contains comment +
+
+
+
id
+
#tr014
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with comments leftover
+
input
+
+ html/r014-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr015 Errors if end comment missing +
+
+
+
id
+
#tr015
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with unballanced comments
+
input
+
+ html/r015-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr016 Errors if start comment missing +
+
+
+
id
+
#tr016
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with unballanced comments
+
input
+
+ html/r016-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr017 Errors if uncommented script is not valid JSON +
+
+
+
id
+
#tr017
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML which is invalid JSON
+
input
+
+ html/r017-in.html +
+
expect
+
+ invalid script element +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr018 Expands embedded JSON-LD script element relative to document base +
+
+
+
id
+
#tr018
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/r018-in.html +
+
expect
+
+ html/r018-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr019 Expands embedded JSON-LD script element relative to base option +
+
+
+
id
+
#tr019
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/r019-in.html +
+
expect
+
+ html/r019-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://a.example.com/doc
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr020 Expands embedded JSON-LD script element relative to HTML base +
+
+
+
id
+
#tr020
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/r020-in.html +
+
expect
+
+ html/r020-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://a.example.com/doc
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr021 Expands embedded JSON-LD script element relative to relative HTML base +
+
+
+
id
+
#tr021
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML
+
input
+
+ html/r021-in.html +
+
expect
+
+ html/r021-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://a.example.com/doc
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tr022 Expands targeted JSON-LD script element with fragment and HTML base +
+
+
+
id
+
#tr022
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:HtmlTest
+
Purpose
+
Tests embedded JSON-LD in HTML with fragment identifier
+
input
+
+ html/r022-in.html#second +
+
expect
+
+ html/r022-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/tests/manifest.html b/tests/manifest.html index 9ffbac11..bf44ccdf 100644 --- a/tests/manifest.html +++ b/tests/manifest.html @@ -1,177 +1,136 @@ - - - -JSON-LD Test Suite - - - - - -

- -W3C - -

-

JSON-LD Test Suite

-

This manifest loads additional manifests for specific behavior tests for JSON-LD 1.1 API

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

compact tests have input, expected and context documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output. Additionally, if the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

expand tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

- -

Expansion tests may have a expandContext option, which is treated -as an IRI relative to the manifest.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

html tests have input and expected documents and an optional context document.

- -

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

flatten tests have input and expected documents and an optional context document.

- -

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

remote-doc tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

- -

Options may be present to describe the intended HTTP behavior:

- - -

fromRdf tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

-

toRdf tests have input and expected documents.

- -

Some tests require the use of JSON Canonicalization Scheme to properly generate RDF Literals from JSON literal values. This algorithm is non-normative, but is assumed to be used to properly compare results. These tests are marked using the useJCS option.

- -

The expected results can be compared using RDF Dataset Isomorphism.

- -

A PositiveSyntaxTest looks specifically for syntax-related issues. A PositiveSyntaxTest succeeds when no error is found when processing.

- -

ToRdf tests may have a expandContext option, which is treated -as an IRI relative to the manifest.

-

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-

-Test sequence: -

- -
- - + + + + JSON-LD Test Suite + + + + + +

+ + W3C + +

+

JSON-LD Test Suite

+

This manifest loads additional manifests for specific behavior tests for JSON-LD 1.1 API

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

compact tests have input, expected and context documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output. Additionally, if the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

expand tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

Expansion tests may have a expandContext option, which is treated + as an IRI relative to the manifest.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

html tests have input and expected documents and an optional context document.

+

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

flatten tests have input and expected documents and an optional context document.

+

The expected results can be compared using JSON-LD object comparison with the processor output after potentially remapping blank node identifiers (see below). Additionally, if the result is compacted and the ordered option is not set, result should be expanded and compared with the expanded expected document also using JSON-LD object comparison.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

remote-doc tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

Options may be present to describe the intended HTTP behavior:

+ +

fromRdf tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

toRdf tests have input and expected documents.

+

Some tests require the use of JSON Canonicalization Scheme to properly generate RDF Literals from JSON literal values. This algorithm is non-normative, but is assumed to be used to properly compare results. These tests are marked using the useJCS option.

+

The expected results can be compared using RDF Dataset Isomorphism.

+

A PositiveSyntaxTest looks specifically for syntax-related issues. A PositiveSyntaxTest succeeds when no error is found when processing.

+

ToRdf tests may have a expandContext option, which is treated + as an IRI relative to the manifest.

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+

+ Test sequence: +

+ +
+ + \ No newline at end of file diff --git a/tests/remote-doc-manifest.html b/tests/remote-doc-manifest.html index 87e7f74d..0849a477 100644 --- a/tests/remote-doc-manifest.html +++ b/tests/remote-doc-manifest.html @@ -1,627 +1,597 @@ - - - -Remote document - - - - - -

- -W3C - -

-

Remote document

-

These tests implement the requirements for JSON-LD Remote Document and Context Retrieval.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -remote-doc-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

expand tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

- -

Expansion tests may have a expandContext option, which is treated -as an IRI relative to the manifest.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

-

remote-doc tests have input and expected documents.

- -

The expected results can be compared using JSON-LD object comparison with the processor output.

- -

For NegativeEvaluationTests, the result is a string associated with the expected error code.

- -

Options may be present to describe the intended HTTP behavior:

- - -

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test t0001 load JSON-LD document -
-
-
-
id
-
#t0001
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Document loader loads a JSON-LD document.
-
input
-
-remote-doc/0001-in.jsonld -
-
expect
-
-remote-doc/0001-out.jsonld -
-
-
-
-Test t0002 load JSON document -
-
-
-
id
-
#t0002
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Document loader loads a JSON document.
-
input
-
-remote-doc/0002-in.json -
-
expect
-
-remote-doc/0002-out.jsonld -
-
-
-
-Test t0003 load JSON document with extension-type -
-
-
-
id
-
#t0003
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Document loader loads a JSON document having an extension mime-subtype.
-
input
-
-remote-doc/0003-in.jldt -
-
expect
-
-remote-doc/0003-out.jsonld -
-
Options
-
-
-
contentType
-
application/jldTest+json
-
-
-
-
-
-Test t0004 loading an unknown type raises loading document failed -
-
-
-
id
-
#t0004
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Loading a document with a non-JSON mime type raises loading document failed
-
input
-
-remote-doc/0004-in.jldte -
-
expect
-
-loading document failed -
-
Options
-
-
-
contentType
-
application/jldTest
-
-
-
-
-
-Test t0005 Load JSON-LD through 301 redirect -
-
-
-
id
-
#t0005
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Loading a document with a redirect should use the redirected URL as document base
-
input
-
-remote-doc/0005-in.jsonld -
-
expect
-
-remote-doc/0001-out.jsonld -
-
Options
-
-
-
redirectTo
-
remote-doc/0001-in.jsonld
-
httpStatus
-
301
-
-
-
-
-
-Test t0006 Load JSON-LD through 303 redirect -
-
-
-
id
-
#t0006
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Loading a document with a redirect should use the redirected URL as document base
-
input
-
-remote-doc/0006-in.jsonld -
-
expect
-
-remote-doc/0001-out.jsonld -
-
Options
-
-
-
redirectTo
-
remote-doc/0001-in.jsonld
-
httpStatus
-
303
-
-
-
-
-
-Test t0007 Load JSON-LD through 307 redirect -
-
-
-
id
-
#t0007
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Loading a document with a redirect should use the redirected URL as document base
-
input
-
-remote-doc/0007-in.jsonld -
-
expect
-
-remote-doc/0001-out.jsonld -
-
Options
-
-
-
redirectTo
-
remote-doc/0001-in.jsonld
-
httpStatus
-
307
-
-
-
-
-
-Test t0008 Non-existant file (404) -
-
-
-
id
-
#t0008
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Loading a non-existant file raises loading document failed error
-
input
-
-remote-doc/missing-in.jsonld -
-
expect
-
-loading document failed -
-
-
-
-Test t0009 load JSON-LD document with link -
-
-
-
id
-
#t0009
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If a context is specified in a link header, it is not used for JSON-LD.
-
input
-
-remote-doc/0009-in.jsonld -
-
expect
-
-remote-doc/0009-out.jsonld -
-
Options
-
-
-
httpLink
-
<0009-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"
-
-
-
-
-
-Test t0010 load JSON document with link -
-
-
-
id
-
#t0010
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If a context is specified in a link header, it is used for JSON.
-
input
-
-remote-doc/0010-in.json -
-
expect
-
-remote-doc/0010-out.jsonld -
-
Options
-
-
-
httpLink
-
<0010-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"
-
-
-
-
-
-Test t0011 load JSON document with extension-type with link -
-
-
-
id
-
#t0011
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If a context is specified in a link header, it is used for a JSON extension type.
-
input
-
-remote-doc/0011-in.jldt -
-
expect
-
-remote-doc/0011-out.jsonld -
-
Options
-
-
-
contentType
-
application/jldTest+json
-
httpLink
-
<0011-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"
-
-
-
-
-
-Test t0012 Multiple context link headers -
-
-
-
id
-
#t0012
-
Type
-
jld:NegativeEvaluationTest, jld:ExpandTest
-
Purpose
-
Loading a file when multiple link headers are returned is an error
-
input
-
-remote-doc/0012-in.json -
-
expect
-
-multiple context link headers -
-
Options
-
-
-
httpLink
-
["<0012-context1.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"", "<0012-context2.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\""]
-
-
-
-
-
-Test t0013 load JSON document with link to HTML document -
-
-
-
id
-
#t0013
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
If a context is specified in a link header, it is used for JSON, extracting from HTML.
-
input
-
-remote-doc/0013-in.json -
-
expect
-
-remote-doc/0013-out.jsonld -
-
Options
-
-
-
httpLink
-
<0013-context.html>; rel="http://www.w3.org/ns/json-ld#context"
-
-
-
-
-
-Test tla01 Redirects if type is text/html -
-
-
-
id
-
#tla01
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Load an alternate link if type is not ld+json and rel=alternate.
-
input
-
-remote-doc/la01-in.html -
-
expect
-
-remote-doc/la01-out.jsonld -
-
Options
-
-
-
httpLink
-
; rel="alternate"; type="application/ld+json"
-
-
-
-
-
-Test tla02 Does not redirect if type is application/ld+json -
-
-
-
id
-
#tla02
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Load an alternate link if type is not ld+json and rel=alternate.
-
input
-
-remote-doc/la02-in.jsonld -
-
expect
-
-remote-doc/la02-out.jsonld -
-
Options
-
-
-
httpLink
-
; rel="alternate"; type="application/ld+json"
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-Test tla03 Does not redirect if link type is not application/ld+json -
-
-
-
id
-
#tla03
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Load an alternate link if type is not ld+json and rel=alternate.
-
input
-
-remote-doc/la03-in.json -
-
expect
-
-remote-doc/la03-out.jsonld -
-
Options
-
-
-
httpLink
-
; rel="alternate"; type="application/json"
-
-
-
-
-
-Test tla04 Does not redirect if type is application/json -
-
-
-
id
-
#tla04
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Load an alternate link if type is not ld+json and rel=alternate.
-
input
-
-remote-doc/la04-in.json -
-
expect
-
-remote-doc/la04-out.jsonld -
-
Options
-
-
-
httpLink
-
; rel="alternate"; type="application/ld+json"
-
-
-
-
-
-Test tla05 Base is that of the alternate URL -
-
-
-
id
-
#tla05
-
Type
-
jld:PositiveEvaluationTest, jld:ExpandTest
-
Purpose
-
Load an alternate link if type is not ld+json and rel=alternate.
-
input
-
-remote-doc/la05-in.html -
-
expect
-
-remote-doc/la05-out.jsonld -
-
Options
-
-
-
httpLink
-
; rel="alternate"; type="application/ld+json"
-
processorFeature
-
HTML Script Extraction
-
-
-
-
-
-
- - + + + + Remote document + + + + + +

+ + W3C + +

+

Remote document

+

These tests implement the requirements for JSON-LD Remote Document and Context Retrieval.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + remote-doc-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

expand tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

Expansion tests may have a expandContext option, which is treated + as an IRI relative to the manifest.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

remote-doc tests have input and expected documents.

+

The expected results can be compared using JSON-LD object comparison with the processor output.

+

For NegativeEvaluationTests, the result is a string associated with the expected error code.

+

Options may be present to describe the intended HTTP behavior:

+ +

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test t0001 load JSON-LD document +
+
+
+
id
+
#t0001
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Document loader loads a JSON-LD document.
+
input
+
+ remote-doc/0001-in.jsonld +
+
expect
+
+ remote-doc/0001-out.jsonld +
+
+
+
+ Test t0002 load JSON document +
+
+
+
id
+
#t0002
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Document loader loads a JSON document.
+
input
+
+ remote-doc/0002-in.json +
+
expect
+
+ remote-doc/0002-out.jsonld +
+
+
+
+ Test t0003 load JSON document with extension-type +
+
+
+
id
+
#t0003
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Document loader loads a JSON document having an extension mime-subtype.
+
input
+
+ remote-doc/0003-in.jldt +
+
expect
+
+ remote-doc/0003-out.jsonld +
+
Options
+
+
+
contentType
+
application/jldTest+json
+
+
+
+
+
+ Test t0004 loading an unknown type raises loading document failed +
+
+
+
id
+
#t0004
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Loading a document with a non-JSON mime type raises loading document failed
+
input
+
+ remote-doc/0004-in.jldte +
+
expect
+
+ loading document failed +
+
Options
+
+
+
contentType
+
application/jldTest
+
+
+
+
+
+ Test t0005 Load JSON-LD through 301 redirect +
+
+
+
id
+
#t0005
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Loading a document with a redirect should use the redirected URL as document base
+
input
+
+ remote-doc/0005-in.jsonld +
+
expect
+
+ remote-doc/0001-out.jsonld +
+
Options
+
+
+
redirectTo
+
remote-doc/0001-in.jsonld
+
httpStatus
+
301
+
+
+
+
+
+ Test t0006 Load JSON-LD through 303 redirect +
+
+
+
id
+
#t0006
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Loading a document with a redirect should use the redirected URL as document base
+
input
+
+ remote-doc/0006-in.jsonld +
+
expect
+
+ remote-doc/0001-out.jsonld +
+
Options
+
+
+
redirectTo
+
remote-doc/0001-in.jsonld
+
httpStatus
+
303
+
+
+
+
+
+ Test t0007 Load JSON-LD through 307 redirect +
+
+
+
id
+
#t0007
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Loading a document with a redirect should use the redirected URL as document base
+
input
+
+ remote-doc/0007-in.jsonld +
+
expect
+
+ remote-doc/0001-out.jsonld +
+
Options
+
+
+
redirectTo
+
remote-doc/0001-in.jsonld
+
httpStatus
+
307
+
+
+
+
+
+ Test t0008 Non-existant file (404) +
+
+
+
id
+
#t0008
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Loading a non-existant file raises loading document failed error
+
input
+
+ remote-doc/missing-in.jsonld +
+
expect
+
+ loading document failed +
+
+
+
+ Test t0009 load JSON-LD document with link +
+
+
+
id
+
#t0009
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If a context is specified in a link header, it is not used for JSON-LD.
+
input
+
+ remote-doc/0009-in.jsonld +
+
expect
+
+ remote-doc/0009-out.jsonld +
+
Options
+
+
+
httpLink
+
<0009-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"
+
+
+
+
+
+ Test t0010 load JSON document with link +
+
+
+
id
+
#t0010
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If a context is specified in a link header, it is used for JSON.
+
input
+
+ remote-doc/0010-in.json +
+
expect
+
+ remote-doc/0010-out.jsonld +
+
Options
+
+
+
httpLink
+
<0010-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"
+
+
+
+
+
+ Test t0011 load JSON document with extension-type with link +
+
+
+
id
+
#t0011
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If a context is specified in a link header, it is used for a JSON extension type.
+
input
+
+ remote-doc/0011-in.jldt +
+
expect
+
+ remote-doc/0011-out.jsonld +
+
Options
+
+
+
contentType
+
application/jldTest+json
+
httpLink
+
<0011-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"
+
+
+
+
+
+ Test t0012 Multiple context link headers +
+
+
+
id
+
#t0012
+
Type
+
jld:NegativeEvaluationTest, jld:ExpandTest
+
Purpose
+
Loading a file when multiple link headers are returned is an error
+
input
+
+ remote-doc/0012-in.json +
+
expect
+
+ multiple context link headers +
+
Options
+
+
+
httpLink
+
["<0012-context1.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"", "<0012-context2.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\""]
+
+
+
+
+
+ Test t0013 load JSON document with link to HTML document +
+
+
+
id
+
#t0013
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
If a context is specified in a link header, it is used for JSON, extracting from HTML.
+
input
+
+ remote-doc/0013-in.json +
+
expect
+
+ remote-doc/0013-out.jsonld +
+
Options
+
+
+
httpLink
+
<0013-context.html>; rel="http://www.w3.org/ns/json-ld#context"
+
+
+
+
+
+ Test tla01 Redirects if type is text/html +
+
+
+
id
+
#tla01
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Load an alternate link if type is not ld+json and rel=alternate.
+
input
+
+ remote-doc/la01-in.html +
+
expect
+
+ remote-doc/la01-out.jsonld +
+
Options
+
+
+
httpLink
+
<la01-alternate.jsonld>; rel="alternate"; type="application/ld+json"
+
+
+
+
+
+ Test tla02 Does not redirect if type is application/ld+json +
+
+
+
id
+
#tla02
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Load an alternate link if type is not ld+json and rel=alternate.
+
input
+
+ remote-doc/la02-in.jsonld +
+
expect
+
+ remote-doc/la02-out.jsonld +
+
Options
+
+
+
httpLink
+
<la02-alternate.jsonld>; rel="alternate"; type="application/ld+json"
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+ Test tla03 Does not redirect if link type is not application/ld+json +
+
+
+
id
+
#tla03
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Load an alternate link if type is not ld+json and rel=alternate.
+
input
+
+ remote-doc/la03-in.json +
+
expect
+
+ remote-doc/la03-out.jsonld +
+
Options
+
+
+
httpLink
+
<la03-alternate.json>; rel="alternate"; type="application/json"
+
+
+
+
+
+ Test tla04 Does not redirect if type is application/json +
+
+
+
id
+
#tla04
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Load an alternate link if type is not ld+json and rel=alternate.
+
input
+
+ remote-doc/la04-in.json +
+
expect
+
+ remote-doc/la04-out.jsonld +
+
Options
+
+
+
httpLink
+
<la04-alternate.jsonld>; rel="alternate"; type="application/ld+json"
+
+
+
+
+
+ Test tla05 Base is that of the alternate URL +
+
+
+
id
+
#tla05
+
Type
+
jld:PositiveEvaluationTest, jld:ExpandTest
+
Purpose
+
Load an alternate link if type is not ld+json and rel=alternate.
+
input
+
+ remote-doc/la05-in.html +
+
expect
+
+ remote-doc/la05-out.jsonld +
+
Options
+
+
+
httpLink
+
<la05-alternate.jsonld>; rel="alternate"; type="application/ld+json"
+
processorFeature
+
HTML Script Extraction
+
+
+
+
+
+
+ + \ No newline at end of file diff --git a/tests/toRdf-manifest.html b/tests/toRdf-manifest.html index 76d65d00..ef5c0d86 100644 --- a/tests/toRdf-manifest.html +++ b/tests/toRdf-manifest.html @@ -1,11886 +1,11891 @@ - - - -Transform JSON-LD to RDF - - - - - -

- -W3C - -

-

Transform JSON-LD to RDF

-

These tests implement the requirements for the JSON-LD Deserialize JSON-LD to RDF Algorithm.

- -

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at -toRdf-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

- -

The JSON-LD Test Suite is a set of tests that can -be used to verify JSON-LD Processor conformance to the set of specifications -that constitute JSON-LD. The goal of the suite is to provide an easy and -comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

- -

The JSON-LD Framing Specification maintains its own -test suite.

- -

General instructions for running the JSON-LD Test suites

- -

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

- -

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

- -

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

- -

JSON-LD Object comparison

- -

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

- -

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

- - - -

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

- -

Running tests

- -

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

- -

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

- - - -

Contributing Tests

- -

If you would like to contribute a new test or a fix to an existing test, -please follow these steps:

- -
    -
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, -that you will be creating a new test or fix and the purpose of the -change.
  2. -
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. -
  5. Make your changes and submit them via github, or via a 'git format-patch' -to the JSON-LD Working Group mailing list.
  6. -
- -

Distribution

- -

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

- -

Disclaimer

- -

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. - COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

-
-
baseIri
-
https://w3c.github.io/json-ld-api/tests/
-
-
-

-Test sequence: -

-
-
-Test t0001 Plain literal with URIs -
-
-
-
id
-
#t0001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests generation of a triple using full URIs and a plain literal.
-
input
-
-toRdf/0001-in.jsonld -
-
expect
-
-toRdf/0001-out.nq -
-
-
-
-Test t0002 Plain literal with CURIE from default context -
-
-
-
id
-
#t0002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests generation of a triple using a CURIE defined in the default context.
-
input
-
-toRdf/0002-in.jsonld -
-
expect
-
-toRdf/0002-out.nq -
-
-
-
-Test t0003 Default subject is BNode -
-
-
-
id
-
#t0003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that a BNode is created if no explicit subject is set.
-
input
-
-toRdf/0003-in.jsonld -
-
expect
-
-toRdf/0003-out.nq -
-
-
-
-Test t0004 Literal with language tag -
-
-
-
id
-
#t0004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that a plain literal is created with a language tag.
-
input
-
-toRdf/0004-in.jsonld -
-
expect
-
-toRdf/0004-out.nq -
-
-
-
-Test t0005 Extended character set literal -
-
-
-
id
-
#t0005
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that a literal may be created using extended characters.
-
input
-
-toRdf/0005-in.jsonld -
-
expect
-
-toRdf/0005-out.nq -
-
-
-
-Test t0006 Typed literal -
-
-
-
id
-
#t0006
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests creation of a literal with a datatype.
-
input
-
-toRdf/0006-in.jsonld -
-
expect
-
-toRdf/0006-out.nq -
-
-
-
-Test t0007 Tests 'a' generates rdf:type and object is implicit IRI -
-
-
-
id
-
#t0007
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verify that 'a' is an alias for rdf:type, and the object is created as an IRI.
-
input
-
-toRdf/0007-in.jsonld -
-
expect
-
-toRdf/0007-out.nq -
-
-
-
-Test t0008 Test prefix defined in @context -
-
-
-
id
-
#t0008
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Generate an IRI using a prefix defined within an @context.
-
input
-
-toRdf/0008-in.jsonld -
-
expect
-
-toRdf/0008-out.nq -
-
-
-
-Test t0009 Test using an empty suffix -
-
-
-
id
-
#t0009
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
An empty suffix may be used.
-
input
-
-toRdf/0009-in.jsonld -
-
expect
-
-toRdf/0009-out.nq -
-
-
-
-Test t0010 Test object processing defines object -
-
-
-
id
-
#t0010
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
A property referencing an associative array gets object from subject of array.
-
input
-
-toRdf/0010-in.jsonld -
-
expect
-
-toRdf/0010-out.nq -
-
-
-
-Test t0011 Test object processing defines object with implicit BNode -
-
-
-
id
-
#t0011
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
If no @ is specified, a BNode is created, and will be used as the object of an enclosing property.
-
input
-
-toRdf/0011-in.jsonld -
-
expect
-
-toRdf/0011-out.nq -
-
-
-
-Test t0012 Multiple Objects for a Single Property -
-
-
-
id
-
#t0012
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that Multiple Objects are for a Single Property using array syntax.
-
input
-
-toRdf/0012-in.jsonld -
-
expect
-
-toRdf/0012-out.nq -
-
-
-
-Test t0013 Creation of an empty list -
-
-
-
id
-
#t0013
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that @list: [] generates an empty list.
-
input
-
-toRdf/0013-in.jsonld -
-
expect
-
-toRdf/0013-out.nq -
-
-
-
-Test t0014 Creation of a list with single element -
-
-
-
id
-
#t0014
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that @list generates a list.
-
input
-
-toRdf/0014-in.jsonld -
-
expect
-
-toRdf/0014-out.nq -
-
-
-
-Test t0015 Creation of a list with multiple elements -
-
-
-
id
-
#t0015
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that list with multiple elements.
-
input
-
-toRdf/0015-in.jsonld -
-
expect
-
-toRdf/0015-out.nq -
-
-
-
-Test t0016 Empty IRI expands to resource location -
-
-
-
id
-
#t0016
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding an empty IRI uses the test file location.
-
input
-
-toRdf/0016-in.jsonld -
-
expect
-
-toRdf/0016-out.nq -
-
-
-
-Test t0017 Relative IRI expands relative resource location -
-
-
-
id
-
#t0017
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding a relative IRI uses the test file location.
-
input
-
-toRdf/0017-in.jsonld -
-
expect
-
-toRdf/0017-out.nq -
-
-
-
-Test t0018 Frag ID expands relative resource location -
-
-
-
id
-
#t0018
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding a fragment uses the test file location.
-
input
-
-toRdf/0018-in.jsonld -
-
expect
-
-toRdf/0018-out.nq -
-
-
-
-Test t0019 Test type coercion to anyURI -
-
-
-
id
-
#t0019
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests coercion of object to anyURI when specified.
-
input
-
-toRdf/0019-in.jsonld -
-
expect
-
-toRdf/0019-out.nq -
-
-
-
-Test t0020 Test type coercion to typed literal -
-
-
-
id
-
#t0020
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests coercion of object to a typed literal when specified.
-
input
-
-toRdf/0020-in.jsonld -
-
expect
-
-toRdf/0020-out.nq -
-
-
-
-Test t0022 Test coercion of double value -
-
-
-
id
-
#t0022
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that a decimal value generates a xsd:double typed literal;.
-
input
-
-toRdf/0022-in.jsonld -
-
expect
-
-toRdf/0022-out.nq -
-
-
-
-Test t0023 Test coercion of integer value -
-
-
-
id
-
#t0023
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that a decimal value generates a xsd:integer typed literal.
-
input
-
-toRdf/0023-in.jsonld -
-
expect
-
-toRdf/0023-out.nq -
-
-
-
-Test t0024 Test coercion of boolean value -
-
-
-
id
-
#t0024
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that a decimal value generates a xsd:boolean typed literal.
-
input
-
-toRdf/0024-in.jsonld -
-
expect
-
-toRdf/0024-out.nq -
-
-
-
-Test t0025 Test list coercion with single element -
-
-
-
id
-
#t0025
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that an array with a single element on a property with @list coercion creates an RDF Collection.
-
input
-
-toRdf/0025-in.jsonld -
-
expect
-
-toRdf/0025-out.nq -
-
-
-
-Test t0026 Test creation of multiple types -
-
-
-
id
-
#t0026
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that @type with an array of types creates multiple types.
-
input
-
-toRdf/0026-in.jsonld -
-
expect
-
-toRdf/0026-out.nq -
-
-
-
-Test t0027 Simple named graph (Wikidata) -
-
-
-
id
-
#t0027
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Using @graph with other keys places triples in a named graph.
-
input
-
-toRdf/0027-in.jsonld -
-
expect
-
-toRdf/0027-out.nq -
-
-
-
-Test t0028 Simple named graph -
-
-
-
id
-
#t0028
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Signing a graph.
-
input
-
-toRdf/0028-in.jsonld -
-
expect
-
-toRdf/0028-out.nq -
-
-
-
-Test t0029 named graph with embedded named graph -
-
-
-
id
-
#t0029
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that named graphs containing named graphs flatten to single level of graph naming.
-
input
-
-toRdf/0029-in.jsonld -
-
expect
-
-toRdf/0029-out.nq -
-
-
-
-Test t0030 top-level graph with string subject reference -
-
-
-
id
-
#t0030
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests graphs containing subject references as strings.
-
input
-
-toRdf/0030-in.jsonld -
-
expect
-
-toRdf/0030-out.nq -
-
-
-
-Test t0031 Reverse property -
-
-
-
id
-
#t0031
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests conversion of reverse properties.
-
input
-
-toRdf/0031-in.jsonld -
-
expect
-
-toRdf/0031-out.nq -
-
-
-
-Test t0032 @context reordering -
-
-
-
id
-
#t0032
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that generated triples do not depend on order of @context.
-
input
-
-toRdf/0032-in.jsonld -
-
expect
-
-toRdf/0032-out.nq -
-
-
-
-Test t0033 @id reordering -
-
-
-
id
-
#t0033
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that generated triples do not depend on order of @id.
-
input
-
-toRdf/0033-in.jsonld -
-
expect
-
-toRdf/0033-out.nq -
-
-
-
-Test t0034 context properties reordering -
-
-
-
id
-
#t0034
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests that generated triples do not depend on order of properties inside @context.
-
input
-
-toRdf/0034-in.jsonld -
-
expect
-
-toRdf/0034-out.nq -
-
-
-
-Test t0035 non-fractional numbers converted to xsd:double -
-
-
-
id
-
#t0035
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
xsd:double's canonical lexical is used when converting numbers without fraction that are coerced to xsd:double
-
input
-
-toRdf/0035-in.jsonld -
-
expect
-
-toRdf/0035-out.nq -
-
-
-
-Test t0036 Use nodeMapGeneration bnode labels -
-
-
-
id
-
#t0036
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
The toRDF algorithm does not relabel blank nodes; it reuses the counter from the nodeMapGeneration to generate new ones
-
input
-
-toRdf/0036-in.jsonld -
-
expect
-
-toRdf/0036-out.nq -
-
-
-
-Test t0113 Dataset with a IRI named graph -
-
-
-
id
-
#t0113
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Basic use of creating a named graph using an IRI name
-
input
-
-toRdf/0113-in.jsonld -
-
expect
-
-toRdf/0113-out.nq -
-
-
-
-Test t0114 Dataset with a IRI named graph -
-
-
-
id
-
#t0114
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Basic use of creating a named graph using a BNode name
-
input
-
-toRdf/0114-in.jsonld -
-
expect
-
-toRdf/0114-out.nq -
-
-
-
-Test t0115 Dataset with a default and two named graphs -
-
-
-
id
-
#t0115
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Dataset with a default and two named graphs (IRI and BNode)
-
input
-
-toRdf/0115-in.jsonld -
-
expect
-
-toRdf/0115-out.nq -
-
-
-
-Test t0116 Dataset from node with embedded named graph -
-
-
-
id
-
#t0116
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Embedding @graph in a node creates a named graph
-
input
-
-toRdf/0116-in.jsonld -
-
expect
-
-toRdf/0116-out.nq -
-
-
-
-Test t0117 Dataset from node with embedded named graph (bnode) -
-
-
-
id
-
#t0117
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Embedding @graph in a node creates a named graph. Graph name is created if there is no subject
-
input
-
-toRdf/0117-in.jsonld -
-
expect
-
-toRdf/0117-out.nq -
-
-
-
-Test t0118 produce generalized RDF flag -
-
-
-
id
-
#t0118
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Triples with blank node predicates are not dropped if the produce generalized RDF flag is true.
-
input
-
-toRdf/0118-in.jsonld -
-
expect
-
-toRdf/0118-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
produceGeneralizedRdf
-
true
-
-
-
Requires
-
GeneralizedRdf
-
-
-
-Test t0119 Blank nodes with reverse properties -
-
-
-
id
-
#t0119
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Proper (re-)labeling of blank nodes if used with reverse properties.
-
input
-
-toRdf/0119-in.jsonld -
-
expect
-
-toRdf/0119-out.nq -
-
-
-
-Test t0120 IRI Resolution (0) -
-
-
-
id
-
#t0120
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0120-in.jsonld -
-
expect
-
-toRdf/0120-out.nq -
-
-
-
-Test t0121 IRI Resolution (1) -
-
-
-
id
-
#t0121
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0121-in.jsonld -
-
expect
-
-toRdf/0121-out.nq -
-
-
-
-Test t0122 IRI Resolution (2) -
-
-
-
id
-
#t0122
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0122-in.jsonld -
-
expect
-
-toRdf/0122-out.nq -
-
-
-
-Test t0123 IRI Resolution (3) -
-
-
-
id
-
#t0123
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0123-in.jsonld -
-
expect
-
-toRdf/0123-out.nq -
-
-
-
-Test t0124 IRI Resolution (4) -
-
-
-
id
-
#t0124
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0124-in.jsonld -
-
expect
-
-toRdf/0124-out.nq -
-
-
-
-Test t0125 IRI Resolution (5) -
-
-
-
id
-
#t0125
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0125-in.jsonld -
-
expect
-
-toRdf/0125-out.nq -
-
-
-
-Test t0126 IRI Resolution (6) -
-
-
-
id
-
#t0126
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0126-in.jsonld -
-
expect
-
-toRdf/0126-out.nq -
-
-
-
-Test t0127 IRI Resolution (7) -
-
-
-
id
-
#t0127
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0127-in.jsonld -
-
expect
-
-toRdf/0127-out.nq -
-
-
-
-Test t0128 IRI Resolution (8) -
-
-
-
id
-
#t0128
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0128-in.jsonld -
-
expect
-
-toRdf/0128-out.nq -
-
-
-
-Test t0129 IRI Resolution (9) -
-
-
-
id
-
#t0129
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0129-in.jsonld -
-
expect
-
-toRdf/0129-out.nq -
-
-
-
-Test t0130 IRI Resolution (10) -
-
-
-
id
-
#t0130
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0130-in.jsonld -
-
expect
-
-toRdf/0130-out.nq -
-
-
-
-Test t0131 IRI Resolution (11) -
-
-
-
id
-
#t0131
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0131-in.jsonld -
-
expect
-
-toRdf/0131-out.nq -
-
-
-
-Test t0132 IRI Resolution (12) -
-
-
-
id
-
#t0132
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
IRI resolution according to RFC3986.
-
input
-
-toRdf/0132-in.jsonld -
-
expect
-
-toRdf/0132-out.nq -
-
-
-
-Test t0133 Reverse term with property based indexed container -
-
-
-
id
-
#t0133
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding a reverse term using @container: @index and @index set to a property (from expand#t0131)
-
input
-
-toRdf/0133-in.jsonld -
-
expect
-
-toRdf/0133-out.nq -
-
-
-
-Test tc001 adding new term -
-
-
-
id
-
#tc001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-toRdf/c001-in.jsonld -
-
expect
-
-toRdf/c001-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc002 overriding a term -
-
-
-
id
-
#tc002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-toRdf/c002-in.jsonld -
-
expect
-
-toRdf/c002-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc003 property and value with different terms mapping to the same expanded property -
-
-
-
id
-
#tc003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-toRdf/c003-in.jsonld -
-
expect
-
-toRdf/c003-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc004 deep @context affects nested nodes -
-
-
-
id
-
#tc004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-toRdf/c004-in.jsonld -
-
expect
-
-toRdf/c004-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc005 scoped context layers on intemediate contexts -
-
-
-
id
-
#tc005
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using a scoped context uses term scope for selecting proper term
-
input
-
-toRdf/c005-in.jsonld -
-
expect
-
-toRdf/c005-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc006 adding new term -
-
-
-
id
-
#tc006
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c006-in.jsonld -
-
expect
-
-toRdf/c006-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc007 overriding a term -
-
-
-
id
-
#tc007
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c007-in.jsonld -
-
expect
-
-toRdf/c007-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc008 alias of @type -
-
-
-
id
-
#tc008
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c008-in.jsonld -
-
expect
-
-toRdf/c008-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc009 deep @type-scoped @context does NOT affect nested nodes -
-
-
-
id
-
#tc009
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c009-in.jsonld -
-
expect
-
-toRdf/c009-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc010 scoped context layers on intemediate contexts -
-
-
-
id
-
#tc010
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c010-in.jsonld -
-
expect
-
-toRdf/c010-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc011 orders @type terms when applying scoped contexts -
-
-
-
id
-
#tc011
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c011-in.jsonld -
-
expect
-
-toRdf/c011-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc012 deep property-term scoped @context in @type-scoped @context affects nested nodes -
-
-
-
id
-
#tc012
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c012-in.jsonld -
-
expect
-
-toRdf/c012-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc013 type maps use scoped context from type index and not scoped context from containing -
-
-
-
id
-
#tc013
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/c013-in.jsonld -
-
expect
-
-toRdf/c013-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc014 type-scoped context nullification -
-
-
-
id
-
#tc014
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped context nullification
-
input
-
-toRdf/c014-in.jsonld -
-
expect
-
-toRdf/c014-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc015 type-scoped base -
-
-
-
id
-
#tc015
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped base
-
input
-
-toRdf/c015-in.jsonld -
-
expect
-
-toRdf/c015-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc016 type-scoped vocab -
-
-
-
id
-
#tc016
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped vocab
-
input
-
-toRdf/c016-in.jsonld -
-
expect
-
-toRdf/c016-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc017 multiple type-scoped contexts are properly reverted -
-
-
-
id
-
#tc017
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
multiple type-scoped contexts are property reverted
-
input
-
-toRdf/c017-in.jsonld -
-
expect
-
-toRdf/c017-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc018 multiple type-scoped types resolved against previous context -
-
-
-
id
-
#tc018
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
multiple type-scoped types resolved against previous context
-
input
-
-toRdf/c018-in.jsonld -
-
expect
-
-toRdf/c018-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc019 type-scoped context with multiple property scoped terms -
-
-
-
id
-
#tc019
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped context with multiple property scoped terms
-
input
-
-toRdf/c019-in.jsonld -
-
expect
-
-toRdf/c019-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc020 type-scoped value -
-
-
-
id
-
#tc020
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped value
-
input
-
-toRdf/c020-in.jsonld -
-
expect
-
-toRdf/c020-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc021 type-scoped value mix -
-
-
-
id
-
#tc021
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped value mix
-
input
-
-toRdf/c021-in.jsonld -
-
expect
-
-toRdf/c021-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc022 type-scoped property-scoped contexts including @type:@vocab -
-
-
-
id
-
#tc022
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped property-scoped contexts including @type:@vocab
-
input
-
-toRdf/c022-in.jsonld -
-
expect
-
-toRdf/c022-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc023 composed type-scoped property-scoped contexts including @type:@vocab -
-
-
-
id
-
#tc023
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
composed type-scoped property-scoped contexts including @type:@vocab
-
input
-
-toRdf/c023-in.jsonld -
-
expect
-
-toRdf/c023-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc024 type-scoped + property-scoped + values evaluates against previous context -
-
-
-
id
-
#tc024
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped + property-scoped + values evaluates against previous context
-
input
-
-toRdf/c024-in.jsonld -
-
expect
-
-toRdf/c024-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc025 type-scoped + graph container -
-
-
-
id
-
#tc025
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped + graph container
-
input
-
-toRdf/c025-in.jsonld -
-
expect
-
-toRdf/c025-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc026 @propagate: true on type-scoped context -
-
-
-
id
-
#tc026
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped context with @propagate: true survive node-objects
-
input
-
-toRdf/c026-in.jsonld -
-
expect
-
-toRdf/c026-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc027 @propagate: false on property-scoped context -
-
-
-
id
-
#tc027
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
property-scoped context with @propagate: false do not survive node-objects
-
input
-
-toRdf/c027-in.jsonld -
-
expect
-
-toRdf/c027-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc028 @propagate: false on embedded context -
-
-
-
id
-
#tc028
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
embedded context with @propagate: false do not survive node-objects
-
input
-
-toRdf/c028-in.jsonld -
-
expect
-
-toRdf/c028-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc029 @propagate is invalid in 1.0 -
-
-
-
id
-
#tc029
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@propagate is invalid in 1.0
-
input
-
-toRdf/c029-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test tc030 @propagate must be boolean valued -
-
-
-
id
-
#tc030
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@propagate must be boolean valued
-
input
-
-toRdf/c030-in.jsonld -
-
expect
-
-invalid @propagate value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc031 @context resolutions respects relative URLs. -
-
-
-
id
-
#tc031
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
URL resolution follows RFC3986
-
input
-
-toRdf/c031-in.jsonld -
-
expect
-
-toRdf/c031-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc032 Unused embedded context with error. -
-
-
-
id
-
#tc032
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
An embedded context which is never used should still be checked.
-
input
-
-toRdf/c032-in.jsonld -
-
expect
-
-invalid scoped context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc033 Unused context with an embedded context error. -
-
-
-
id
-
#tc033
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
An unused context with an embedded context should still be checked.
-
input
-
-toRdf/c033-in.jsonld -
-
expect
-
-invalid scoped context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc034 Remote scoped context. -
-
-
-
id
-
#tc034
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Scoped contexts may be externally loaded.
-
input
-
-toRdf/c034-in.jsonld -
-
expect
-
-toRdf/c034-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc035 Term scoping with embedded contexts. -
-
-
-
id
-
#tc035
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
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 -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc036 Expansion with empty property-scoped context. -
-
-
-
id
-
#tc036
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
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 -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc037 property-scoped contexts which are alias of @nest -
-
-
-
id
-
#tc037
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Nesting terms may have property-scoped contexts defined.
-
input
-
-toRdf/c037-in.jsonld -
-
expect
-
-toRdf/c037-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tc038 Bibframe example (poor-mans inferrence) -
-
-
-
id
-
#tc038
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Nesting terms may have property-scoped contexts defined.
-
input
-
-toRdf/c038-in.jsonld -
-
expect
-
-toRdf/c038-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi01 Expand string using default and term directions -
-
-
-
id
-
#tdi01
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Strings are coerced to have @direction based on default and term direction.
-
input
-
-toRdf/di01-in.jsonld -
-
expect
-
-toRdf/di01-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi02 Expand string using default and term directions and languages -
-
-
-
id
-
#tdi02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Strings are coerced to have @direction based on default and term direction.
-
input
-
-toRdf/di02-in.jsonld -
-
expect
-
-toRdf/di02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi03 expand list values with @direction -
-
-
-
id
-
#tdi03
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List values where the term has @direction are used in expansion.
-
input
-
-toRdf/di03-in.jsonld -
-
expect
-
-toRdf/di03-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi04 simple language map with term direction -
-
-
-
id
-
#tdi04
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-toRdf/di04-in.jsonld -
-
expect
-
-toRdf/di04-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi05 simple language mapwith overriding term direction -
-
-
-
id
-
#tdi05
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-toRdf/di05-in.jsonld -
-
expect
-
-toRdf/di05-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi06 simple language mapwith overriding null direction -
-
-
-
id
-
#tdi06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-toRdf/di06-in.jsonld -
-
expect
-
-toRdf/di06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi07 simple language map with mismatching term direction -
-
-
-
id
-
#tdi07
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Term selection with language maps and @direction.
-
input
-
-toRdf/di07-in.jsonld -
-
expect
-
-toRdf/di07-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi08 @direction must be one of ltr or rtl -
-
-
-
id
-
#tdi08
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Generate an error if @direction has illegal value.
-
input
-
-toRdf/di08-in.jsonld -
-
expect
-
-invalid base direction -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tdi09 rdfDirection: i18n-datatype with direction and no language -
-
-
-
id
-
#tdi09
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Generates i18n datatype from literal with direction with option.
-
input
-
-toRdf/di09-in.jsonld -
-
expect
-
-toRdf/di09-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
i18n-datatype
-
normative
-
false
-
-
-
Requires
-
I18nDatatype
-
-
-
-Test tdi10 rdfDirection: i18n-datatype with direction and language -
-
-
-
id
-
#tdi10
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Generates i18n datatype from literal with direction with option.
-
input
-
-toRdf/di10-in.jsonld -
-
expect
-
-toRdf/di10-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
i18n-datatype
-
normative
-
false
-
-
-
Requires
-
I18nDatatype
-
-
-
-Test tdi11 rdfDirection: compound-literal with direction and no language -
-
-
-
id
-
#tdi11
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Generates i18n datatype from literal with direction with option.
-
input
-
-toRdf/di11-in.jsonld -
-
expect
-
-toRdf/di11-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
compound-literal
-
normative
-
false
-
-
-
Requires
-
CompoundLiteral
-
-
-
-Test tdi12 rdfDirection: compound-literal with direction and language -
-
-
-
id
-
#tdi12
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Generates compound literal from literal with direction with option.
-
input
-
-toRdf/di12-in.jsonld -
-
expect
-
-toRdf/di12-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
rdfDirection
-
compound-literal
-
normative
-
false
-
-
-
Requires
-
CompoundLiteral
-
-
-
-Test te001 drop free-floating nodes -
-
-
-
id
-
#te001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Free-floating nodes do not generate RDF triples (from expand-0001)
-
input
-
-toRdf/e001-in.jsonld -
-
expect
-
-toRdf/e001-out.nq -
-
-
-
-Test te002 basic -
-
-
-
id
-
#te002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Basic RDF conversion (from expand-0002)
-
input
-
-toRdf/e002-in.jsonld -
-
expect
-
-toRdf/e002-out.nq -
-
-
-
-Test te003 drop null and unmapped properties -
-
-
-
id
-
#te003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Properties mapped to null or which are never mapped are dropped (from expand-0003)
-
input
-
-toRdf/e003-in.jsonld -
-
expect
-
-toRdf/e003-out.nq -
-
-
-
-Test te004 optimize @set, keep empty arrays -
-
-
-
id
-
#te004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0004
-
input
-
-toRdf/e004-in.jsonld -
-
expect
-
-toRdf/e004-out.nq -
-
-
-
-Test te005 do not expand aliased @id/@type -
-
-
-
id
-
#te005
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0005
-
input
-
-toRdf/e005-in.jsonld -
-
expect
-
-toRdf/e005-out.nq -
-
-
-
-Test te006 alias keywords -
-
-
-
id
-
#te006
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0006
-
input
-
-toRdf/e006-in.jsonld -
-
expect
-
-toRdf/e006-out.nq -
-
-
-
-Test te007 date type-coercion -
-
-
-
id
-
#te007
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Type-coerced dates generate typed literals (from expand-0007)
-
input
-
-toRdf/e007-in.jsonld -
-
expect
-
-toRdf/e007-out.nq -
-
-
-
-Test te008 @value with @language -
-
-
-
id
-
#te008
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0008
-
input
-
-toRdf/e008-in.jsonld -
-
expect
-
-toRdf/e008-out.nq -
-
-
-
-Test te009 @graph with terms -
-
-
-
id
-
#te009
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0009
-
input
-
-toRdf/e009-in.jsonld -
-
expect
-
-toRdf/e009-out.nq -
-
-
-
-Test te010 native types -
-
-
-
id
-
#te010
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Native types generate typed literals (from expand-0010)
-
input
-
-toRdf/e010-in.jsonld -
-
expect
-
-toRdf/e010-out.nq -
-
-
-
-Test te011 coerced @id -
-
-
-
id
-
#te011
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0011
-
input
-
-toRdf/e011-in.jsonld -
-
expect
-
-toRdf/e011-out.nq -
-
-
-
-Test te012 @graph with embed -
-
-
-
id
-
#te012
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0012
-
input
-
-toRdf/e012-in.jsonld -
-
expect
-
-toRdf/e012-out.nq -
-
-
-
-Test te013 expand already expanded -
-
-
-
id
-
#te013
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0013
-
input
-
-toRdf/e013-in.jsonld -
-
expect
-
-toRdf/e013-out.nq -
-
-
-
-Test te014 @set of @value objects with keyword aliases -
-
-
-
id
-
#te014
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0014
-
input
-
-toRdf/e014-in.jsonld -
-
expect
-
-toRdf/e014-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te015 collapse set of sets, keep empty lists -
-
-
-
id
-
#te015
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0015
-
input
-
-toRdf/e015-in.jsonld -
-
expect
-
-toRdf/e015-out.nq -
-
-
-
-Test te016 context reset -
-
-
-
id
-
#te016
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0016
-
input
-
-toRdf/e016-in.jsonld -
-
expect
-
-toRdf/e016-out.nq -
-
-
-
-Test te017 @graph and @id aliased -
-
-
-
id
-
#te017
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0017
-
input
-
-toRdf/e017-in.jsonld -
-
expect
-
-toRdf/e017-out.nq -
-
-
-
-Test te018 override default @language -
-
-
-
id
-
#te018
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0018
-
input
-
-toRdf/e018-in.jsonld -
-
expect
-
-toRdf/e018-out.nq -
-
-
-
-Test te019 remove @value = null -
-
-
-
id
-
#te019
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0019
-
input
-
-toRdf/e019-in.jsonld -
-
expect
-
-toRdf/e019-out.nq -
-
-
-
-Test te020 do not remove @graph if not at top-level -
-
-
-
id
-
#te020
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Embedded @graph without @id creates BNode-labeled named graph (from expand-0020)
-
input
-
-toRdf/e020-in.jsonld -
-
expect
-
-toRdf/e020-out.nq -
-
-
-
-Test te021 do not remove @graph at top-level if not only property -
-
-
-
id
-
#te021
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0021
-
input
-
-toRdf/e021-in.jsonld -
-
expect
-
-toRdf/e021-out.nq -
-
-
-
-Test te022 expand value with default language -
-
-
-
id
-
#te022
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0022
-
input
-
-toRdf/e022-in.jsonld -
-
expect
-
-toRdf/e022-out.nq -
-
-
-
-Test te023 Lists and sets of properties with list/set coercion -
-
-
-
id
-
#te023
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0023
-
input
-
-toRdf/e023-in.jsonld -
-
expect
-
-toRdf/e023-out.nq -
-
-
-
-Test te024 Multiple contexts -
-
-
-
id
-
#te024
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0024
-
input
-
-toRdf/e024-in.jsonld -
-
expect
-
-toRdf/e024-out.nq -
-
-
-
-Test te025 Problematic IRI expansion tests -
-
-
-
id
-
#te025
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0025
-
input
-
-toRdf/e025-in.jsonld -
-
expect
-
-toRdf/e025-out.nq -
-
-
-
-Test te026 Expanding term mapping to @type uses @type syntax -
-
-
-
id
-
#te026
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0026
-
input
-
-toRdf/e026-in.jsonld -
-
expect
-
-toRdf/e026-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te027 Keep duplicate values in @list and @set -
-
-
-
id
-
#te027
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0027
-
input
-
-toRdf/e027-in.jsonld -
-
expect
-
-toRdf/e027-out.nq -
-
-
-
-Test te028 Use @vocab in properties and @type but not in @id -
-
-
-
id
-
#te028
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0028
-
input
-
-toRdf/e028-in.jsonld -
-
expect
-
-toRdf/e028-out.nq -
-
-
-
-Test te029 Relative IRIs -
-
-
-
id
-
#te029
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0029
-
input
-
-toRdf/e029-in.jsonld -
-
expect
-
-toRdf/e029-out.nq -
-
-
-
-Test te030 Language maps -
-
-
-
id
-
#te030
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0030
-
input
-
-toRdf/e030-in.jsonld -
-
expect
-
-toRdf/e030-out.nq -
-
-
-
-Test te031 type-coercion of native types -
-
-
-
id
-
#te031
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0031
-
input
-
-toRdf/e031-in.jsonld -
-
expect
-
-toRdf/e031-out.nq -
-
-
-
-Test te032 Mapping a term to null decouples it from @vocab -
-
-
-
id
-
#te032
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0032
-
input
-
-toRdf/e032-in.jsonld -
-
expect
-
-toRdf/e032-out.nq -
-
-
-
-Test te033 Using @vocab with with type-coercion -
-
-
-
id
-
#te033
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0033
-
input
-
-toRdf/e033-in.jsonld -
-
expect
-
-toRdf/e033-out.nq -
-
-
-
-Test te034 Multiple properties expanding to the same IRI -
-
-
-
id
-
#te034
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0034
-
input
-
-toRdf/e034-in.jsonld -
-
expect
-
-toRdf/e034-out.nq -
-
-
-
-Test te035 Language maps with @vocab, default language, and colliding property -
-
-
-
id
-
#te035
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0035
-
input
-
-toRdf/e035-in.jsonld -
-
expect
-
-toRdf/e035-out.nq -
-
-
-
-Test te036 Expanding @index -
-
-
-
id
-
#te036
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0036
-
input
-
-toRdf/e036-in.jsonld -
-
expect
-
-toRdf/e036-out.nq -
-
-
-
-Test te037 Expanding @reverse -
-
-
-
id
-
#te037
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0037
-
input
-
-toRdf/e037-in.jsonld -
-
expect
-
-toRdf/e037-out.nq -
-
-
-
-Test te038 Drop blank node predicates by default -
-
-
-
id
-
#te038
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Triples with blank node predicates are dropped by default (from expand-0038).
-
input
-
-toRdf/e038-in.jsonld -
-
expect
-
-toRdf/e038-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te039 Using terms in a reverse-maps -
-
-
-
id
-
#te039
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0039
-
input
-
-toRdf/e039-in.jsonld -
-
expect
-
-toRdf/e039-out.nq -
-
-
-
-Test te040 language and index expansion on non-objects -
-
-
-
id
-
#te040
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0040
-
input
-
-toRdf/e040-in.jsonld -
-
expect
-
-toRdf/e040-out.nq -
-
-
-
-Test te041 Reset the default language -
-
-
-
id
-
#te041
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0041
-
input
-
-toRdf/e041-in.jsonld -
-
expect
-
-toRdf/e041-out.nq -
-
-
-
-Test te042 Expanding reverse properties -
-
-
-
id
-
#te042
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0042
-
input
-
-toRdf/e042-in.jsonld -
-
expect
-
-toRdf/e042-out.nq -
-
-
-
-Test te043 Using reverse properties inside a @reverse-container -
-
-
-
id
-
#te043
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0043
-
input
-
-toRdf/e043-in.jsonld -
-
expect
-
-toRdf/e043-out.nq -
-
-
-
-Test te044 Ensure index maps use language mapping -
-
-
-
id
-
#te044
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0044
-
input
-
-toRdf/e044-in.jsonld -
-
expect
-
-toRdf/e044-out.nq -
-
-
-
-Test te045 Top-level value objects are removed -
-
-
-
id
-
#te045
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0045
-
input
-
-toRdf/e045-in.jsonld -
-
expect
-
-toRdf/e045-out.nq -
-
-
-
-Test te046 Free-floating nodes are removed -
-
-
-
id
-
#te046
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0046
-
input
-
-toRdf/e046-in.jsonld -
-
expect
-
-toRdf/e046-out.nq -
-
-
-
-Test te047 Remove free-floating set values and lists -
-
-
-
id
-
#te047
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0047
-
input
-
-toRdf/e047-in.jsonld -
-
expect
-
-toRdf/e047-out.nq -
-
-
-
-Test te048 Terms are ignored in @id -
-
-
-
id
-
#te048
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0048
-
input
-
-toRdf/e048-in.jsonld -
-
expect
-
-toRdf/e048-out.nq -
-
-
-
-Test te049 Using strings as value of a reverse property -
-
-
-
id
-
#te049
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0049
-
input
-
-toRdf/e049-in.jsonld -
-
expect
-
-toRdf/e049-out.nq -
-
-
-
-Test te050 Term definitions with prefix separate from prefix definitions -
-
-
-
id
-
#te050
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0050
-
input
-
-toRdf/e050-in.jsonld -
-
expect
-
-toRdf/e050-out.nq -
-
-
-
-Test te051 Expansion of keyword aliases in term definitions -
-
-
-
id
-
#te051
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0051
-
input
-
-toRdf/e051-in.jsonld -
-
expect
-
-toRdf/e051-out.nq -
-
-
-
-Test te052 @vocab-relative IRIs in term definitions -
-
-
-
id
-
#te052
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0052
-
input
-
-toRdf/e052-in.jsonld -
-
expect
-
-toRdf/e052-out.nq -
-
-
-
-Test te053 Expand absolute IRI with @type: @vocab -
-
-
-
id
-
#te053
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0053
-
input
-
-toRdf/e053-in.jsonld -
-
expect
-
-toRdf/e053-out.nq -
-
-
-
-Test te054 Expand term with @type: @vocab -
-
-
-
id
-
#te054
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0054
-
input
-
-toRdf/e054-in.jsonld -
-
expect
-
-toRdf/e054-out.nq -
-
-
-
-Test te055 Expand @vocab-relative term with @type: @vocab -
-
-
-
id
-
#te055
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0055
-
input
-
-toRdf/e055-in.jsonld -
-
expect
-
-toRdf/e055-out.nq -
-
-
-
-Test te056 Use terms with @type: @vocab but not with @type: @id -
-
-
-
id
-
#te056
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0056
-
input
-
-toRdf/e056-in.jsonld -
-
expect
-
-toRdf/e056-out.nq -
-
-
-
-Test te057 Expand relative IRI with @type: @vocab -
-
-
-
id
-
#te057
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0057
-
input
-
-toRdf/e057-in.jsonld -
-
expect
-
-toRdf/e057-out.nq -
-
-
-
-Test te058 Expand compact IRI with @type: @vocab -
-
-
-
id
-
#te058
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0058
-
input
-
-toRdf/e058-in.jsonld -
-
expect
-
-toRdf/e058-out.nq -
-
-
-
-Test te059 Reset @vocab by setting it to null -
-
-
-
id
-
#te059
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0059
-
input
-
-toRdf/e059-in.jsonld -
-
expect
-
-toRdf/e059-out.nq -
-
-
-
-Test te060 Overwrite document base with @base and reset it again -
-
-
-
id
-
#te060
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0060
-
input
-
-toRdf/e060-in.jsonld -
-
expect
-
-toRdf/e060-out.nq -
-
-
-
-Test te061 Coercing native types to arbitrary datatypes -
-
-
-
id
-
#te061
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0061
-
input
-
-toRdf/e061-in.jsonld -
-
expect
-
-toRdf/e061-out.nq -
-
-
-
-Test te062 Various relative IRIs with with @base -
-
-
-
id
-
#te062
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0062
-
input
-
-toRdf/e062-in.jsonld -
-
expect
-
-toRdf/e062-out.nq -
-
-
-
-Test te063 Expand a reverse property with an index-container -
-
-
-
id
-
#te063
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0063
-
input
-
-toRdf/e063-in.jsonld -
-
expect
-
-toRdf/e063-out.nq -
-
-
-
-Test te064 Expand reverse property whose values are unlabeled blank nodes -
-
-
-
id
-
#te064
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0064
-
input
-
-toRdf/e064-in.jsonld -
-
expect
-
-toRdf/e064-out.nq -
-
-
-
-Test te065 Keys that are not mapped to an IRI in a reverse-map are dropped -
-
-
-
id
-
#te065
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0065
-
input
-
-toRdf/e065-in.jsonld -
-
expect
-
-toRdf/e065-out.nq -
-
-
-
-Test te066 Use @vocab to expand keys in reverse-maps -
-
-
-
id
-
#te066
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0066
-
input
-
-toRdf/e066-in.jsonld -
-
expect
-
-toRdf/e066-out.nq -
-
-
-
-Test te067 prefix:://sufffix not a compact IRI -
-
-
-
id
-
#te067
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0067
-
input
-
-toRdf/e067-in.jsonld -
-
expect
-
-toRdf/e067-out.nq -
-
-
-
-Test te068 _::sufffix not a compact IRI -
-
-
-
id
-
#te068
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0068
-
input
-
-toRdf/e068-in.jsonld -
-
expect
-
-toRdf/e068-out.nq -
-
-
-
-Test te069 Compact IRI as term with type mapping -
-
-
-
id
-
#te069
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0069
-
input
-
-toRdf/e069-in.jsonld -
-
expect
-
-toRdf/e069-out.nq -
-
-
-
-Test te070 Redefine compact IRI with itself -
-
-
-
id
-
#te070
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0070
-
input
-
-toRdf/e070-in.jsonld -
-
expect
-
-toRdf/e070-out.nq -
-
-
-
-Test te071 Redefine terms looking like compact IRIs -
-
-
-
id
-
#te071
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0071
-
input
-
-toRdf/e071-in.jsonld -
-
expect
-
-toRdf/e071-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te072 Redefine term using @vocab, not itself -
-
-
-
id
-
#te072
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
RDF version of expand-0072
-
input
-
-toRdf/e072-in.jsonld -
-
expect
-
-toRdf/e072-out.nq -
-
-
-
-Test te073 @context not first property -
-
-
-
id
-
#te073
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
-
input
-
-toRdf/e073-in.jsonld -
-
expect
-
-toRdf/e073-out.nq -
-
-
-
-Test te074 @id not first property -
-
-
-
id
-
#te074
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
-
input
-
-toRdf/e074-in.jsonld -
-
expect
-
-toRdf/e074-out.nq -
-
-
-
-Test te075 @vocab as blank node identifier -
-
-
-
id
-
#te075
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use @vocab to map all properties to blank node identifiers
-
input
-
-toRdf/e075-in.jsonld -
-
expect
-
-toRdf/e075-out.nq -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
produceGeneralizedRdf
-
true
-
-
-
Requires
-
GeneralizedRdf
-
-
-
-Test te076 base option overrides document location -
-
-
-
id
-
#te076
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of the base option overrides the document location
-
input
-
-toRdf/e076-in.jsonld -
-
expect
-
-toRdf/e076-out.nq -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test te077 expandContext option -
-
-
-
id
-
#te077
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of the expandContext option to expand the input document
-
input
-
-toRdf/e077-in.jsonld -
-
expect
-
-toRdf/e077-out.nq -
-
Options
-
-
-
expandContext
-
toRdf/e077-context.jsonld
-
-
-
-
-
-Test te078 multiple reverse properties -
-
-
-
id
-
#te078
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of multiple reverse properties
-
input
-
-toRdf/e078-in.jsonld -
-
expect
-
-toRdf/e078-out.nq -
-
-
-
-Test te079 expand @graph container -
-
-
-
id
-
#te079
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers
-
input
-
-toRdf/e079-in.jsonld -
-
expect
-
-toRdf/e079-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te080 expand [@graph, @set] container -
-
-
-
id
-
#te080
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of [@graph, @set] containers
-
input
-
-toRdf/e080-in.jsonld -
-
expect
-
-toRdf/e080-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te081 Creates an @graph container if value is a graph -
-
-
-
id
-
#te081
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Don't double-expand an already expanded graph
-
input
-
-toRdf/e081-in.jsonld -
-
expect
-
-toRdf/e081-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te082 expand [@graph, @index] container -
-
-
-
id
-
#te082
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @index
-
input
-
-toRdf/e082-in.jsonld -
-
expect
-
-toRdf/e082-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te083 expand [@graph, @index, @set] container -
-
-
-
id
-
#te083
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @index and @set
-
input
-
-toRdf/e083-in.jsonld -
-
expect
-
-toRdf/e083-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te084 Do not expand [@graph, @index] container if value is a graph -
-
-
-
id
-
#te084
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e084-in.jsonld -
-
expect
-
-toRdf/e084-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te085 expand [@graph, @id] container -
-
-
-
id
-
#te085
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @id
-
input
-
-toRdf/e085-in.jsonld -
-
expect
-
-toRdf/e085-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te086 expand [@graph, @id, @set] container -
-
-
-
id
-
#te086
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @id and @set
-
input
-
-toRdf/e086-in.jsonld -
-
expect
-
-toRdf/e086-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te087 Do not expand [@graph, @id] container if value is a graph -
-
-
-
id
-
#te087
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e087-in.jsonld -
-
expect
-
-toRdf/e087-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te088 Do not expand native values to IRIs -
-
-
-
id
-
#te088
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Value Expansion does not expand native values, such as booleans, to a node object
-
input
-
-toRdf/e088-in.jsonld -
-
expect
-
-toRdf/e088-out.nq -
-
-
-
-Test te089 empty @base applied to the base option -
-
-
-
id
-
#te089
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of an empty @base is applied to the base option
-
input
-
-toRdf/e089-in.jsonld -
-
expect
-
-toRdf/e089-out.nq -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test te090 relative @base overrides base option and document location -
-
-
-
id
-
#te090
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of a relative @base overrides base option and document location
-
input
-
-toRdf/e090-in.jsonld -
-
expect
-
-toRdf/e090-out.nq -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test te091 relative and absolute @base overrides base option and document location -
-
-
-
id
-
#te091
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of a relative and absolute @base overrides base option and document location
-
input
-
-toRdf/e091-in.jsonld -
-
expect
-
-toRdf/e091-out.nq -
-
Options
-
-
-
base
-
http://example/base/
-
-
-
-
-
-Test te092 Various relative IRIs as properties with with @vocab: '' -
-
-
-
id
-
#te092
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-toRdf/e092-in.jsonld -
-
expect
-
-toRdf/e092-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te093 expand @graph container (multiple objects) -
-
-
-
id
-
#te093
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers
-
input
-
-toRdf/e093-in.jsonld -
-
expect
-
-toRdf/e093-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te094 expand [@graph, @set] container (multiple objects) -
-
-
-
id
-
#te094
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of [@graph, @set] containers
-
input
-
-toRdf/e094-in.jsonld -
-
expect
-
-toRdf/e094-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te095 Creates an @graph container if value is a graph (multiple objects) -
-
-
-
id
-
#te095
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Don't double-expand an already expanded graph
-
input
-
-toRdf/e095-in.jsonld -
-
expect
-
-toRdf/e095-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te096 expand [@graph, @index] container (multiple indexed objects) -
-
-
-
id
-
#te096
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @index
-
input
-
-toRdf/e096-in.jsonld -
-
expect
-
-toRdf/e096-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te097 expand [@graph, @index, @set] container (multiple objects) -
-
-
-
id
-
#te097
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @index and @set
-
input
-
-toRdf/e097-in.jsonld -
-
expect
-
-toRdf/e097-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te098 Do not expand [@graph, @index] container if value is a graph (multiple objects) -
-
-
-
id
-
#te098
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e098-in.jsonld -
-
expect
-
-toRdf/e098-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te099 expand [@graph, @id] container (multiple objects) -
-
-
-
id
-
#te099
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @id
-
input
-
-toRdf/e099-in.jsonld -
-
expect
-
-toRdf/e099-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te100 expand [@graph, @id, @set] container (multiple objects) -
-
-
-
id
-
#te100
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @id and @set
-
input
-
-toRdf/e100-in.jsonld -
-
expect
-
-toRdf/e100-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te101 Do not expand [@graph, @id] container if value is a graph (multiple objects) -
-
-
-
id
-
#te101
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e101-in.jsonld -
-
expect
-
-toRdf/e101-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te102 Expand @graph container if value is a graph (multiple objects) -
-
-
-
id
-
#te102
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e102-in.jsonld -
-
expect
-
-toRdf/e102-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te103 Expand @graph container if value is a graph (multiple graphs) -
-
-
-
id
-
#te103
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e103-in.jsonld -
-
expect
-
-toRdf/e103-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te104 Creates an @graph container if value is a graph (mixed graph and object) -
-
-
-
id
-
#te104
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Don't double-expand an already expanded graph
-
input
-
-toRdf/e104-in.jsonld -
-
expect
-
-toRdf/e104-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te105 Do not expand [@graph, @index] container if value is a graph (mixed graph and object) -
-
-
-
id
-
#te105
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e105-in.jsonld -
-
expect
-
-toRdf/e105-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te106 Do not expand [@graph, @id] container if value is a graph (mixed graph and object) -
-
-
-
id
-
#te106
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Does not create a new graph object if indexed value is already a graph object
-
input
-
-toRdf/e106-in.jsonld -
-
expect
-
-toRdf/e106-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te107 expand [@graph, @index] container (indexes with multiple objects) -
-
-
-
id
-
#te107
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @index
-
input
-
-toRdf/e107-in.jsonld -
-
expect
-
-toRdf/e107-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te108 expand [@graph, @id] container (multiple ids and objects) -
-
-
-
id
-
#te108
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Use of @graph containers with @id
-
input
-
-toRdf/e108-in.jsonld -
-
expect
-
-toRdf/e108-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te109 IRI expansion of fragments including ':' -
-
-
-
id
-
#te109
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
-
input
-
-toRdf/e109-in.jsonld -
-
expect
-
-toRdf/e109-out.nq -
-
-
-
-Test te110 Various relative IRIs as properties with with relative @vocab -
-
-
-
id
-
#te110
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-toRdf/e110-in.jsonld -
-
expect
-
-toRdf/e110-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te111 Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base -
-
-
-
id
-
#te111
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-toRdf/e111-in.jsonld -
-
expect
-
-toRdf/e111-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te112 Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base -
-
-
-
id
-
#te112
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Pathological relative property IRIs
-
input
-
-toRdf/e112-in.jsonld -
-
expect
-
-toRdf/e112-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te113 context with JavaScript Object property names -
-
-
-
id
-
#te113
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expand with context including JavaScript Object property names
-
input
-
-toRdf/e113-in.jsonld -
-
expect
-
-toRdf/e113-out.nq -
-
-
-
-Test te114 Expansion allows multiple properties expanding to @type -
-
-
-
id
-
#te114
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
An exception for the colliding keywords error is made for @type
-
input
-
-toRdf/e114-in.jsonld -
-
expect
-
-toRdf/e114-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te115 Verifies that relative IRIs as properties with @vocab: '' in 1.0 generate an error -
-
-
-
id
-
#te115
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Pathological relative property IRIs in 1.0
-
input
-
-toRdf/e115-in.jsonld -
-
expect
-
-invalid vocab mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te116 Verifies that relative IRIs as properties with relative @vocab in 1.0 generate an error -
-
-
-
id
-
#te116
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Pathological relative property IRIs in 1.0
-
input
-
-toRdf/e116-in.jsonld -
-
expect
-
-invalid vocab mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test te117 A term starting with a colon can expand to a different IRI -
-
-
-
id
-
#te117
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms may begin with a colon and not be treated as IRIs.
-
input
-
-toRdf/e117-in.jsonld -
-
expect
-
-toRdf/e117-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te118 Expanding a value staring with a colon does not treat that value as an IRI -
-
-
-
id
-
#te118
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms may begin with a colon and not be treated as IRIs.
-
input
-
-toRdf/e118-in.jsonld -
-
expect
-
-toRdf/e118-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te119 Ignore some terms with @, allow others. -
-
-
-
id
-
#te119
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
-
input
-
-toRdf/e119-in.jsonld -
-
expect
-
-toRdf/e119-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te120 Ignore some values of @id with @, allow others. -
-
-
-
id
-
#te120
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
-
input
-
-toRdf/e120-in.jsonld -
-
expect
-
-toRdf/e120-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te121 Ignore some values of @reverse with @, allow others. -
-
-
-
id
-
#te121
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
-
input
-
-toRdf/e121-in.jsonld -
-
expect
-
-toRdf/e121-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te122 Ignore some IRIs when that start with @ when expanding. -
-
-
-
id
-
#te122
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword.
-
input
-
-toRdf/e122-in.jsonld -
-
expect
-
-toRdf/e122-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te123 Value objects including invalid literal datatype IRIs are rejected -
-
-
-
id
-
#te123
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Processors MUST validate datatype IRIs.
-
input
-
-toRdf/e123-in.jsonld -
-
expect
-
-invalid typed value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te124 compact IRI as @vocab -
-
-
-
id
-
#te124
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that @vocab defined as a compact IRI expands properly
-
input
-
-toRdf/e124-in.jsonld -
-
expect
-
-toRdf/e124-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te125 term as @vocab -
-
-
-
id
-
#te125
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that @vocab defined as a term expands properly
-
input
-
-toRdf/e125-in.jsonld -
-
expect
-
-toRdf/e125-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te126 A scoped context may include itself recursively (direct) -
-
-
-
id
-
#te126
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
-
input
-
-toRdf/e126-in.jsonld -
-
expect
-
-toRdf/e126-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te127 A scoped context may include itself recursively (indirect) -
-
-
-
id
-
#te127
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
-
input
-
-toRdf/e127-in.jsonld -
-
expect
-
-toRdf/e127-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te128 Two scoped context may include a shared context -
-
-
-
id
-
#te128
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
-
input
-
-toRdf/e128-in.jsonld -
-
expect
-
-toRdf/e128-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te129 Base without trailing slash, without path -
-
-
-
id
-
#te129
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
-
input
-
-toRdf/e129-in.jsonld -
-
expect
-
-toRdf/e129-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test te130 Base without trailing slash, with path -
-
-
-
id
-
#te130
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
-
input
-
-toRdf/e130-in.jsonld -
-
expect
-
-toRdf/e130-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tec01 Invalid keyword in term definition -
-
-
-
id
-
#tec01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid term definition is found
-
input
-
-toRdf/ec01-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tec02 Term definition on @type with empty map -
-
-
-
id
-
#tec02
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised if @type is defined as a term with an empty map
-
input
-
-toRdf/ec02-in.jsonld -
-
expect
-
-keyword redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tem01 Invalid container mapping -
-
-
-
id
-
#tem01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid container mapping is found
-
input
-
-toRdf/em01-in.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten01 @nest MUST NOT have a string value -
-
-
-
id
-
#ten01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
container: @nest
-
input
-
-toRdf/en01-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten02 @nest MUST NOT have a boolen value -
-
-
-
id
-
#ten02
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Transparent Nesting
-
input
-
-toRdf/en02-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten03 @nest MUST NOT have a numeric value -
-
-
-
id
-
#ten03
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Transparent Nesting
-
input
-
-toRdf/en03-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten04 @nest MUST NOT have a value object value -
-
-
-
id
-
#ten04
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Transparent Nesting
-
input
-
-toRdf/en04-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten05 does not allow a keyword other than @nest for the value of @nest -
-
-
-
id
-
#ten05
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Transparent Nesting
-
input
-
-toRdf/en05-in.jsonld -
-
expect
-
-invalid @nest value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ten06 does not allow @nest with @reverse -
-
-
-
id
-
#ten06
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Transparent Nesting
-
input
-
-toRdf/en06-in.jsonld -
-
expect
-
-invalid reverse property -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1 -
-
-
-
id
-
#tep02
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
-
input
-
-toRdf/ep02-in.jsonld -
-
expect
-
-processing mode conflict -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tep03 @version must be 1.1 -
-
-
-
id
-
#tep03
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
If @version is specified, it must be 1.1
-
input
-
-toRdf/ep03-in.jsonld -
-
expect
-
-invalid @version value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter01 Keywords cannot be aliased to other keywords -
-
-
-
id
-
#ter01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
-
input
-
-toRdf/er01-in.jsonld -
-
expect
-
-keyword redefinition -
-
-
-
-Test ter02 A context may not include itself recursively (direct) -
-
-
-
id
-
#ter02
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing a context referencing itself
-
input
-
-toRdf/er02-in.jsonld -
-
expect
-
-recursive context inclusion -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter03 A context may not include itself recursively (indirect) -
-
-
-
id
-
#ter03
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
-
input
-
-toRdf/er03-in.jsonld -
-
expect
-
-recursive context inclusion -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter04 Error dereferencing a remote context -
-
-
-
id
-
#ter04
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context dereference results in an error
-
input
-
-toRdf/er04-in.jsonld -
-
expect
-
-loading remote context failed -
-
-
-
-Test ter05 Invalid remote context -
-
-
-
id
-
#ter05
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a remote context is not an object containing @context
-
input
-
-toRdf/er05-in.jsonld -
-
expect
-
-invalid remote context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter06 Invalid local context -
-
-
-
id
-
#ter06
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context is not a string or object
-
input
-
-toRdf/er06-in.jsonld -
-
expect
-
-invalid local context -
-
-
-
-Test ter07 Invalid base IRI -
-
-
-
id
-
#ter07
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @base
-
input
-
-toRdf/er07-in.jsonld -
-
expect
-
-invalid base IRI -
-
-
-
-Test ter08 Invalid vocab mapping -
-
-
-
id
-
#ter08
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
-
input
-
-toRdf/er08-in.jsonld -
-
expect
-
-invalid vocab mapping -
-
-
-
-Test ter09 Invalid default language -
-
-
-
id
-
#ter09
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @language
-
input
-
-toRdf/er09-in.jsonld -
-
expect
-
-invalid default language -
-
-
-
-Test ter10 Cyclic IRI mapping -
-
-
-
id
-
#ter10
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
-
input
-
-toRdf/er10-in.jsonld -
-
expect
-
-cyclic IRI mapping -
-
-
-
-Test ter11 Invalid term definition -
-
-
-
id
-
#ter11
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid term definition is found
-
input
-
-toRdf/er11-in.jsonld -
-
expect
-
-invalid term definition -
-
-
-
-Test ter12 Invalid type mapping (not a string) -
-
-
-
id
-
#ter12
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid type mapping is found
-
input
-
-toRdf/er12-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test ter13 Invalid type mapping (not absolute IRI) -
-
-
-
id
-
#ter13
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid type mapping is found
-
input
-
-toRdf/er13-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test ter14 Invalid reverse property (contains @id) -
-
-
-
id
-
#ter14
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid reverse property is found
-
input
-
-toRdf/er14-in.jsonld -
-
expect
-
-invalid reverse property -
-
-
-
-Test ter15 Invalid IRI mapping (@reverse not a string) -
-
-
-
id
-
#ter15
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
-
input
-
-toRdf/er15-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter17 Invalid reverse property (invalid @container) -
-
-
-
id
-
#ter17
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid reverse property is found
-
input
-
-toRdf/er17-in.jsonld -
-
expect
-
-invalid reverse property -
-
-
-
-Test ter18 Invalid IRI mapping (@id not a string) -
-
-
-
id
-
#ter18
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
-
input
-
-toRdf/er18-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter19 Invalid keyword alias (@context) -
-
-
-
id
-
#ter19
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid keyword alias is found
-
input
-
-toRdf/er19-in.jsonld -
-
expect
-
-invalid keyword alias -
-
-
-
-Test ter20 Invalid IRI mapping (no vocab mapping) -
-
-
-
id
-
#ter20
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
-
input
-
-toRdf/er20-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter21 Invalid container mapping -
-
-
-
id
-
#ter21
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid container mapping is found
-
input
-
-toRdf/er21-in.jsonld -
-
expect
-
-invalid container mapping -
-
Options
-
-
-
processingMode
-
json-ld-1.0
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter22 Invalid language mapping -
-
-
-
id
-
#ter22
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid language mapping is found
-
input
-
-toRdf/er22-in.jsonld -
-
expect
-
-invalid language mapping -
-
-
-
-Test ter23 Invalid IRI mapping (relative IRI in @type) -
-
-
-
id
-
#ter23
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a invalid type mapping is found
-
input
-
-toRdf/er23-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test ter24 List of lists (from array) -
-
-
-
id
-
#ter24
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when a list of lists is found
-
input
-
-toRdf/er24-in.jsonld -
-
expect
-
-list of lists -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter25 Invalid reverse property map -
-
-
-
id
-
#ter25
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when a invalid reverse property map is found
-
input
-
-toRdf/er25-in.jsonld -
-
expect
-
-invalid reverse property map -
-
-
-
-Test ter26 Colliding keywords -
-
-
-
id
-
#ter26
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when colliding keywords are found
-
input
-
-toRdf/er26-in.jsonld -
-
expect
-
-colliding keywords -
-
-
-
-Test ter27 Invalid @id value -
-
-
-
id
-
#ter27
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid @id value is found
-
input
-
-toRdf/er27-in.jsonld -
-
expect
-
-invalid @id value -
-
-
-
-Test ter28 Invalid type value -
-
-
-
id
-
#ter28
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid type value is found
-
input
-
-toRdf/er28-in.jsonld -
-
expect
-
-invalid type value -
-
-
-
-Test ter29 Invalid value object value -
-
-
-
id
-
#ter29
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object value is found
-
input
-
-toRdf/er29-in.jsonld -
-
expect
-
-invalid value object value -
-
-
-
-Test ter30 Invalid language-tagged string -
-
-
-
id
-
#ter30
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
-
input
-
-toRdf/er30-in.jsonld -
-
expect
-
-invalid language-tagged string -
-
-
-
-Test ter31 Invalid @index value -
-
-
-
id
-
#ter31
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid @index value value is found
-
input
-
-toRdf/er31-in.jsonld -
-
expect
-
-invalid @index value -
-
-
-
-Test ter32 List of lists (from array) -
-
-
-
id
-
#ter32
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when a list of lists is found
-
input
-
-toRdf/er32-in.jsonld -
-
expect
-
-list of lists -
-
Options
-
-
-
specVersion
-
json-ld-1.0
-
-
-
-
-
-Test ter33 Invalid @reverse value -
-
-
-
id
-
#ter33
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid @reverse value is found
-
input
-
-toRdf/er33-in.jsonld -
-
expect
-
-invalid @reverse value -
-
-
-
-Test ter34 Invalid reverse property value (in @reverse) -
-
-
-
id
-
#ter34
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
-
input
-
-toRdf/er34-in.jsonld -
-
expect
-
-invalid reverse property value -
-
-
-
-Test ter35 Invalid language map value -
-
-
-
id
-
#ter35
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid language map value is found
-
input
-
-toRdf/er35-in.jsonld -
-
expect
-
-invalid language map value -
-
-
-
-Test ter36 Invalid reverse property value (through coercion) -
-
-
-
id
-
#ter36
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
-
input
-
-toRdf/er36-in.jsonld -
-
expect
-
-invalid reverse property value -
-
-
-
-Test ter37 Invalid value object (unexpected keyword) -
-
-
-
id
-
#ter37
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object is found
-
input
-
-toRdf/er37-in.jsonld -
-
expect
-
-invalid value object -
-
-
-
-Test ter38 Invalid value object (@type and @language) -
-
-
-
id
-
#ter38
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object is found
-
input
-
-toRdf/er38-in.jsonld -
-
expect
-
-invalid value object -
-
-
-
-Test ter39 Invalid language-tagged value -
-
-
-
id
-
#ter39
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
-
input
-
-toRdf/er39-in.jsonld -
-
expect
-
-invalid language-tagged value -
-
-
-
-Test ter40 Invalid typed value -
-
-
-
id
-
#ter40
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid typed value is found
-
input
-
-toRdf/er40-in.jsonld -
-
expect
-
-invalid typed value -
-
-
-
-Test ter41 Invalid set or list object -
-
-
-
id
-
#ter41
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid set or list object is found
-
input
-
-toRdf/er41-in.jsonld -
-
expect
-
-invalid set or list object -
-
-
-
-Test ter42 Keywords may not be redefined in 1.0 -
-
-
-
id
-
#ter42
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
-
input
-
-toRdf/er42-in.jsonld -
-
expect
-
-keyword redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test ter43 Term definition with @id: @type -
-
-
-
id
-
#ter43
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding term mapping to @type uses @type syntax now illegal
-
input
-
-toRdf/er43-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter44 Redefine terms looking like compact IRIs -
-
-
-
id
-
#ter44
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Term definitions may look like compact IRIs, but must be consistent.
-
input
-
-toRdf/er44-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter48 Invalid term as relative IRI -
-
-
-
id
-
#ter48
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that a relative IRI cannot be used as a term.
-
input
-
-toRdf/er48-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter49 A relative IRI cannot be used as a prefix -
-
-
-
id
-
#ter49
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that a relative IRI cannot be used as a term.
-
input
-
-toRdf/er49-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter50 Invalid reverse id -
-
-
-
id
-
#ter50
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
-
input
-
-toRdf/er50-in.jsonld -
-
expect
-
-invalid IRI mapping -
-
-
-
-Test ter51 Invalid value object value using a value alias -
-
-
-
id
-
#ter51
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised in Expansion when an invalid value object value is found using a value alias
-
input
-
-toRdf/er51-in.jsonld -
-
expect
-
-invalid value object value -
-
-
-
-Test ter52 Definition for the empty term -
-
-
-
id
-
#ter52
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains a definition for the empty term
-
input
-
-toRdf/er52-in.jsonld -
-
expect
-
-invalid term definition -
-
-
-
-Test ter53 Invalid prefix value -
-
-
-
id
-
#ter53
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
-
input
-
-toRdf/er53-in.jsonld -
-
expect
-
-invalid @prefix value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ter54 Invalid value object, multiple values for @type. -
-
-
-
id
-
#ter54
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
The value of @type in a value object MUST be a string or null.
-
input
-
-toRdf/er54-in.jsonld -
-
expect
-
-invalid typed value -
-
-
-
-Test ter55 Invalid term definition, multiple values for @type. -
-
-
-
id
-
#ter55
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
The value of @type in an expanded term definition object MUST be a string or null.
-
input
-
-toRdf/er55-in.jsonld -
-
expect
-
-invalid type mapping -
-
-
-
-Test tin01 Basic Included array -
-
-
-
id
-
#tin01
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in01-in.jsonld -
-
expect
-
-toRdf/in01-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin02 Basic Included object -
-
-
-
id
-
#tin02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in02-in.jsonld -
-
expect
-
-toRdf/in02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin03 Multiple properties mapping to @included are folded together -
-
-
-
id
-
#tin03
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in03-in.jsonld -
-
expect
-
-toRdf/in03-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin04 Included containing @included -
-
-
-
id
-
#tin04
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in04-in.jsonld -
-
expect
-
-toRdf/in04-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin05 Property value with @included -
-
-
-
id
-
#tin05
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in05-in.jsonld -
-
expect
-
-toRdf/in05-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin06 json.api example -
-
-
-
id
-
#tin06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in06-in.jsonld -
-
expect
-
-toRdf/in06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin07 Error if @included value is a string -
-
-
-
id
-
#tin07
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in07-in.jsonld -
-
expect
-
-invalid @included value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin08 Error if @included value is a value object -
-
-
-
id
-
#tin08
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in08-in.jsonld -
-
expect
-
-invalid @included value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tin09 Error if @included value is a list object -
-
-
-
id
-
#tin09
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests included blocks.
-
input
-
-toRdf/in09-in.jsonld -
-
expect
-
-invalid @included value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tjs01 Transform JSON literal (boolean true) -
-
-
-
id
-
#tjs01
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (boolean true).
-
input
-
-toRdf/js01-in.jsonld -
-
expect
-
-toRdf/js01-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs02 Transform JSON literal (boolean false) -
-
-
-
id
-
#tjs02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (boolean false).
-
input
-
-toRdf/js02-in.jsonld -
-
expect
-
-toRdf/js02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs03 Transform JSON literal (double) -
-
-
-
id
-
#tjs03
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (double).
-
input
-
-toRdf/js03-in.jsonld -
-
expect
-
-toRdf/js03-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs04 Transform JSON literal (double-zero) -
-
-
-
id
-
#tjs04
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (double-zero).
-
input
-
-toRdf/js04-in.jsonld -
-
expect
-
-toRdf/js04-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs05 Transform JSON literal (integer) -
-
-
-
id
-
#tjs05
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (integer).
-
input
-
-toRdf/js05-in.jsonld -
-
expect
-
-toRdf/js05-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs06 Transform JSON literal (object) -
-
-
-
id
-
#tjs06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (object).
-
input
-
-toRdf/js06-in.jsonld -
-
expect
-
-toRdf/js06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs07 Transform JSON literal (array) -
-
-
-
id
-
#tjs07
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (array).
-
input
-
-toRdf/js07-in.jsonld -
-
expect
-
-toRdf/js07-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs08 Transform JSON literal with array canonicalization -
-
-
-
id
-
#tjs08
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with array canonicalization.
-
input
-
-toRdf/js08-in.jsonld -
-
expect
-
-toRdf/js08-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs09 Transform JSON literal with string canonicalization -
-
-
-
id
-
#tjs09
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with string canonicalization.
-
input
-
-toRdf/js09-in.jsonld -
-
expect
-
-toRdf/js09-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs10 Transform JSON literal with structural canonicalization -
-
-
-
id
-
#tjs10
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with structural canonicalization.
-
input
-
-toRdf/js10-in.jsonld -
-
expect
-
-toRdf/js10-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs11 Transform JSON literal with unicode canonicalization -
-
-
-
id
-
#tjs11
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with unicode canonicalization.
-
input
-
-toRdf/js11-in.jsonld -
-
expect
-
-toRdf/js11-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs12 Transform JSON literal with value canonicalization -
-
-
-
id
-
#tjs12
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with value canonicalization.
-
input
-
-toRdf/js12-in.jsonld -
-
expect
-
-toRdf/js12-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs13 Transform JSON literal with wierd canonicalization -
-
-
-
id
-
#tjs13
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with wierd canonicalization.
-
input
-
-toRdf/js13-in.jsonld -
-
expect
-
-toRdf/js13-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs14 Transform JSON literal without expanding contents -
-
-
-
id
-
#tjs14
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal does not expand terms inside json.
-
input
-
-toRdf/js14-in.jsonld -
-
expect
-
-toRdf/js14-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs15 Transform JSON literal aleady in expanded form -
-
-
-
id
-
#tjs15
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal in expanded form.
-
input
-
-toRdf/js15-in.jsonld -
-
expect
-
-toRdf/js15-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs16 Transform JSON literal aleady in expanded form with aliased keys -
-
-
-
id
-
#tjs16
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal in expanded form with aliased keys in value object.
-
input
-
-toRdf/js16-in.jsonld -
-
expect
-
-toRdf/js16-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs17 Transform JSON literal (string) -
-
-
-
id
-
#tjs17
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (string).
-
input
-
-toRdf/js17-in.jsonld -
-
expect
-
-toRdf/js17-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs18 Transform JSON literal (null) -
-
-
-
id
-
#tjs18
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (null).
-
input
-
-toRdf/js18-in.jsonld -
-
expect
-
-toRdf/js18-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs19 Transform JSON literal with aliased @type -
-
-
-
id
-
#tjs19
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with aliased @type.
-
input
-
-toRdf/js19-in.jsonld -
-
expect
-
-toRdf/js19-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs20 Transform JSON literal with aliased @value -
-
-
-
id
-
#tjs20
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with aliased @value.
-
input
-
-toRdf/js20-in.jsonld -
-
expect
-
-toRdf/js20-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs21 Transform JSON literal with @context -
-
-
-
id
-
#tjs21
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming JSON literal with a @context.
-
input
-
-toRdf/js21-in.jsonld -
-
expect
-
-toRdf/js21-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs22 Transform JSON literal (null) aleady in expanded form. -
-
-
-
id
-
#tjs22
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (null).
-
input
-
-toRdf/js22-in.jsonld -
-
expect
-
-toRdf/js22-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tjs23 Transform JSON literal (empty array). -
-
-
-
id
-
#tjs23
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests transforming property with @type @json to a JSON literal (empty array).
-
input
-
-toRdf/js23-in.jsonld -
-
expect
-
-toRdf/js23-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
useJCS
-
true
-
-
-
-
-
-Test tli01 @list containing @list -
-
-
-
id
-
#tli01
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists.
-
input
-
-toRdf/li01-in.jsonld -
-
expect
-
-toRdf/li01-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli02 @list containing empty @list -
-
-
-
id
-
#tli02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists.
-
input
-
-toRdf/li02-in.jsonld -
-
expect
-
-toRdf/li02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli03 @list containing @list (with coercion) -
-
-
-
id
-
#tli03
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li03-in.jsonld -
-
expect
-
-toRdf/li03-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli04 @list containing empty @list (with coercion) -
-
-
-
id
-
#tli04
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li04-in.jsonld -
-
expect
-
-toRdf/li04-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli05 coerced @list containing an array -
-
-
-
id
-
#tli05
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li05-in.jsonld -
-
expect
-
-toRdf/li05-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli06 coerced @list containing an empty array -
-
-
-
id
-
#tli06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li06-in.jsonld -
-
expect
-
-toRdf/li06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli07 coerced @list containing deep arrays -
-
-
-
id
-
#tli07
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li07-in.jsonld -
-
expect
-
-toRdf/li07-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli08 coerced @list containing deep empty arrays -
-
-
-
id
-
#tli08
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li08-in.jsonld -
-
expect
-
-toRdf/li08-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli09 coerced @list containing multiple lists -
-
-
-
id
-
#tli09
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li09-in.jsonld -
-
expect
-
-toRdf/li09-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli10 coerced @list containing mixed list values -
-
-
-
id
-
#tli10
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
List of lists
-
input
-
-toRdf/li10-in.jsonld -
-
expect
-
-toRdf/li10-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli11 List with good @base. -
-
-
-
id
-
#tli11
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests list elements expanded to IRIs with a good @base.
-
input
-
-toRdf/li11-in.jsonld -
-
expect
-
-toRdf/li11-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://example.com/
-
-
-
-
-
-Test tli12 List with bad @base. -
-
-
-
id
-
#tli12
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests list elements expanded to IRIs with a bad @base.
-
input
-
-toRdf/li12-in.jsonld -
-
expect
-
-toRdf/li12-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tli13 List with empty @base. -
-
-
-
id
-
#tli13
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests list elements expanded to IRIs with an empty @base.
-
input
-
-toRdf/li13-in.jsonld -
-
expect
-
-toRdf/li13-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://example.com/
-
-
-
-
-
-Test tli14 List with null @base. -
-
-
-
id
-
#tli14
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Tests list elements expanded to IRIs with a null @base.
-
input
-
-toRdf/li14-in.jsonld -
-
expect
-
-toRdf/li14-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
base
-
http://example.com/
-
-
-
-
-
-Test tm001 Adds @id to object not having an @id -
-
-
-
id
-
#tm001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @id
-
input
-
-toRdf/m001-in.jsonld -
-
expect
-
-toRdf/m001-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm002 Retains @id in object already having an @id -
-
-
-
id
-
#tm002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @id
-
input
-
-toRdf/m002-in.jsonld -
-
expect
-
-toRdf/m002-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm003 Adds @type to object not having an @type -
-
-
-
id
-
#tm003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-toRdf/m003-in.jsonld -
-
expect
-
-toRdf/m003-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm004 Prepends @type in object already having an @type -
-
-
-
id
-
#tm004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-toRdf/m004-in.jsonld -
-
expect
-
-toRdf/m004-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm005 Adds expanded @id to object -
-
-
-
id
-
#tm005
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @id
-
input
-
-toRdf/m005-in.jsonld -
-
expect
-
-toRdf/m005-out.nq -
-
Options
-
-
-
base
-
http://example.org/
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm006 Adds vocabulary expanded @type to object -
-
-
-
id
-
#tm006
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-toRdf/m006-in.jsonld -
-
expect
-
-toRdf/m006-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm007 Adds document expanded @type to object -
-
-
-
id
-
#tm007
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @container: @type
-
input
-
-toRdf/m007-in.jsonld -
-
expect
-
-toRdf/m007-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm008 When type is in a type map -
-
-
-
id
-
#tm008
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
scoped context on @type
-
input
-
-toRdf/m008-in.jsonld -
-
expect
-
-toRdf/m008-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm009 language map with @none -
-
-
-
id
-
#tm009
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @language
-
input
-
-toRdf/m009-in.jsonld -
-
expect
-
-toRdf/m009-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm010 language map with alias of @none -
-
-
-
id
-
#tm010
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @language
-
input
-
-toRdf/m010-in.jsonld -
-
expect
-
-toRdf/m010-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm011 id map with @none -
-
-
-
id
-
#tm011
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @id
-
input
-
-toRdf/m011-in.jsonld -
-
expect
-
-toRdf/m011-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm012 type map with alias of @none -
-
-
-
id
-
#tm012
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @type
-
input
-
-toRdf/m012-in.jsonld -
-
expect
-
-toRdf/m012-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm013 graph index map with @none -
-
-
-
id
-
#tm013
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @graph and @index
-
input
-
-toRdf/m013-in.jsonld -
-
expect
-
-toRdf/m013-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm014 graph index map with alias @none -
-
-
-
id
-
#tm014
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @graph and @index
-
input
-
-toRdf/m014-in.jsonld -
-
expect
-
-toRdf/m014-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm015 graph id index map with aliased @none -
-
-
-
id
-
#tm015
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @graph and @id with @none
-
input
-
-toRdf/m015-in.jsonld -
-
expect
-
-toRdf/m015-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm016 graph id index map with aliased @none -
-
-
-
id
-
#tm016
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @graph and @id with @none
-
input
-
-toRdf/m016-in.jsonld -
-
expect
-
-toRdf/m016-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm017 string value of type map expands to node reference -
-
-
-
id
-
#tm017
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @type
-
input
-
-toRdf/m017-in.jsonld -
-
expect
-
-toRdf/m017-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm018 string value of type map expands to node reference with @type: @id -
-
-
-
id
-
#tm018
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @type
-
input
-
-toRdf/m018-in.jsonld -
-
expect
-
-toRdf/m018-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm019 string value of type map expands to node reference with @type: @vocab -
-
-
-
id
-
#tm019
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @type
-
input
-
-toRdf/m019-in.jsonld -
-
expect
-
-toRdf/m019-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tm020 string value of type map must not be a literal -
-
-
-
id
-
#tm020
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
index on @type
-
input
-
-toRdf/m020-in.jsonld -
-
expect
-
-invalid type mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn001 Expands input using @nest -
-
-
-
id
-
#tn001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n001-in.jsonld -
-
expect
-
-toRdf/n001-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn002 Expands input using aliased @nest -
-
-
-
id
-
#tn002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n002-in.jsonld -
-
expect
-
-toRdf/n002-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn003 Appends nested values when property at base and nested -
-
-
-
id
-
#tn003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n003-in.jsonld -
-
expect
-
-toRdf/n003-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn004 Appends nested values from all @nest aliases in term order -
-
-
-
id
-
#tn004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n004-in.jsonld -
-
expect
-
-toRdf/n004-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn005 Nested nested containers -
-
-
-
id
-
#tn005
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n005-in.jsonld -
-
expect
-
-toRdf/n005-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn006 Arrays of nested values -
-
-
-
id
-
#tn006
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n006-in.jsonld -
-
expect
-
-toRdf/n006-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn007 A nest of arrays -
-
-
-
id
-
#tn007
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n007-in.jsonld -
-
expect
-
-toRdf/n007-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tn008 Multiple keys may mapping to @type when nesting -
-
-
-
id
-
#tn008
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion using @nest
-
input
-
-toRdf/n008-in.jsonld -
-
expect
-
-toRdf/n008-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tnt01 literal_ascii_boundaries -
-
-
-
id
-
#tnt01
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal_ascii_boundaries '\x00\x26\x28...' from N-Triples
-
input
-
-toRdf/nt01-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt02 literal_with_UTF8_boundaries -
-
-
-
id
-
#tnt02
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal_with_UTF8_boundaries '\x80\x7ff\x800\xfff...' from N-Triples
-
input
-
-toRdf/nt02-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt03 literal_all_controls -
-
-
-
id
-
#tnt03
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal_all_controls '\x00\x01\x02\x03\x04...' from N-Triples
-
input
-
-toRdf/nt03-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt04 literal_all_punctuation -
-
-
-
id
-
#tnt04
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal_all_punctuation '!"#$%&()...' from N-Triples
-
input
-
-toRdf/nt04-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt05 literal_with_squote -
-
-
-
id
-
#tnt05
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with squote "x'y" from N-Triples
-
input
-
-toRdf/nt05-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt06 literal_with_2_squotes -
-
-
-
id
-
#tnt06
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with 2 squotes "x''y" from N-Triples
-
input
-
-toRdf/nt06-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt07 literal_with_dquote -
-
-
-
id
-
#tnt07
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with dquote "x"y" from N-Triples
-
input
-
-toRdf/nt07-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt08 literal_with_2_dquotes -
-
-
-
id
-
#tnt08
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with 2 dquotes """a""b""" from N-Triples
-
input
-
-toRdf/nt08-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt09 literal_with_REVERSE_SOLIDUS2 -
-
-
-
id
-
#tnt09
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
REVERSE SOLIDUS at end of literal from N-Triples
-
input
-
-toRdf/nt09-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt10 literal_with_CHARACTER_TABULATION -
-
-
-
id
-
#tnt10
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with CHARACTER TABULATION from N-Triples
-
input
-
-toRdf/nt10-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt11 literal_with_BACKSPACE -
-
-
-
id
-
#tnt11
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with BACKSPACE from N-Triples
-
input
-
-toRdf/nt11-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt12 literal_with_LINE_FEED -
-
-
-
id
-
#tnt12
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with LINE FEED from N-Triples
-
input
-
-toRdf/nt12-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt13 literal_with_CARRIAGE_RETURN -
-
-
-
id
-
#tnt13
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with CARRIAGE RETURN from N-Triples
-
input
-
-toRdf/nt13-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt14 literal_with_FORM_FEED -
-
-
-
id
-
#tnt14
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with FORM FEED from N-Triples
-
input
-
-toRdf/nt14-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt15 literal_with_REVERSE_SOLIDUS -
-
-
-
id
-
#tnt15
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with REVERSE SOLIDUS from N-Triples
-
input
-
-toRdf/nt15-in.jsonld -
-
expect
-
- -
-
-
-
-Test tnt16 literal_with_numeric_escape4 -
-
-
-
id
-
#tnt16
-
Type
-
jld:PositiveSyntaxTest, jld:ToRDFTest
-
Purpose
-
literal with numeric escape4 \u from N-Triples
-
input
-
-toRdf/nt16-in.jsonld -
-
expect
-
- -
-
-
-
-Test tp001 @version may be specified after first context -
-
-
-
id
-
#tp001
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-toRdf/p001-in.jsonld -
-
expect
-
-toRdf/p001-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp002 @version setting [1.0, 1.1, 1.0] -
-
-
-
id
-
#tp002
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-toRdf/p002-in.jsonld -
-
expect
-
-toRdf/p002-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp003 @version setting [1.1, 1.0] -
-
-
-
id
-
#tp003
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-toRdf/p003-in.jsonld -
-
expect
-
-toRdf/p003-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tp004 @version setting [1.1, 1.0, 1.1] -
-
-
-
id
-
#tp004
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
If processing mode is not set through API, it is set by the first context containing @version.
-
input
-
-toRdf/p004-in.jsonld -
-
expect
-
-toRdf/p004-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi01 error if @version is json-ld-1.0 for property-valued index -
-
-
-
id
-
#tpi01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi01-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test tpi02 error if @container does not include @index for property-valued index -
-
-
-
id
-
#tpi02
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi02-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi03 error if @index is a keyword for property-valued index -
-
-
-
id
-
#tpi03
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi03-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi04 error if @index is not a string for property-valued index -
-
-
-
id
-
#tpi04
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi04-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi05 error if attempting to add property to value object for property-valued index -
-
-
-
id
-
#tpi05
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi05-in.jsonld -
-
expect
-
-invalid value object -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi06 property-valued index expands to property value, instead of @index (value) -
-
-
-
id
-
#tpi06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi06-in.jsonld -
-
expect
-
-toRdf/pi06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi07 property-valued index appends to property value, instead of @index (value) -
-
-
-
id
-
#tpi07
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi07-in.jsonld -
-
expect
-
-toRdf/pi07-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi08 property-valued index expands to property value, instead of @index (node) -
-
-
-
id
-
#tpi08
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi08-in.jsonld -
-
expect
-
-toRdf/pi08-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi09 property-valued index appends to property value, instead of @index (node) -
-
-
-
id
-
#tpi09
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi09-in.jsonld -
-
expect
-
-toRdf/pi09-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi10 property-valued index does not output property for @none -
-
-
-
id
-
#tpi10
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi10-in.jsonld -
-
expect
-
-toRdf/pi10-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpi11 property-valued index adds property to graph object -
-
-
-
id
-
#tpi11
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expanding index maps where index is a property.
-
input
-
-toRdf/pi11-in.jsonld -
-
expect
-
-toRdf/pi11-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr01 Protect a term -
-
-
-
id
-
#tpr01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Check error when overriding a protected term.
-
input
-
-toRdf/pr01-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr02 Set a term to not be protected -
-
-
-
id
-
#tpr02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
A term with @protected: false is not protected.
-
input
-
-toRdf/pr02-in.jsonld -
-
expect
-
-toRdf/pr02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr03 Protect all terms in context -
-
-
-
id
-
#tpr03
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
A protected context protects all term definitions.
-
input
-
-toRdf/pr03-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr04 Do not protect term with @protected: false -
-
-
-
id
-
#tpr04
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
A protected context does not protect terms with @protected: false.
-
input
-
-toRdf/pr04-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr05 Clear active context with protected terms from an embedded context -
-
-
-
id
-
#tpr05
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
The Active context be set to null from an embedded context.
-
input
-
-toRdf/pr05-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr06 Clear active context of protected terms from a term. -
-
-
-
id
-
#tpr06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
The Active context may be set to null from a scoped context of a term.
-
input
-
-toRdf/pr06-in.jsonld -
-
expect
-
-toRdf/pr06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr08 Term with protected scoped context. -
-
-
-
id
-
#tpr08
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
A scoped context can protect terms.
-
input
-
-toRdf/pr08-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr09 Attempt to redefine term in other protected context. -
-
-
-
id
-
#tpr09
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
A protected term cannot redefine another protected term.
-
input
-
-toRdf/pr09-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr10 Simple protected and unprotected terms. -
-
-
-
id
-
#tpr10
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Simple protected and unprotected terms.
-
input
-
-toRdf/pr10-in.jsonld -
-
expect
-
-toRdf/pr10-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr11 Fail to override protected term. -
-
-
-
id
-
#tpr11
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Fail to override protected term.
-
input
-
-toRdf/pr11-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr12 Scoped context fail to override protected term. -
-
-
-
id
-
#tpr12
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Scoped context fail to override protected term.
-
input
-
-toRdf/pr12-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr13 Override unprotected term. -
-
-
-
id
-
#tpr13
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Override unprotected term.
-
input
-
-toRdf/pr13-in.jsonld -
-
expect
-
-toRdf/pr13-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr14 Clear protection with null context. -
-
-
-
id
-
#tpr14
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Clear protection with null context.
-
input
-
-toRdf/pr14-in.jsonld -
-
expect
-
-toRdf/pr14-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr15 Clear protection with array with null context -
-
-
-
id
-
#tpr15
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Clear protection with array with null context
-
input
-
-toRdf/pr15-in.jsonld -
-
expect
-
-toRdf/pr15-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr16 Override protected terms after null. -
-
-
-
id
-
#tpr16
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Override protected terms after null.
-
input
-
-toRdf/pr16-in.jsonld -
-
expect
-
-toRdf/pr16-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr17 Fail to override protected terms with type. -
-
-
-
id
-
#tpr17
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Fail to override protected terms with type.
-
input
-
-toRdf/pr17-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr18 Fail to override protected terms with type+null+ctx. -
-
-
-
id
-
#tpr18
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Fail to override protected terms with type+null+ctx.
-
input
-
-toRdf/pr18-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr19 Mix of protected and unprotected terms. -
-
-
-
id
-
#tpr19
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Mix of protected and unprotected terms.
-
input
-
-toRdf/pr19-in.jsonld -
-
expect
-
-toRdf/pr19-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr20 Fail with mix of protected and unprotected terms with type+null+ctx. -
-
-
-
id
-
#tpr20
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Fail with mix of protected and unprotected terms with type+null+ctx.
-
input
-
-toRdf/pr20-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr21 Fail with mix of protected and unprotected terms with type+null. -
-
-
-
id
-
#tpr21
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Fail with mix of protected and unprotected terms with type+null.
-
input
-
-toRdf/pr21-in.jsonld -
-
expect
-
-invalid context nullification -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr22 Check legal overriding of type-scoped protected term from nested node. -
-
-
-
id
-
#tpr22
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Check legal overriding of type-scoped protected term from nested node.
-
input
-
-toRdf/pr22-in.jsonld -
-
expect
-
-toRdf/pr22-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr23 Allows redefinition of protected alias term with same definition. -
-
-
-
id
-
#tpr23
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Allows redefinition of protected alias term with same definition.
-
input
-
-toRdf/pr23-in.jsonld -
-
expect
-
-toRdf/pr23-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr24 Allows redefinition of protected prefix term with same definition. -
-
-
-
id
-
#tpr24
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Allows redefinition of protected prefix term with same definition.
-
input
-
-toRdf/pr24-in.jsonld -
-
expect
-
-toRdf/pr24-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr25 Allows redefinition of terms with scoped contexts using same definitions. -
-
-
-
id
-
#tpr25
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Allows redefinition of terms with scoped contexts using same definitions.
-
input
-
-toRdf/pr25-in.jsonld -
-
expect
-
-toRdf/pr25-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr26 Fails on redefinition of terms with scoped contexts using different definitions. -
-
-
-
id
-
#tpr26
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Fails on redefinition of terms with scoped contexts using different definitions.
-
input
-
-toRdf/pr26-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag. -
-
-
-
id
-
#tpr27
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Allows redefinition of protected alias term with same definition modulo protected flag.
-
input
-
-toRdf/pr27-in.jsonld -
-
expect
-
-toRdf/pr27-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr28 Fails if trying to redefine a protected null term. -
-
-
-
id
-
#tpr28
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
A protected term with a null IRI mapping cannot be redefined.
-
input
-
-toRdf/pr28-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr29 Does not expand a Compact IRI using a non-prefix term. -
-
-
-
id
-
#tpr29
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Expansion of Compact IRIs considers if the term can be used as a prefix.
-
input
-
-toRdf/pr29-in.jsonld -
-
expect
-
-toRdf/pr29-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr30 Keywords may be protected. -
-
-
-
id
-
#tpr30
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Keywords may not be redefined other than to protect them.
-
input
-
-toRdf/pr30-in.jsonld -
-
expect
-
-toRdf/pr30-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr31 Protected keyword aliases cannot be overridden. -
-
-
-
id
-
#tpr31
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Keywords may not be redefined other than to protect them.
-
input
-
-toRdf/pr31-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr32 Protected @type cannot be overridden. -
-
-
-
id
-
#tpr32
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Keywords may not be redefined other than to protect them.
-
input
-
-toRdf/pr32-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr33 Fails if trying to declare a keyword alias as prefix. -
-
-
-
id
-
#tpr33
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Keyword aliases can not be used as prefixes.
-
input
-
-toRdf/pr33-in.jsonld -
-
expect
-
-invalid term definition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr34 Ignores a non-keyword term starting with '@' -
-
-
-
id
-
#tpr34
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-toRdf/pr34-in.jsonld -
-
expect
-
-toRdf/pr34-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab) -
-
-
-
id
-
#tpr35
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-toRdf/pr35-in.jsonld -
-
expect
-
-toRdf/pr35-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr36 Ignores a term mapping to a value in the form of a keyword. -
-
-
-
id
-
#tpr36
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-toRdf/pr36-in.jsonld -
-
expect
-
-toRdf/pr36-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr37 Ignores a term mapping to a value in the form of a keyword (with @vocab). -
-
-
-
id
-
#tpr37
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-toRdf/pr37-in.jsonld -
-
expect
-
-toRdf/pr37-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr38 Ignores a term mapping to a value in the form of a keyword (@reverse). -
-
-
-
id
-
#tpr38
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-toRdf/pr38-in.jsonld -
-
expect
-
-toRdf/pr38-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr39 Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab). -
-
-
-
id
-
#tpr39
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Terms in the form of a keyword, which are not keywords, are ignored.
-
input
-
-toRdf/pr39-in.jsonld -
-
expect
-
-toRdf/pr39-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tpr40 Protected terms and property-scoped contexts -
-
-
-
id
-
#tpr40
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
Check overriding of protected term from property-scoped context.
-
input
-
-toRdf/pr40-in.jsonld -
-
expect
-
-toRdf/pr40-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test trt01 Representing numbers >= 1e21 -
-
-
-
id
-
#trt01
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
numbers with no fractions but that are >= 1e21 are represented as xsd:double
-
input
-
-toRdf/rt01-in.jsonld -
-
expect
-
-toRdf/rt01-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso01 @import is invalid in 1.0. -
-
-
-
id
-
#tso01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@import is invalid in 1.0.
-
input
-
-toRdf/so01-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test tso02 @import must be a string -
-
-
-
id
-
#tso02
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@import must be a string.
-
input
-
-toRdf/so02-in.jsonld -
-
expect
-
-invalid @import value -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso03 @import overflow -
-
-
-
id
-
#tso03
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
Processors must detect source contexts that include @import.
-
input
-
-toRdf/so03-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso05 @propagate: true on type-scoped context with @import -
-
-
-
id
-
#tso05
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
type-scoped context with @propagate: true survive node-objects (with @import)
-
input
-
-toRdf/so05-in.jsonld -
-
expect
-
-toRdf/so05-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso06 @propagate: false on property-scoped context with @import -
-
-
-
id
-
#tso06
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
property-scoped context with @propagate: false do not survive node-objects (with @import)
-
input
-
-toRdf/so06-in.jsonld -
-
expect
-
-toRdf/so06-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso07 Protect all terms in sourced context -
-
-
-
id
-
#tso07
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
A protected context protects all term definitions.
-
input
-
-toRdf/so07-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso08 Override term defined in sourced context -
-
-
-
id
-
#tso08
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-toRdf/so08-in.jsonld -
-
expect
-
-toRdf/so08-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso09 Override @vocab defined in sourced context -
-
-
-
id
-
#tso09
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-toRdf/so09-in.jsonld -
-
expect
-
-toRdf/so09-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso10 Protect terms in sourced context -
-
-
-
id
-
#tso10
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-toRdf/so10-in.jsonld -
-
expect
-
-protected term redefinition -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso11 Override protected terms in sourced context -
-
-
-
id
-
#tso11
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
The containing context is merged into the source context.
-
input
-
-toRdf/so11-in.jsonld -
-
expect
-
-toRdf/so11-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso12 @import may not be used in an imported context. -
-
-
-
id
-
#tso12
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@import only valid within a term definition.
-
input
-
-toRdf/so12-in.jsonld -
-
expect
-
-invalid context entry -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test tso13 @import can only reference a single context -
-
-
-
id
-
#tso13
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@import can only reference a single context.
-
input
-
-toRdf/so13-in.jsonld -
-
expect
-
-invalid remote context -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test ttn01 @type: @none is illegal in 1.0. -
-
-
-
id
-
#ttn01
-
Type
-
jld:NegativeEvaluationTest, jld:ToRDFTest
-
Purpose
-
@type: @none is illegal in json-ld-1.0.
-
input
-
-toRdf/tn01-in.jsonld -
-
expect
-
-invalid type mapping -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
processingMode
-
json-ld-1.0
-
-
-
-
-
-Test ttn02 @type: @none expands strings as value objects -
-
-
-
id
-
#ttn02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
@type: @none leaves inputs other than strings alone
-
input
-
-toRdf/tn02-in.jsonld -
-
expect
-
-toRdf/tn02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test twf01 Triples including invalid subject IRIs are rejected -
-
-
-
id
-
#twf01
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
ToRdf emits only well-formed statements.
-
input
-
-toRdf/wf01-in.jsonld -
-
expect
-
-toRdf/wf01-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test twf02 Triples including invalid predicate IRIs are rejected -
-
-
-
id
-
#twf02
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
ToRdf emits only well-formed statements.
-
input
-
-toRdf/wf02-in.jsonld -
-
expect
-
-toRdf/wf02-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test twf03 Triples including invalid object IRIs are rejected -
-
-
-
id
-
#twf03
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
ToRdf emits only well-formed statements.
-
input
-
-toRdf/wf03-in.jsonld -
-
expect
-
-toRdf/wf03-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test twf04 Triples including invalid type IRIs are rejected -
-
-
-
id
-
#twf04
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
ToRdf emits only well-formed statements.
-
input
-
-toRdf/wf04-in.jsonld -
-
expect
-
-toRdf/wf04-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test twf05 Triples including invalid language tags are rejected -
-
-
-
id
-
#twf05
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
ToRdf emits only well-formed statements.
-
input
-
-toRdf/wf05-in.jsonld -
-
expect
-
-toRdf/wf05-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-Test twf07 Triples including invalid graph name IRIs are rejected -
-
-
-
id
-
#twf07
-
Type
-
jld:PositiveEvaluationTest, jld:ToRDFTest
-
Purpose
-
ToRdf emits only well-formed statements.
-
input
-
-toRdf/wf07-in.jsonld -
-
expect
-
-toRdf/wf07-out.nq -
-
Options
-
-
-
specVersion
-
json-ld-1.1
-
-
-
-
-
-
- - + + + + Transform JSON-LD to RDF + + + + + +

+ + W3C + +

+

Transform JSON-LD to RDF

+

These tests implement the requirements for the JSON-LD Deserialize JSON-LD to RDF Algorithm.

+

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at + toRdf-manifest.jsonld. The manifest vocabulary is described in the JSON-LD Test Vocabulary (JSON-LD, Turtle) and is based on the RDF Test Vocabulary.

+

The JSON-LD Test Suite is a set of tests that can + be used to verify JSON-LD Processor conformance to the set of specifications + that constitute JSON-LD. The goal of the suite is to provide an easy and + comprehensive JSON-LD testing solution for developers creating JSON-LD Processors.

+

The JSON-LD Framing Specification maintains its own + test suite.

+

General instructions for running the JSON-LD Test suites

+

Unless processingMode is set explicitly in a test entry, processingMode is compatible with both json-ld-1.0 and json-ld-1.1.

+

Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference.

+

Developers are encouraged to make a local copy of the test suite (available on GitHub) and simulate the behavior of fetching test files remotely and setting HTTP headers as described in a particular test entry.

+

JSON-LD Object comparison

+

If algorithms are invoked with the ordered flag set to true, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for fromRdf, unless the input quads are also ordered). If ordered is false, then the following algorithm will ensure arrays other than values of @list are compared without regard to order.

+

JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality.

+ +

Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have @container: @list and the comparison algorithm will not consider ordering significant.

+

Running tests

+

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

+

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

+ +

Contributing Tests

+

If you would like to contribute a new test or a fix to an existing test, + please follow these steps:

+
    +
  1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change.
  2. +
  3. Clone the git repository: git://github.com/w3c/json-ld-api.git
  4. +
  5. Make your changes and submit them via github, or via a 'git format-patch' + to the JSON-LD Working Group mailing list.
  6. +
+

Distribution

+

Distributed under the W3C Test Suite License. To contribute to a W3C Test Suite, see the policies and contribution forms.

+

Disclaimer

+

UNDER THE EXCLUSIVE LICENSE, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

+
+
baseIri
+
https://w3c.github.io/json-ld-api/tests/
+
+
+

+ Test sequence: +

+
+
+ Test t0001 Plain literal with URIs +
+
+
+
id
+
#t0001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests generation of a triple using full URIs and a plain literal.
+
input
+
+ toRdf/0001-in.jsonld +
+
expect
+
+ toRdf/0001-out.nq +
+
+
+
+ Test t0002 Plain literal with CURIE from default context +
+
+
+
id
+
#t0002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests generation of a triple using a CURIE defined in the default context.
+
input
+
+ toRdf/0002-in.jsonld +
+
expect
+
+ toRdf/0002-out.nq +
+
+
+
+ Test t0003 Default subject is BNode +
+
+
+
id
+
#t0003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that a BNode is created if no explicit subject is set.
+
input
+
+ toRdf/0003-in.jsonld +
+
expect
+
+ toRdf/0003-out.nq +
+
+
+
+ Test t0004 Literal with language tag +
+
+
+
id
+
#t0004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that a plain literal is created with a language tag.
+
input
+
+ toRdf/0004-in.jsonld +
+
expect
+
+ toRdf/0004-out.nq +
+
+
+
+ Test t0005 Extended character set literal +
+
+
+
id
+
#t0005
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that a literal may be created using extended characters.
+
input
+
+ toRdf/0005-in.jsonld +
+
expect
+
+ toRdf/0005-out.nq +
+
+
+
+ Test t0006 Typed literal +
+
+
+
id
+
#t0006
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests creation of a literal with a datatype.
+
input
+
+ toRdf/0006-in.jsonld +
+
expect
+
+ toRdf/0006-out.nq +
+
+
+
+ Test t0007 Tests 'a' generates rdf:type and object is implicit IRI +
+
+
+
id
+
#t0007
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verify that 'a' is an alias for rdf:type, and the object is created as an IRI.
+
input
+
+ toRdf/0007-in.jsonld +
+
expect
+
+ toRdf/0007-out.nq +
+
+
+
+ Test t0008 Test prefix defined in @context +
+
+
+
id
+
#t0008
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Generate an IRI using a prefix defined within an @context.
+
input
+
+ toRdf/0008-in.jsonld +
+
expect
+
+ toRdf/0008-out.nq +
+
+
+
+ Test t0009 Test using an empty suffix +
+
+
+
id
+
#t0009
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
An empty suffix may be used.
+
input
+
+ toRdf/0009-in.jsonld +
+
expect
+
+ toRdf/0009-out.nq +
+
+
+
+ Test t0010 Test object processing defines object +
+
+
+
id
+
#t0010
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
A property referencing an associative array gets object from subject of array.
+
input
+
+ toRdf/0010-in.jsonld +
+
expect
+
+ toRdf/0010-out.nq +
+
+
+
+ Test t0011 Test object processing defines object with implicit BNode +
+
+
+
id
+
#t0011
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
If no @ is specified, a BNode is created, and will be used as the object of an enclosing property.
+
input
+
+ toRdf/0011-in.jsonld +
+
expect
+
+ toRdf/0011-out.nq +
+
+
+
+ Test t0012 Multiple Objects for a Single Property +
+
+
+
id
+
#t0012
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that Multiple Objects are for a Single Property using array syntax.
+
input
+
+ toRdf/0012-in.jsonld +
+
expect
+
+ toRdf/0012-out.nq +
+
+
+
+ Test t0013 Creation of an empty list +
+
+
+
id
+
#t0013
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that @list: [] generates an empty list.
+
input
+
+ toRdf/0013-in.jsonld +
+
expect
+
+ toRdf/0013-out.nq +
+
+
+
+ Test t0014 Creation of a list with single element +
+
+
+
id
+
#t0014
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that @list generates a list.
+
input
+
+ toRdf/0014-in.jsonld +
+
expect
+
+ toRdf/0014-out.nq +
+
+
+
+ Test t0015 Creation of a list with multiple elements +
+
+
+
id
+
#t0015
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that list with multiple elements.
+
input
+
+ toRdf/0015-in.jsonld +
+
expect
+
+ toRdf/0015-out.nq +
+
+
+
+ Test t0016 Empty IRI expands to resource location +
+
+
+
id
+
#t0016
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding an empty IRI uses the test file location.
+
input
+
+ toRdf/0016-in.jsonld +
+
expect
+
+ toRdf/0016-out.nq +
+
+
+
+ Test t0017 Relative IRI expands relative resource location +
+
+
+
id
+
#t0017
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding a relative IRI uses the test file location.
+
input
+
+ toRdf/0017-in.jsonld +
+
expect
+
+ toRdf/0017-out.nq +
+
+
+
+ Test t0018 Frag ID expands relative resource location +
+
+
+
id
+
#t0018
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding a fragment uses the test file location.
+
input
+
+ toRdf/0018-in.jsonld +
+
expect
+
+ toRdf/0018-out.nq +
+
+
+
+ Test t0019 Test type coercion to anyURI +
+
+
+
id
+
#t0019
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests coercion of object to anyURI when specified.
+
input
+
+ toRdf/0019-in.jsonld +
+
expect
+
+ toRdf/0019-out.nq +
+
+
+
+ Test t0020 Test type coercion to typed literal +
+
+
+
id
+
#t0020
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests coercion of object to a typed literal when specified.
+
input
+
+ toRdf/0020-in.jsonld +
+
expect
+
+ toRdf/0020-out.nq +
+
+
+
+ Test t0022 Test coercion of double value +
+
+
+
id
+
#t0022
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that a decimal value generates a xsd:double typed literal;.
+
input
+
+ toRdf/0022-in.jsonld +
+
expect
+
+ toRdf/0022-out.nq +
+
+
+
+ Test t0023 Test coercion of integer value +
+
+
+
id
+
#t0023
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that a decimal value generates a xsd:integer typed literal.
+
input
+
+ toRdf/0023-in.jsonld +
+
expect
+
+ toRdf/0023-out.nq +
+
+
+
+ Test t0024 Test coercion of boolean value +
+
+
+
id
+
#t0024
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that a decimal value generates a xsd:boolean typed literal.
+
input
+
+ toRdf/0024-in.jsonld +
+
expect
+
+ toRdf/0024-out.nq +
+
+
+
+ Test t0025 Test list coercion with single element +
+
+
+
id
+
#t0025
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that an array with a single element on a property with @list coercion creates an RDF Collection.
+
input
+
+ toRdf/0025-in.jsonld +
+
expect
+
+ toRdf/0025-out.nq +
+
+
+
+ Test t0026 Test creation of multiple types +
+
+
+
id
+
#t0026
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that @type with an array of types creates multiple types.
+
input
+
+ toRdf/0026-in.jsonld +
+
expect
+
+ toRdf/0026-out.nq +
+
+
+
+ Test t0027 Simple named graph (Wikidata) +
+
+
+
id
+
#t0027
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Using @graph with other keys places triples in a named graph.
+
input
+
+ toRdf/0027-in.jsonld +
+
expect
+
+ toRdf/0027-out.nq +
+
+
+
+ Test t0028 Simple named graph +
+
+
+
id
+
#t0028
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Signing a graph.
+
input
+
+ toRdf/0028-in.jsonld +
+
expect
+
+ toRdf/0028-out.nq +
+
+
+
+ Test t0029 named graph with embedded named graph +
+
+
+
id
+
#t0029
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that named graphs containing named graphs flatten to single level of graph naming.
+
input
+
+ toRdf/0029-in.jsonld +
+
expect
+
+ toRdf/0029-out.nq +
+
+
+
+ Test t0030 top-level graph with string subject reference +
+
+
+
id
+
#t0030
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests graphs containing subject references as strings.
+
input
+
+ toRdf/0030-in.jsonld +
+
expect
+
+ toRdf/0030-out.nq +
+
+
+
+ Test t0031 Reverse property +
+
+
+
id
+
#t0031
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests conversion of reverse properties.
+
input
+
+ toRdf/0031-in.jsonld +
+
expect
+
+ toRdf/0031-out.nq +
+
+
+
+ Test t0032 @context reordering +
+
+
+
id
+
#t0032
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that generated triples do not depend on order of @context.
+
input
+
+ toRdf/0032-in.jsonld +
+
expect
+
+ toRdf/0032-out.nq +
+
+
+
+ Test t0033 @id reordering +
+
+
+
id
+
#t0033
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that generated triples do not depend on order of @id.
+
input
+
+ toRdf/0033-in.jsonld +
+
expect
+
+ toRdf/0033-out.nq +
+
+
+
+ Test t0034 context properties reordering +
+
+
+
id
+
#t0034
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests that generated triples do not depend on order of properties inside @context.
+
input
+
+ toRdf/0034-in.jsonld +
+
expect
+
+ toRdf/0034-out.nq +
+
+
+
+ Test t0035 non-fractional numbers converted to xsd:double +
+
+
+
id
+
#t0035
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
xsd:double's canonical lexical is used when converting numbers without fraction that are coerced to xsd:double
+
input
+
+ toRdf/0035-in.jsonld +
+
expect
+
+ toRdf/0035-out.nq +
+
+
+
+ Test t0036 Use nodeMapGeneration bnode labels +
+
+
+
id
+
#t0036
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
The toRDF algorithm does not relabel blank nodes; it reuses the counter from the nodeMapGeneration to generate new ones
+
input
+
+ toRdf/0036-in.jsonld +
+
expect
+
+ toRdf/0036-out.nq +
+
+
+
+ Test t0113 Dataset with a IRI named graph +
+
+
+
id
+
#t0113
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Basic use of creating a named graph using an IRI name
+
input
+
+ toRdf/0113-in.jsonld +
+
expect
+
+ toRdf/0113-out.nq +
+
+
+
+ Test t0114 Dataset with a IRI named graph +
+
+
+
id
+
#t0114
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Basic use of creating a named graph using a BNode name
+
input
+
+ toRdf/0114-in.jsonld +
+
expect
+
+ toRdf/0114-out.nq +
+
+
+
+ Test t0115 Dataset with a default and two named graphs +
+
+
+
id
+
#t0115
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Dataset with a default and two named graphs (IRI and BNode)
+
input
+
+ toRdf/0115-in.jsonld +
+
expect
+
+ toRdf/0115-out.nq +
+
+
+
+ Test t0116 Dataset from node with embedded named graph +
+
+
+
id
+
#t0116
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Embedding @graph in a node creates a named graph
+
input
+
+ toRdf/0116-in.jsonld +
+
expect
+
+ toRdf/0116-out.nq +
+
+
+
+ Test t0117 Dataset from node with embedded named graph (bnode) +
+
+
+
id
+
#t0117
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Embedding @graph in a node creates a named graph. Graph name is created if there is no subject
+
input
+
+ toRdf/0117-in.jsonld +
+
expect
+
+ toRdf/0117-out.nq +
+
+
+
+ Test t0118 produce generalized RDF flag +
+
+
+
id
+
#t0118
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Triples with blank node predicates are not dropped if the produce generalized RDF flag is true.
+
input
+
+ toRdf/0118-in.jsonld +
+
expect
+
+ toRdf/0118-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
produceGeneralizedRdf
+
true
+
+
+
Requires
+
GeneralizedRdf
+
+
+
+ Test t0119 Blank nodes with reverse properties +
+
+
+
id
+
#t0119
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Proper (re-)labeling of blank nodes if used with reverse properties.
+
input
+
+ toRdf/0119-in.jsonld +
+
expect
+
+ toRdf/0119-out.nq +
+
+
+
+ Test t0120 IRI Resolution (0) +
+
+
+
id
+
#t0120
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0120-in.jsonld +
+
expect
+
+ toRdf/0120-out.nq +
+
+
+
+ Test t0121 IRI Resolution (1) +
+
+
+
id
+
#t0121
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0121-in.jsonld +
+
expect
+
+ toRdf/0121-out.nq +
+
+
+
+ Test t0122 IRI Resolution (2) +
+
+
+
id
+
#t0122
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0122-in.jsonld +
+
expect
+
+ toRdf/0122-out.nq +
+
+
+
+ Test t0123 IRI Resolution (3) +
+
+
+
id
+
#t0123
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0123-in.jsonld +
+
expect
+
+ toRdf/0123-out.nq +
+
+
+
+ Test t0124 IRI Resolution (4) +
+
+
+
id
+
#t0124
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0124-in.jsonld +
+
expect
+
+ toRdf/0124-out.nq +
+
+
+
+ Test t0125 IRI Resolution (5) +
+
+
+
id
+
#t0125
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0125-in.jsonld +
+
expect
+
+ toRdf/0125-out.nq +
+
+
+
+ Test t0126 IRI Resolution (6) +
+
+
+
id
+
#t0126
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0126-in.jsonld +
+
expect
+
+ toRdf/0126-out.nq +
+
+
+
+ Test t0127 IRI Resolution (7) +
+
+
+
id
+
#t0127
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0127-in.jsonld +
+
expect
+
+ toRdf/0127-out.nq +
+
+
+
+ Test t0128 IRI Resolution (8) +
+
+
+
id
+
#t0128
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0128-in.jsonld +
+
expect
+
+ toRdf/0128-out.nq +
+
+
+
+ Test t0129 IRI Resolution (9) +
+
+
+
id
+
#t0129
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0129-in.jsonld +
+
expect
+
+ toRdf/0129-out.nq +
+
+
+
+ Test t0130 IRI Resolution (10) +
+
+
+
id
+
#t0130
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0130-in.jsonld +
+
expect
+
+ toRdf/0130-out.nq +
+
+
+
+ Test t0131 IRI Resolution (11) +
+
+
+
id
+
#t0131
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0131-in.jsonld +
+
expect
+
+ toRdf/0131-out.nq +
+
+
+
+ Test t0132 IRI Resolution (12) +
+
+
+
id
+
#t0132
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
IRI resolution according to RFC3986.
+
input
+
+ toRdf/0132-in.jsonld +
+
expect
+
+ toRdf/0132-out.nq +
+
+
+
+ Test t0133 Reverse term with property based indexed container +
+
+
+
id
+
#t0133
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding a reverse term using @container: @index and @index set to a property (from expand#t0131)
+
input
+
+ toRdf/0133-in.jsonld +
+
expect
+
+ toRdf/0133-out.nq +
+
+
+
+ Test tc001 adding new term +
+
+
+
id
+
#tc001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ toRdf/c001-in.jsonld +
+
expect
+
+ toRdf/c001-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc002 overriding a term +
+
+
+
id
+
#tc002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ toRdf/c002-in.jsonld +
+
expect
+
+ toRdf/c002-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc003 property and value with different terms mapping to the same expanded property +
+
+
+
id
+
#tc003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ toRdf/c003-in.jsonld +
+
expect
+
+ toRdf/c003-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc004 deep @context affects nested nodes +
+
+
+
id
+
#tc004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ toRdf/c004-in.jsonld +
+
expect
+
+ toRdf/c004-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc005 scoped context layers on intemediate contexts +
+
+
+
id
+
#tc005
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using a scoped context uses term scope for selecting proper term
+
input
+
+ toRdf/c005-in.jsonld +
+
expect
+
+ toRdf/c005-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc006 adding new term +
+
+
+
id
+
#tc006
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c006-in.jsonld +
+
expect
+
+ toRdf/c006-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc007 overriding a term +
+
+
+
id
+
#tc007
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c007-in.jsonld +
+
expect
+
+ toRdf/c007-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc008 alias of @type +
+
+
+
id
+
#tc008
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c008-in.jsonld +
+
expect
+
+ toRdf/c008-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc009 deep @type-scoped @context does NOT affect nested nodes +
+
+
+
id
+
#tc009
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c009-in.jsonld +
+
expect
+
+ toRdf/c009-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc010 scoped context layers on intemediate contexts +
+
+
+
id
+
#tc010
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c010-in.jsonld +
+
expect
+
+ toRdf/c010-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc011 orders @type terms when applying scoped contexts +
+
+
+
id
+
#tc011
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c011-in.jsonld +
+
expect
+
+ toRdf/c011-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc012 deep property-term scoped @context in @type-scoped @context affects nested nodes +
+
+
+
id
+
#tc012
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c012-in.jsonld +
+
expect
+
+ toRdf/c012-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc013 type maps use scoped context from type index and not scoped context from containing +
+
+
+
id
+
#tc013
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/c013-in.jsonld +
+
expect
+
+ toRdf/c013-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc014 type-scoped context nullification +
+
+
+
id
+
#tc014
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped context nullification
+
input
+
+ toRdf/c014-in.jsonld +
+
expect
+
+ toRdf/c014-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc015 type-scoped base +
+
+
+
id
+
#tc015
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped base
+
input
+
+ toRdf/c015-in.jsonld +
+
expect
+
+ toRdf/c015-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc016 type-scoped vocab +
+
+
+
id
+
#tc016
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped vocab
+
input
+
+ toRdf/c016-in.jsonld +
+
expect
+
+ toRdf/c016-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc017 multiple type-scoped contexts are properly reverted +
+
+
+
id
+
#tc017
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
multiple type-scoped contexts are property reverted
+
input
+
+ toRdf/c017-in.jsonld +
+
expect
+
+ toRdf/c017-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc018 multiple type-scoped types resolved against previous context +
+
+
+
id
+
#tc018
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
multiple type-scoped types resolved against previous context
+
input
+
+ toRdf/c018-in.jsonld +
+
expect
+
+ toRdf/c018-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc019 type-scoped context with multiple property scoped terms +
+
+
+
id
+
#tc019
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped context with multiple property scoped terms
+
input
+
+ toRdf/c019-in.jsonld +
+
expect
+
+ toRdf/c019-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc020 type-scoped value +
+
+
+
id
+
#tc020
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped value
+
input
+
+ toRdf/c020-in.jsonld +
+
expect
+
+ toRdf/c020-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc021 type-scoped value mix +
+
+
+
id
+
#tc021
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped value mix
+
input
+
+ toRdf/c021-in.jsonld +
+
expect
+
+ toRdf/c021-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc022 type-scoped property-scoped contexts including @type:@vocab +
+
+
+
id
+
#tc022
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped property-scoped contexts including @type:@vocab
+
input
+
+ toRdf/c022-in.jsonld +
+
expect
+
+ toRdf/c022-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc023 composed type-scoped property-scoped contexts including @type:@vocab +
+
+
+
id
+
#tc023
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
composed type-scoped property-scoped contexts including @type:@vocab
+
input
+
+ toRdf/c023-in.jsonld +
+
expect
+
+ toRdf/c023-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc024 type-scoped + property-scoped + values evaluates against previous context +
+
+
+
id
+
#tc024
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped + property-scoped + values evaluates against previous context
+
input
+
+ toRdf/c024-in.jsonld +
+
expect
+
+ toRdf/c024-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc025 type-scoped + graph container +
+
+
+
id
+
#tc025
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped + graph container
+
input
+
+ toRdf/c025-in.jsonld +
+
expect
+
+ toRdf/c025-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc026 @propagate: true on type-scoped context +
+
+
+
id
+
#tc026
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped context with @propagate: true survive node-objects
+
input
+
+ toRdf/c026-in.jsonld +
+
expect
+
+ toRdf/c026-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc027 @propagate: false on property-scoped context +
+
+
+
id
+
#tc027
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
property-scoped context with @propagate: false do not survive node-objects
+
input
+
+ toRdf/c027-in.jsonld +
+
expect
+
+ toRdf/c027-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc028 @propagate: false on embedded context +
+
+
+
id
+
#tc028
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
embedded context with @propagate: false do not survive node-objects
+
input
+
+ toRdf/c028-in.jsonld +
+
expect
+
+ toRdf/c028-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc029 @propagate is invalid in 1.0 +
+
+
+
id
+
#tc029
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@propagate is invalid in 1.0
+
input
+
+ toRdf/c029-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test tc030 @propagate must be boolean valued +
+
+
+
id
+
#tc030
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@propagate must be boolean valued
+
input
+
+ toRdf/c030-in.jsonld +
+
expect
+
+ invalid @propagate value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc031 @context resolutions respects relative URLs. +
+
+
+
id
+
#tc031
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
URL resolution follows RFC3986
+
input
+
+ toRdf/c031-in.jsonld +
+
expect
+
+ toRdf/c031-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc032 Unused embedded context with error. +
+
+
+
id
+
#tc032
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
An embedded context which is never used should still be checked.
+
input
+
+ toRdf/c032-in.jsonld +
+
expect
+
+ invalid scoped context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc033 Unused context with an embedded context error. +
+
+
+
id
+
#tc033
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
An unused context with an embedded context should still be checked.
+
input
+
+ toRdf/c033-in.jsonld +
+
expect
+
+ invalid scoped context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc034 Remote scoped context. +
+
+
+
id
+
#tc034
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Scoped contexts may be externally loaded.
+
input
+
+ toRdf/c034-in.jsonld +
+
expect
+
+ toRdf/c034-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc035 Term scoping with embedded contexts. +
+
+
+
id
+
#tc035
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
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 +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc036 Expansion with empty property-scoped context. +
+
+
+
id
+
#tc036
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
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 +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc037 property-scoped contexts which are alias of @nest +
+
+
+
id
+
#tc037
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Nesting terms may have property-scoped contexts defined.
+
input
+
+ toRdf/c037-in.jsonld +
+
expect
+
+ toRdf/c037-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tc038 Bibframe example (poor-mans inferrence) +
+
+
+
id
+
#tc038
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Nesting terms may have property-scoped contexts defined.
+
input
+
+ toRdf/c038-in.jsonld +
+
expect
+
+ toRdf/c038-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi01 Expand string using default and term directions +
+
+
+
id
+
#tdi01
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Strings are coerced to have @direction based on default and term direction.
+
input
+
+ toRdf/di01-in.jsonld +
+
expect
+
+ toRdf/di01-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi02 Expand string using default and term directions and languages +
+
+
+
id
+
#tdi02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Strings are coerced to have @direction based on default and term direction.
+
input
+
+ toRdf/di02-in.jsonld +
+
expect
+
+ toRdf/di02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi03 expand list values with @direction +
+
+
+
id
+
#tdi03
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List values where the term has @direction are used in expansion.
+
input
+
+ toRdf/di03-in.jsonld +
+
expect
+
+ toRdf/di03-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi04 simple language map with term direction +
+
+
+
id
+
#tdi04
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ toRdf/di04-in.jsonld +
+
expect
+
+ toRdf/di04-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi05 simple language mapwith overriding term direction +
+
+
+
id
+
#tdi05
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ toRdf/di05-in.jsonld +
+
expect
+
+ toRdf/di05-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi06 simple language mapwith overriding null direction +
+
+
+
id
+
#tdi06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ toRdf/di06-in.jsonld +
+
expect
+
+ toRdf/di06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi07 simple language map with mismatching term direction +
+
+
+
id
+
#tdi07
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Term selection with language maps and @direction.
+
input
+
+ toRdf/di07-in.jsonld +
+
expect
+
+ toRdf/di07-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi08 @direction must be one of ltr or rtl +
+
+
+
id
+
#tdi08
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Generate an error if @direction has illegal value.
+
input
+
+ toRdf/di08-in.jsonld +
+
expect
+
+ invalid base direction +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tdi09 rdfDirection: i18n-datatype with direction and no language +
+
+
+
id
+
#tdi09
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Generates i18n datatype from literal with direction with option.
+
input
+
+ toRdf/di09-in.jsonld +
+
expect
+
+ toRdf/di09-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
i18n-datatype
+
normative
+
false
+
+
+
Requires
+
I18nDatatype
+
+
+
+ Test tdi10 rdfDirection: i18n-datatype with direction and language +
+
+
+
id
+
#tdi10
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Generates i18n datatype from literal with direction with option.
+
input
+
+ toRdf/di10-in.jsonld +
+
expect
+
+ toRdf/di10-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
i18n-datatype
+
normative
+
false
+
+
+
Requires
+
I18nDatatype
+
+
+
+ Test tdi11 rdfDirection: compound-literal with direction and no language +
+
+
+
id
+
#tdi11
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Generates i18n datatype from literal with direction with option.
+
input
+
+ toRdf/di11-in.jsonld +
+
expect
+
+ toRdf/di11-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
compound-literal
+
normative
+
false
+
+
+
Requires
+
CompoundLiteral
+
+
+
+ Test tdi12 rdfDirection: compound-literal with direction and language +
+
+
+
id
+
#tdi12
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Generates compound literal from literal with direction with option.
+
input
+
+ toRdf/di12-in.jsonld +
+
expect
+
+ toRdf/di12-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
rdfDirection
+
compound-literal
+
normative
+
false
+
+
+
Requires
+
CompoundLiteral
+
+
+
+ Test te001 drop free-floating nodes +
+
+
+
id
+
#te001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Free-floating nodes do not generate RDF triples (from expand-0001)
+
input
+
+ toRdf/e001-in.jsonld +
+
expect
+
+ toRdf/e001-out.nq +
+
+
+
+ Test te002 basic +
+
+
+
id
+
#te002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Basic RDF conversion (from expand-0002)
+
input
+
+ toRdf/e002-in.jsonld +
+
expect
+
+ toRdf/e002-out.nq +
+
+
+
+ Test te003 drop null and unmapped properties +
+
+
+
id
+
#te003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Properties mapped to null or which are never mapped are dropped (from expand-0003)
+
input
+
+ toRdf/e003-in.jsonld +
+
expect
+
+ toRdf/e003-out.nq +
+
+
+
+ Test te004 optimize @set, keep empty arrays +
+
+
+
id
+
#te004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0004
+
input
+
+ toRdf/e004-in.jsonld +
+
expect
+
+ toRdf/e004-out.nq +
+
+
+
+ Test te005 do not expand aliased @id/@type +
+
+
+
id
+
#te005
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0005
+
input
+
+ toRdf/e005-in.jsonld +
+
expect
+
+ toRdf/e005-out.nq +
+
+
+
+ Test te006 alias keywords +
+
+
+
id
+
#te006
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0006
+
input
+
+ toRdf/e006-in.jsonld +
+
expect
+
+ toRdf/e006-out.nq +
+
+
+
+ Test te007 date type-coercion +
+
+
+
id
+
#te007
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Type-coerced dates generate typed literals (from expand-0007)
+
input
+
+ toRdf/e007-in.jsonld +
+
expect
+
+ toRdf/e007-out.nq +
+
+
+
+ Test te008 @value with @language +
+
+
+
id
+
#te008
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0008
+
input
+
+ toRdf/e008-in.jsonld +
+
expect
+
+ toRdf/e008-out.nq +
+
+
+
+ Test te009 @graph with terms +
+
+
+
id
+
#te009
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0009
+
input
+
+ toRdf/e009-in.jsonld +
+
expect
+
+ toRdf/e009-out.nq +
+
+
+
+ Test te010 native types +
+
+
+
id
+
#te010
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Native types generate typed literals (from expand-0010)
+
input
+
+ toRdf/e010-in.jsonld +
+
expect
+
+ toRdf/e010-out.nq +
+
+
+
+ Test te011 coerced @id +
+
+
+
id
+
#te011
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0011
+
input
+
+ toRdf/e011-in.jsonld +
+
expect
+
+ toRdf/e011-out.nq +
+
+
+
+ Test te012 @graph with embed +
+
+
+
id
+
#te012
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0012
+
input
+
+ toRdf/e012-in.jsonld +
+
expect
+
+ toRdf/e012-out.nq +
+
+
+
+ Test te013 expand already expanded +
+
+
+
id
+
#te013
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0013
+
input
+
+ toRdf/e013-in.jsonld +
+
expect
+
+ toRdf/e013-out.nq +
+
+
+
+ Test te014 @set of @value objects with keyword aliases +
+
+
+
id
+
#te014
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0014
+
input
+
+ toRdf/e014-in.jsonld +
+
expect
+
+ toRdf/e014-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te015 collapse set of sets, keep empty lists +
+
+
+
id
+
#te015
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0015
+
input
+
+ toRdf/e015-in.jsonld +
+
expect
+
+ toRdf/e015-out.nq +
+
+
+
+ Test te016 context reset +
+
+
+
id
+
#te016
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0016
+
input
+
+ toRdf/e016-in.jsonld +
+
expect
+
+ toRdf/e016-out.nq +
+
+
+
+ Test te017 @graph and @id aliased +
+
+
+
id
+
#te017
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0017
+
input
+
+ toRdf/e017-in.jsonld +
+
expect
+
+ toRdf/e017-out.nq +
+
+
+
+ Test te018 override default @language +
+
+
+
id
+
#te018
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0018
+
input
+
+ toRdf/e018-in.jsonld +
+
expect
+
+ toRdf/e018-out.nq +
+
+
+
+ Test te019 remove @value = null +
+
+
+
id
+
#te019
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0019
+
input
+
+ toRdf/e019-in.jsonld +
+
expect
+
+ toRdf/e019-out.nq +
+
+
+
+ Test te020 do not remove @graph if not at top-level +
+
+
+
id
+
#te020
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Embedded @graph without @id creates BNode-labeled named graph (from expand-0020)
+
input
+
+ toRdf/e020-in.jsonld +
+
expect
+
+ toRdf/e020-out.nq +
+
+
+
+ Test te021 do not remove @graph at top-level if not only property +
+
+
+
id
+
#te021
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0021
+
input
+
+ toRdf/e021-in.jsonld +
+
expect
+
+ toRdf/e021-out.nq +
+
+
+
+ Test te022 expand value with default language +
+
+
+
id
+
#te022
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0022
+
input
+
+ toRdf/e022-in.jsonld +
+
expect
+
+ toRdf/e022-out.nq +
+
+
+
+ Test te023 Lists and sets of properties with list/set coercion +
+
+
+
id
+
#te023
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0023
+
input
+
+ toRdf/e023-in.jsonld +
+
expect
+
+ toRdf/e023-out.nq +
+
+
+
+ Test te024 Multiple contexts +
+
+
+
id
+
#te024
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0024
+
input
+
+ toRdf/e024-in.jsonld +
+
expect
+
+ toRdf/e024-out.nq +
+
+
+
+ Test te025 Problematic IRI expansion tests +
+
+
+
id
+
#te025
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0025
+
input
+
+ toRdf/e025-in.jsonld +
+
expect
+
+ toRdf/e025-out.nq +
+
+
+
+ Test te026 Expanding term mapping to @type uses @type syntax +
+
+
+
id
+
#te026
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0026
+
input
+
+ toRdf/e026-in.jsonld +
+
expect
+
+ toRdf/e026-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te027 Keep duplicate values in @list and @set +
+
+
+
id
+
#te027
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0027
+
input
+
+ toRdf/e027-in.jsonld +
+
expect
+
+ toRdf/e027-out.nq +
+
+
+
+ Test te028 Use @vocab in properties and @type but not in @id +
+
+
+
id
+
#te028
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0028
+
input
+
+ toRdf/e028-in.jsonld +
+
expect
+
+ toRdf/e028-out.nq +
+
+
+
+ Test te029 Relative IRIs +
+
+
+
id
+
#te029
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0029
+
input
+
+ toRdf/e029-in.jsonld +
+
expect
+
+ toRdf/e029-out.nq +
+
+
+
+ Test te030 Language maps +
+
+
+
id
+
#te030
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0030
+
input
+
+ toRdf/e030-in.jsonld +
+
expect
+
+ toRdf/e030-out.nq +
+
+
+
+ Test te031 type-coercion of native types +
+
+
+
id
+
#te031
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0031
+
input
+
+ toRdf/e031-in.jsonld +
+
expect
+
+ toRdf/e031-out.nq +
+
+
+
+ Test te032 Mapping a term to null decouples it from @vocab +
+
+
+
id
+
#te032
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0032
+
input
+
+ toRdf/e032-in.jsonld +
+
expect
+
+ toRdf/e032-out.nq +
+
+
+
+ Test te033 Using @vocab with with type-coercion +
+
+
+
id
+
#te033
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0033
+
input
+
+ toRdf/e033-in.jsonld +
+
expect
+
+ toRdf/e033-out.nq +
+
+
+
+ Test te034 Multiple properties expanding to the same IRI +
+
+
+
id
+
#te034
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0034
+
input
+
+ toRdf/e034-in.jsonld +
+
expect
+
+ toRdf/e034-out.nq +
+
+
+
+ Test te035 Language maps with @vocab, default language, and colliding property +
+
+
+
id
+
#te035
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0035
+
input
+
+ toRdf/e035-in.jsonld +
+
expect
+
+ toRdf/e035-out.nq +
+
+
+
+ Test te036 Expanding @index +
+
+
+
id
+
#te036
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0036
+
input
+
+ toRdf/e036-in.jsonld +
+
expect
+
+ toRdf/e036-out.nq +
+
+
+
+ Test te037 Expanding @reverse +
+
+
+
id
+
#te037
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0037
+
input
+
+ toRdf/e037-in.jsonld +
+
expect
+
+ toRdf/e037-out.nq +
+
+
+
+ Test te038 Drop blank node predicates by default +
+
+
+
id
+
#te038
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Triples with blank node predicates are dropped by default (from expand-0038).
+
input
+
+ toRdf/e038-in.jsonld +
+
expect
+
+ toRdf/e038-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te039 Using terms in a reverse-maps +
+
+
+
id
+
#te039
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0039
+
input
+
+ toRdf/e039-in.jsonld +
+
expect
+
+ toRdf/e039-out.nq +
+
+
+
+ Test te040 language and index expansion on non-objects +
+
+
+
id
+
#te040
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0040
+
input
+
+ toRdf/e040-in.jsonld +
+
expect
+
+ toRdf/e040-out.nq +
+
+
+
+ Test te041 Reset the default language +
+
+
+
id
+
#te041
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0041
+
input
+
+ toRdf/e041-in.jsonld +
+
expect
+
+ toRdf/e041-out.nq +
+
+
+
+ Test te042 Expanding reverse properties +
+
+
+
id
+
#te042
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0042
+
input
+
+ toRdf/e042-in.jsonld +
+
expect
+
+ toRdf/e042-out.nq +
+
+
+
+ Test te043 Using reverse properties inside a @reverse-container +
+
+
+
id
+
#te043
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0043
+
input
+
+ toRdf/e043-in.jsonld +
+
expect
+
+ toRdf/e043-out.nq +
+
+
+
+ Test te044 Ensure index maps use language mapping +
+
+
+
id
+
#te044
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0044
+
input
+
+ toRdf/e044-in.jsonld +
+
expect
+
+ toRdf/e044-out.nq +
+
+
+
+ Test te045 Top-level value objects are removed +
+
+
+
id
+
#te045
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0045
+
input
+
+ toRdf/e045-in.jsonld +
+
expect
+
+ toRdf/e045-out.nq +
+
+
+
+ Test te046 Free-floating nodes are removed +
+
+
+
id
+
#te046
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0046
+
input
+
+ toRdf/e046-in.jsonld +
+
expect
+
+ toRdf/e046-out.nq +
+
+
+
+ Test te047 Remove free-floating set values and lists +
+
+
+
id
+
#te047
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0047
+
input
+
+ toRdf/e047-in.jsonld +
+
expect
+
+ toRdf/e047-out.nq +
+
+
+
+ Test te048 Terms are ignored in @id +
+
+
+
id
+
#te048
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0048
+
input
+
+ toRdf/e048-in.jsonld +
+
expect
+
+ toRdf/e048-out.nq +
+
+
+
+ Test te049 Using strings as value of a reverse property +
+
+
+
id
+
#te049
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0049
+
input
+
+ toRdf/e049-in.jsonld +
+
expect
+
+ toRdf/e049-out.nq +
+
+
+
+ Test te050 Term definitions with prefix separate from prefix definitions +
+
+
+
id
+
#te050
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0050
+
input
+
+ toRdf/e050-in.jsonld +
+
expect
+
+ toRdf/e050-out.nq +
+
+
+
+ Test te051 Expansion of keyword aliases in term definitions +
+
+
+
id
+
#te051
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0051
+
input
+
+ toRdf/e051-in.jsonld +
+
expect
+
+ toRdf/e051-out.nq +
+
+
+
+ Test te052 @vocab-relative IRIs in term definitions +
+
+
+
id
+
#te052
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0052
+
input
+
+ toRdf/e052-in.jsonld +
+
expect
+
+ toRdf/e052-out.nq +
+
+
+
+ Test te053 Expand absolute IRI with @type: @vocab +
+
+
+
id
+
#te053
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0053
+
input
+
+ toRdf/e053-in.jsonld +
+
expect
+
+ toRdf/e053-out.nq +
+
+
+
+ Test te054 Expand term with @type: @vocab +
+
+
+
id
+
#te054
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0054
+
input
+
+ toRdf/e054-in.jsonld +
+
expect
+
+ toRdf/e054-out.nq +
+
+
+
+ Test te055 Expand @vocab-relative term with @type: @vocab +
+
+
+
id
+
#te055
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0055
+
input
+
+ toRdf/e055-in.jsonld +
+
expect
+
+ toRdf/e055-out.nq +
+
+
+
+ Test te056 Use terms with @type: @vocab but not with @type: @id +
+
+
+
id
+
#te056
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0056
+
input
+
+ toRdf/e056-in.jsonld +
+
expect
+
+ toRdf/e056-out.nq +
+
+
+
+ Test te057 Expand relative IRI with @type: @vocab +
+
+
+
id
+
#te057
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0057
+
input
+
+ toRdf/e057-in.jsonld +
+
expect
+
+ toRdf/e057-out.nq +
+
+
+
+ Test te058 Expand compact IRI with @type: @vocab +
+
+
+
id
+
#te058
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0058
+
input
+
+ toRdf/e058-in.jsonld +
+
expect
+
+ toRdf/e058-out.nq +
+
+
+
+ Test te059 Reset @vocab by setting it to null +
+
+
+
id
+
#te059
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0059
+
input
+
+ toRdf/e059-in.jsonld +
+
expect
+
+ toRdf/e059-out.nq +
+
+
+
+ Test te060 Overwrite document base with @base and reset it again +
+
+
+
id
+
#te060
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0060
+
input
+
+ toRdf/e060-in.jsonld +
+
expect
+
+ toRdf/e060-out.nq +
+
+
+
+ Test te061 Coercing native types to arbitrary datatypes +
+
+
+
id
+
#te061
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0061
+
input
+
+ toRdf/e061-in.jsonld +
+
expect
+
+ toRdf/e061-out.nq +
+
+
+
+ Test te062 Various relative IRIs with with @base +
+
+
+
id
+
#te062
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0062
+
input
+
+ toRdf/e062-in.jsonld +
+
expect
+
+ toRdf/e062-out.nq +
+
+
+
+ Test te063 Expand a reverse property with an index-container +
+
+
+
id
+
#te063
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0063
+
input
+
+ toRdf/e063-in.jsonld +
+
expect
+
+ toRdf/e063-out.nq +
+
+
+
+ Test te064 Expand reverse property whose values are unlabeled blank nodes +
+
+
+
id
+
#te064
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0064
+
input
+
+ toRdf/e064-in.jsonld +
+
expect
+
+ toRdf/e064-out.nq +
+
+
+
+ Test te065 Keys that are not mapped to an IRI in a reverse-map are dropped +
+
+
+
id
+
#te065
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0065
+
input
+
+ toRdf/e065-in.jsonld +
+
expect
+
+ toRdf/e065-out.nq +
+
+
+
+ Test te066 Use @vocab to expand keys in reverse-maps +
+
+
+
id
+
#te066
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0066
+
input
+
+ toRdf/e066-in.jsonld +
+
expect
+
+ toRdf/e066-out.nq +
+
+
+
+ Test te067 prefix:://sufffix not a compact IRI +
+
+
+
id
+
#te067
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0067
+
input
+
+ toRdf/e067-in.jsonld +
+
expect
+
+ toRdf/e067-out.nq +
+
+
+
+ Test te068 _::sufffix not a compact IRI +
+
+
+
id
+
#te068
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0068
+
input
+
+ toRdf/e068-in.jsonld +
+
expect
+
+ toRdf/e068-out.nq +
+
+
+
+ Test te069 Compact IRI as term with type mapping +
+
+
+
id
+
#te069
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0069
+
input
+
+ toRdf/e069-in.jsonld +
+
expect
+
+ toRdf/e069-out.nq +
+
+
+
+ Test te070 Redefine compact IRI with itself +
+
+
+
id
+
#te070
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0070
+
input
+
+ toRdf/e070-in.jsonld +
+
expect
+
+ toRdf/e070-out.nq +
+
+
+
+ Test te071 Redefine terms looking like compact IRIs +
+
+
+
id
+
#te071
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0071
+
input
+
+ toRdf/e071-in.jsonld +
+
expect
+
+ toRdf/e071-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te072 Redefine term using @vocab, not itself +
+
+
+
id
+
#te072
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
RDF version of expand-0072
+
input
+
+ toRdf/e072-in.jsonld +
+
expect
+
+ toRdf/e072-out.nq +
+
+
+
+ Test te073 @context not first property +
+
+
+
id
+
#te073
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
+
input
+
+ toRdf/e073-in.jsonld +
+
expect
+
+ toRdf/e073-out.nq +
+
+
+
+ Test te074 @id not first property +
+
+
+
id
+
#te074
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
+
input
+
+ toRdf/e074-in.jsonld +
+
expect
+
+ toRdf/e074-out.nq +
+
+
+
+ Test te075 @vocab as blank node identifier +
+
+
+
id
+
#te075
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use @vocab to map all properties to blank node identifiers
+
input
+
+ toRdf/e075-in.jsonld +
+
expect
+
+ toRdf/e075-out.nq +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
produceGeneralizedRdf
+
true
+
+
+
Requires
+
GeneralizedRdf
+
+
+
+ Test te076 base option overrides document location +
+
+
+
id
+
#te076
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of the base option overrides the document location
+
input
+
+ toRdf/e076-in.jsonld +
+
expect
+
+ toRdf/e076-out.nq +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test te077 expandContext option +
+
+
+
id
+
#te077
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of the expandContext option to expand the input document
+
input
+
+ toRdf/e077-in.jsonld +
+
expect
+
+ toRdf/e077-out.nq +
+
Options
+
+
+
expandContext
+
toRdf/e077-context.jsonld
+
+
+
+
+
+ Test te078 multiple reverse properties +
+
+
+
id
+
#te078
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of multiple reverse properties
+
input
+
+ toRdf/e078-in.jsonld +
+
expect
+
+ toRdf/e078-out.nq +
+
+
+
+ Test te079 expand @graph container +
+
+
+
id
+
#te079
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers
+
input
+
+ toRdf/e079-in.jsonld +
+
expect
+
+ toRdf/e079-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te080 expand [@graph, @set] container +
+
+
+
id
+
#te080
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of [@graph, @set] containers
+
input
+
+ toRdf/e080-in.jsonld +
+
expect
+
+ toRdf/e080-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te081 Creates an @graph container if value is a graph +
+
+
+
id
+
#te081
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Don't double-expand an already expanded graph
+
input
+
+ toRdf/e081-in.jsonld +
+
expect
+
+ toRdf/e081-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te082 expand [@graph, @index] container +
+
+
+
id
+
#te082
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @index
+
input
+
+ toRdf/e082-in.jsonld +
+
expect
+
+ toRdf/e082-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te083 expand [@graph, @index, @set] container +
+
+
+
id
+
#te083
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @index and @set
+
input
+
+ toRdf/e083-in.jsonld +
+
expect
+
+ toRdf/e083-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te084 Do not expand [@graph, @index] container if value is a graph +
+
+
+
id
+
#te084
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e084-in.jsonld +
+
expect
+
+ toRdf/e084-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te085 expand [@graph, @id] container +
+
+
+
id
+
#te085
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @id
+
input
+
+ toRdf/e085-in.jsonld +
+
expect
+
+ toRdf/e085-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te086 expand [@graph, @id, @set] container +
+
+
+
id
+
#te086
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @id and @set
+
input
+
+ toRdf/e086-in.jsonld +
+
expect
+
+ toRdf/e086-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te087 Do not expand [@graph, @id] container if value is a graph +
+
+
+
id
+
#te087
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e087-in.jsonld +
+
expect
+
+ toRdf/e087-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te088 Do not expand native values to IRIs +
+
+
+
id
+
#te088
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Value Expansion does not expand native values, such as booleans, to a node object
+
input
+
+ toRdf/e088-in.jsonld +
+
expect
+
+ toRdf/e088-out.nq +
+
+
+
+ Test te089 empty @base applied to the base option +
+
+
+
id
+
#te089
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of an empty @base is applied to the base option
+
input
+
+ toRdf/e089-in.jsonld +
+
expect
+
+ toRdf/e089-out.nq +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test te090 relative @base overrides base option and document location +
+
+
+
id
+
#te090
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of a relative @base overrides base option and document location
+
input
+
+ toRdf/e090-in.jsonld +
+
expect
+
+ toRdf/e090-out.nq +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test te091 relative and absolute @base overrides base option and document location +
+
+
+
id
+
#te091
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of a relative and absolute @base overrides base option and document location
+
input
+
+ toRdf/e091-in.jsonld +
+
expect
+
+ toRdf/e091-out.nq +
+
Options
+
+
+
base
+
http://example/base/
+
+
+
+
+
+ Test te092 Various relative IRIs as properties with with @vocab: '' +
+
+
+
id
+
#te092
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ toRdf/e092-in.jsonld +
+
expect
+
+ toRdf/e092-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te093 expand @graph container (multiple objects) +
+
+
+
id
+
#te093
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers
+
input
+
+ toRdf/e093-in.jsonld +
+
expect
+
+ toRdf/e093-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te094 expand [@graph, @set] container (multiple objects) +
+
+
+
id
+
#te094
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of [@graph, @set] containers
+
input
+
+ toRdf/e094-in.jsonld +
+
expect
+
+ toRdf/e094-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te095 Creates an @graph container if value is a graph (multiple objects) +
+
+
+
id
+
#te095
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Don't double-expand an already expanded graph
+
input
+
+ toRdf/e095-in.jsonld +
+
expect
+
+ toRdf/e095-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te096 expand [@graph, @index] container (multiple indexed objects) +
+
+
+
id
+
#te096
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @index
+
input
+
+ toRdf/e096-in.jsonld +
+
expect
+
+ toRdf/e096-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te097 expand [@graph, @index, @set] container (multiple objects) +
+
+
+
id
+
#te097
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @index and @set
+
input
+
+ toRdf/e097-in.jsonld +
+
expect
+
+ toRdf/e097-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te098 Do not expand [@graph, @index] container if value is a graph (multiple objects) +
+
+
+
id
+
#te098
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e098-in.jsonld +
+
expect
+
+ toRdf/e098-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te099 expand [@graph, @id] container (multiple objects) +
+
+
+
id
+
#te099
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @id
+
input
+
+ toRdf/e099-in.jsonld +
+
expect
+
+ toRdf/e099-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te100 expand [@graph, @id, @set] container (multiple objects) +
+
+
+
id
+
#te100
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @id and @set
+
input
+
+ toRdf/e100-in.jsonld +
+
expect
+
+ toRdf/e100-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te101 Do not expand [@graph, @id] container if value is a graph (multiple objects) +
+
+
+
id
+
#te101
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e101-in.jsonld +
+
expect
+
+ toRdf/e101-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te102 Expand @graph container if value is a graph (multiple objects) +
+
+
+
id
+
#te102
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e102-in.jsonld +
+
expect
+
+ toRdf/e102-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te103 Expand @graph container if value is a graph (multiple graphs) +
+
+
+
id
+
#te103
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e103-in.jsonld +
+
expect
+
+ toRdf/e103-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te104 Creates an @graph container if value is a graph (mixed graph and object) +
+
+
+
id
+
#te104
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Don't double-expand an already expanded graph
+
input
+
+ toRdf/e104-in.jsonld +
+
expect
+
+ toRdf/e104-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te105 Do not expand [@graph, @index] container if value is a graph (mixed graph and object) +
+
+
+
id
+
#te105
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e105-in.jsonld +
+
expect
+
+ toRdf/e105-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te106 Do not expand [@graph, @id] container if value is a graph (mixed graph and object) +
+
+
+
id
+
#te106
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Does not create a new graph object if indexed value is already a graph object
+
input
+
+ toRdf/e106-in.jsonld +
+
expect
+
+ toRdf/e106-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te107 expand [@graph, @index] container (indexes with multiple objects) +
+
+
+
id
+
#te107
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @index
+
input
+
+ toRdf/e107-in.jsonld +
+
expect
+
+ toRdf/e107-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te108 expand [@graph, @id] container (multiple ids and objects) +
+
+
+
id
+
#te108
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Use of @graph containers with @id
+
input
+
+ toRdf/e108-in.jsonld +
+
expect
+
+ toRdf/e108-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te109 IRI expansion of fragments including ':' +
+
+
+
id
+
#te109
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
+
input
+
+ toRdf/e109-in.jsonld +
+
expect
+
+ toRdf/e109-out.nq +
+
+
+
+ Test te110 Various relative IRIs as properties with with relative @vocab +
+
+
+
id
+
#te110
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ toRdf/e110-in.jsonld +
+
expect
+
+ toRdf/e110-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te111 Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base +
+
+
+
id
+
#te111
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ toRdf/e111-in.jsonld +
+
expect
+
+ toRdf/e111-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te112 Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base +
+
+
+
id
+
#te112
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Pathological relative property IRIs
+
input
+
+ toRdf/e112-in.jsonld +
+
expect
+
+ toRdf/e112-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te113 context with JavaScript Object property names +
+
+
+
id
+
#te113
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expand with context including JavaScript Object property names
+
input
+
+ toRdf/e113-in.jsonld +
+
expect
+
+ toRdf/e113-out.nq +
+
+
+
+ Test te114 Expansion allows multiple properties expanding to @type +
+
+
+
id
+
#te114
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
An exception for the colliding keywords error is made for @type
+
input
+
+ toRdf/e114-in.jsonld +
+
expect
+
+ toRdf/e114-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te115 Verifies that relative IRIs as properties with @vocab: '' in 1.0 generate an error +
+
+
+
id
+
#te115
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Pathological relative property IRIs in 1.0
+
input
+
+ toRdf/e115-in.jsonld +
+
expect
+
+ invalid vocab mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te116 Verifies that relative IRIs as properties with relative @vocab in 1.0 generate an error +
+
+
+
id
+
#te116
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Pathological relative property IRIs in 1.0
+
input
+
+ toRdf/e116-in.jsonld +
+
expect
+
+ invalid vocab mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test te117 A term starting with a colon can expand to a different IRI +
+
+
+
id
+
#te117
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms may begin with a colon and not be treated as IRIs.
+
input
+
+ toRdf/e117-in.jsonld +
+
expect
+
+ toRdf/e117-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te118 Expanding a value staring with a colon does not treat that value as an IRI +
+
+
+
id
+
#te118
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms may begin with a colon and not be treated as IRIs.
+
input
+
+ toRdf/e118-in.jsonld +
+
expect
+
+ toRdf/e118-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te119 Ignore some terms with @, allow others. +
+
+
+
id
+
#te119
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
+
input
+
+ toRdf/e119-in.jsonld +
+
expect
+
+ toRdf/e119-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te120 Ignore some values of @id with @, allow others. +
+
+
+
id
+
#te120
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
+
input
+
+ toRdf/e120-in.jsonld +
+
expect
+
+ toRdf/e120-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te121 Ignore some values of @reverse with @, allow others. +
+
+
+
id
+
#te121
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
+
input
+
+ toRdf/e121-in.jsonld +
+
expect
+
+ toRdf/e121-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te122 Ignore some IRIs when that start with @ when expanding. +
+
+
+
id
+
#te122
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword.
+
input
+
+ toRdf/e122-in.jsonld +
+
expect
+
+ toRdf/e122-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te123 Value objects including invalid literal datatype IRIs are rejected +
+
+
+
id
+
#te123
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Processors MUST validate datatype IRIs.
+
input
+
+ toRdf/e123-in.jsonld +
+
expect
+
+ invalid typed value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te124 compact IRI as @vocab +
+
+
+
id
+
#te124
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that @vocab defined as a compact IRI expands properly
+
input
+
+ toRdf/e124-in.jsonld +
+
expect
+
+ toRdf/e124-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te125 term as @vocab +
+
+
+
id
+
#te125
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that @vocab defined as a term expands properly
+
input
+
+ toRdf/e125-in.jsonld +
+
expect
+
+ toRdf/e125-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te126 A scoped context may include itself recursively (direct) +
+
+
+
id
+
#te126
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
+
input
+
+ toRdf/e126-in.jsonld +
+
expect
+
+ toRdf/e126-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te127 A scoped context may include itself recursively (indirect) +
+
+
+
id
+
#te127
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
+
input
+
+ toRdf/e127-in.jsonld +
+
expect
+
+ toRdf/e127-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te128 Two scoped context may include a shared context +
+
+
+
id
+
#te128
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
+
input
+
+ toRdf/e128-in.jsonld +
+
expect
+
+ toRdf/e128-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te129 Base without trailing slash, without path +
+
+
+
id
+
#te129
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
+
input
+
+ toRdf/e129-in.jsonld +
+
expect
+
+ toRdf/e129-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test te130 Base without trailing slash, with path +
+
+
+
id
+
#te130
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
+
input
+
+ toRdf/e130-in.jsonld +
+
expect
+
+ toRdf/e130-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tec01 Invalid keyword in term definition +
+
+
+
id
+
#tec01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid term definition is found
+
input
+
+ toRdf/ec01-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tec02 Term definition on @type with empty map +
+
+
+
id
+
#tec02
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised if @type is defined as a term with an empty map
+
input
+
+ toRdf/ec02-in.jsonld +
+
expect
+
+ keyword redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tem01 Invalid container mapping +
+
+
+
id
+
#tem01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid container mapping is found
+
input
+
+ toRdf/em01-in.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten01 @nest MUST NOT have a string value +
+
+
+
id
+
#ten01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
container: @nest
+
input
+
+ toRdf/en01-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten02 @nest MUST NOT have a boolen value +
+
+
+
id
+
#ten02
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Transparent Nesting
+
input
+
+ toRdf/en02-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten03 @nest MUST NOT have a numeric value +
+
+
+
id
+
#ten03
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Transparent Nesting
+
input
+
+ toRdf/en03-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten04 @nest MUST NOT have a value object value +
+
+
+
id
+
#ten04
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Transparent Nesting
+
input
+
+ toRdf/en04-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten05 does not allow a keyword other than @nest for the value of @nest +
+
+
+
id
+
#ten05
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Transparent Nesting
+
input
+
+ toRdf/en05-in.jsonld +
+
expect
+
+ invalid @nest value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ten06 does not allow @nest with @reverse +
+
+
+
id
+
#ten06
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Transparent Nesting
+
input
+
+ toRdf/en06-in.jsonld +
+
expect
+
+ invalid reverse property +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1 +
+
+
+
id
+
#tep02
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
+
input
+
+ toRdf/ep02-in.jsonld +
+
expect
+
+ processing mode conflict +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tep03 @version must be 1.1 +
+
+
+
id
+
#tep03
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
If @version is specified, it must be 1.1
+
input
+
+ toRdf/ep03-in.jsonld +
+
expect
+
+ invalid @version value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter01 Keywords cannot be aliased to other keywords +
+
+
+
id
+
#ter01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
+
input
+
+ toRdf/er01-in.jsonld +
+
expect
+
+ keyword redefinition +
+
+
+
+ Test ter02 A context may not include itself recursively (direct) +
+
+
+
id
+
#ter02
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing a context referencing itself
+
input
+
+ toRdf/er02-in.jsonld +
+
expect
+
+ recursive context inclusion +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter03 A context may not include itself recursively (indirect) +
+
+
+
id
+
#ter03
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
+
input
+
+ toRdf/er03-in.jsonld +
+
expect
+
+ recursive context inclusion +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter04 Error dereferencing a remote context +
+
+
+
id
+
#ter04
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context dereference results in an error
+
input
+
+ toRdf/er04-in.jsonld +
+
expect
+
+ loading remote context failed +
+
+
+
+ Test ter05 Invalid remote context +
+
+
+
id
+
#ter05
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a remote context is not an object containing @context
+
input
+
+ toRdf/er05-in.jsonld +
+
expect
+
+ invalid remote context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter06 Invalid local context +
+
+
+
id
+
#ter06
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context is not a string or object
+
input
+
+ toRdf/er06-in.jsonld +
+
expect
+
+ invalid local context +
+
+
+
+ Test ter07 Invalid base IRI +
+
+
+
id
+
#ter07
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @base
+
input
+
+ toRdf/er07-in.jsonld +
+
expect
+
+ invalid base IRI +
+
+
+
+ Test ter08 Invalid vocab mapping +
+
+
+
id
+
#ter08
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
+
input
+
+ toRdf/er08-in.jsonld +
+
expect
+
+ invalid vocab mapping +
+
+
+
+ Test ter09 Invalid default language +
+
+
+
id
+
#ter09
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @language
+
input
+
+ toRdf/er09-in.jsonld +
+
expect
+
+ invalid default language +
+
+
+
+ Test ter10 Cyclic IRI mapping +
+
+
+
id
+
#ter10
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
+
input
+
+ toRdf/er10-in.jsonld +
+
expect
+
+ cyclic IRI mapping +
+
+
+
+ Test ter11 Invalid term definition +
+
+
+
id
+
#ter11
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid term definition is found
+
input
+
+ toRdf/er11-in.jsonld +
+
expect
+
+ invalid term definition +
+
+
+
+ Test ter12 Invalid type mapping (not a string) +
+
+
+
id
+
#ter12
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid type mapping is found
+
input
+
+ toRdf/er12-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test ter13 Invalid type mapping (not absolute IRI) +
+
+
+
id
+
#ter13
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid type mapping is found
+
input
+
+ toRdf/er13-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test ter14 Invalid reverse property (contains @id) +
+
+
+
id
+
#ter14
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid reverse property is found
+
input
+
+ toRdf/er14-in.jsonld +
+
expect
+
+ invalid reverse property +
+
+
+
+ Test ter15 Invalid IRI mapping (@reverse not a string) +
+
+
+
id
+
#ter15
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
+
input
+
+ toRdf/er15-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter17 Invalid reverse property (invalid @container) +
+
+
+
id
+
#ter17
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid reverse property is found
+
input
+
+ toRdf/er17-in.jsonld +
+
expect
+
+ invalid reverse property +
+
+
+
+ Test ter18 Invalid IRI mapping (@id not a string) +
+
+
+
id
+
#ter18
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
+
input
+
+ toRdf/er18-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter19 Invalid keyword alias (@context) +
+
+
+
id
+
#ter19
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid keyword alias is found
+
input
+
+ toRdf/er19-in.jsonld +
+
expect
+
+ invalid keyword alias +
+
+
+
+ Test ter20 Invalid IRI mapping (no vocab mapping) +
+
+
+
id
+
#ter20
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
+
input
+
+ toRdf/er20-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter21 Invalid container mapping +
+
+
+
id
+
#ter21
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid container mapping is found
+
input
+
+ toRdf/er21-in.jsonld +
+
expect
+
+ invalid container mapping +
+
Options
+
+
+
processingMode
+
json-ld-1.0
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter22 Invalid language mapping +
+
+
+
id
+
#ter22
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid language mapping is found
+
input
+
+ toRdf/er22-in.jsonld +
+
expect
+
+ invalid language mapping +
+
+
+
+ Test ter23 Invalid IRI mapping (relative IRI in @type) +
+
+
+
id
+
#ter23
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a invalid type mapping is found
+
input
+
+ toRdf/er23-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test ter24 List of lists (from array) +
+
+
+
id
+
#ter24
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when a list of lists is found
+
input
+
+ toRdf/er24-in.jsonld +
+
expect
+
+ list of lists +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter25 Invalid reverse property map +
+
+
+
id
+
#ter25
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when a invalid reverse property map is found
+
input
+
+ toRdf/er25-in.jsonld +
+
expect
+
+ invalid reverse property map +
+
+
+
+ Test ter26 Colliding keywords +
+
+
+
id
+
#ter26
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when colliding keywords are found
+
input
+
+ toRdf/er26-in.jsonld +
+
expect
+
+ colliding keywords +
+
+
+
+ Test ter27 Invalid @id value +
+
+
+
id
+
#ter27
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid @id value is found
+
input
+
+ toRdf/er27-in.jsonld +
+
expect
+
+ invalid @id value +
+
+
+
+ Test ter28 Invalid type value +
+
+
+
id
+
#ter28
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid type value is found
+
input
+
+ toRdf/er28-in.jsonld +
+
expect
+
+ invalid type value +
+
+
+
+ Test ter29 Invalid value object value +
+
+
+
id
+
#ter29
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object value is found
+
input
+
+ toRdf/er29-in.jsonld +
+
expect
+
+ invalid value object value +
+
+
+
+ Test ter30 Invalid language-tagged string +
+
+
+
id
+
#ter30
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
+
input
+
+ toRdf/er30-in.jsonld +
+
expect
+
+ invalid language-tagged string +
+
+
+
+ Test ter31 Invalid @index value +
+
+
+
id
+
#ter31
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid @index value value is found
+
input
+
+ toRdf/er31-in.jsonld +
+
expect
+
+ invalid @index value +
+
+
+
+ Test ter32 List of lists (from array) +
+
+
+
id
+
#ter32
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when a list of lists is found
+
input
+
+ toRdf/er32-in.jsonld +
+
expect
+
+ list of lists +
+
Options
+
+
+
specVersion
+
json-ld-1.0
+
+
+
+
+
+ Test ter33 Invalid @reverse value +
+
+
+
id
+
#ter33
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid @reverse value is found
+
input
+
+ toRdf/er33-in.jsonld +
+
expect
+
+ invalid @reverse value +
+
+
+
+ Test ter34 Invalid reverse property value (in @reverse) +
+
+
+
id
+
#ter34
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
+
input
+
+ toRdf/er34-in.jsonld +
+
expect
+
+ invalid reverse property value +
+
+
+
+ Test ter35 Invalid language map value +
+
+
+
id
+
#ter35
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid language map value is found
+
input
+
+ toRdf/er35-in.jsonld +
+
expect
+
+ invalid language map value +
+
+
+
+ Test ter36 Invalid reverse property value (through coercion) +
+
+
+
id
+
#ter36
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
+
input
+
+ toRdf/er36-in.jsonld +
+
expect
+
+ invalid reverse property value +
+
+
+
+ Test ter37 Invalid value object (unexpected keyword) +
+
+
+
id
+
#ter37
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object is found
+
input
+
+ toRdf/er37-in.jsonld +
+
expect
+
+ invalid value object +
+
+
+
+ Test ter38 Invalid value object (@type and @language) +
+
+
+
id
+
#ter38
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object is found
+
input
+
+ toRdf/er38-in.jsonld +
+
expect
+
+ invalid value object +
+
+
+
+ Test ter39 Invalid language-tagged value +
+
+
+
id
+
#ter39
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
+
input
+
+ toRdf/er39-in.jsonld +
+
expect
+
+ invalid language-tagged value +
+
+
+
+ Test ter40 Invalid typed value +
+
+
+
id
+
#ter40
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid typed value is found
+
input
+
+ toRdf/er40-in.jsonld +
+
expect
+
+ invalid typed value +
+
+
+
+ Test ter41 Invalid set or list object +
+
+
+
id
+
#ter41
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid set or list object is found
+
input
+
+ toRdf/er41-in.jsonld +
+
expect
+
+ invalid set or list object +
+
+
+
+ Test ter42 Keywords may not be redefined in 1.0 +
+
+
+
id
+
#ter42
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
+
input
+
+ toRdf/er42-in.jsonld +
+
expect
+
+ keyword redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test ter43 Term definition with @id: @type +
+
+
+
id
+
#ter43
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding term mapping to @type uses @type syntax now illegal
+
input
+
+ toRdf/er43-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter44 Redefine terms looking like compact IRIs +
+
+
+
id
+
#ter44
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Term definitions may look like compact IRIs, but must be consistent.
+
input
+
+ toRdf/er44-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter48 Invalid term as relative IRI +
+
+
+
id
+
#ter48
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that a relative IRI cannot be used as a term.
+
input
+
+ toRdf/er48-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter49 A relative IRI cannot be used as a prefix +
+
+
+
id
+
#ter49
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that a relative IRI cannot be used as a term.
+
input
+
+ toRdf/er49-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter50 Invalid reverse id +
+
+
+
id
+
#ter50
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
+
input
+
+ toRdf/er50-in.jsonld +
+
expect
+
+ invalid IRI mapping +
+
+
+
+ Test ter51 Invalid value object value using a value alias +
+
+
+
id
+
#ter51
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised in Expansion when an invalid value object value is found using a value alias
+
input
+
+ toRdf/er51-in.jsonld +
+
expect
+
+ invalid value object value +
+
+
+
+ Test ter52 Definition for the empty term +
+
+
+
id
+
#ter52
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains a definition for the empty term
+
input
+
+ toRdf/er52-in.jsonld +
+
expect
+
+ invalid term definition +
+
+
+
+ Test ter53 Invalid prefix value +
+
+
+
id
+
#ter53
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
+
input
+
+ toRdf/er53-in.jsonld +
+
expect
+
+ invalid @prefix value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ter54 Invalid value object, multiple values for @type. +
+
+
+
id
+
#ter54
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
The value of @type in a value object MUST be a string or null.
+
input
+
+ toRdf/er54-in.jsonld +
+
expect
+
+ invalid typed value +
+
+
+
+ Test ter55 Invalid term definition, multiple values for @type. +
+
+
+
id
+
#ter55
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
The value of @type in an expanded term definition object MUST be a string or null.
+
input
+
+ toRdf/er55-in.jsonld +
+
expect
+
+ invalid type mapping +
+
+
+
+ Test tin01 Basic Included array +
+
+
+
id
+
#tin01
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in01-in.jsonld +
+
expect
+
+ toRdf/in01-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin02 Basic Included object +
+
+
+
id
+
#tin02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in02-in.jsonld +
+
expect
+
+ toRdf/in02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin03 Multiple properties mapping to @included are folded together +
+
+
+
id
+
#tin03
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in03-in.jsonld +
+
expect
+
+ toRdf/in03-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin04 Included containing @included +
+
+
+
id
+
#tin04
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in04-in.jsonld +
+
expect
+
+ toRdf/in04-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin05 Property value with @included +
+
+
+
id
+
#tin05
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in05-in.jsonld +
+
expect
+
+ toRdf/in05-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin06 json.api example +
+
+
+
id
+
#tin06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in06-in.jsonld +
+
expect
+
+ toRdf/in06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin07 Error if @included value is a string +
+
+
+
id
+
#tin07
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in07-in.jsonld +
+
expect
+
+ invalid @included value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin08 Error if @included value is a value object +
+
+
+
id
+
#tin08
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in08-in.jsonld +
+
expect
+
+ invalid @included value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tin09 Error if @included value is a list object +
+
+
+
id
+
#tin09
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests included blocks.
+
input
+
+ toRdf/in09-in.jsonld +
+
expect
+
+ invalid @included value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tjs01 Transform JSON literal (boolean true) +
+
+
+
id
+
#tjs01
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (boolean true).
+
input
+
+ toRdf/js01-in.jsonld +
+
expect
+
+ toRdf/js01-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs02 Transform JSON literal (boolean false) +
+
+
+
id
+
#tjs02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (boolean false).
+
input
+
+ toRdf/js02-in.jsonld +
+
expect
+
+ toRdf/js02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs03 Transform JSON literal (double) +
+
+
+
id
+
#tjs03
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (double).
+
input
+
+ toRdf/js03-in.jsonld +
+
expect
+
+ toRdf/js03-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs04 Transform JSON literal (double-zero) +
+
+
+
id
+
#tjs04
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (double-zero).
+
input
+
+ toRdf/js04-in.jsonld +
+
expect
+
+ toRdf/js04-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs05 Transform JSON literal (integer) +
+
+
+
id
+
#tjs05
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (integer).
+
input
+
+ toRdf/js05-in.jsonld +
+
expect
+
+ toRdf/js05-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs06 Transform JSON literal (object) +
+
+
+
id
+
#tjs06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (object).
+
input
+
+ toRdf/js06-in.jsonld +
+
expect
+
+ toRdf/js06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs07 Transform JSON literal (array) +
+
+
+
id
+
#tjs07
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (array).
+
input
+
+ toRdf/js07-in.jsonld +
+
expect
+
+ toRdf/js07-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs08 Transform JSON literal with array canonicalization +
+
+
+
id
+
#tjs08
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with array canonicalization.
+
input
+
+ toRdf/js08-in.jsonld +
+
expect
+
+ toRdf/js08-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs09 Transform JSON literal with string canonicalization +
+
+
+
id
+
#tjs09
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with string canonicalization.
+
input
+
+ toRdf/js09-in.jsonld +
+
expect
+
+ toRdf/js09-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs10 Transform JSON literal with structural canonicalization +
+
+
+
id
+
#tjs10
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with structural canonicalization.
+
input
+
+ toRdf/js10-in.jsonld +
+
expect
+
+ toRdf/js10-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs11 Transform JSON literal with unicode canonicalization +
+
+
+
id
+
#tjs11
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with unicode canonicalization.
+
input
+
+ toRdf/js11-in.jsonld +
+
expect
+
+ toRdf/js11-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs12 Transform JSON literal with value canonicalization +
+
+
+
id
+
#tjs12
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with value canonicalization.
+
input
+
+ toRdf/js12-in.jsonld +
+
expect
+
+ toRdf/js12-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs13 Transform JSON literal with wierd canonicalization +
+
+
+
id
+
#tjs13
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with wierd canonicalization.
+
input
+
+ toRdf/js13-in.jsonld +
+
expect
+
+ toRdf/js13-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs14 Transform JSON literal without expanding contents +
+
+
+
id
+
#tjs14
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal does not expand terms inside json.
+
input
+
+ toRdf/js14-in.jsonld +
+
expect
+
+ toRdf/js14-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs15 Transform JSON literal aleady in expanded form +
+
+
+
id
+
#tjs15
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal in expanded form.
+
input
+
+ toRdf/js15-in.jsonld +
+
expect
+
+ toRdf/js15-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs16 Transform JSON literal aleady in expanded form with aliased keys +
+
+
+
id
+
#tjs16
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal in expanded form with aliased keys in value object.
+
input
+
+ toRdf/js16-in.jsonld +
+
expect
+
+ toRdf/js16-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs17 Transform JSON literal (string) +
+
+
+
id
+
#tjs17
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (string).
+
input
+
+ toRdf/js17-in.jsonld +
+
expect
+
+ toRdf/js17-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs18 Transform JSON literal (null) +
+
+
+
id
+
#tjs18
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (null).
+
input
+
+ toRdf/js18-in.jsonld +
+
expect
+
+ toRdf/js18-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs19 Transform JSON literal with aliased @type +
+
+
+
id
+
#tjs19
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with aliased @type.
+
input
+
+ toRdf/js19-in.jsonld +
+
expect
+
+ toRdf/js19-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs20 Transform JSON literal with aliased @value +
+
+
+
id
+
#tjs20
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with aliased @value.
+
input
+
+ toRdf/js20-in.jsonld +
+
expect
+
+ toRdf/js20-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs21 Transform JSON literal with @context +
+
+
+
id
+
#tjs21
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming JSON literal with a @context.
+
input
+
+ toRdf/js21-in.jsonld +
+
expect
+
+ toRdf/js21-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs22 Transform JSON literal (null) aleady in expanded form. +
+
+
+
id
+
#tjs22
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (null).
+
input
+
+ toRdf/js22-in.jsonld +
+
expect
+
+ toRdf/js22-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tjs23 Transform JSON literal (empty array). +
+
+
+
id
+
#tjs23
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests transforming property with @type @json to a JSON literal (empty array).
+
input
+
+ toRdf/js23-in.jsonld +
+
expect
+
+ toRdf/js23-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
useJCS
+
true
+
+
+
+
+
+ Test tli01 @list containing @list +
+
+
+
id
+
#tli01
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists.
+
input
+
+ toRdf/li01-in.jsonld +
+
expect
+
+ toRdf/li01-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli02 @list containing empty @list +
+
+
+
id
+
#tli02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists.
+
input
+
+ toRdf/li02-in.jsonld +
+
expect
+
+ toRdf/li02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli03 @list containing @list (with coercion) +
+
+
+
id
+
#tli03
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li03-in.jsonld +
+
expect
+
+ toRdf/li03-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli04 @list containing empty @list (with coercion) +
+
+
+
id
+
#tli04
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li04-in.jsonld +
+
expect
+
+ toRdf/li04-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli05 coerced @list containing an array +
+
+
+
id
+
#tli05
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li05-in.jsonld +
+
expect
+
+ toRdf/li05-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli06 coerced @list containing an empty array +
+
+
+
id
+
#tli06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li06-in.jsonld +
+
expect
+
+ toRdf/li06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli07 coerced @list containing deep arrays +
+
+
+
id
+
#tli07
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li07-in.jsonld +
+
expect
+
+ toRdf/li07-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli08 coerced @list containing deep empty arrays +
+
+
+
id
+
#tli08
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li08-in.jsonld +
+
expect
+
+ toRdf/li08-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli09 coerced @list containing multiple lists +
+
+
+
id
+
#tli09
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li09-in.jsonld +
+
expect
+
+ toRdf/li09-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli10 coerced @list containing mixed list values +
+
+
+
id
+
#tli10
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
List of lists
+
input
+
+ toRdf/li10-in.jsonld +
+
expect
+
+ toRdf/li10-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli11 List with good @base. +
+
+
+
id
+
#tli11
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests list elements expanded to IRIs with a good @base.
+
input
+
+ toRdf/li11-in.jsonld +
+
expect
+
+ toRdf/li11-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://example.com/
+
+
+
+
+
+ Test tli12 List with bad @base. +
+
+
+
id
+
#tli12
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests list elements expanded to IRIs with a bad @base.
+
input
+
+ toRdf/li12-in.jsonld +
+
expect
+
+ toRdf/li12-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tli13 List with empty @base. +
+
+
+
id
+
#tli13
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests list elements expanded to IRIs with an empty @base.
+
input
+
+ toRdf/li13-in.jsonld +
+
expect
+
+ toRdf/li13-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://example.com/
+
+
+
+
+
+ Test tli14 List with null @base. +
+
+
+
id
+
#tli14
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Tests list elements expanded to IRIs with a null @base.
+
input
+
+ toRdf/li14-in.jsonld +
+
expect
+
+ toRdf/li14-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
base
+
http://example.com/
+
+
+
+
+
+ Test tm001 Adds @id to object not having an @id +
+
+
+
id
+
#tm001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @id
+
input
+
+ toRdf/m001-in.jsonld +
+
expect
+
+ toRdf/m001-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm002 Retains @id in object already having an @id +
+
+
+
id
+
#tm002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @id
+
input
+
+ toRdf/m002-in.jsonld +
+
expect
+
+ toRdf/m002-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm003 Adds @type to object not having an @type +
+
+
+
id
+
#tm003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ toRdf/m003-in.jsonld +
+
expect
+
+ toRdf/m003-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm004 Prepends @type in object already having an @type +
+
+
+
id
+
#tm004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ toRdf/m004-in.jsonld +
+
expect
+
+ toRdf/m004-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm005 Adds expanded @id to object +
+
+
+
id
+
#tm005
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @id
+
input
+
+ toRdf/m005-in.jsonld +
+
expect
+
+ toRdf/m005-out.nq +
+
Options
+
+
+
base
+
http://example.org/
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm006 Adds vocabulary expanded @type to object +
+
+
+
id
+
#tm006
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ toRdf/m006-in.jsonld +
+
expect
+
+ toRdf/m006-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm007 Adds document expanded @type to object +
+
+
+
id
+
#tm007
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @container: @type
+
input
+
+ toRdf/m007-in.jsonld +
+
expect
+
+ toRdf/m007-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm008 When type is in a type map +
+
+
+
id
+
#tm008
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
scoped context on @type
+
input
+
+ toRdf/m008-in.jsonld +
+
expect
+
+ toRdf/m008-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm009 language map with @none +
+
+
+
id
+
#tm009
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @language
+
input
+
+ toRdf/m009-in.jsonld +
+
expect
+
+ toRdf/m009-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm010 language map with alias of @none +
+
+
+
id
+
#tm010
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @language
+
input
+
+ toRdf/m010-in.jsonld +
+
expect
+
+ toRdf/m010-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm011 id map with @none +
+
+
+
id
+
#tm011
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @id
+
input
+
+ toRdf/m011-in.jsonld +
+
expect
+
+ toRdf/m011-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm012 type map with alias of @none +
+
+
+
id
+
#tm012
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @type
+
input
+
+ toRdf/m012-in.jsonld +
+
expect
+
+ toRdf/m012-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm013 graph index map with @none +
+
+
+
id
+
#tm013
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @graph and @index
+
input
+
+ toRdf/m013-in.jsonld +
+
expect
+
+ toRdf/m013-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm014 graph index map with alias @none +
+
+
+
id
+
#tm014
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @graph and @index
+
input
+
+ toRdf/m014-in.jsonld +
+
expect
+
+ toRdf/m014-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm015 graph id index map with aliased @none +
+
+
+
id
+
#tm015
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @graph and @id with @none
+
input
+
+ toRdf/m015-in.jsonld +
+
expect
+
+ toRdf/m015-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm016 graph id index map with aliased @none +
+
+
+
id
+
#tm016
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @graph and @id with @none
+
input
+
+ toRdf/m016-in.jsonld +
+
expect
+
+ toRdf/m016-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm017 string value of type map expands to node reference +
+
+
+
id
+
#tm017
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @type
+
input
+
+ toRdf/m017-in.jsonld +
+
expect
+
+ toRdf/m017-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm018 string value of type map expands to node reference with @type: @id +
+
+
+
id
+
#tm018
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @type
+
input
+
+ toRdf/m018-in.jsonld +
+
expect
+
+ toRdf/m018-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm019 string value of type map expands to node reference with @type: @vocab +
+
+
+
id
+
#tm019
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @type
+
input
+
+ toRdf/m019-in.jsonld +
+
expect
+
+ toRdf/m019-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tm020 string value of type map must not be a literal +
+
+
+
id
+
#tm020
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
index on @type
+
input
+
+ toRdf/m020-in.jsonld +
+
expect
+
+ invalid type mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn001 Expands input using @nest +
+
+
+
id
+
#tn001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n001-in.jsonld +
+
expect
+
+ toRdf/n001-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn002 Expands input using aliased @nest +
+
+
+
id
+
#tn002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n002-in.jsonld +
+
expect
+
+ toRdf/n002-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn003 Appends nested values when property at base and nested +
+
+
+
id
+
#tn003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n003-in.jsonld +
+
expect
+
+ toRdf/n003-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn004 Appends nested values from all @nest aliases in term order +
+
+
+
id
+
#tn004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n004-in.jsonld +
+
expect
+
+ toRdf/n004-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn005 Nested nested containers +
+
+
+
id
+
#tn005
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n005-in.jsonld +
+
expect
+
+ toRdf/n005-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn006 Arrays of nested values +
+
+
+
id
+
#tn006
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n006-in.jsonld +
+
expect
+
+ toRdf/n006-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn007 A nest of arrays +
+
+
+
id
+
#tn007
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n007-in.jsonld +
+
expect
+
+ toRdf/n007-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tn008 Multiple keys may mapping to @type when nesting +
+
+
+
id
+
#tn008
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion using @nest
+
input
+
+ toRdf/n008-in.jsonld +
+
expect
+
+ toRdf/n008-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tnt01 literal_ascii_boundaries +
+
+
+
id
+
#tnt01
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal_ascii_boundaries '\x00\x26\x28...' from N-Triples
+
input
+
+ toRdf/nt01-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt02 literal_with_UTF8_boundaries +
+
+
+
id
+
#tnt02
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal_with_UTF8_boundaries '\x80\x7ff\x800\xfff...' from N-Triples
+
input
+
+ toRdf/nt02-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt03 literal_all_controls +
+
+
+
id
+
#tnt03
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal_all_controls '\x00\x01\x02\x03\x04...' from N-Triples
+
input
+
+ toRdf/nt03-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt04 literal_all_punctuation +
+
+
+
id
+
#tnt04
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal_all_punctuation '!"#$%&()...' from N-Triples
+
input
+
+ toRdf/nt04-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt05 literal_with_squote +
+
+
+
id
+
#tnt05
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with squote "x'y" from N-Triples
+
input
+
+ toRdf/nt05-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt06 literal_with_2_squotes +
+
+
+
id
+
#tnt06
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with 2 squotes "x''y" from N-Triples
+
input
+
+ toRdf/nt06-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt07 literal_with_dquote +
+
+
+
id
+
#tnt07
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with dquote "x"y" from N-Triples
+
input
+
+ toRdf/nt07-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt08 literal_with_2_dquotes +
+
+
+
id
+
#tnt08
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with 2 dquotes """a""b""" from N-Triples
+
input
+
+ toRdf/nt08-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt09 literal_with_REVERSE_SOLIDUS2 +
+
+
+
id
+
#tnt09
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
REVERSE SOLIDUS at end of literal from N-Triples
+
input
+
+ toRdf/nt09-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt10 literal_with_CHARACTER_TABULATION +
+
+
+
id
+
#tnt10
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with CHARACTER TABULATION from N-Triples
+
input
+
+ toRdf/nt10-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt11 literal_with_BACKSPACE +
+
+
+
id
+
#tnt11
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with BACKSPACE from N-Triples
+
input
+
+ toRdf/nt11-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt12 literal_with_LINE_FEED +
+
+
+
id
+
#tnt12
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with LINE FEED from N-Triples
+
input
+
+ toRdf/nt12-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt13 literal_with_CARRIAGE_RETURN +
+
+
+
id
+
#tnt13
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with CARRIAGE RETURN from N-Triples
+
input
+
+ toRdf/nt13-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt14 literal_with_FORM_FEED +
+
+
+
id
+
#tnt14
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with FORM FEED from N-Triples
+
input
+
+ toRdf/nt14-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt15 literal_with_REVERSE_SOLIDUS +
+
+
+
id
+
#tnt15
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with REVERSE SOLIDUS from N-Triples
+
input
+
+ toRdf/nt15-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tnt16 literal_with_numeric_escape4 +
+
+
+
id
+
#tnt16
+
Type
+
jld:PositiveSyntaxTest, jld:ToRDFTest
+
Purpose
+
literal with numeric escape4 \u from N-Triples
+
input
+
+ toRdf/nt16-in.jsonld +
+
expect
+
+ +
+
+
+
+ Test tp001 @version may be specified after first context +
+
+
+
id
+
#tp001
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ toRdf/p001-in.jsonld +
+
expect
+
+ toRdf/p001-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp002 @version setting [1.0, 1.1, 1.0] +
+
+
+
id
+
#tp002
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ toRdf/p002-in.jsonld +
+
expect
+
+ toRdf/p002-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp003 @version setting [1.1, 1.0] +
+
+
+
id
+
#tp003
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ toRdf/p003-in.jsonld +
+
expect
+
+ toRdf/p003-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tp004 @version setting [1.1, 1.0, 1.1] +
+
+
+
id
+
#tp004
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
If processing mode is not set through API, it is set by the first context containing @version.
+
input
+
+ toRdf/p004-in.jsonld +
+
expect
+
+ toRdf/p004-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi01 error if @version is json-ld-1.0 for property-valued index +
+
+
+
id
+
#tpi01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi01-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test tpi02 error if @container does not include @index for property-valued index +
+
+
+
id
+
#tpi02
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi02-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi03 error if @index is a keyword for property-valued index +
+
+
+
id
+
#tpi03
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi03-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi04 error if @index is not a string for property-valued index +
+
+
+
id
+
#tpi04
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi04-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi05 error if attempting to add property to value object for property-valued index +
+
+
+
id
+
#tpi05
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi05-in.jsonld +
+
expect
+
+ invalid value object +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi06 property-valued index expands to property value, instead of @index (value) +
+
+
+
id
+
#tpi06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi06-in.jsonld +
+
expect
+
+ toRdf/pi06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi07 property-valued index appends to property value, instead of @index (value) +
+
+
+
id
+
#tpi07
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi07-in.jsonld +
+
expect
+
+ toRdf/pi07-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi08 property-valued index expands to property value, instead of @index (node) +
+
+
+
id
+
#tpi08
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi08-in.jsonld +
+
expect
+
+ toRdf/pi08-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi09 property-valued index appends to property value, instead of @index (node) +
+
+
+
id
+
#tpi09
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi09-in.jsonld +
+
expect
+
+ toRdf/pi09-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi10 property-valued index does not output property for @none +
+
+
+
id
+
#tpi10
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi10-in.jsonld +
+
expect
+
+ toRdf/pi10-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpi11 property-valued index adds property to graph object +
+
+
+
id
+
#tpi11
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expanding index maps where index is a property.
+
input
+
+ toRdf/pi11-in.jsonld +
+
expect
+
+ toRdf/pi11-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr01 Protect a term +
+
+
+
id
+
#tpr01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Check error when overriding a protected term.
+
input
+
+ toRdf/pr01-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr02 Set a term to not be protected +
+
+
+
id
+
#tpr02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
A term with @protected: false is not protected.
+
input
+
+ toRdf/pr02-in.jsonld +
+
expect
+
+ toRdf/pr02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr03 Protect all terms in context +
+
+
+
id
+
#tpr03
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
A protected context protects all term definitions.
+
input
+
+ toRdf/pr03-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr04 Do not protect term with @protected: false +
+
+
+
id
+
#tpr04
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
A protected context does not protect terms with @protected: false.
+
input
+
+ toRdf/pr04-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr05 Clear active context with protected terms from an embedded context +
+
+
+
id
+
#tpr05
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
The Active context be set to null from an embedded context.
+
input
+
+ toRdf/pr05-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr06 Clear active context of protected terms from a term. +
+
+
+
id
+
#tpr06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
The Active context may be set to null from a scoped context of a term.
+
input
+
+ toRdf/pr06-in.jsonld +
+
expect
+
+ toRdf/pr06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr08 Term with protected scoped context. +
+
+
+
id
+
#tpr08
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
A scoped context can protect terms.
+
input
+
+ toRdf/pr08-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr09 Attempt to redefine term in other protected context. +
+
+
+
id
+
#tpr09
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
A protected term cannot redefine another protected term.
+
input
+
+ toRdf/pr09-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr10 Simple protected and unprotected terms. +
+
+
+
id
+
#tpr10
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Simple protected and unprotected terms.
+
input
+
+ toRdf/pr10-in.jsonld +
+
expect
+
+ toRdf/pr10-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr11 Fail to override protected term. +
+
+
+
id
+
#tpr11
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Fail to override protected term.
+
input
+
+ toRdf/pr11-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr12 Scoped context fail to override protected term. +
+
+
+
id
+
#tpr12
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Scoped context fail to override protected term.
+
input
+
+ toRdf/pr12-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr13 Override unprotected term. +
+
+
+
id
+
#tpr13
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Override unprotected term.
+
input
+
+ toRdf/pr13-in.jsonld +
+
expect
+
+ toRdf/pr13-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr14 Clear protection with null context. +
+
+
+
id
+
#tpr14
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Clear protection with null context.
+
input
+
+ toRdf/pr14-in.jsonld +
+
expect
+
+ toRdf/pr14-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr15 Clear protection with array with null context +
+
+
+
id
+
#tpr15
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Clear protection with array with null context
+
input
+
+ toRdf/pr15-in.jsonld +
+
expect
+
+ toRdf/pr15-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr16 Override protected terms after null. +
+
+
+
id
+
#tpr16
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Override protected terms after null.
+
input
+
+ toRdf/pr16-in.jsonld +
+
expect
+
+ toRdf/pr16-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr17 Fail to override protected terms with type. +
+
+
+
id
+
#tpr17
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Fail to override protected terms with type.
+
input
+
+ toRdf/pr17-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr18 Fail to override protected terms with type+null+ctx. +
+
+
+
id
+
#tpr18
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Fail to override protected terms with type+null+ctx.
+
input
+
+ toRdf/pr18-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr19 Mix of protected and unprotected terms. +
+
+
+
id
+
#tpr19
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Mix of protected and unprotected terms.
+
input
+
+ toRdf/pr19-in.jsonld +
+
expect
+
+ toRdf/pr19-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr20 Fail with mix of protected and unprotected terms with type+null+ctx. +
+
+
+
id
+
#tpr20
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Fail with mix of protected and unprotected terms with type+null+ctx.
+
input
+
+ toRdf/pr20-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr21 Fail with mix of protected and unprotected terms with type+null. +
+
+
+
id
+
#tpr21
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Fail with mix of protected and unprotected terms with type+null.
+
input
+
+ toRdf/pr21-in.jsonld +
+
expect
+
+ invalid context nullification +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr22 Check legal overriding of type-scoped protected term from nested node. +
+
+
+
id
+
#tpr22
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Check legal overriding of type-scoped protected term from nested node.
+
input
+
+ toRdf/pr22-in.jsonld +
+
expect
+
+ toRdf/pr22-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr23 Allows redefinition of protected alias term with same definition. +
+
+
+
id
+
#tpr23
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Allows redefinition of protected alias term with same definition.
+
input
+
+ toRdf/pr23-in.jsonld +
+
expect
+
+ toRdf/pr23-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr24 Allows redefinition of protected prefix term with same definition. +
+
+
+
id
+
#tpr24
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Allows redefinition of protected prefix term with same definition.
+
input
+
+ toRdf/pr24-in.jsonld +
+
expect
+
+ toRdf/pr24-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr25 Allows redefinition of terms with scoped contexts using same definitions. +
+
+
+
id
+
#tpr25
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Allows redefinition of terms with scoped contexts using same definitions.
+
input
+
+ toRdf/pr25-in.jsonld +
+
expect
+
+ toRdf/pr25-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr26 Fails on redefinition of terms with scoped contexts using different definitions. +
+
+
+
id
+
#tpr26
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Fails on redefinition of terms with scoped contexts using different definitions.
+
input
+
+ toRdf/pr26-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag. +
+
+
+
id
+
#tpr27
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Allows redefinition of protected alias term with same definition modulo protected flag.
+
input
+
+ toRdf/pr27-in.jsonld +
+
expect
+
+ toRdf/pr27-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr28 Fails if trying to redefine a protected null term. +
+
+
+
id
+
#tpr28
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
A protected term with a null IRI mapping cannot be redefined.
+
input
+
+ toRdf/pr28-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr29 Does not expand a Compact IRI using a non-prefix term. +
+
+
+
id
+
#tpr29
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Expansion of Compact IRIs considers if the term can be used as a prefix.
+
input
+
+ toRdf/pr29-in.jsonld +
+
expect
+
+ toRdf/pr29-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr30 Keywords may be protected. +
+
+
+
id
+
#tpr30
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Keywords may not be redefined other than to protect them.
+
input
+
+ toRdf/pr30-in.jsonld +
+
expect
+
+ toRdf/pr30-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr31 Protected keyword aliases cannot be overridden. +
+
+
+
id
+
#tpr31
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Keywords may not be redefined other than to protect them.
+
input
+
+ toRdf/pr31-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr32 Protected @type cannot be overridden. +
+
+
+
id
+
#tpr32
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Keywords may not be redefined other than to protect them.
+
input
+
+ toRdf/pr32-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr33 Fails if trying to declare a keyword alias as prefix. +
+
+
+
id
+
#tpr33
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Keyword aliases can not be used as prefixes.
+
input
+
+ toRdf/pr33-in.jsonld +
+
expect
+
+ invalid term definition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr34 Ignores a non-keyword term starting with '@' +
+
+
+
id
+
#tpr34
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ toRdf/pr34-in.jsonld +
+
expect
+
+ toRdf/pr34-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab) +
+
+
+
id
+
#tpr35
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ toRdf/pr35-in.jsonld +
+
expect
+
+ toRdf/pr35-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr36 Ignores a term mapping to a value in the form of a keyword. +
+
+
+
id
+
#tpr36
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ toRdf/pr36-in.jsonld +
+
expect
+
+ toRdf/pr36-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr37 Ignores a term mapping to a value in the form of a keyword (with @vocab). +
+
+
+
id
+
#tpr37
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ toRdf/pr37-in.jsonld +
+
expect
+
+ toRdf/pr37-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr38 Ignores a term mapping to a value in the form of a keyword (@reverse). +
+
+
+
id
+
#tpr38
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ toRdf/pr38-in.jsonld +
+
expect
+
+ toRdf/pr38-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr39 Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab). +
+
+
+
id
+
#tpr39
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Terms in the form of a keyword, which are not keywords, are ignored.
+
input
+
+ toRdf/pr39-in.jsonld +
+
expect
+
+ toRdf/pr39-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr40 Protected terms and property-scoped contexts +
+
+
+
id
+
#tpr40
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Check overriding of protected term from property-scoped context.
+
input
+
+ toRdf/pr40-in.jsonld +
+
expect
+
+ toRdf/pr40-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tpr41 Allows protected redefinition of equivalent id terms +
+
+
+
id
+
#tpr41
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
Check protected redefinition of equivalent id terms in different forms.
+
input
+
+ toRdf/pr41-in.jsonld +
+
expect
+
+ toRdf/pr41-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test trt01 Representing numbers >= 1e21 +
+
+
+
id
+
#trt01
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
numbers with no fractions but that are >= 1e21 are represented as xsd:double
+
input
+
+ toRdf/rt01-in.jsonld +
+
expect
+
+ toRdf/rt01-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso01 @import is invalid in 1.0. +
+
+
+
id
+
#tso01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@import is invalid in 1.0.
+
input
+
+ toRdf/so01-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test tso02 @import must be a string +
+
+
+
id
+
#tso02
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@import must be a string.
+
input
+
+ toRdf/so02-in.jsonld +
+
expect
+
+ invalid @import value +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso03 @import overflow +
+
+
+
id
+
#tso03
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
Processors must detect source contexts that include @import.
+
input
+
+ toRdf/so03-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso05 @propagate: true on type-scoped context with @import +
+
+
+
id
+
#tso05
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
type-scoped context with @propagate: true survive node-objects (with @import)
+
input
+
+ toRdf/so05-in.jsonld +
+
expect
+
+ toRdf/so05-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso06 @propagate: false on property-scoped context with @import +
+
+
+
id
+
#tso06
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
property-scoped context with @propagate: false do not survive node-objects (with @import)
+
input
+
+ toRdf/so06-in.jsonld +
+
expect
+
+ toRdf/so06-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso07 Protect all terms in sourced context +
+
+
+
id
+
#tso07
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
A protected context protects all term definitions.
+
input
+
+ toRdf/so07-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso08 Override term defined in sourced context +
+
+
+
id
+
#tso08
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ toRdf/so08-in.jsonld +
+
expect
+
+ toRdf/so08-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso09 Override @vocab defined in sourced context +
+
+
+
id
+
#tso09
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ toRdf/so09-in.jsonld +
+
expect
+
+ toRdf/so09-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso10 Protect terms in sourced context +
+
+
+
id
+
#tso10
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ toRdf/so10-in.jsonld +
+
expect
+
+ protected term redefinition +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso11 Override protected terms in sourced context +
+
+
+
id
+
#tso11
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
The containing context is merged into the source context.
+
input
+
+ toRdf/so11-in.jsonld +
+
expect
+
+ toRdf/so11-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso12 @import may not be used in an imported context. +
+
+
+
id
+
#tso12
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@import only valid within a term definition.
+
input
+
+ toRdf/so12-in.jsonld +
+
expect
+
+ invalid context entry +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test tso13 @import can only reference a single context +
+
+
+
id
+
#tso13
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@import can only reference a single context.
+
input
+
+ toRdf/so13-in.jsonld +
+
expect
+
+ invalid remote context +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test ttn01 @type: @none is illegal in 1.0. +
+
+
+
id
+
#ttn01
+
Type
+
jld:NegativeEvaluationTest, jld:ToRDFTest
+
Purpose
+
@type: @none is illegal in json-ld-1.0.
+
input
+
+ toRdf/tn01-in.jsonld +
+
expect
+
+ invalid type mapping +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
processingMode
+
json-ld-1.0
+
+
+
+
+
+ Test ttn02 @type: @none expands strings as value objects +
+
+
+
id
+
#ttn02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
@type: @none leaves inputs other than strings alone
+
input
+
+ toRdf/tn02-in.jsonld +
+
expect
+
+ toRdf/tn02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test twf01 Triples including invalid subject IRIs are rejected +
+
+
+
id
+
#twf01
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
ToRdf emits only well-formed statements.
+
input
+
+ toRdf/wf01-in.jsonld +
+
expect
+
+ toRdf/wf01-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test twf02 Triples including invalid predicate IRIs are rejected +
+
+
+
id
+
#twf02
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
ToRdf emits only well-formed statements.
+
input
+
+ toRdf/wf02-in.jsonld +
+
expect
+
+ toRdf/wf02-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test twf03 Triples including invalid object IRIs are rejected +
+
+
+
id
+
#twf03
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
ToRdf emits only well-formed statements.
+
input
+
+ toRdf/wf03-in.jsonld +
+
expect
+
+ toRdf/wf03-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test twf04 Triples including invalid type IRIs are rejected +
+
+
+
id
+
#twf04
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
ToRdf emits only well-formed statements.
+
input
+
+ toRdf/wf04-in.jsonld +
+
expect
+
+ toRdf/wf04-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test twf05 Triples including invalid language tags are rejected +
+
+
+
id
+
#twf05
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
ToRdf emits only well-formed statements.
+
input
+
+ toRdf/wf05-in.jsonld +
+
expect
+
+ toRdf/wf05-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+ Test twf07 Triples including invalid graph name IRIs are rejected +
+
+
+
id
+
#twf07
+
Type
+
jld:PositiveEvaluationTest, jld:ToRDFTest
+
Purpose
+
ToRdf emits only well-formed statements.
+
input
+
+ toRdf/wf07-in.jsonld +
+
expect
+
+ toRdf/wf07-out.nq +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
+
+
+ + \ No newline at end of file