W3C

Streaming Transform JSON-LD to RDF

This is an HTML version of a test manifest. The JSON-LD version of this manifest may be found at stream-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 API Specification maintains its own test suite.

General instructions for running the JSON-LD Test suites

stream-toRdf tests have input and expected documents.

The expected results can be compared using RDF Dataset Isomorphism.

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

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

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.

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:

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

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

JSON-LD Streaming To RDF tests.

Test sequence:

Test t0001 Plain literal with URIs
id
#t0001
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests generation of a triple using full URIs and a plain literal.
input
stream-toRdf/0001-in.jsonld
expect
stream-toRdf/0001-out.nq
Test t0002 Plain literal with CURIE from default context
id
#t0002
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests generation of a triple using a CURIE defined in the default context.
input
stream-toRdf/0002-in.jsonld
expect
stream-toRdf/0002-out.nq
Test t0003 Default subject is BNode
id
#t0003
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that a BNode is created if no explicit subject is set.
input
stream-toRdf/0003-in.jsonld
expect
stream-toRdf/0003-out.nq
Test t0004 Literal with language tag
id
#t0004
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that a plain literal is created with a language tag.
input
stream-toRdf/0004-in.jsonld
expect
stream-toRdf/0004-out.nq
Test t0005 Extended character set literal
id
#t0005
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that a literal may be created using extended characters.
input
stream-toRdf/0005-in.jsonld
expect
stream-toRdf/0005-out.nq
Test t0006 Typed literal
id
#t0006
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests creation of a literal with a datatype.
input
stream-toRdf/0006-in.jsonld
expect
stream-toRdf/0006-out.nq
Test t0007 Tests 'a' generates rdf:type and object is implicit IRI
id
#t0007
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Verify that 'a' is an alias for rdf:type, and the object is created as an IRI.
input
stream-toRdf/0007-in.jsonld
expect
stream-toRdf/0007-out.nq
Test t0008 Test prefix defined in @context
id
#t0008
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an IRI using a prefix defined within an @context.
input
stream-toRdf/0008-in.jsonld
expect
stream-toRdf/0008-out.nq
Test t0009 Test using an empty suffix
id
#t0009
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
An empty suffix may be used.
input
stream-toRdf/0009-in.jsonld
expect
stream-toRdf/0009-out.nq
Test t0010 Test object processing defines object
id
#t0010
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
A property referencing an associative array gets object from subject of array.
input
stream-toRdf/0010-in.jsonld
expect
stream-toRdf/0010-out.nq
Test t0011 Test object processing defines object with implicit BNode
id
#t0011
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
If no @ is specified, a BNode is created, and will be used as the object of an enclosing property.
input
stream-toRdf/0011-in.jsonld
expect
stream-toRdf/0011-out.nq
Test t0012 Multiple Objects for a Single Property
id
#t0012
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that Multiple Objects are for a Single Property using array syntax.
input
stream-toRdf/0012-in.jsonld
expect
stream-toRdf/0012-out.nq
Test t0013 Creation of an empty list
id
#t0013
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that @list: [] generates an empty list.
input
stream-toRdf/0013-in.jsonld
expect
stream-toRdf/0013-out.nq
Test t0014 Creation of a list with single element
id
#t0014
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that @list generates a list.
input
stream-toRdf/0014-in.jsonld
expect
stream-toRdf/0014-out.nq
Test t0015 Creation of a list with multiple elements
id
#t0015
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that list with multiple elements.
input
stream-toRdf/0015-in.jsonld
expect
stream-toRdf/0015-out.nq
Test t0016 Empty IRI expands to resource location
id
#t0016
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expanding an empty IRI uses the test file location.
input
stream-toRdf/0016-in.jsonld
expect
stream-toRdf/0016-out.nq
Test t0017 Relative IRI expands relative resource location
id
#t0017
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expanding a relative IRI uses the test file location.
input
stream-toRdf/0017-in.jsonld
expect
stream-toRdf/0017-out.nq
Test t0018 Frag ID expands relative resource location
id
#t0018
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expanding a fragment uses the test file location.
input
stream-toRdf/0018-in.jsonld
expect
stream-toRdf/0018-out.nq
Test t0019 Test type coercion to anyURI
id
#t0019
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests coercion of object to anyURI when specified.
input
stream-toRdf/0019-in.jsonld
expect
stream-toRdf/0019-out.nq
Test t0020 Test type coercion to typed literal
id
#t0020
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests coercion of object to a typed literal when specified.
input
stream-toRdf/0020-in.jsonld
expect
stream-toRdf/0020-out.nq
Test t0022 Test coercion of double value
id
#t0022
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that a decimal value generates a xsd:double typed literal;.
input
stream-toRdf/0022-in.jsonld
expect
stream-toRdf/0022-out.nq
Test t0023 Test coercion of integer value
id
#t0023
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that a decimal value generates a xsd:integer typed literal.
input
stream-toRdf/0023-in.jsonld
expect
stream-toRdf/0023-out.nq
Test t0024 Test coercion of boolean value
id
#t0024
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that a decimal value generates a xsd:boolean typed literal.
input
stream-toRdf/0024-in.jsonld
expect
stream-toRdf/0024-out.nq
Test t0025 Test list coercion with single element
id
#t0025
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that an array with a single element on a property with @list coercion creates an RDF Collection.
input
stream-toRdf/0025-in.jsonld
expect
stream-toRdf/0025-out.nq
Test t0026 Test creation of multiple types
id
#t0026
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that @type with an array of types creates multiple types.
input
stream-toRdf/0026-in.jsonld
expect
stream-toRdf/0026-out.nq
Test t0027 Simple named graph (Wikidata)
id
#t0027
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Using @graph with other keys places triples in a named graph.
input
stream-toRdf/0027-in.jsonld
expect
stream-toRdf/0027-out.nq
Test t0028 Simple named graph
id
#t0028
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Signing a graph.
input
stream-toRdf/0028-in.jsonld
expect
stream-toRdf/0028-out.nq
Test t0029 named graph with embedded named graph
id
#t0029
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that named graphs containing named graphs flatten to single level of graph naming.
input
stream-toRdf/0029-in.jsonld
expect
stream-toRdf/0029-out.nq
Test t0030 top-level graph with string subject reference
id
#t0030
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests graphs containing subject references as strings.
input
stream-toRdf/0030-in.jsonld
expect
stream-toRdf/0030-out.nq
Test t0031 Reverse property
id
#t0031
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests conversion of reverse properties.
input
stream-toRdf/0031-in.jsonld
expect
stream-toRdf/0031-out.nq
Test t0032 @context reordering
id
#t0032
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that generated triples do not depend on order of @context.
input
stream-toRdf/0032-in.jsonld
expect
stream-toRdf/0032-out.nq
Test t0033 @id reordering
id
#t0033
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that generated triples do not depend on order of @id.
input
stream-toRdf/0033-in.jsonld
expect
stream-toRdf/0033-out.nq
Test t0034 context properties reordering
id
#t0034
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests that generated triples do not depend on order of properties inside @context.
input
stream-toRdf/0034-in.jsonld
expect
stream-toRdf/0034-out.nq
Test t0035 non-fractional numbers converted to xsd:double
id
#t0035
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
xsd:double's canonical lexical is used when converting numbers without fraction that are coerced to xsd:double
input
stream-toRdf/0035-in.jsonld
expect
stream-toRdf/0035-out.nq
Test t0036 Use nodeMapGeneration bnode labels
id
#t0036
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
The toRDF algorithm does not relabel blank nodes; it reuses the counter from the nodeMapGeneration to generate new ones
input
stream-toRdf/0036-in.jsonld
expect
stream-toRdf/0036-out.nq
Test t0113 Dataset with a IRI named graph
id
#t0113
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Basic use of creating a named graph using an IRI name
input
stream-toRdf/0113-in.jsonld
expect
stream-toRdf/0113-out.nq
Test t0114 Dataset with a IRI named graph
id
#t0114
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Basic use of creating a named graph using a BNode name
input
stream-toRdf/0114-in.jsonld
expect
stream-toRdf/0114-out.nq
Test t0115 Dataset with a default and two named graphs
id
#t0115
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Dataset with a default and two named graphs (IRI and BNode)
input
stream-toRdf/0115-in.jsonld
expect
stream-toRdf/0115-out.nq
Test t0116 Dataset from node with embedded named graph
id
#t0116
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Embedding @graph in a node creates a named graph
input
stream-toRdf/0116-in.jsonld
expect
stream-toRdf/0116-out.nq
Test t0117 Dataset from node with embedded named graph (bnode)
id
#t0117
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Embedding @graph in a node creates a named graph. Graph name is created if there is no subject
input
stream-toRdf/0117-in.jsonld
expect
stream-toRdf/0117-out.nq
Test t0118 produce generalized RDF flag
id
#t0118
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Triples with blank node predicates are not dropped if the produce generalized RDF flag is true.
input
stream-toRdf/0118-in.jsonld
expect
stream-toRdf/0118-out.nq
Options
specVersion
json-ld-1.0
produceGeneralizedRdf
true
Test t0119 Blank nodes with reverse properties
id
#t0119
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Proper (re-)labeling of blank nodes if used with reverse properties.
input
stream-toRdf/0119-in.jsonld
expect
stream-toRdf/0119-out.nq
Test t0120 IRI Resolution (0)
id
#t0120
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0120-in.jsonld
expect
stream-toRdf/0120-out.nq
Test t0121 IRI Resolution (1)
id
#t0121
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0121-in.jsonld
expect
stream-toRdf/0121-out.nq
Test t0122 IRI Resolution (2)
id
#t0122
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0122-in.jsonld
expect
stream-toRdf/0122-out.nq
Test t0123 IRI Resolution (3)
id
#t0123
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0123-in.jsonld
expect
stream-toRdf/0123-out.nq
Test t0124 IRI Resolution (4)
id
#t0124
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0124-in.jsonld
expect
stream-toRdf/0124-out.nq
Test t0125 IRI Resolution (5)
id
#t0125
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0125-in.jsonld
expect
stream-toRdf/0125-out.nq
Test t0126 IRI Resolution (6)
id
#t0126
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0126-in.jsonld
expect
stream-toRdf/0126-out.nq
Test t0127 IRI Resolution (7)
id
#t0127
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0127-in.jsonld
expect
stream-toRdf/0127-out.nq
Test t0128 IRI Resolution (8)
id
#t0128
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0128-in.jsonld
expect
stream-toRdf/0128-out.nq
Test t0129 IRI Resolution (9)
id
#t0129
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0129-in.jsonld
expect
stream-toRdf/0129-out.nq
Test t0130 IRI Resolution (10)
id
#t0130
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0130-in.jsonld
expect
stream-toRdf/0130-out.nq
Test t0131 IRI Resolution (11)
id
#t0131
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0131-in.jsonld
expect
stream-toRdf/0131-out.nq
Test t0132 IRI Resolution (12)
id
#t0132
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
IRI resolution according to RFC3986.
input
stream-toRdf/0132-in.jsonld
expect
stream-toRdf/0132-out.nq
Test tc001 adding new term
id
#tc001
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
stream-toRdf/c001-in.jsonld
expect
stream-toRdf/c001-out.nq
Options
specVersion
json-ld-1.1
Test tc002 overriding a term
id
#tc002
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
stream-toRdf/c002-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
stream-toRdf/c003-in.jsonld
expect
stream-toRdf/c003-out.nq
Options
specVersion
json-ld-1.1
Test tc004 deep @context affects nested nodes
id
#tc004
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
stream-toRdf/c004-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
stream-toRdf/c005-in.jsonld
expect
stream-toRdf/c005-out.nq
Options
specVersion
json-ld-1.1
Test tc006 adding new term
id
#tc006
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c006-in.jsonld
expect
stream-toRdf/c006-out.nq
Options
specVersion
json-ld-1.1
Test tc007 overriding a term
id
#tc007
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c007-in.jsonld
expect
stream-toRdf/c007-out.nq
Options
specVersion
json-ld-1.1
Test tc008 alias of @type
id
#tc008
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c008-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c009-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c010-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c011-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c012-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/c013-in.jsonld
expect
stream-toRdf/c013-out.nq
Options
specVersion
json-ld-1.1
Test tc014 type-scoped context nullification
id
#tc014
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
type-scoped context nullification
input
stream-toRdf/c014-in.jsonld
expect
stream-toRdf/c014-out.nq
Options
specVersion
json-ld-1.1
Test tc015 type-scoped base
id
#tc015
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
type-scoped base
input
stream-toRdf/c015-in.jsonld
expect
stream-toRdf/c015-out.nq
Options
specVersion
json-ld-1.1
Test tc016 type-scoped vocab
id
#tc016
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
type-scoped vocab
input
stream-toRdf/c016-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
multiple type-scoped contexts are property reverted
input
stream-toRdf/c017-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
multiple type-scoped types resolved against previous context
input
stream-toRdf/c018-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
type-scoped context with multiple property scoped terms
input
stream-toRdf/c019-in.jsonld
expect
stream-toRdf/c019-out.nq
Options
specVersion
json-ld-1.1
Test tc020 type-scoped value
id
#tc020
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
type-scoped value
input
stream-toRdf/c020-in.jsonld
expect
stream-toRdf/c020-out.nq
Options
specVersion
json-ld-1.1
Test tc021 type-scoped value mix
id
#tc021
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
type-scoped value mix
input
stream-toRdf/c021-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
type-scoped property-scoped contexts including @type:@vocab
input
stream-toRdf/c022-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
composed type-scoped property-scoped contexts including @type:@vocab
input
stream-toRdf/c023-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
type-scoped + property-scoped + values evaluates against previous context
input
stream-toRdf/c024-in.jsonld
expect
stream-toRdf/c024-out.nq
Options
specVersion
json-ld-1.1
Test tc025 type-scoped + graph container
id
#tc025
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
type-scoped + graph container
input
stream-toRdf/c025-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
type-scoped context with @propagate: true survive node-objects
input
stream-toRdf/c026-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
property-scoped context with @propagate: false do not survive node-objects
input
stream-toRdf/c027-in.jsonld
expect
stream-toRdf/c027-out.nq
Options
specVersion
json-ld-1.1
Test tc028 @propagate: false on embedded context
id
#tc028
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
embedded context with @propagate: false do not survive node-objects
input
stream-toRdf/c028-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
@propagate is invalid in 1.0
input
stream-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, jld:StreamTest
Purpose
@propagate must be boolean valued
input
stream-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, jld:StreamTest
Purpose
URL resolution follows RFC3986
input
stream-toRdf/c031-in.jsonld
expect
stream-toRdf/c031-out.nq
Options
specVersion
json-ld-1.1
Test tc032 Unused embedded context with error.
id
#tc032
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
An embedded context which is never used should still be checked.
input
stream-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, jld:StreamTest
Purpose
An unused context with an embedded context should still be checked.
input
stream-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, jld:StreamTest
Purpose
Scoped contexts may be externally loaded.
input
stream-toRdf/c034-in.jsonld
expect
stream-toRdf/c034-out.nq
Options
specVersion
json-ld-1.1
Test tc035 Term scoping with embedded contexts.
id
#tc035
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Terms should make use of @vocab relative to the scope in which the term was defined.
input
stream-toRdf/c035-in.jsonld
expect
stream-toRdf/c035-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
stream-toRdf/di01-in.jsonld
expect
stream-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
stream-toRdf/di02-in.jsonld
expect
stream-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
stream-toRdf/di03-in.jsonld
expect
stream-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
stream-toRdf/di04-in.jsonld
expect
stream-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
stream-toRdf/di05-in.jsonld
expect
stream-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
stream-toRdf/di06-in.jsonld
expect
stream-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
stream-toRdf/di07-in.jsonld
expect
stream-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
stream-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
stream-toRdf/di09-in.jsonld
expect
stream-toRdf/di09-out.nq
Options
specVersion
json-ld-1.1
rdfDirection
i18n-datatype
normative
false
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
stream-toRdf/di10-in.jsonld
expect
stream-toRdf/di10-out.nq
Options
specVersion
json-ld-1.1
rdfDirection
i18n-datatype
normative
false
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
stream-toRdf/di11-in.jsonld
expect
stream-toRdf/di11-out.nq
Options
specVersion
json-ld-1.1
rdfDirection
compound-literal
normative
false
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
stream-toRdf/di12-in.jsonld
expect
stream-toRdf/di12-out.nq
Options
specVersion
json-ld-1.1
rdfDirection
compound-literal
normative
false
Test te001 drop free-floating nodes
id
#te001
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Free-floating nodes do not generate RDF triples (from expand-0001)
input
stream-toRdf/e001-in.jsonld
expect
stream-toRdf/e001-out.nq
Test te002 basic
id
#te002
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Basic RDF conversion (from expand-0002)
input
stream-toRdf/e002-in.jsonld
expect
stream-toRdf/e002-out.nq
Test te003 drop null and unmapped properties
id
#te003
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties mapped to null or which are never mapped are dropped (from expand-0003)
input
stream-toRdf/e003-in.jsonld
expect
stream-toRdf/e003-out.nq
Test te004 optimize @set, keep empty arrays
id
#te004
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0004
input
stream-toRdf/e004-in.jsonld
expect
stream-toRdf/e004-out.nq
Test te005 do not expand aliased @id/@type
id
#te005
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0005
input
stream-toRdf/e005-in.jsonld
expect
stream-toRdf/e005-out.nq
Test te006 alias keywords
id
#te006
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0006
input
stream-toRdf/e006-in.jsonld
expect
stream-toRdf/e006-out.nq
Test te007 date type-coercion
id
#te007
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Type-coerced dates generate typed literals (from expand-0007)
input
stream-toRdf/e007-in.jsonld
expect
stream-toRdf/e007-out.nq
Test te008 @value with @language
id
#te008
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0008
input
stream-toRdf/e008-in.jsonld
expect
stream-toRdf/e008-out.nq
Test te009 @graph with terms
id
#te009
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0009
input
stream-toRdf/e009-in.jsonld
expect
stream-toRdf/e009-out.nq
Test te010 native types
id
#te010
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Native types generate typed literals (from expand-0010)
input
stream-toRdf/e010-in.jsonld
expect
stream-toRdf/e010-out.nq
Test te011 coerced @id
id
#te011
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0011
input
stream-toRdf/e011-in.jsonld
expect
stream-toRdf/e011-out.nq
Test te012 @graph with embed
id
#te012
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0012
input
stream-toRdf/e012-in.jsonld
expect
stream-toRdf/e012-out.nq
Test te013 expand already expanded
id
#te013
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0013
input
stream-toRdf/e013-in.jsonld
expect
stream-toRdf/e013-out.nq
Test te014 @set of @value objects with keyword aliases
id
#te014
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0014
input
stream-toRdf/e014-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
RDF version of expand-0015
input
stream-toRdf/e015-in.jsonld
expect
stream-toRdf/e015-out.nq
Test te016 context reset
id
#te016
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0016
input
stream-toRdf/e016-in.jsonld
expect
stream-toRdf/e016-out.nq
Test te017 @graph and @id aliased
id
#te017
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0017
input
stream-toRdf/e017-in.jsonld
expect
stream-toRdf/e017-out.nq
Test te018 override default @language
id
#te018
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0018
input
stream-toRdf/e018-in.jsonld
expect
stream-toRdf/e018-out.nq
Test te019 remove @value = null
id
#te019
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0019
input
stream-toRdf/e019-in.jsonld
expect
stream-toRdf/e019-out.nq
Test te020 do not remove @graph if not at top-level
id
#te020
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Embedded @graph without @id creates BNode-labeled named graph (from expand-0020)
input
stream-toRdf/e020-in.jsonld
expect
stream-toRdf/e020-out.nq
Test te021 do not remove @graph at top-level if not only property
id
#te021
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0021
input
stream-toRdf/e021-in.jsonld
expect
stream-toRdf/e021-out.nq
Test te022 expand value with default language
id
#te022
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0022
input
stream-toRdf/e022-in.jsonld
expect
stream-toRdf/e022-out.nq
Test te023 Lists and sets of properties with list/set coercion
id
#te023
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0023
input
stream-toRdf/e023-in.jsonld
expect
stream-toRdf/e023-out.nq
Test te024 Multiple contexts
id
#te024
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0024
input
stream-toRdf/e024-in.jsonld
expect
stream-toRdf/e024-out.nq
Test te025 Problematic IRI expansion tests
id
#te025
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0025
input
stream-toRdf/e025-in.jsonld
expect
stream-toRdf/e025-out.nq
Test te026 Expanding term mapping to @type uses @type syntax
id
#te026
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0026
input
stream-toRdf/e026-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
RDF version of expand-0027
input
stream-toRdf/e027-in.jsonld
expect
stream-toRdf/e027-out.nq
Test te028 Use @vocab in properties and @type but not in @id
id
#te028
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0028
input
stream-toRdf/e028-in.jsonld
expect
stream-toRdf/e028-out.nq
Test te029 Relative IRIs
id
#te029
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0029
input
stream-toRdf/e029-in.jsonld
expect
stream-toRdf/e029-out.nq
Test te030 Language maps
id
#te030
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0030
input
stream-toRdf/e030-in.jsonld
expect
stream-toRdf/e030-out.nq
Test te031 type-coercion of native types
id
#te031
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0031
input
stream-toRdf/e031-in.jsonld
expect
stream-toRdf/e031-out.nq
Test te032 Mapping a term to null decouples it from @vocab
id
#te032
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0032
input
stream-toRdf/e032-in.jsonld
expect
stream-toRdf/e032-out.nq
Test te033 Using @vocab with with type-coercion
id
#te033
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0033
input
stream-toRdf/e033-in.jsonld
expect
stream-toRdf/e033-out.nq
Test te034 Multiple properties expanding to the same IRI
id
#te034
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0034
input
stream-toRdf/e034-in.jsonld
expect
stream-toRdf/e034-out.nq
Test te035 Language maps with @vocab, default language, and colliding property
id
#te035
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0035
input
stream-toRdf/e035-in.jsonld
expect
stream-toRdf/e035-out.nq
Test te036 Expanding @index
id
#te036
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0036
input
stream-toRdf/e036-in.jsonld
expect
stream-toRdf/e036-out.nq
Test te037 Expanding @reverse
id
#te037
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0037
input
stream-toRdf/e037-in.jsonld
expect
stream-toRdf/e037-out.nq
Test te038 Drop blank node predicates by default
id
#te038
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Triples with blank node predicates are dropped by default (from expand-0038).
input
stream-toRdf/e038-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
RDF version of expand-0039
input
stream-toRdf/e039-in.jsonld
expect
stream-toRdf/e039-out.nq
Test te040 language and index expansion on non-objects
id
#te040
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0040
input
stream-toRdf/e040-in.jsonld
expect
stream-toRdf/e040-out.nq
Test te041 Reset the default language
id
#te041
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0041
input
stream-toRdf/e041-in.jsonld
expect
stream-toRdf/e041-out.nq
Test te042 Expanding reverse properties
id
#te042
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0042
input
stream-toRdf/e042-in.jsonld
expect
stream-toRdf/e042-out.nq
Test te043 Using reverse properties inside a @reverse-container
id
#te043
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0043
input
stream-toRdf/e043-in.jsonld
expect
stream-toRdf/e043-out.nq
Test te044 Ensure index maps use language mapping
id
#te044
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0044
input
stream-toRdf/e044-in.jsonld
expect
stream-toRdf/e044-out.nq
Test te045 Top-level value objects are removed
id
#te045
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0045
input
stream-toRdf/e045-in.jsonld
expect
stream-toRdf/e045-out.nq
Test te046 Free-floating nodes are removed
id
#te046
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0046
input
stream-toRdf/e046-in.jsonld
expect
stream-toRdf/e046-out.nq
Test te047 Remove free-floating set values and lists
id
#te047
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0047
input
stream-toRdf/e047-in.jsonld
expect
stream-toRdf/e047-out.nq
Test te048 Terms are ignored in @id
id
#te048
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0048
input
stream-toRdf/e048-in.jsonld
expect
stream-toRdf/e048-out.nq
Test te049 Using strings as value of a reverse property
id
#te049
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0049
input
stream-toRdf/e049-in.jsonld
expect
stream-toRdf/e049-out.nq
Test te050 Term definitions with prefix separate from prefix definitions
id
#te050
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0050
input
stream-toRdf/e050-in.jsonld
expect
stream-toRdf/e050-out.nq
Test te051 Expansion of keyword aliases in term definitions
id
#te051
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0051
input
stream-toRdf/e051-in.jsonld
expect
stream-toRdf/e051-out.nq
Test te052 @vocab-relative IRIs in term definitions
id
#te052
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0052
input
stream-toRdf/e052-in.jsonld
expect
stream-toRdf/e052-out.nq
Test te053 Expand absolute IRI with @type: @vocab
id
#te053
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0053
input
stream-toRdf/e053-in.jsonld
expect
stream-toRdf/e053-out.nq
Test te054 Expand term with @type: @vocab
id
#te054
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0054
input
stream-toRdf/e054-in.jsonld
expect
stream-toRdf/e054-out.nq
Test te055 Expand @vocab-relative term with @type: @vocab
id
#te055
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0055
input
stream-toRdf/e055-in.jsonld
expect
stream-toRdf/e055-out.nq
Test te056 Use terms with @type: @vocab but not with @type: @id
id
#te056
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0056
input
stream-toRdf/e056-in.jsonld
expect
stream-toRdf/e056-out.nq
Test te057 Expand relative IRI with @type: @vocab
id
#te057
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0057
input
stream-toRdf/e057-in.jsonld
expect
stream-toRdf/e057-out.nq
Test te058 Expand compact IRI with @type: @vocab
id
#te058
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0058
input
stream-toRdf/e058-in.jsonld
expect
stream-toRdf/e058-out.nq
Test te059 Reset @vocab by setting it to null
id
#te059
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0059
input
stream-toRdf/e059-in.jsonld
expect
stream-toRdf/e059-out.nq
Test te060 Overwrite document base with @base and reset it again
id
#te060
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0060
input
stream-toRdf/e060-in.jsonld
expect
stream-toRdf/e060-out.nq
Test te061 Coercing native types to arbitrary datatypes
id
#te061
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0061
input
stream-toRdf/e061-in.jsonld
expect
stream-toRdf/e061-out.nq
Test te062 Various relative IRIs with with @base
id
#te062
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0062
input
stream-toRdf/e062-in.jsonld
expect
stream-toRdf/e062-out.nq
Test te063 Expand a reverse property with an index-container
id
#te063
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0063
input
stream-toRdf/e063-in.jsonld
expect
stream-toRdf/e063-out.nq
Test te064 Expand reverse property whose values are unlabeled blank nodes
id
#te064
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0064
input
stream-toRdf/e064-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
RDF version of expand-0065
input
stream-toRdf/e065-in.jsonld
expect
stream-toRdf/e065-out.nq
Test te066 Use @vocab to expand keys in reverse-maps
id
#te066
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0066
input
stream-toRdf/e066-in.jsonld
expect
stream-toRdf/e066-out.nq
Test te067 prefix:://sufffix not a compact IRI
id
#te067
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0067
input
stream-toRdf/e067-in.jsonld
expect
stream-toRdf/e067-out.nq
Test te068 _::sufffix not a compact IRI
id
#te068
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0068
input
stream-toRdf/e068-in.jsonld
expect
stream-toRdf/e068-out.nq
Test te069 Compact IRI as term with type mapping
id
#te069
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0069
input
stream-toRdf/e069-in.jsonld
expect
stream-toRdf/e069-out.nq
Test te070 Redefine compact IRI with itself
id
#te070
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0070
input
stream-toRdf/e070-in.jsonld
expect
stream-toRdf/e070-out.nq
Test te071 Redefine terms looking like compact IRIs
id
#te071
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
RDF version of expand-0071
input
stream-toRdf/e071-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
RDF version of expand-0072
input
stream-toRdf/e072-in.jsonld
expect
stream-toRdf/e072-out.nq
Test te073 @context not first property
id
#te073
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
input
stream-toRdf/e073-in.jsonld
expect
stream-toRdf/e073-out.nq
Test te074 @id not first property
id
#te074
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
input
stream-toRdf/e074-in.jsonld
expect
stream-toRdf/e074-out.nq
Test te075 @vocab as blank node identifier
id
#te075
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use @vocab to map all properties to blank node identifiers
input
stream-toRdf/e075-in.jsonld
expect
stream-toRdf/e075-out.nq
Options
processingMode
json-ld-1.0
produceGeneralizedRdf
true
Test te076 base option overrides document location
id
#te076
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of the base option overrides the document location
input
stream-toRdf/e076-in.jsonld
expect
stream-toRdf/e076-out.nq
Options
base
http://example/base/
Test te077 expandContext option
id
#te077
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of the expandContext option to expand the input document
input
stream-toRdf/e077-in.jsonld
expect
stream-toRdf/e077-out.nq
Options
expandContext
stream-toRdf/e077-context.jsonld
Test te078 multiple reverse properties
id
#te078
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of multiple reverse properties
input
stream-toRdf/e078-in.jsonld
expect
stream-toRdf/e078-out.nq
Test te079 expand @graph container
id
#te079
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of @graph containers
input
stream-toRdf/e079-in.jsonld
expect
stream-toRdf/e079-out.nq
Options
specVersion
json-ld-1.1
Test te080 expand [@graph, @set] container
id
#te080
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of [@graph, @set] containers
input
stream-toRdf/e080-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Don't double-expand an already expanded graph
input
stream-toRdf/e081-in.jsonld
expect
stream-toRdf/e081-out.nq
Options
specVersion
json-ld-1.1
Test te082 expand [@graph, @index] container
id
#te082
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of @graph containers with @index
input
stream-toRdf/e082-in.jsonld
expect
stream-toRdf/e082-out.nq
Options
specVersion
json-ld-1.1
Test te083 expand [@graph, @index, @set] container
id
#te083
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of @graph containers with @index and @set
input
stream-toRdf/e083-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e084-in.jsonld
expect
stream-toRdf/e084-out.nq
Options
specVersion
json-ld-1.1
Test te085 expand [@graph, @id] container
id
#te085
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of @graph containers with @id
input
stream-toRdf/e085-in.jsonld
expect
stream-toRdf/e085-out.nq
Options
specVersion
json-ld-1.1
Test te086 expand [@graph, @id, @set] container
id
#te086
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of @graph containers with @id and @set
input
stream-toRdf/e086-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e087-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Value Expansion does not expand native values, such as booleans, to a node object
input
stream-toRdf/e088-in.jsonld
expect
stream-toRdf/e088-out.nq
Test te089 empty @base applied to the base option
id
#te089
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of an empty @base is applied to the base option
input
stream-toRdf/e089-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of a relative @base overrides base option and document location
input
stream-toRdf/e090-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of a relative and absolute @base overrides base option and document location
input
stream-toRdf/e091-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Pathological relative property IRIs
input
stream-toRdf/e092-in.jsonld
expect
stream-toRdf/e092-out.nq
Options
specVersion
json-ld-1.1
Test te093 expand @graph container (multiple objects)
id
#te093
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Use of @graph containers
input
stream-toRdf/e093-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of [@graph, @set] containers
input
stream-toRdf/e094-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Don't double-expand an already expanded graph
input
stream-toRdf/e095-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of @graph containers with @index
input
stream-toRdf/e096-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of @graph containers with @index and @set
input
stream-toRdf/e097-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e098-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of @graph containers with @id
input
stream-toRdf/e099-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of @graph containers with @id and @set
input
stream-toRdf/e100-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e101-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e102-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e103-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Don't double-expand an already expanded graph
input
stream-toRdf/e104-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e105-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
stream-toRdf/e106-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of @graph containers with @index
input
stream-toRdf/e107-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Use of @graph containers with @id
input
stream-toRdf/e108-in.jsonld
expect
stream-toRdf/e108-out.nq
Options
specVersion
json-ld-1.1
Test te109 IRI expansion of fragments including ':'
id
#te109
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
input
stream-toRdf/e109-in.jsonld
expect
stream-toRdf/e109-out.nq
Test te110 Various relative IRIs as properties with with relative @vocab
id
#te110
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Pathological relative property IRIs
input
stream-toRdf/e110-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Pathological relative property IRIs
input
stream-toRdf/e111-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Pathological relative property IRIs
input
stream-toRdf/e112-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expand with context including JavaScript Object property names
input
stream-toRdf/e113-in.jsonld
expect
stream-toRdf/e113-out.nq
Test te114 Expansion allows multiple properties expanding to @type
id
#te114
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
An exception for the colliding keywords error is made for @type
input
stream-toRdf/e114-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Pathological relative property IRIs in 1.0
input
stream-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, jld:StreamTest
Purpose
Pathological relative property IRIs in 1.0
input
stream-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, jld:StreamTest
Purpose
Terms may begin with a colon and not be treated as IRIs.
input
stream-toRdf/e117-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Terms may begin with a colon and not be treated as IRIs.
input
stream-toRdf/e118-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
input
stream-toRdf/e119-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
input
stream-toRdf/e120-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
input
stream-toRdf/e121-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword.
input
stream-toRdf/e122-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Processors MUST validate datatype IRIs.
input
stream-toRdf/e123-in.jsonld
expect
invalid typed value
Options
specVersion
json-ld-1.1
Test t0124 compact IRI as @vocab
id
#t0124
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Verifies that @vocab defined as a compact IRI expands properly
input
stream-toRdf/e124-in.jsonld
expect
stream-toRdf/e124-out.nq
Options
specVersion
json-ld-1.1
Test t0125 term as @vocab
id
#t0125
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Verifies that @vocab defined as a term expands properly
input
stream-toRdf/e125-in.jsonld
expect
stream-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
stream-toRdf/e126-in.jsonld
expect
stream-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
stream-toRdf/e127-in.jsonld
expect
stream-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
stream-toRdf/e128-in.jsonld
expect
stream-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
stream-toRdf/e129-in.jsonld
expect
stream-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
stream-toRdf/e130-in.jsonld
expect
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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, jld:StreamTest
Purpose
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
input
stream-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, jld:StreamTest
Purpose
If @version is specified, it must be 1.1
input
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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
stream-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, jld:StreamTest
Purpose
Expanding term mapping to @type uses @type syntax now illegal
input
stream-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, jld:StreamTest
Purpose
Term definitions may look like compact IRIs, but must be consistent.
input
stream-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, jld:StreamTest
Purpose
Verifies that a relative IRI cannot be used as a term.
input
stream-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, jld:StreamTest
Purpose
Verifies that a relative IRI cannot be used as a term.
input
stream-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
stream-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
stream-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
stream-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
stream-toRdf/er53-in.jsonld
expect
invalid @prefix value
Test tin01 Basic Included array
id
#tin01
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests included blocks.
input
stream-toRdf/in01-in.jsonld
expect
stream-toRdf/in01-out.nq
Options
specVersion
json-ld-1.1
Test tin02 Basic Included object
id
#tin02
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests included blocks.
input
stream-toRdf/in02-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests included blocks.
input
stream-toRdf/in03-in.jsonld
expect
stream-toRdf/in03-out.nq
Options
specVersion
json-ld-1.1
Test tin04 Included containing @included
id
#tin04
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests included blocks.
input
stream-toRdf/in04-in.jsonld
expect
stream-toRdf/in04-out.nq
Options
specVersion
json-ld-1.1
Test tin05 Property value with @included
id
#tin05
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests included blocks.
input
stream-toRdf/in05-in.jsonld
expect
stream-toRdf/in05-out.nq
Options
specVersion
json-ld-1.1
Test tin06 json.api example
id
#tin06
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Tests included blocks.
input
stream-toRdf/in06-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests included blocks.
input
stream-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, jld:StreamTest
Purpose
Tests included blocks.
input
stream-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, jld:StreamTest
Purpose
Tests included blocks.
input
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (boolean true).
input
stream-toRdf/js01-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (boolean false).
input
stream-toRdf/js02-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (double).
input
stream-toRdf/js03-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (double-zero).
input
stream-toRdf/js04-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (integer).
input
stream-toRdf/js05-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (object).
input
stream-toRdf/js06-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (array).
input
stream-toRdf/js07-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with array canonicalization.
input
stream-toRdf/js08-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with string canonicalization.
input
stream-toRdf/js09-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with structural canonicalization.
input
stream-toRdf/js10-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with unicode canonicalization.
input
stream-toRdf/js11-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with value canonicalization.
input
stream-toRdf/js12-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with wierd canonicalization.
input
stream-toRdf/js13-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal does not expand terms inside json.
input
stream-toRdf/js14-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal in expanded form.
input
stream-toRdf/js15-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal in expanded form with aliased keys in value object.
input
stream-toRdf/js16-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (string).
input
stream-toRdf/js17-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (null).
input
stream-toRdf/js18-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with aliased @type.
input
stream-toRdf/js19-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with aliased @value.
input
stream-toRdf/js20-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming JSON literal with a @context.
input
stream-toRdf/js21-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (null).
input
stream-toRdf/js22-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Tests transforming property with @type @json to a JSON literal (empty array).
input
stream-toRdf/js23-in.jsonld
expect
stream-toRdf/js23-out.nq
Options
specVersion
json-ld-1.1
useJCS
true
Test tli01 @list containing @list
id
#tli01
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
List of lists.
input
stream-toRdf/li01-in.jsonld
expect
stream-toRdf/li01-out.nq
Options
specVersion
json-ld-1.1
Test tli02 @list containing empty @list
id
#tli02
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
List of lists.
input
stream-toRdf/li02-in.jsonld
expect
stream-toRdf/li02-out.nq
Options
specVersion
json-ld-1.1
Test tli03 @list containing @list (with coercion)
id
#tli03
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li03-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li04-in.jsonld
expect
stream-toRdf/li04-out.nq
Options
specVersion
json-ld-1.1
Test tli05 coerced @list containing an array
id
#tli05
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li05-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li06-in.jsonld
expect
stream-toRdf/li06-out.nq
Options
specVersion
json-ld-1.1
Test tli07 coerced @list containing deep arrays
id
#tli07
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li07-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li08-in.jsonld
expect
stream-toRdf/li08-out.nq
Options
specVersion
json-ld-1.1
Test tli09 coerced @list containing multiple lists
id
#tli09
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li09-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
List of lists
input
stream-toRdf/li10-in.jsonld
expect
stream-toRdf/li10-out.nq
Options
specVersion
json-ld-1.1
Test tm001 Adds @id to object not having an @id
id
#tm001
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using @container: @id
input
stream-toRdf/m001-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @container: @id
input
stream-toRdf/m002-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @container: @type
input
stream-toRdf/m003-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @container: @type
input
stream-toRdf/m004-in.jsonld
expect
stream-toRdf/m004-out.nq
Options
specVersion
json-ld-1.1
Test tm005 Adds expanded @id to object
id
#tm005
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using @container: @id
input
stream-toRdf/m005-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @container: @type
input
stream-toRdf/m006-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @container: @type
input
stream-toRdf/m007-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
scoped context on @type
input
stream-toRdf/m008-in.jsonld
expect
stream-toRdf/m008-out.nq
Options
specVersion
json-ld-1.1
Test tm009 language map with @none
id
#tm009
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
index on @language
input
stream-toRdf/m009-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @language
input
stream-toRdf/m010-in.jsonld
expect
stream-toRdf/m010-out.nq
Options
specVersion
json-ld-1.1
Test tm011 id map with @none
id
#tm011
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
index on @id
input
stream-toRdf/m011-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @type
input
stream-toRdf/m012-in.jsonld
expect
stream-toRdf/m012-out.nq
Options
specVersion
json-ld-1.1
Test tm013 graph index map with @none
id
#tm013
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
index on @graph and @index
input
stream-toRdf/m013-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @graph and @index
input
stream-toRdf/m014-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @graph and @id with @none
input
stream-toRdf/m015-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @graph and @id with @none
input
stream-toRdf/m016-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @type
input
stream-toRdf/m017-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @type
input
stream-toRdf/m018-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @type
input
stream-toRdf/m019-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
index on @type
input
stream-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, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n001-in.jsonld
expect
stream-toRdf/n001-out.nq
Options
specVersion
json-ld-1.1
Test tn002 Expands input using aliased @nest
id
#tn002
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n002-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n003-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n004-in.jsonld
expect
stream-toRdf/n004-out.nq
Options
specVersion
json-ld-1.1
Test tn005 Nested nested containers
id
#tn005
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n005-in.jsonld
expect
stream-toRdf/n005-out.nq
Options
specVersion
json-ld-1.1
Test tn006 Arrays of nested values
id
#tn006
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n006-in.jsonld
expect
stream-toRdf/n006-out.nq
Options
specVersion
json-ld-1.1
Test tn007 A nest of arrays
id
#tn007
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n007-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expansion using @nest
input
stream-toRdf/n008-in.jsonld
expect
stream-toRdf/n008-out.nq
Options
specVersion
json-ld-1.1
Test tnt01 literal_ascii_boundaries
id
#tnt01
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal_ascii_boundaries '\x00\x26\x28...' from N-Triples
input
stream-toRdf/nt01-in.jsonld
expect
Test tnt02 literal_with_UTF8_boundaries
id
#tnt02
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal_with_UTF8_boundaries '\x80\x7ff\x800\xfff...' from N-Triples
input
stream-toRdf/nt02-in.jsonld
expect
Test tnt03 literal_all_controls
id
#tnt03
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal_all_controls '\x00\x01\x02\x03\x04...' from N-Triples
input
stream-toRdf/nt03-in.jsonld
expect
Test tnt04 literal_all_punctuation
id
#tnt04
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal_all_punctuation '!"#$%&()...' from N-Triples
input
stream-toRdf/nt04-in.jsonld
expect
Test tnt05 literal_with_squote
id
#tnt05
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with squote "x'y" from N-Triples
input
stream-toRdf/nt05-in.jsonld
expect
Test tnt06 literal_with_2_squotes
id
#tnt06
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with 2 squotes "x''y" from N-Triples
input
stream-toRdf/nt06-in.jsonld
expect
Test tnt07 literal_with_dquote
id
#tnt07
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with dquote "x"y" from N-Triples
input
stream-toRdf/nt07-in.jsonld
expect
Test tnt08 literal_with_2_dquotes
id
#tnt08
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with 2 dquotes """a""b""" from N-Triples
input
stream-toRdf/nt08-in.jsonld
expect
Test tnt09 literal_with_REVERSE_SOLIDUS2
id
#tnt09
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
REVERSE SOLIDUS at end of literal from N-Triples
input
stream-toRdf/nt09-in.jsonld
expect
Test tnt10 literal_with_CHARACTER_TABULATION
id
#tnt10
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with CHARACTER TABULATION from N-Triples
input
stream-toRdf/nt10-in.jsonld
expect
Test tnt11 literal_with_BACKSPACE
id
#tnt11
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with BACKSPACE from N-Triples
input
stream-toRdf/nt11-in.jsonld
expect
Test tnt12 literal_with_LINE_FEED
id
#tnt12
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with LINE FEED from N-Triples
input
stream-toRdf/nt12-in.jsonld
expect
Test tnt13 literal_with_CARRIAGE_RETURN
id
#tnt13
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with CARRIAGE RETURN from N-Triples
input
stream-toRdf/nt13-in.jsonld
expect
Test tnt14 literal_with_FORM_FEED
id
#tnt14
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with FORM FEED from N-Triples
input
stream-toRdf/nt14-in.jsonld
expect
Test tnt15 literal_with_REVERSE_SOLIDUS
id
#tnt15
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with REVERSE SOLIDUS from N-Triples
input
stream-toRdf/nt15-in.jsonld
expect
Test tnt16 literal_with_numeric_escape4
id
#tnt16
Type
jld:PositiveSyntaxTest, jld:ToRDFTest, jld:StreamTest
Purpose
literal with numeric escape4 \u from N-Triples
input
stream-toRdf/nt16-in.jsonld
expect
Test tp001 @version may be specified after first context
id
#tp001
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
stream-toRdf/p001-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
stream-toRdf/p002-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
stream-toRdf/p003-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
stream-toRdf/p004-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-toRdf/pi06-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-toRdf/pi07-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-toRdf/pi08-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-toRdf/pi09-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-toRdf/pi10-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Expanding index maps where index is a property.
input
stream-toRdf/pi11-in.jsonld
expect
stream-toRdf/pi11-out.nq
Options
specVersion
json-ld-1.1
Test tpr01 Protect a term
id
#tpr01
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Check error when overriding a protected term.
input
stream-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, jld:StreamTest
Purpose
A term with @protected: false is not protected.
input
stream-toRdf/pr02-in.jsonld
expect
stream-toRdf/pr02-out.nq
Options
specVersion
json-ld-1.1
Test tpr03 Protect all terms in context
id
#tpr03
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
A protected context protects all term definitions.
input
stream-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, jld:StreamTest
Purpose
A protected context does not protect terms with @protected: false.
input
stream-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, jld:StreamTest
Purpose
The Active context be set to null from an embedded context.
input
stream-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, jld:StreamTest
Purpose
The Active context may be set to null from a scoped context of a term.
input
stream-toRdf/pr06-in.jsonld
expect
stream-toRdf/pr06-out.nq
Options
specVersion
json-ld-1.1
Test tpr08 Term with protected scoped context.
id
#tpr08
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
A scoped context can protect terms.
input
stream-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, jld:StreamTest
Purpose
A protected term cannot redefine another protected term.
input
stream-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, jld:StreamTest
Purpose
Simple protected and unprotected terms.
input
stream-toRdf/pr10-in.jsonld
expect
stream-toRdf/pr10-out.nq
Options
specVersion
json-ld-1.1
Test tpr11 Fail to override protected term.
id
#tpr11
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Fail to override protected term.
input
stream-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, jld:StreamTest
Purpose
Scoped context fail to override protected term.
input
stream-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, jld:StreamTest
Purpose
Override unprotected term.
input
stream-toRdf/pr13-in.jsonld
expect
stream-toRdf/pr13-out.nq
Options
specVersion
json-ld-1.1
Test tpr14 Clear protection with null context.
id
#tpr14
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Clear protection with null context.
input
stream-toRdf/pr14-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Clear protection with array with null context
input
stream-toRdf/pr15-in.jsonld
expect
stream-toRdf/pr15-out.nq
Options
specVersion
json-ld-1.1
Test tpr16 Override protected terms after null.
id
#tpr16
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Override protected terms after null.
input
stream-toRdf/pr16-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Fail to override protected terms with type.
input
stream-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, jld:StreamTest
Purpose
Fail to override protected terms with type+null+ctx.
input
stream-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, jld:StreamTest
Purpose
Mix of protected and unprotected terms.
input
stream-toRdf/pr19-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Fail with mix of protected and unprotected terms with type+null+ctx.
input
stream-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, jld:StreamTest
Purpose
Fail with mix of protected and unprotected terms with type+null.
input
stream-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, jld:StreamTest
Purpose
Check legal overriding of type-scoped protected term from nested node.
input
stream-toRdf/pr22-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Allows redefinition of protected alias term with same definition.
input
stream-toRdf/pr23-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Allows redefinition of protected prefix term with same definition.
input
stream-toRdf/pr24-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Allows redefinition of terms with scoped contexts using same definitions.
input
stream-toRdf/pr25-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Fails on redefinition of terms with scoped contexts using different definitions.
input
stream-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, jld:StreamTest
Purpose
Allows redefinition of protected alias term with same definition modulo protected flag.
input
stream-toRdf/pr27-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
A protected term with a null IRI mapping cannot be redefined.
input
stream-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, jld:StreamTest
Purpose
Expansion of Compact IRIs considers if the term can be used as a prefix.
input
stream-toRdf/pr29-in.jsonld
expect
stream-toRdf/pr29-out.nq
Options
specVersion
json-ld-1.1
Test tpr30 Keywords may be protected.
id
#tpr30
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Keywords may not be redefined other than to protect them.
input
stream-toRdf/pr30-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Keywords may not be redefined other than to protect them.
input
stream-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, jld:StreamTest
Purpose
Keywords may not be redefined other than to protect them.
input
stream-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, jld:StreamTest
Purpose
Keyword aliases can not be used as prefixes.
input
stream-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, jld:StreamTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
stream-toRdf/pr34-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
stream-toRdf/pr35-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
stream-toRdf/pr36-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
stream-toRdf/pr37-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
stream-toRdf/pr38-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
stream-toRdf/pr39-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
Check overriding of protected term from property-scoped context.
input
stream-toRdf/pr40-in.jsonld
expect
stream-toRdf/pr40-out.nq
Options
specVersion
json-ld-1.1
Test trt01 Representing numbers >= 1e21
id
#trt01
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
numbers with no fractions but that are >= 1e21 are represented as xsd:double
input
stream-toRdf/rt01-in.jsonld
expect
stream-toRdf/rt01-out.nq
Options
specVersion
json-ld-1.1
Test tse01 @context must come before @id
id
#tse01
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @context comes after @id
input
stream-toRdf/se01-in.jsonld
expect
invalid streaming key order
Test tse02 @context must come before properties
id
#tse02
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @context comes after properties
input
stream-toRdf/se02-in.jsonld
expect
invalid streaming key order
Test tse03 @context must come before @type with context
id
#tse03
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @context comes after @type with a type-scoped context
input
stream-toRdf/se03-in.jsonld
expect
invalid streaming key order
Test tse04 @type with context must come before @id
id
#tse04
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @type with context comes after @id
input
stream-toRdf/se04-in.jsonld
expect
invalid streaming key order
Test tse05 @type with context must come before properties
id
#tse05
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @type with context comes after properties
input
stream-toRdf/se05-in.jsonld
expect
invalid streaming key order
Test tse06 Embedded @context must come before @id
id
#tse06
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if embedded @context comes after @id
input
stream-toRdf/se06-in.jsonld
expect
invalid streaming key order
Test tse07 Embedded @context must come before properties
id
#tse07
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if embedded @context comes after properties
input
stream-toRdf/se07-in.jsonld
expect
invalid streaming key order
Test tse08 @type must come before @id
id
#tse08
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @type comes after @id
input
stream-toRdf/se08-in.jsonld
expect
invalid streaming key order
Test tse09 @type must come before properties
id
#tse09
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Generate an error if @type comes after properties
input
stream-toRdf/se09-in.jsonld
expect
invalid streaming key order
Test tso01 @import is invalid in 1.0.
id
#tso01
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
@import is invalid in 1.0.
input
stream-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, jld:StreamTest
Purpose
@import must be a string.
input
stream-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, jld:StreamTest
Purpose
Processors must detect source contexts that include @import.
input
stream-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, jld:StreamTest
Purpose
type-scoped context with @propagate: true survive node-objects (with @import)
input
stream-toRdf/so05-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
property-scoped context with @propagate: false do not survive node-objects (with @import)
input
stream-toRdf/so06-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
A protected context protects all term definitions.
input
stream-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, jld:StreamTest
Purpose
The containing context is merged into the source context.
input
stream-toRdf/so08-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
The containing context is merged into the source context.
input
stream-toRdf/so09-in.jsonld
expect
stream-toRdf/so09-out.nq
Options
specVersion
json-ld-1.1
Test tso10 Protect terms in sourced context
id
#tso10
Type
jld:NegativeEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
The containing context is merged into the source context.
input
stream-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, jld:StreamTest
Purpose
The containing context is merged into the source context.
input
stream-toRdf/so11-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
@import only valid within a term definition.
input
stream-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, jld:StreamTest
Purpose
@import can only reference a single context.
input
stream-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, jld:StreamTest
Purpose
@type: @none is illegal in json-ld-1.0.
input
stream-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, jld:StreamTest
Purpose
@type: @none leaves inputs other than strings alone
input
stream-toRdf/tn02-in.jsonld
expect
stream-toRdf/tn02-out.nq
Options
specVersion
json-ld-1.1
Test tv001 @context, @id and properties
id
#tv001
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
@context, @id and properties
input
stream-toRdf/v001-in.jsonld
expect
stream-toRdf/v001-out.nq
Test tv002 @context, blank @id and properties
id
#tv002
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
@context, blank @id and properties
input
stream-toRdf/v002-in.jsonld
expect
stream-toRdf/v002-out.nq
Test tv003 @context, implicit @id and properties
id
#tv003
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
@context, implicit @id and properties
input
stream-toRdf/v003-in.jsonld
expect
stream-toRdf/v003-out.nq
Test tv004 Nested nodes
id
#tv004
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Nested nodes
input
stream-toRdf/v004-in.jsonld
expect
stream-toRdf/v004-out.nq
Test tv005 Nested nodes and embedded context
id
#tv005
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Nested nodes and embedded context
input
stream-toRdf/v005-in.jsonld
expect
stream-toRdf/v005-out.nq
Test tv006 @context, @type-scoped context, @id, and other properties
id
#tv006
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
@context, @type-scoped context, @id, and other properties
input
stream-toRdf/v006-in.jsonld
expect
stream-toRdf/v006-out.nq
Test tv008 No @context and @id
id
#tv008
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
@context and @id are not required
input
stream-toRdf/v008-in.jsonld
expect
stream-toRdf/v008-out.nq
Test tv009 Deeply nested nodes
id
#tv009
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Deeply nested nodes
input
stream-toRdf/v009-in.jsonld
expect
stream-toRdf/v009-out.nq
Test tv010 Deeply nested nodes without @id
id
#tv010
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Deeply nested nodes without @id
input
stream-toRdf/v010-in.jsonld
expect
stream-toRdf/v010-out.nq
Test tv011 @id after properties
id
#tv011
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties should be buffered until @id is encountered
input
stream-toRdf/v011-in.jsonld
expect
stream-toRdf/v011-out.nq
Test tv012 No @id after properties
id
#tv012
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties should be buffered until node closes
input
stream-toRdf/v012-in.jsonld
expect
stream-toRdf/v012-out.nq
Test tv013 @id after properties in nested node
id
#tv013
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties in nested node should be buffered until @id is encountered
input
stream-toRdf/v013-in.jsonld
expect
stream-toRdf/v013-out.nq
Test tv014 No @id after properties in nested node
id
#tv014
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties in nested node should be buffered until node closes
input
stream-toRdf/v014-in.jsonld
expect
stream-toRdf/v014-out.nq
Test tv015 @id after properties in nested node with outer @id after node
id
#tv015
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties in nested node with @id after node should be buffered until @id is encountered
input
stream-toRdf/v015-in.jsonld
expect
stream-toRdf/v015-out.nq
Test tv016 No @id after properties in nested node and no outer @id
id
#tv016
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties in nested node and no outer @id should be buffered until node closes
input
stream-toRdf/v016-in.jsonld
expect
stream-toRdf/v016-out.nq
Test tv017 @id after @graph and properties
id
#tv017
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties with @graph should be buffered until @id is encountered
input
stream-toRdf/v017-in.jsonld
expect
stream-toRdf/v017-out.nq
Test tv018 No @id after @graph and properties
id
#tv018
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties with @graph should be buffered until node closes
input
stream-toRdf/v018-in.jsonld
expect
stream-toRdf/v018-out.nq
Test tv019 @id after @graph and properties and late inner @id
id
#tv019
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties with @graph should be buffered until @id is encountered
input
stream-toRdf/v019-in.jsonld
expect
stream-toRdf/v019-out.nq
Test tv020 No @id after @graph and properties and late inner @id
id
#tv020
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties with @graph should be buffered until node closes and @id is encountered
input
stream-toRdf/v020-in.jsonld
expect
stream-toRdf/v020-out.nq
Test tv021 @id after @graph and properties and no @id
id
#tv021
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties with @graph should be buffered until node closes and @id is encountered
input
stream-toRdf/v021-in.jsonld
expect
stream-toRdf/v021-out.nq
Test tv022 No @id after @graph and properties and no @id
id
#tv022
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
Properties with @graph should be buffered until nodes close
input
stream-toRdf/v022-in.jsonld
expect
stream-toRdf/v022-out.nq
Test twf01 Triples including invalid subject IRIs are rejected
id
#twf01
Type
jld:PositiveEvaluationTest, jld:ToRDFTest, jld:StreamTest
Purpose
stream-toRdf emits only well-formed statements.
input
stream-toRdf/wf01-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
stream-toRdf emits only well-formed statements.
input
stream-toRdf/wf02-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
stream-toRdf emits only well-formed statements.
input
stream-toRdf/wf03-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
stream-toRdf emits only well-formed statements.
input
stream-toRdf/wf04-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
stream-toRdf emits only well-formed statements.
input
stream-toRdf/wf05-in.jsonld
expect
stream-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, jld:StreamTest
Purpose
stream-toRdf emits only well-formed statements.
input
stream-toRdf/wf07-in.jsonld
expect
stream-toRdf/wf07-out.nq
Options
specVersion
json-ld-1.1