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. 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/

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 ter56 Invalid redefinition of @context keyword.
id
#ter56
Type
jld:NegativeEvaluationTest, jld:ToRDFTest
Purpose
Verifies that an exception is raised when attempting to redefine @context.
input
expand/er56-in.jsonld
expect
keyword redefinition
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 tpr42 Fail if protected flag not retained during redefinition
id
#tpr42
Type
jld:NegativeEvaluationTest, jld:ToRDFTest
Purpose
Check protected redefinition retains protected flag.
input
toRdf/pr42-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr43 Clear protection in @graph @container with null context.
id
#tpr43
Type
jld:PositiveEvaluationTest, jld:ToRDFTest
Purpose
Clear protection in @graph @container with null context.
input
toRdf/pr43-in.jsonld
expect
toRdf/pr43-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