W3C

Transform JSON-LD to RDF

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.

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. Clone the git repository: git://github.com/w3c/json-ld-api.git
  3. Make your changes and submit them via github, or via a 'git format-patch' to the JSON-LD Working Group mailing list.

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/

JSON-LD to RDF 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
processingMode
json-ld-1.0
produceGeneralizedRdf
true
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 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
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
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
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
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
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 tin01 Basic Included array
id
#tin01
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
Tests included maps.
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 maps.
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 maps.
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 maps.
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 maps.
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 maps.
input
toRdf/in06-in.jsonld
expect
toRdf/in06-out.nq
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
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
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
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
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
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
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
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
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
processingMode
json-ld-1.1
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
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
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
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
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 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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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/
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
specVersion
json-ld-1.1
Test tm013 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
processingMode
json-ld-1.1
specVersion
json-ld-1.1
Test tm014 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
processingMode
json-ld-1.1
specVersion
json-ld-1.1
Test tm015 index map with alias @none
id
#tm015
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
index on @graph and @index
input
toRdf/m015-in.jsonld
expect
toRdf/m015-out.nq
Options
processingMode
json-ld-1.1
specVersion
json-ld-1.1
Test tm016 index map with alias @none
id
#tm016
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
index on @graph and @index
input
toRdf/m016-in.jsonld
expect
toRdf/m016-out.nq
Options
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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
processingMode
json-ld-1.1
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 not json-ld-1.1 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
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 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 member
Options
specVersion
json-ld-1.1
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 member
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 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
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 twf06 Triples including invalid literal datatype IRIs are rejected
id
#twf06
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
ToRdf emits only well-formed statements.
input
toRdf/wf06-in.jsonld
expect
toRdf/wf06-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