Manifest
name: Transform JSON-LD to RDF
description: These tests implement the requirements for the JSON-LD [Deserialize JSON-LD to RDF Algorithm](https://www.w3.org/TR/json-ld11-api/#deserialize-json-ld-to-rdf-algorithm).
base iri: https://w3c.github.io/json-ld-api/tests/
sequence: t0001
sequence: t0002
sequence: t0003
sequence: t0004
sequence: t0005
sequence: t0006
sequence: t0007
sequence: t0008
sequence: t0009
sequence: t0010
sequence: t0011
sequence: t0012
sequence: t0013
sequence: t0014
sequence: t0015
sequence: t0016
sequence: t0017
sequence: t0018
sequence: t0019
sequence: t0020
sequence: t0022
sequence: t0023
sequence: t0024
sequence: t0025
sequence: t0026
sequence: t0027
sequence: t0028
sequence: t0029
sequence: t0030
sequence: t0031
sequence: t0032
sequence: t0033
sequence: t0034
sequence: t0035
sequence: t0036
sequence: t0113
sequence: t0114
sequence: t0115
sequence: t0116
sequence: t0117
sequence: t0118
sequence: t0119
sequence: t0120
sequence: t0121
sequence: t0122
sequence: t0123
sequence: t0124
sequence: t0125
sequence: t0126
sequence: t0127
sequence: t0128
sequence: t0129
sequence: t0130
sequence: t0131
sequence: t0132
sequence: tc001
sequence: tc002
sequence: tc003
sequence: tc004
sequence: tc005
sequence: tc006
sequence: tc007
sequence: tc008
sequence: tc009
sequence: tc010
sequence: tc011
sequence: tc012
sequence: tc013
sequence: tc014
sequence: tc015
sequence: tc016
sequence: tc017
sequence: tc018
sequence: tc019
sequence: tc020
sequence: tc021

t0001
type: PositiveEvaluationTest
type: ToRDFTest
name: Plain literal with URIs
purpose: Tests generation of a triple using full URIs and a plain literal.
input: toRdf/0001-in.jsonld
expect: toRdf/0001-out.nq

t0002
type: PositiveEvaluationTest
type: ToRDFTest
name: Plain literal with CURIE from default context
purpose: Tests generation of a triple using a CURIE defined in the default context.
input: toRdf/0002-in.jsonld
expect: toRdf/0002-out.nq

t0003
type: PositiveEvaluationTest
type: ToRDFTest
name: Default subject is BNode
purpose: Tests that a BNode is created if no explicit subject is set.
input: toRdf/0003-in.jsonld
expect: toRdf/0003-out.nq

t0004
type: PositiveEvaluationTest
type: ToRDFTest
name: Literal with language tag
purpose: Tests that a plain literal is created with a language tag.
input: toRdf/0004-in.jsonld
expect: toRdf/0004-out.nq

t0005
type: PositiveEvaluationTest
type: ToRDFTest
name: Extended character set literal
purpose: Tests that a literal may be created using extended characters.
input: toRdf/0005-in.jsonld
expect: toRdf/0005-out.nq

t0006
type: PositiveEvaluationTest
type: ToRDFTest
name: Typed literal
purpose: Tests creation of a literal with a datatype.
input: toRdf/0006-in.jsonld
expect: toRdf/0006-out.nq

t0007
type: PositiveEvaluationTest
type: ToRDFTest
name: Tests 'a' generates rdf:type and object is implicit IRI
purpose: Verify that 'a' is an alias for rdf:type, and the object is created as an IRI.
input: toRdf/0007-in.jsonld
expect: toRdf/0007-out.nq

t0008
type: PositiveEvaluationTest
type: ToRDFTest
name: Test prefix defined in @context
purpose: Generate an IRI using a prefix defined within an @context.
input: toRdf/0008-in.jsonld
expect: toRdf/0008-out.nq

t0009
type: PositiveEvaluationTest
type: ToRDFTest
name: Test using an empty suffix
purpose: An empty suffix may be used.
input: toRdf/0009-in.jsonld
expect: toRdf/0009-out.nq

t0010
type: PositiveEvaluationTest
type: ToRDFTest
name: Test object processing defines object
purpose: A property referencing an associative array gets object from subject of array.
input: toRdf/0010-in.jsonld
expect: toRdf/0010-out.nq

t0011
type: PositiveEvaluationTest
type: ToRDFTest
name: Test object processing defines object with implicit BNode
purpose: If no @ is specified, a BNode is created, and will be used as the object of an enclosing property.
input: toRdf/0011-in.jsonld
expect: toRdf/0011-out.nq

t0012
type: PositiveEvaluationTest
type: ToRDFTest
name: Multiple Objects for a Single Property
purpose: Tests that Multiple Objects are for a Single Property using array syntax.
input: toRdf/0012-in.jsonld
expect: toRdf/0012-out.nq

t0013
type: PositiveEvaluationTest
type: ToRDFTest
name: Creation of an empty list
purpose: Tests that @list: [] generates an empty list.
input: toRdf/0013-in.jsonld
expect: toRdf/0013-out.nq

t0014
type: PositiveEvaluationTest
type: ToRDFTest
name: Creation of a list with single element
purpose: Tests that @list generates a list.
input: toRdf/0014-in.jsonld
expect: toRdf/0014-out.nq

t0015
type: PositiveEvaluationTest
type: ToRDFTest
name: Creation of a list with multiple elements
purpose: Tests that list with multiple elements.
input: toRdf/0015-in.jsonld
expect: toRdf/0015-out.nq

t0016
type: PositiveEvaluationTest
type: ToRDFTest
name: Empty IRI expands to resource location
purpose: Expanding an empty IRI uses the test file location.
input: toRdf/0016-in.jsonld
expect: toRdf/0016-out.nq

t0017
type: PositiveEvaluationTest
type: ToRDFTest
name: Relative IRI expands relative resource location
purpose: Expanding a relative IRI uses the test file location.
input: toRdf/0017-in.jsonld
expect: toRdf/0017-out.nq

t0018
type: PositiveEvaluationTest
type: ToRDFTest
name: Frag ID expands relative resource location
purpose: Expanding a fragment uses the test file location.
input: toRdf/0018-in.jsonld
expect: toRdf/0018-out.nq

t0019
type: PositiveEvaluationTest
type: ToRDFTest
name: Test type coercion to anyURI
purpose: Tests coercion of object to anyURI when specified.
input: toRdf/0019-in.jsonld
expect: toRdf/0019-out.nq

t0020
type: PositiveEvaluationTest
type: ToRDFTest
name: Test type coercion to typed literal
purpose: Tests coercion of object to a typed literal when specified.
input: toRdf/0020-in.jsonld
expect: toRdf/0020-out.nq

t0022
type: PositiveEvaluationTest
type: ToRDFTest
name: Test coercion of double value
purpose: Tests that a decimal value generates a xsd:double typed literal;.
input: toRdf/0022-in.jsonld
expect: toRdf/0022-out.nq

t0023
type: PositiveEvaluationTest
type: ToRDFTest
name: Test coercion of integer value
purpose: Tests that a decimal value generates a xsd:integer typed literal.
input: toRdf/0023-in.jsonld
expect: toRdf/0023-out.nq

t0024
type: PositiveEvaluationTest
type: ToRDFTest
name: Test coercion of boolean value
purpose: Tests that a decimal value generates a xsd:boolean typed literal.
input: toRdf/0024-in.jsonld
expect: toRdf/0024-out.nq

t0025
type: PositiveEvaluationTest
type: ToRDFTest
name: Test list coercion with single element
purpose: Tests that an array with a single element on a property with @list coercion creates an RDF Collection.
input: toRdf/0025-in.jsonld
expect: toRdf/0025-out.nq

t0026
type: PositiveEvaluationTest
type: ToRDFTest
name: Test creation of multiple types
purpose: Tests that @type with an array of types creates multiple types.
input: toRdf/0026-in.jsonld
expect: toRdf/0026-out.nq

t0027
type: PositiveEvaluationTest
type: ToRDFTest
name: Simple named graph (Wikidata)
purpose: Using @graph with other keys places triples in a named graph.
input: toRdf/0027-in.jsonld
expect: toRdf/0027-out.nq

t0028
type: PositiveEvaluationTest
type: ToRDFTest
name: Simple named graph
purpose: Signing a graph.
input: toRdf/0028-in.jsonld
expect: toRdf/0028-out.nq

t0029
type: PositiveEvaluationTest
type: ToRDFTest
name: named graph with embedded named graph
purpose: Tests that named graphs containing named graphs flatten to single level of graph naming.
input: toRdf/0029-in.jsonld
expect: toRdf/0029-out.nq

t0030
type: PositiveEvaluationTest
type: ToRDFTest
name: top-level graph with string subject reference
purpose: Tests graphs containing subject references as strings.
input: toRdf/0030-in.jsonld
expect: toRdf/0030-out.nq

t0031
type: PositiveEvaluationTest
type: ToRDFTest
name: Reverse property
purpose: Tests conversion of reverse properties.
input: toRdf/0031-in.jsonld
expect: toRdf/0031-out.nq

t0032
type: PositiveEvaluationTest
type: ToRDFTest
name: @context reordering
purpose: Tests that generated triples do not depend on order of @context.
input: toRdf/0032-in.jsonld
expect: toRdf/0032-out.nq

t0033
type: PositiveEvaluationTest
type: ToRDFTest
name: @id reordering
purpose: Tests that generated triples do not depend on order of @id.
input: toRdf/0033-in.jsonld
expect: toRdf/0033-out.nq

t0034
type: PositiveEvaluationTest
type: ToRDFTest
name: context properties reordering
purpose: Tests that generated triples do not depend on order of properties inside @context.
input: toRdf/0034-in.jsonld
expect: toRdf/0034-out.nq

t0035
type: PositiveEvaluationTest
type: ToRDFTest
name: non-fractional numbers converted to xsd:double
purpose: xsd:double's canonical lexical is used when converting numbers without fraction that are coerced to xsd:double
input: toRdf/0035-in.jsonld
expect: toRdf/0035-out.nq

t0036
type: PositiveEvaluationTest
type: ToRDFTest
name: Use nodeMapGeneration bnode labels
purpose: The toRDF algorithm does not relabel blank nodes; it reuses the counter from the nodeMapGeneration to generate new ones
input: toRdf/0036-in.jsonld
expect: toRdf/0036-out.nq

t0113
type: PositiveEvaluationTest
type: ToRDFTest
name: Dataset with a IRI named graph
purpose: Basic use of creating a named graph using an IRI name
input: toRdf/0113-in.jsonld
expect: toRdf/0113-out.nq

t0114
type: PositiveEvaluationTest
type: ToRDFTest
name: Dataset with a IRI named graph
purpose: Basic use of creating a named graph using a BNode name
input: toRdf/0114-in.jsonld
expect: toRdf/0114-out.nq

t0115
type: PositiveEvaluationTest
type: ToRDFTest
name: Dataset with a default and two named graphs
purpose: Dataset with a default and two named graphs (IRI and BNode)
input: toRdf/0115-in.jsonld
expect: toRdf/0115-out.nq

t0116
type: PositiveEvaluationTest
type: ToRDFTest
name: Dataset from node with embedded named graph
purpose: Embedding @graph in a node creates a named graph
input: toRdf/0116-in.jsonld
expect: toRdf/0116-out.nq

t0117
type: PositiveEvaluationTest
type: ToRDFTest
name: Dataset from node with embedded named graph (bnode)
purpose: Embedding @graph in a node creates a named graph. Graph name is created if there is no subject
input: toRdf/0117-in.jsonld
expect: toRdf/0117-out.nq

t0118
type: PositiveEvaluationTest
type: ToRDFTest
name: produce generalized RDF flag
purpose: Triples with blank node predicates are not dropped if the produce generalized RDF flag is true.
option:
  spec version: json-ld-1.0
  produce generalized rdf: true
requires: GeneralizedRdf
input: toRdf/0118-in.jsonld
expect: toRdf/0118-out.nq

t0119
type: PositiveEvaluationTest
type: ToRDFTest
name: Blank nodes with reverse properties
purpose: Proper (re-)labeling of blank nodes if used with reverse properties.
input: toRdf/0119-in.jsonld
expect: toRdf/0119-out.nq

t0120
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (0)
purpose: IRI resolution according to RFC3986.
input: toRdf/0120-in.jsonld
expect: toRdf/0120-out.nq

t0121
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (1)
purpose: IRI resolution according to RFC3986.
input: toRdf/0121-in.jsonld
expect: toRdf/0121-out.nq

t0122
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (2)
purpose: IRI resolution according to RFC3986.
input: toRdf/0122-in.jsonld
expect: toRdf/0122-out.nq

t0123
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (3)
purpose: IRI resolution according to RFC3986.
input: toRdf/0123-in.jsonld
expect: toRdf/0123-out.nq

t0124
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (4)
purpose: IRI resolution according to RFC3986.
input: toRdf/0124-in.jsonld
expect: toRdf/0124-out.nq

t0125
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (5)
purpose: IRI resolution according to RFC3986.
input: toRdf/0125-in.jsonld
expect: toRdf/0125-out.nq

t0126
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (6)
purpose: IRI resolution according to RFC3986.
input: toRdf/0126-in.jsonld
expect: toRdf/0126-out.nq

t0127
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (7)
purpose: IRI resolution according to RFC3986.
input: toRdf/0127-in.jsonld
expect: toRdf/0127-out.nq

t0128
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (8)
purpose: IRI resolution according to RFC3986.
input: toRdf/0128-in.jsonld
expect: toRdf/0128-out.nq

t0129
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (9)
purpose: IRI resolution according to RFC3986.
input: toRdf/0129-in.jsonld
expect: toRdf/0129-out.nq

t0130
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (10)
purpose: IRI resolution according to RFC3986.
input: toRdf/0130-in.jsonld
expect: toRdf/0130-out.nq

t0131
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (11)
purpose: IRI resolution according to RFC3986.
input: toRdf/0131-in.jsonld
expect: toRdf/0131-out.nq

t0132
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI Resolution (12)
purpose: IRI resolution according to RFC3986.
input: toRdf/0132-in.jsonld
expect: toRdf/0132-out.nq

tc001
type: PositiveEvaluationTest
type: ToRDFTest
name: adding new term
purpose: Expansion using a scoped context uses term scope for selecting proper term
input: toRdf/c001-in.jsonld
expect: toRdf/c001-out.nq
option:
  spec version: json-ld-1.1

tc002
type: PositiveEvaluationTest
type: ToRDFTest
name: overriding a term
purpose: Expansion using a scoped context uses term scope for selecting proper term
input: toRdf/c002-in.jsonld
expect: toRdf/c002-out.nq
option:
  spec version: json-ld-1.1

tc003
type: PositiveEvaluationTest
type: ToRDFTest
name: property and value with different terms mapping to the same expanded property
purpose: Expansion using a scoped context uses term scope for selecting proper term
input: toRdf/c003-in.jsonld
expect: toRdf/c003-out.nq
option:
  spec version: json-ld-1.1

tc004
type: PositiveEvaluationTest
type: ToRDFTest
name: deep @context affects nested nodes
purpose: Expansion using a scoped context uses term scope for selecting proper term
input: toRdf/c004-in.jsonld
expect: toRdf/c004-out.nq
option:
  spec version: json-ld-1.1

tc005
type: PositiveEvaluationTest
type: ToRDFTest
name: scoped context layers on intemediate contexts
purpose: Expansion using a scoped context uses term scope for selecting proper term
input: toRdf/c005-in.jsonld
expect: toRdf/c005-out.nq
option:
  spec version: json-ld-1.1

tc006
type: PositiveEvaluationTest
type: ToRDFTest
name: adding new term
purpose: scoped context on @type
input: toRdf/c006-in.jsonld
expect: toRdf/c006-out.nq
option:
  spec version: json-ld-1.1

tc007
type: PositiveEvaluationTest
type: ToRDFTest
name: overriding a term
purpose: scoped context on @type
input: toRdf/c007-in.jsonld
expect: toRdf/c007-out.nq
option:
  spec version: json-ld-1.1

tc008
type: PositiveEvaluationTest
type: ToRDFTest
name: alias of @type
purpose: scoped context on @type
input: toRdf/c008-in.jsonld
expect: toRdf/c008-out.nq
option:
  spec version: json-ld-1.1

tc009
type: PositiveEvaluationTest
type: ToRDFTest
name: deep @type-scoped @context does NOT affect nested nodes
purpose: scoped context on @type
input: toRdf/c009-in.jsonld
expect: toRdf/c009-out.nq
option:
  spec version: json-ld-1.1

tc010
type: PositiveEvaluationTest
type: ToRDFTest
name: scoped context layers on intemediate contexts
purpose: scoped context on @type
input: toRdf/c010-in.jsonld
expect: toRdf/c010-out.nq
option:
  spec version: json-ld-1.1

tc011
type: PositiveEvaluationTest
type: ToRDFTest
name: orders @type terms when applying scoped contexts
purpose: scoped context on @type
input: toRdf/c011-in.jsonld
expect: toRdf/c011-out.nq
option:
  spec version: json-ld-1.1

tc012
type: PositiveEvaluationTest
type: ToRDFTest
name: deep property-term scoped @context in @type-scoped @context affects nested nodes
purpose: scoped context on @type
input: toRdf/c012-in.jsonld
expect: toRdf/c012-out.nq
option:
  spec version: json-ld-1.1

tc013
type: PositiveEvaluationTest
type: ToRDFTest
name: type maps use scoped context from type index and not scoped context from containing
purpose: scoped context on @type
input: toRdf/c013-in.jsonld
expect: toRdf/c013-out.nq
option:
  spec version: json-ld-1.1

tc014
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped context nullification
purpose: type-scoped context nullification
input: toRdf/c014-in.jsonld
expect: toRdf/c014-out.nq
option:
  spec version: json-ld-1.1

tc015
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped base
purpose: type-scoped base
input: toRdf/c015-in.jsonld
expect: toRdf/c015-out.nq
option:
  spec version: json-ld-1.1

tc016
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped vocab
purpose: type-scoped vocab
input: toRdf/c016-in.jsonld
expect: toRdf/c016-out.nq
option:
  spec version: json-ld-1.1

tc017
type: PositiveEvaluationTest
type: ToRDFTest
name: multiple type-scoped contexts are properly reverted
purpose: multiple type-scoped contexts are property reverted
input: toRdf/c017-in.jsonld
expect: toRdf/c017-out.nq
option:
  spec version: json-ld-1.1

tc018
type: PositiveEvaluationTest
type: ToRDFTest
name: multiple type-scoped types resolved against previous context
purpose: multiple type-scoped types resolved against previous context
input: toRdf/c018-in.jsonld
expect: toRdf/c018-out.nq
option:
  spec version: json-ld-1.1

tc019
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped context with multiple property scoped terms
purpose: type-scoped context with multiple property scoped terms
input: toRdf/c019-in.jsonld
expect: toRdf/c019-out.nq
option:
  spec version: json-ld-1.1

tc020
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped value
purpose: type-scoped value
input: toRdf/c020-in.jsonld
expect: toRdf/c020-out.nq
option:
  spec version: json-ld-1.1

tc021
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped value mix
purpose: type-scoped value mix
input: toRdf/c021-in.jsonld
expect: toRdf/c021-out.nq
option:
  spec version: json-ld-1.1

tc022
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped property-scoped contexts including @type:@vocab
purpose: type-scoped property-scoped contexts including @type:@vocab
input: toRdf/c022-in.jsonld
expect: toRdf/c022-out.nq
option:
  spec version: json-ld-1.1

tc023
type: PositiveEvaluationTest
type: ToRDFTest
name: composed type-scoped property-scoped contexts including @type:@vocab
purpose: composed type-scoped property-scoped contexts including @type:@vocab
input: toRdf/c023-in.jsonld
expect: toRdf/c023-out.nq
option:
  spec version: json-ld-1.1

tc024
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped + property-scoped + values evaluates against previous context
purpose: type-scoped + property-scoped + values evaluates against previous context
input: toRdf/c024-in.jsonld
expect: toRdf/c024-out.nq
option:
  spec version: json-ld-1.1

tc025
type: PositiveEvaluationTest
type: ToRDFTest
name: type-scoped + graph container
purpose: type-scoped + graph container
input: toRdf/c025-in.jsonld
expect: toRdf/c025-out.nq
option:
  spec version: json-ld-1.1

tc026
type: PositiveEvaluationTest
type: ToRDFTest
name: @propagate: true on type-scoped context
purpose: type-scoped context with @propagate: true survive node-objects
input: toRdf/c026-in.jsonld
expect: toRdf/c026-out.nq
option:
  spec version: json-ld-1.1

tc027
type: PositiveEvaluationTest
type: ToRDFTest
name: @propagate: false on property-scoped context
purpose: property-scoped context with @propagate: false do not survive node-objects
input: toRdf/c027-in.jsonld
expect: toRdf/c027-out.nq
option:
  spec version: json-ld-1.1

tc028
type: PositiveEvaluationTest
type: ToRDFTest
name: @propagate: false on embedded context
purpose: embedded context with @propagate: false do not survive node-objects
input: toRdf/c028-in.jsonld
expect: toRdf/c028-out.nq
option:
  spec version: json-ld-1.1

tc029
type: NegativeEvaluationTest
type: ToRDFTest
name: @propagate is invalid in 1.0
purpose: @propagate is invalid in 1.0
input: toRdf/c029-in.jsonld
expect error code: invalid context entry
option:
  spec version: json-ld-1.1
  processing mode: json-ld-1.0

tc030
type: NegativeEvaluationTest
type: ToRDFTest
name: @propagate must be boolean valued
purpose: @propagate must be boolean valued
input: toRdf/c030-in.jsonld
expect error code: invalid @propagate value
option:
  spec version: json-ld-1.1

tc031
type: PositiveEvaluationTest
type: ToRDFTest
name: @context resolutions respects relative URLs.
purpose: URL resolution follows RFC3986
input: toRdf/c031-in.jsonld
expect: toRdf/c031-out.nq
option:
  spec version: json-ld-1.1

tc032
type: NegativeEvaluationTest
type: ToRDFTest
name: Unused embedded context with error.
purpose: An embedded context which is never used should still be checked.
input: toRdf/c032-in.jsonld
expect error code: invalid scoped context
option:
  spec version: json-ld-1.1

tc033
type: NegativeEvaluationTest
type: ToRDFTest
name: Unused context with an embedded context error.
purpose: An unused context with an embedded context should still be checked.
input: toRdf/c033-in.jsonld
expect error code: invalid scoped context
option:
  spec version: json-ld-1.1

tc034
type: PositiveEvaluationTest
type: ToRDFTest
name: Remote scoped context.
purpose: Scoped contexts may be externally loaded.
input: toRdf/c034-in.jsonld
expect: toRdf/c034-out.nq
option:
  spec version: json-ld-1.1

tc035
type: PositiveEvaluationTest
type: ToRDFTest
name: Term scoping with embedded contexts.
purpose: Terms should make use of @vocab relative to the scope in which the term was defined.
input: toRdf/c035-in.jsonld
expect: toRdf/c035-out.nq
option:
  spec version: json-ld-1.1

tc036
type: PositiveEvaluationTest
type: ToRDFTest
name: Expansion with empty property-scoped context.
purpose: Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.
input: toRdf/c036-in.jsonld
expect: toRdf/c036-out.nq
option:
  spec version: json-ld-1.1

tc037
type: PositiveEvaluationTest
type: ToRDFTest
name: property-scoped contexts which are alias of @nest
purpose: Nesting terms may have property-scoped contexts defined.
input: toRdf/c037-in.jsonld
expect: toRdf/c037-out.nq
option:
  spec version: json-ld-1.1

tc038
type: PositiveEvaluationTest
type: ToRDFTest
name: Bibframe example (poor-mans inferrence)
purpose: Nesting terms may have property-scoped contexts defined.
input: toRdf/c038-in.jsonld
expect: toRdf/c038-out.nq
option:
  spec version: json-ld-1.1

tdi01
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand string using default and term directions
purpose: Strings are coerced to have @direction based on default and term direction.
option:
  spec version: json-ld-1.1
input: toRdf/di01-in.jsonld
expect: toRdf/di01-out.nq

tdi02
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand string using default and term directions and languages
purpose: Strings are coerced to have @direction based on default and term direction.
option:
  spec version: json-ld-1.1
input: toRdf/di02-in.jsonld
expect: toRdf/di02-out.nq

tdi03
type: PositiveEvaluationTest
type: ToRDFTest
name: expand list values with @direction
purpose: List values where the term has @direction are used in expansion.
option:
  spec version: json-ld-1.1
input: toRdf/di03-in.jsonld
expect: toRdf/di03-out.nq

tdi04
type: PositiveEvaluationTest
type: ToRDFTest
name: simple language map with term direction
purpose: Term selection with language maps and @direction.
option:
  spec version: json-ld-1.1
input: toRdf/di04-in.jsonld
expect: toRdf/di04-out.nq

tdi05
type: PositiveEvaluationTest
type: ToRDFTest
name: simple language mapwith overriding term direction
purpose: Term selection with language maps and @direction.
option:
  spec version: json-ld-1.1
input: toRdf/di05-in.jsonld
expect: toRdf/di05-out.nq

tdi06
type: PositiveEvaluationTest
type: ToRDFTest
name: simple language mapwith overriding null direction
purpose: Term selection with language maps and @direction.
option:
  spec version: json-ld-1.1
input: toRdf/di06-in.jsonld
expect: toRdf/di06-out.nq

tdi07
type: PositiveEvaluationTest
type: ToRDFTest
name: simple language map with mismatching term direction
purpose: Term selection with language maps and @direction.
option:
  spec version: json-ld-1.1
input: toRdf/di07-in.jsonld
expect: toRdf/di07-out.nq

tdi08
type: NegativeEvaluationTest
type: ToRDFTest
name: @direction must be one of ltr or rtl
purpose: Generate an error if @direction has illegal value.
option:
  spec version: json-ld-1.1
input: toRdf/di08-in.jsonld
expect error code: invalid base direction

tdi09
type: PositiveEvaluationTest
type: ToRDFTest
name: rdfDirection: i18n-datatype with direction and no language
purpose: Generates i18n datatype from literal with direction with option.
option:
  spec version: json-ld-1.1
  rdf direction: i18n-datatype
  normative: false
requires: I18nDatatype
input: toRdf/di09-in.jsonld
expect: toRdf/di09-out.nq

tdi10
type: PositiveEvaluationTest
type: ToRDFTest
name: rdfDirection: i18n-datatype with direction and language
purpose: Generates i18n datatype from literal with direction with option.
option:
  spec version: json-ld-1.1
  rdf direction: i18n-datatype
  normative: false
requires: I18nDatatype
input: toRdf/di10-in.jsonld
expect: toRdf/di10-out.nq

tdi11
type: PositiveEvaluationTest
type: ToRDFTest
name: rdfDirection: compound-literal with direction and no language
purpose: Generates i18n datatype from literal with direction with option.
option:
  spec version: json-ld-1.1
  rdf direction: compound-literal
  normative: false
requires: CompoundLiteral
input: toRdf/di11-in.jsonld
expect: toRdf/di11-out.nq

tdi12
type: PositiveEvaluationTest
type: ToRDFTest
name: rdfDirection: compound-literal with direction and language
purpose: Generates compound literal from literal with direction with option.
option:
  spec version: json-ld-1.1
  rdf direction: compound-literal
  normative: false
requires: CompoundLiteral
input: toRdf/di12-in.jsonld
expect: toRdf/di12-out.nq

te001
type: PositiveEvaluationTest
type: ToRDFTest
name: drop free-floating nodes
purpose: Free-floating nodes do not generate RDF triples (from expand-0001)
input: toRdf/e001-in.jsonld
expect: toRdf/e001-out.nq

te002
type: PositiveEvaluationTest
type: ToRDFTest
name: basic
purpose: Basic RDF conversion (from expand-0002)
input: toRdf/e002-in.jsonld
expect: toRdf/e002-out.nq

te003
type: PositiveEvaluationTest
type: ToRDFTest
name: drop null and unmapped properties
purpose: Properties mapped to null or which are never mapped are dropped (from expand-0003)
input: toRdf/e003-in.jsonld
expect: toRdf/e003-out.nq

te004
type: PositiveEvaluationTest
type: ToRDFTest
name: optimize @set, keep empty arrays
purpose: RDF version of expand-0004
input: toRdf/e004-in.jsonld
expect: toRdf/e004-out.nq

te005
type: PositiveEvaluationTest
type: ToRDFTest
name: do not expand aliased @id/@type
purpose: RDF version of expand-0005
input: toRdf/e005-in.jsonld
expect: toRdf/e005-out.nq

te006
type: PositiveEvaluationTest
type: ToRDFTest
name: alias keywords
purpose: RDF version of expand-0006
input: toRdf/e006-in.jsonld
expect: toRdf/e006-out.nq

te007
type: PositiveEvaluationTest
type: ToRDFTest
name: date type-coercion
purpose: Type-coerced dates generate typed literals (from expand-0007)
input: toRdf/e007-in.jsonld
expect: toRdf/e007-out.nq

te008
type: PositiveEvaluationTest
type: ToRDFTest
name: @value with @language
purpose: RDF version of expand-0008
input: toRdf/e008-in.jsonld
expect: toRdf/e008-out.nq

te009
type: PositiveEvaluationTest
type: ToRDFTest
name: @graph with terms
purpose: RDF version of expand-0009
input: toRdf/e009-in.jsonld
expect: toRdf/e009-out.nq

te010
type: PositiveEvaluationTest
type: ToRDFTest
name: native types
purpose: Native types generate typed literals (from expand-0010)
input: toRdf/e010-in.jsonld
expect: toRdf/e010-out.nq

te011
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @id
purpose: RDF version of expand-0011
input: toRdf/e011-in.jsonld
expect: toRdf/e011-out.nq

te012
type: PositiveEvaluationTest
type: ToRDFTest
name: @graph with embed
purpose: RDF version of expand-0012
input: toRdf/e012-in.jsonld
expect: toRdf/e012-out.nq

te013
type: PositiveEvaluationTest
type: ToRDFTest
name: expand already expanded
purpose: RDF version of expand-0013
input: toRdf/e013-in.jsonld
expect: toRdf/e013-out.nq

te014
type: PositiveEvaluationTest
type: ToRDFTest
name: @set of @value objects with keyword aliases
purpose: RDF version of expand-0014
input: toRdf/e014-in.jsonld
expect: toRdf/e014-out.nq
option:
  spec version: json-ld-1.0

te015
type: PositiveEvaluationTest
type: ToRDFTest
name: collapse set of sets, keep empty lists
purpose: RDF version of expand-0015
input: toRdf/e015-in.jsonld
expect: toRdf/e015-out.nq

te016
type: PositiveEvaluationTest
type: ToRDFTest
name: context reset
purpose: RDF version of expand-0016
input: toRdf/e016-in.jsonld
expect: toRdf/e016-out.nq

te017
type: PositiveEvaluationTest
type: ToRDFTest
name: @graph and @id aliased
purpose: RDF version of expand-0017
input: toRdf/e017-in.jsonld
expect: toRdf/e017-out.nq

te018
type: PositiveEvaluationTest
type: ToRDFTest
name: override default @language
purpose: RDF version of expand-0018
input: toRdf/e018-in.jsonld
expect: toRdf/e018-out.nq

te019
type: PositiveEvaluationTest
type: ToRDFTest
name: remove @value = null
purpose: RDF version of expand-0019
input: toRdf/e019-in.jsonld
expect: toRdf/e019-out.nq

te020
type: PositiveEvaluationTest
type: ToRDFTest
name: do not remove @graph if not at top-level
purpose: Embedded @graph without @id creates BNode-labeled named graph (from expand-0020)
input: toRdf/e020-in.jsonld
expect: toRdf/e020-out.nq

te021
type: PositiveEvaluationTest
type: ToRDFTest
name: do not remove @graph at top-level if not only property
purpose: RDF version of expand-0021
input: toRdf/e021-in.jsonld
expect: toRdf/e021-out.nq

te022
type: PositiveEvaluationTest
type: ToRDFTest
name: expand value with default language
purpose: RDF version of expand-0022
input: toRdf/e022-in.jsonld
expect: toRdf/e022-out.nq

te023
type: PositiveEvaluationTest
type: ToRDFTest
name: Lists and sets of properties with list/set coercion
purpose: RDF version of expand-0023
input: toRdf/e023-in.jsonld
expect: toRdf/e023-out.nq

te024
type: PositiveEvaluationTest
type: ToRDFTest
name: Multiple contexts
purpose: RDF version of expand-0024
input: toRdf/e024-in.jsonld
expect: toRdf/e024-out.nq

te025
type: PositiveEvaluationTest
type: ToRDFTest
name: Problematic IRI expansion tests
purpose: RDF version of expand-0025
input: toRdf/e025-in.jsonld
expect: toRdf/e025-out.nq

te026
type: PositiveEvaluationTest
type: ToRDFTest
name: Expanding term mapping to @type uses @type syntax
purpose: RDF version of expand-0026
input: toRdf/e026-in.jsonld
expect: toRdf/e026-out.nq
option:
  spec version: json-ld-1.0

te027
type: PositiveEvaluationTest
type: ToRDFTest
name: Keep duplicate values in @list and @set
purpose: RDF version of expand-0027
input: toRdf/e027-in.jsonld
expect: toRdf/e027-out.nq

te028
type: PositiveEvaluationTest
type: ToRDFTest
name: Use @vocab in properties and @type but not in @id
purpose: RDF version of expand-0028
input: toRdf/e028-in.jsonld
expect: toRdf/e028-out.nq

te029
type: PositiveEvaluationTest
type: ToRDFTest
name: Relative IRIs
purpose: RDF version of expand-0029
input: toRdf/e029-in.jsonld
expect: toRdf/e029-out.nq

te030
type: PositiveEvaluationTest
type: ToRDFTest
name: Language maps
purpose: RDF version of expand-0030
input: toRdf/e030-in.jsonld
expect: toRdf/e030-out.nq

te031
type: PositiveEvaluationTest
type: ToRDFTest
name: type-coercion of native types
purpose: RDF version of expand-0031
input: toRdf/e031-in.jsonld
expect: toRdf/e031-out.nq

te032
type: PositiveEvaluationTest
type: ToRDFTest
name: Mapping a term to null decouples it from @vocab
purpose: RDF version of expand-0032
input: toRdf/e032-in.jsonld
expect: toRdf/e032-out.nq

te033
type: PositiveEvaluationTest
type: ToRDFTest
name: Using @vocab with with type-coercion
purpose: RDF version of expand-0033
input: toRdf/e033-in.jsonld
expect: toRdf/e033-out.nq

te034
type: PositiveEvaluationTest
type: ToRDFTest
name: Multiple properties expanding to the same IRI
purpose: RDF version of expand-0034
input: toRdf/e034-in.jsonld
expect: toRdf/e034-out.nq

te035
type: PositiveEvaluationTest
type: ToRDFTest
name: Language maps with @vocab, default language, and colliding property
purpose: RDF version of expand-0035
input: toRdf/e035-in.jsonld
expect: toRdf/e035-out.nq

te036
type: PositiveEvaluationTest
type: ToRDFTest
name: Expanding @index
purpose: RDF version of expand-0036
input: toRdf/e036-in.jsonld
expect: toRdf/e036-out.nq

te037
type: PositiveEvaluationTest
type: ToRDFTest
name: Expanding @reverse
purpose: RDF version of expand-0037
input: toRdf/e037-in.jsonld
expect: toRdf/e037-out.nq

te038
type: PositiveEvaluationTest
type: ToRDFTest
name: Drop blank node predicates by default
purpose: Triples with blank node predicates are dropped by default (from expand-0038).
option:
  spec version: json-ld-1.0
input: toRdf/e038-in.jsonld
expect: toRdf/e038-out.nq

te039
type: PositiveEvaluationTest
type: ToRDFTest
name: Using terms in a reverse-maps
purpose: RDF version of expand-0039
input: toRdf/e039-in.jsonld
expect: toRdf/e039-out.nq

te040
type: PositiveEvaluationTest
type: ToRDFTest
name: language and index expansion on non-objects
purpose: RDF version of expand-0040
input: toRdf/e040-in.jsonld
expect: toRdf/e040-out.nq

te041
type: PositiveEvaluationTest
type: ToRDFTest
name: Reset the default language
purpose: RDF version of expand-0041
input: toRdf/e041-in.jsonld
expect: toRdf/e041-out.nq

te042
type: PositiveEvaluationTest
type: ToRDFTest
name: Expanding reverse properties
purpose: RDF version of expand-0042
input: toRdf/e042-in.jsonld
expect: toRdf/e042-out.nq

te043
type: PositiveEvaluationTest
type: ToRDFTest
name: Using reverse properties inside a @reverse-container
purpose: RDF version of expand-0043
input: toRdf/e043-in.jsonld
expect: toRdf/e043-out.nq

te044
type: PositiveEvaluationTest
type: ToRDFTest
name: Ensure index maps use language mapping
purpose: RDF version of expand-0044
input: toRdf/e044-in.jsonld
expect: toRdf/e044-out.nq

te045
type: PositiveEvaluationTest
type: ToRDFTest
name: Top-level value objects are removed
purpose: RDF version of expand-0045
input: toRdf/e045-in.jsonld
expect: toRdf/e045-out.nq

te046
type: PositiveEvaluationTest
type: ToRDFTest
name: Free-floating nodes are removed
purpose: RDF version of expand-0046
input: toRdf/e046-in.jsonld
expect: toRdf/e046-out.nq

te047
type: PositiveEvaluationTest
type: ToRDFTest
name: Remove free-floating set values and lists
purpose: RDF version of expand-0047
input: toRdf/e047-in.jsonld
expect: toRdf/e047-out.nq

te048
type: PositiveEvaluationTest
type: ToRDFTest
name: Terms are ignored in @id
purpose: RDF version of expand-0048
input: toRdf/e048-in.jsonld
expect: toRdf/e048-out.nq

te049
type: PositiveEvaluationTest
type: ToRDFTest
name: Using strings as value of a reverse property
purpose: RDF version of expand-0049
input: toRdf/e049-in.jsonld
expect: toRdf/e049-out.nq

te050
type: PositiveEvaluationTest
type: ToRDFTest
name: Term definitions with prefix separate from prefix definitions
purpose: RDF version of expand-0050
input: toRdf/e050-in.jsonld
expect: toRdf/e050-out.nq

te051
type: PositiveEvaluationTest
type: ToRDFTest
name: Expansion of keyword aliases in term definitions
purpose: RDF version of expand-0051
input: toRdf/e051-in.jsonld
expect: toRdf/e051-out.nq

te052
type: PositiveEvaluationTest
type: ToRDFTest
name: @vocab-relative IRIs in term definitions
purpose: RDF version of expand-0052
input: toRdf/e052-in.jsonld
expect: toRdf/e052-out.nq

te053
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand absolute IRI with @type: @vocab
purpose: RDF version of expand-0053
input: toRdf/e053-in.jsonld
expect: toRdf/e053-out.nq

te054
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand term with @type: @vocab
purpose: RDF version of expand-0054
input: toRdf/e054-in.jsonld
expect: toRdf/e054-out.nq

te055
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand @vocab-relative term with @type: @vocab
purpose: RDF version of expand-0055
input: toRdf/e055-in.jsonld
expect: toRdf/e055-out.nq

te056
type: PositiveEvaluationTest
type: ToRDFTest
name: Use terms with @type: @vocab but not with @type: @id
purpose: RDF version of expand-0056
input: toRdf/e056-in.jsonld
expect: toRdf/e056-out.nq

te057
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand relative IRI with @type: @vocab
purpose: RDF version of expand-0057
input: toRdf/e057-in.jsonld
expect: toRdf/e057-out.nq

te058
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand compact IRI with @type: @vocab
purpose: RDF version of expand-0058
input: toRdf/e058-in.jsonld
expect: toRdf/e058-out.nq

te059
type: PositiveEvaluationTest
type: ToRDFTest
name: Reset @vocab by setting it to null
purpose: RDF version of expand-0059
input: toRdf/e059-in.jsonld
expect: toRdf/e059-out.nq

te060
type: PositiveEvaluationTest
type: ToRDFTest
name: Overwrite document base with @base and reset it again
purpose: RDF version of expand-0060
input: toRdf/e060-in.jsonld
expect: toRdf/e060-out.nq

te061
type: PositiveEvaluationTest
type: ToRDFTest
name: Coercing native types to arbitrary datatypes
purpose: RDF version of expand-0061
input: toRdf/e061-in.jsonld
expect: toRdf/e061-out.nq

te062
type: PositiveEvaluationTest
type: ToRDFTest
name: Various relative IRIs with with @base
purpose: RDF version of expand-0062
input: toRdf/e062-in.jsonld
expect: toRdf/e062-out.nq

te063
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand a reverse property with an index-container
purpose: RDF version of expand-0063
input: toRdf/e063-in.jsonld
expect: toRdf/e063-out.nq

te064
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand reverse property whose values are unlabeled blank nodes
purpose: RDF version of expand-0064
input: toRdf/e064-in.jsonld
expect: toRdf/e064-out.nq

te065
type: PositiveEvaluationTest
type: ToRDFTest
name: Keys that are not mapped to an IRI in a reverse-map are dropped
purpose: RDF version of expand-0065
input: toRdf/e065-in.jsonld
expect: toRdf/e065-out.nq

te066
type: PositiveEvaluationTest
type: ToRDFTest
name: Use @vocab to expand keys in reverse-maps
purpose: RDF version of expand-0066
input: toRdf/e066-in.jsonld
expect: toRdf/e066-out.nq

te067
type: PositiveEvaluationTest
type: ToRDFTest
name: prefix:://sufffix not a compact IRI
purpose: RDF version of expand-0067
input: toRdf/e067-in.jsonld
expect: toRdf/e067-out.nq

te068
type: PositiveEvaluationTest
type: ToRDFTest
name: _::sufffix not a compact IRI
purpose: RDF version of expand-0068
input: toRdf/e068-in.jsonld
expect: toRdf/e068-out.nq

te069
type: PositiveEvaluationTest
type: ToRDFTest
name: Compact IRI as term with type mapping
purpose: RDF version of expand-0069
input: toRdf/e069-in.jsonld
expect: toRdf/e069-out.nq

te070
type: PositiveEvaluationTest
type: ToRDFTest
name: Redefine compact IRI with itself
purpose: RDF version of expand-0070
input: toRdf/e070-in.jsonld
expect: toRdf/e070-out.nq

te071
type: PositiveEvaluationTest
type: ToRDFTest
name: Redefine terms looking like compact IRIs
purpose: RDF version of expand-0071
input: toRdf/e071-in.jsonld
expect: toRdf/e071-out.nq
option:
  spec version: json-ld-1.0

te072
type: PositiveEvaluationTest
type: ToRDFTest
name: Redefine term using @vocab, not itself
purpose: RDF version of expand-0072
input: toRdf/e072-in.jsonld
expect: toRdf/e072-out.nq

te073
type: PositiveEvaluationTest
type: ToRDFTest
name: @context not first property
purpose: Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
input: toRdf/e073-in.jsonld
expect: toRdf/e073-out.nq

te074
type: PositiveEvaluationTest
type: ToRDFTest
name: @id not first property
purpose: Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
input: toRdf/e074-in.jsonld
expect: toRdf/e074-out.nq

te075
type: PositiveEvaluationTest
type: ToRDFTest
name: @vocab as blank node identifier
purpose: Use @vocab to map all properties to blank node identifiers
option:
  processing mode: json-ld-1.0
  produce generalized rdf: true
requires: GeneralizedRdf
input: toRdf/e075-in.jsonld
expect: toRdf/e075-out.nq

te076
type: PositiveEvaluationTest
type: ToRDFTest
name: base option overrides document location
purpose: Use of the base option overrides the document location
option:
  base: http://example/base/
input: toRdf/e076-in.jsonld
expect: toRdf/e076-out.nq

te077
type: PositiveEvaluationTest
type: ToRDFTest
name: expandContext option
purpose: Use of the expandContext option to expand the input document
option:
  expand context: toRdf/e077-context.jsonld
input: toRdf/e077-in.jsonld
expect: toRdf/e077-out.nq

te078
type: PositiveEvaluationTest
type: ToRDFTest
name: multiple reverse properties
purpose: Use of multiple reverse properties
input: toRdf/e078-in.jsonld
expect: toRdf/e078-out.nq

te079
type: PositiveEvaluationTest
type: ToRDFTest
name: expand @graph container
purpose: Use of @graph containers
input: toRdf/e079-in.jsonld
expect: toRdf/e079-out.nq
option:
  spec version: json-ld-1.1

te080
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @set] container
purpose: Use of [@graph, @set] containers
input: toRdf/e080-in.jsonld
expect: toRdf/e080-out.nq
option:
  spec version: json-ld-1.1

te081
type: PositiveEvaluationTest
type: ToRDFTest
name: Creates an @graph container if value is a graph
purpose: Don't double-expand an already expanded graph
input: toRdf/e081-in.jsonld
expect: toRdf/e081-out.nq
option:
  spec version: json-ld-1.1

te082
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @index] container
purpose: Use of @graph containers with @index
input: toRdf/e082-in.jsonld
expect: toRdf/e082-out.nq
option:
  spec version: json-ld-1.1

te083
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @index, @set] container
purpose: Use of @graph containers with @index and @set
input: toRdf/e083-in.jsonld
expect: toRdf/e083-out.nq
option:
  spec version: json-ld-1.1

te084
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand [@graph, @index] container if value is a graph
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e084-in.jsonld
expect: toRdf/e084-out.nq
option:
  spec version: json-ld-1.1

te085
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @id] container
purpose: Use of @graph containers with @id
input: toRdf/e085-in.jsonld
expect: toRdf/e085-out.nq
option:
  spec version: json-ld-1.1

te086
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @id, @set] container
purpose: Use of @graph containers with @id and @set
input: toRdf/e086-in.jsonld
expect: toRdf/e086-out.nq
option:
  spec version: json-ld-1.1

te087
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand [@graph, @id] container if value is a graph
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e087-in.jsonld
expect: toRdf/e087-out.nq
option:
  spec version: json-ld-1.1

te088
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand native values to IRIs
purpose: Value Expansion does not expand native values, such as booleans, to a node object
input: toRdf/e088-in.jsonld
expect: toRdf/e088-out.nq

te089
type: PositiveEvaluationTest
type: ToRDFTest
name: empty @base applied to the base option
purpose: Use of an empty @base is applied to the base option
option:
  base: http://example/base/
input: toRdf/e089-in.jsonld
expect: toRdf/e089-out.nq

te090
type: PositiveEvaluationTest
type: ToRDFTest
name: relative @base overrides base option and document location
purpose: Use of a relative @base overrides base option and document location
option:
  base: http://example/base/
input: toRdf/e090-in.jsonld
expect: toRdf/e090-out.nq

te091
type: PositiveEvaluationTest
type: ToRDFTest
name: relative and absolute @base overrides base option and document location
purpose: Use of a relative and absolute @base overrides base option and document location
option:
  base: http://example/base/
input: toRdf/e091-in.jsonld
expect: toRdf/e091-out.nq

te092
type: PositiveEvaluationTest
type: ToRDFTest
name: Various relative IRIs as properties with with @vocab: ''
purpose: Pathological relative property IRIs
input: toRdf/e092-in.jsonld
expect: toRdf/e092-out.nq
option:
  spec version: json-ld-1.1

te093
type: PositiveEvaluationTest
type: ToRDFTest
name: expand @graph container (multiple objects)
purpose: Use of @graph containers
input: toRdf/e093-in.jsonld
expect: toRdf/e093-out.nq
option:
  spec version: json-ld-1.1

te094
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @set] container (multiple objects)
purpose: Use of [@graph, @set] containers
input: toRdf/e094-in.jsonld
expect: toRdf/e094-out.nq
option:
  spec version: json-ld-1.1

te095
type: PositiveEvaluationTest
type: ToRDFTest
name: Creates an @graph container if value is a graph (multiple objects)
purpose: Don't double-expand an already expanded graph
input: toRdf/e095-in.jsonld
expect: toRdf/e095-out.nq
option:
  spec version: json-ld-1.1

te096
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @index] container (multiple indexed objects)
purpose: Use of @graph containers with @index
input: toRdf/e096-in.jsonld
expect: toRdf/e096-out.nq
option:
  spec version: json-ld-1.1

te097
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @index, @set] container (multiple objects)
purpose: Use of @graph containers with @index and @set
input: toRdf/e097-in.jsonld
expect: toRdf/e097-out.nq
option:
  spec version: json-ld-1.1

te098
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand [@graph, @index] container if value is a graph (multiple objects)
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e098-in.jsonld
expect: toRdf/e098-out.nq
option:
  spec version: json-ld-1.1

te099
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @id] container (multiple objects)
purpose: Use of @graph containers with @id
input: toRdf/e099-in.jsonld
expect: toRdf/e099-out.nq
option:
  spec version: json-ld-1.1

te100
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @id, @set] container (multiple objects)
purpose: Use of @graph containers with @id and @set
input: toRdf/e100-in.jsonld
expect: toRdf/e100-out.nq
option:
  spec version: json-ld-1.1

te101
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand [@graph, @id] container if value is a graph (multiple objects)
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e101-in.jsonld
expect: toRdf/e101-out.nq
option:
  spec version: json-ld-1.1

te102
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand @graph container if value is a graph (multiple objects)
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e102-in.jsonld
expect: toRdf/e102-out.nq
option:
  spec version: json-ld-1.1

te103
type: PositiveEvaluationTest
type: ToRDFTest
name: Expand @graph container if value is a graph (multiple graphs)
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e103-in.jsonld
expect: toRdf/e103-out.nq
option:
  spec version: json-ld-1.1

te104
type: PositiveEvaluationTest
type: ToRDFTest
name: Creates an @graph container if value is a graph (mixed graph and object)
purpose: Don't double-expand an already expanded graph
input: toRdf/e104-in.jsonld
expect: toRdf/e104-out.nq
option:
  spec version: json-ld-1.1

te105
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand [@graph, @index] container if value is a graph (mixed graph and object)
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e105-in.jsonld
expect: toRdf/e105-out.nq
option:
  spec version: json-ld-1.1

te106
type: PositiveEvaluationTest
type: ToRDFTest
name: Do not expand [@graph, @id] container if value is a graph (mixed graph and object)
purpose: Does not create a new graph object if indexed value is already a graph object
input: toRdf/e106-in.jsonld
expect: toRdf/e106-out.nq
option:
  spec version: json-ld-1.1

te107
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @index] container (indexes with multiple objects)
purpose: Use of @graph containers with @index
input: toRdf/e107-in.jsonld
expect: toRdf/e107-out.nq
option:
  spec version: json-ld-1.1

te108
type: PositiveEvaluationTest
type: ToRDFTest
name: expand [@graph, @id] container (multiple ids and objects)
purpose: Use of @graph containers with @id
input: toRdf/e108-in.jsonld
expect: toRdf/e108-out.nq
option:
  spec version: json-ld-1.1

te109
type: PositiveEvaluationTest
type: ToRDFTest
name: IRI expansion of fragments including ':'
purpose: Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
input: toRdf/e109-in.jsonld
expect: toRdf/e109-out.nq

te110
type: PositiveEvaluationTest
type: ToRDFTest
name: Various relative IRIs as properties with with relative @vocab
purpose: Pathological relative property IRIs
input: toRdf/e110-in.jsonld
expect: toRdf/e110-out.nq
option:
  spec version: json-ld-1.1

te111
type: PositiveEvaluationTest
type: ToRDFTest
name: Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base
purpose: Pathological relative property IRIs
input: toRdf/e111-in.jsonld
expect: toRdf/e111-out.nq
option:
  spec version: json-ld-1.1

te112
type: PositiveEvaluationTest
type: ToRDFTest
name: Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base
purpose: Pathological relative property IRIs
input: toRdf/e112-in.jsonld
expect: toRdf/e112-out.nq
option:
  spec version: json-ld-1.1

te113
type: PositiveEvaluationTest
type: ToRDFTest
name: context with JavaScript Object property names
purpose: Expand with context including JavaScript Object property names
input: toRdf/e113-in.jsonld
expect: toRdf/e113-out.nq

te114
type: PositiveEvaluationTest
type: ToRDFTest
name: Expansion allows multiple properties expanding to @type
purpose: An exception for the colliding keywords error is made for @type
input: toRdf/e114-in.jsonld
expect: toRdf/e114-out.nq
option:
  spec version: json-ld-1.1

te115
type: NegativeEvaluationTest
type: ToRDFTest
name: Verifies that relative IRIs as properties with @vocab: '' in 1.0 generate an error
purpose: Pathological relative property IRIs in 1.0
input: toRdf/e115-in.jsonld
expect error code: invalid vocab mapping
option:
  spec version: json-ld-1.0

te116
type: NegativeEvaluationTest
type: ToRDFTest
name: Verifies that relative IRIs as properties with relative @vocab in 1.0 generate an error
purpose: Pathological relative property IRIs in 1.0
input: toRdf/e116-in.jsonld
expect error code: invalid vocab mapping
option:
  spec version: json-ld-1.0

te117
type: PositiveEvaluationTest
type: ToRDFTest
name: A term starting with a colon can expand to a different IRI
purpose: Terms may begin with a colon and not be treated as IRIs.
input: toRdf/e117-in.jsonld
expect: toRdf/e117-out.nq
option:
  spec version: json-ld-1.1

te118
type: PositiveEvaluationTest
type: ToRDFTest
name: Expanding a value staring with a colon does not treat that value as an IRI
purpose: Terms may begin with a colon and not be treated as IRIs.
input: toRdf/e118-in.jsonld
expect: toRdf/e118-out.nq
option:
  spec version: json-ld-1.1

te119
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignore some terms with @, allow others.
purpose: Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
input: toRdf/e119-in.jsonld
expect: toRdf/e119-out.nq
option:
  spec version: json-ld-1.1

te120
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignore some values of @id with @, allow others.
purpose: Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
input: toRdf/e120-in.jsonld
expect: toRdf/e120-out.nq
option:
  spec version: json-ld-1.1

te121
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignore some values of @reverse with @, allow others.
purpose: Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
input: toRdf/e121-in.jsonld
expect: toRdf/e121-out.nq
option:
  spec version: json-ld-1.1

te122
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignore some IRIs when that start with @ when expanding.
purpose: Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword.
input: toRdf/e122-in.jsonld
expect: toRdf/e122-out.nq
option:
  spec version: json-ld-1.1

te123
type: NegativeEvaluationTest
type: ToRDFTest
name: Value objects including invalid literal datatype IRIs are rejected
purpose: Processors MUST validate datatype IRIs.
input: toRdf/e123-in.jsonld
expect error code: invalid typed value
option:
  spec version: json-ld-1.1

te124
type: PositiveEvaluationTest
type: ToRDFTest
name: compact IRI as @vocab
purpose: Verifies that @vocab defined as a compact IRI expands properly
input: toRdf/e124-in.jsonld
expect: toRdf/e124-out.nq
option:
  spec version: json-ld-1.1

te125
type: PositiveEvaluationTest
type: ToRDFTest
name: term as @vocab
purpose: Verifies that @vocab defined as a term expands properly
input: toRdf/e125-in.jsonld
expect: toRdf/e125-out.nq
option:
  spec version: json-ld-1.1

te126
type: PositiveEvaluationTest
type: ToRDFTest
name: A scoped context may include itself recursively (direct)
purpose: Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
input: toRdf/e126-in.jsonld
expect: toRdf/e126-out.nq
option:
  spec version: json-ld-1.1

te127
type: PositiveEvaluationTest
type: ToRDFTest
name: A scoped context may include itself recursively (indirect)
purpose: Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
input: toRdf/e127-in.jsonld
expect: toRdf/e127-out.nq
option:
  spec version: json-ld-1.1

te128
type: PositiveEvaluationTest
type: ToRDFTest
name: Two scoped context may include a shared context
purpose: Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
input: toRdf/e128-in.jsonld
expect: toRdf/e128-out.nq
option:
  spec version: json-ld-1.1

te129
type: PositiveEvaluationTest
type: ToRDFTest
name: Base without trailing slash, without path
purpose: Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
input: toRdf/e129-in.jsonld
expect: toRdf/e129-out.nq
option:
  spec version: json-ld-1.1

te130
type: PositiveEvaluationTest
type: ToRDFTest
name: Base without trailing slash, with path
purpose: Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
input: toRdf/e130-in.jsonld
expect: toRdf/e130-out.nq
option:
  spec version: json-ld-1.1

tec01
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid keyword in term definition
purpose: Verifies that an exception is raised on expansion when a invalid term definition is found
input: toRdf/ec01-in.jsonld
expect error code: invalid term definition
option:
  spec version: json-ld-1.1

tec02
type: NegativeEvaluationTest
type: ToRDFTest
name: Term definition on @type with empty map
purpose: Verifies that an exception is raised if @type is defined as a term with an empty map
input: toRdf/ec02-in.jsonld
expect error code: keyword redefinition
option:
  spec version: json-ld-1.1

tem01
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid container mapping
purpose: Verifies that an exception is raised on expansion when a invalid container mapping is found
input: toRdf/em01-in.jsonld
expect error code: invalid container mapping
option:
  spec version: json-ld-1.1

ten01
type: NegativeEvaluationTest
type: ToRDFTest
name: @nest MUST NOT have a string value
purpose: container: @nest
input: toRdf/en01-in.jsonld
expect error code: invalid @nest value
option:
  spec version: json-ld-1.1

ten02
type: NegativeEvaluationTest
type: ToRDFTest
name: @nest MUST NOT have a boolen value
purpose: Transparent Nesting
input: toRdf/en02-in.jsonld
expect error code: invalid @nest value
option:
  spec version: json-ld-1.1

ten03
type: NegativeEvaluationTest
type: ToRDFTest
name: @nest MUST NOT have a numeric value
purpose: Transparent Nesting
input: toRdf/en03-in.jsonld
expect error code: invalid @nest value
option:
  spec version: json-ld-1.1

ten04
type: NegativeEvaluationTest
type: ToRDFTest
name: @nest MUST NOT have a value object value
purpose: Transparent Nesting
input: toRdf/en04-in.jsonld
expect error code: invalid @nest value
option:
  spec version: json-ld-1.1

ten05
type: NegativeEvaluationTest
type: ToRDFTest
name: does not allow a keyword other than @nest for the value of @nest
purpose: Transparent Nesting
input: toRdf/en05-in.jsonld
expect error code: invalid @nest value
option:
  spec version: json-ld-1.1

ten06
type: NegativeEvaluationTest
type: ToRDFTest
name: does not allow @nest with @reverse
purpose: Transparent Nesting
input: toRdf/en06-in.jsonld
expect error code: invalid reverse property
option:
  spec version: json-ld-1.1

tep02
type: NegativeEvaluationTest
type: ToRDFTest
name: processingMode json-ld-1.0 conflicts with @version: 1.1
purpose: If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
input: toRdf/ep02-in.jsonld
expect error code: processing mode conflict
option:
  processing mode: json-ld-1.0
  spec version: json-ld-1.1

tep03
type: NegativeEvaluationTest
type: ToRDFTest
name: @version must be 1.1
purpose: If @version is specified, it must be 1.1
option:
  spec version: json-ld-1.1
input: toRdf/ep03-in.jsonld
expect error code: invalid @version value

ter01
type: NegativeEvaluationTest
type: ToRDFTest
name: Keywords cannot be aliased to other keywords
purpose: Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
input: toRdf/er01-in.jsonld
expect error code: keyword redefinition

ter02
type: NegativeEvaluationTest
type: ToRDFTest
name: A context may not include itself recursively (direct)
purpose: Verifies that an exception is raised on expansion when processing a context referencing itself
input: toRdf/er02-in.jsonld
expect error code: recursive context inclusion
option:
  spec version: json-ld-1.0

ter03
type: NegativeEvaluationTest
type: ToRDFTest
name: A context may not include itself recursively (indirect)
purpose: Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
input: toRdf/er03-in.jsonld
expect error code: recursive context inclusion
option:
  spec version: json-ld-1.0

ter04
type: NegativeEvaluationTest
type: ToRDFTest
name: Error dereferencing a remote context
purpose: Verifies that an exception is raised on expansion when a context dereference results in an error
input: toRdf/er04-in.jsonld
expect error code: loading remote context failed

ter05
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid remote context
purpose: Verifies that an exception is raised on expansion when a remote context is not an object containing @context
input: toRdf/er05-in.jsonld
expect error code: invalid remote context
option:
  spec version: json-ld-1.1

ter06
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid local context
purpose: Verifies that an exception is raised on expansion when a context is not a string or object
input: toRdf/er06-in.jsonld
expect error code: invalid local context

ter07
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid base IRI
purpose: Verifies that an exception is raised on expansion when a context contains an invalid @base
input: toRdf/er07-in.jsonld
expect error code: invalid base IRI

ter08
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid vocab mapping
purpose: Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
input: toRdf/er08-in.jsonld
expect error code: invalid vocab mapping

ter09
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid default language
purpose: Verifies that an exception is raised on expansion when a context contains an invalid @language
input: toRdf/er09-in.jsonld
expect error code: invalid default language

ter10
type: NegativeEvaluationTest
type: ToRDFTest
name: Cyclic IRI mapping
purpose: Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
input: toRdf/er10-in.jsonld
expect error code: cyclic IRI mapping

ter11
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid term definition
purpose: Verifies that an exception is raised on expansion when a invalid term definition is found
input: toRdf/er11-in.jsonld
expect error code: invalid term definition

ter12
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid type mapping (not a string)
purpose: Verifies that an exception is raised on expansion when a invalid type mapping is found
input: toRdf/er12-in.jsonld
expect error code: invalid type mapping

ter13
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid type mapping (not absolute IRI)
purpose: Verifies that an exception is raised on expansion when a invalid type mapping is found
input: toRdf/er13-in.jsonld
expect error code: invalid type mapping

ter14
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid reverse property (contains @id)
purpose: Verifies that an exception is raised on expansion when a invalid reverse property is found
input: toRdf/er14-in.jsonld
expect error code: invalid reverse property

ter15
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid IRI mapping (@reverse not a string)
purpose: Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input: toRdf/er15-in.jsonld
expect error code: invalid IRI mapping

ter17
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid reverse property (invalid @container)
purpose: Verifies that an exception is raised on expansion when a invalid reverse property is found
input: toRdf/er17-in.jsonld
expect error code: invalid reverse property

ter18
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid IRI mapping (@id not a string)
purpose: Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input: toRdf/er18-in.jsonld
expect error code: invalid IRI mapping

ter19
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid keyword alias (@context)
purpose: Verifies that an exception is raised on expansion when a invalid keyword alias is found
input: toRdf/er19-in.jsonld
expect error code: invalid keyword alias

ter20
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid IRI mapping (no vocab mapping)
purpose: Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input: toRdf/er20-in.jsonld
expect error code: invalid IRI mapping

ter21
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid container mapping
purpose: Verifies that an exception is raised on expansion when a invalid container mapping is found
input: toRdf/er21-in.jsonld
expect error code: invalid container mapping
option:
  processing mode: json-ld-1.0
  spec version: json-ld-1.1

ter22
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid language mapping
purpose: Verifies that an exception is raised on expansion when a invalid language mapping is found
input: toRdf/er22-in.jsonld
expect error code: invalid language mapping

ter23
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid IRI mapping (relative IRI in @type)
purpose: Verifies that an exception is raised on expansion when a invalid type mapping is found
input: toRdf/er23-in.jsonld
expect error code: invalid type mapping

ter24
type: NegativeEvaluationTest
type: ToRDFTest
name: List of lists (from array)
purpose: Verifies that an exception is raised in Expansion when a list of lists is found
input: toRdf/er24-in.jsonld
expect error code: list of lists
option:
  spec version: json-ld-1.0

ter25
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid reverse property map
purpose: Verifies that an exception is raised in Expansion when a invalid reverse property map is found
input: toRdf/er25-in.jsonld
expect error code: invalid reverse property map

ter26
type: NegativeEvaluationTest
type: ToRDFTest
name: Colliding keywords
purpose: Verifies that an exception is raised in Expansion when colliding keywords are found
input: toRdf/er26-in.jsonld
expect error code: colliding keywords

ter27
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid @id value
purpose: Verifies that an exception is raised in Expansion when an invalid @id value is found
input: toRdf/er27-in.jsonld
expect error code: invalid @id value

ter28
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid type value
purpose: Verifies that an exception is raised in Expansion when an invalid type value is found
input: toRdf/er28-in.jsonld
expect error code: invalid type value

ter29
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid value object value
purpose: Verifies that an exception is raised in Expansion when an invalid value object value is found
input: toRdf/er29-in.jsonld
expect error code: invalid value object value

ter30
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid language-tagged string
purpose: Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
input: toRdf/er30-in.jsonld
expect error code: invalid language-tagged string

ter31
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid @index value
purpose: Verifies that an exception is raised in Expansion when an invalid @index value value is found
input: toRdf/er31-in.jsonld
expect error code: invalid @index value

ter32
type: NegativeEvaluationTest
type: ToRDFTest
name: List of lists (from array)
purpose: Verifies that an exception is raised in Expansion when a list of lists is found
input: toRdf/er32-in.jsonld
expect error code: list of lists
option:
  spec version: json-ld-1.0

ter33
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid @reverse value
purpose: Verifies that an exception is raised in Expansion when an invalid @reverse value is found
input: toRdf/er33-in.jsonld
expect error code: invalid @reverse value

ter34
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid reverse property value (in @reverse)
purpose: Verifies that an exception is raised in Expansion when an invalid reverse property value is found
input: toRdf/er34-in.jsonld
expect error code: invalid reverse property value

ter35
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid language map value
purpose: Verifies that an exception is raised in Expansion when an invalid language map value is found
input: toRdf/er35-in.jsonld
expect error code: invalid language map value

ter36
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid reverse property value (through coercion)
purpose: Verifies that an exception is raised in Expansion when an invalid reverse property value is found
input: toRdf/er36-in.jsonld
expect error code: invalid reverse property value

ter37
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid value object (unexpected keyword)
purpose: Verifies that an exception is raised in Expansion when an invalid value object is found
input: toRdf/er37-in.jsonld
expect error code: invalid value object

ter38
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid value object (@type and @language)
purpose: Verifies that an exception is raised in Expansion when an invalid value object is found
input: toRdf/er38-in.jsonld
expect error code: invalid value object

ter39
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid language-tagged value
purpose: Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
input: toRdf/er39-in.jsonld
expect error code: invalid language-tagged value

ter40
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid typed value
purpose: Verifies that an exception is raised in Expansion when an invalid typed value is found
input: toRdf/er40-in.jsonld
expect error code: invalid typed value

ter41
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid set or list object
purpose: Verifies that an exception is raised in Expansion when an invalid set or list object is found
input: toRdf/er41-in.jsonld
expect error code: invalid set or list object

ter42
type: NegativeEvaluationTest
type: ToRDFTest
name: Keywords may not be redefined in 1.0
purpose: Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
option:
  spec version: json-ld-1.1
  processing mode: json-ld-1.0
input: toRdf/er42-in.jsonld
expect error code: keyword redefinition

ter43
type: NegativeEvaluationTest
type: ToRDFTest
name: Term definition with @id: @type
purpose: Expanding term mapping to @type uses @type syntax now illegal
input: toRdf/er43-in.jsonld
expect error code: invalid IRI mapping
option:
  spec version: json-ld-1.1

ter44
type: NegativeEvaluationTest
type: ToRDFTest
name: Redefine terms looking like compact IRIs
purpose: Term definitions may look like compact IRIs, but must be consistent.
input: toRdf/er44-in.jsonld
expect error code: invalid IRI mapping
option:
  spec version: json-ld-1.1

ter48
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid term as relative IRI
purpose: Verifies that a relative IRI cannot be used as a term.
input: toRdf/er48-in.jsonld
expect error code: invalid IRI mapping
option:
  spec version: json-ld-1.1

ter49
type: NegativeEvaluationTest
type: ToRDFTest
name: A relative IRI cannot be used as a prefix
purpose: Verifies that a relative IRI cannot be used as a term.
input: toRdf/er49-in.jsonld
expect error code: invalid term definition
option:
  spec version: json-ld-1.1

ter50
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid reverse id
purpose: Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
input: toRdf/er50-in.jsonld
expect error code: invalid IRI mapping

ter51
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid value object value using a value alias
purpose: Verifies that an exception is raised in Expansion when an invalid value object value is found using a value alias
input: toRdf/er51-in.jsonld
expect error code: invalid value object value

ter52
type: NegativeEvaluationTest
type: ToRDFTest
name: Definition for the empty term
purpose: Verifies that an exception is raised on expansion when a context contains a definition for the empty term
input: toRdf/er52-in.jsonld
expect error code: invalid term definition

ter53
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid prefix value
purpose: Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
input: toRdf/er53-in.jsonld
expect error code: invalid @prefix value
option:
  spec version: json-ld-1.1

ter54
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid value object, multiple values for @type.
purpose: The value of @type in a value object MUST be a string or null.
input: toRdf/er54-in.jsonld
expect error code: invalid typed value

ter55
type: NegativeEvaluationTest
type: ToRDFTest
name: Invalid term definition, multiple values for @type.
purpose: The value of @type in an expanded term definition object MUST be a string or null.
input: toRdf/er55-in.jsonld
expect error code: invalid type mapping

tin01
type: PositiveEvaluationTest
type: ToRDFTest
name: Basic Included array
purpose: Tests included blocks.
input: toRdf/in01-in.jsonld
expect: toRdf/in01-out.nq
option:
  spec version: json-ld-1.1

tin02
type: PositiveEvaluationTest
type: ToRDFTest
name: Basic Included object
purpose: Tests included blocks.
input: toRdf/in02-in.jsonld
expect: toRdf/in02-out.nq
option:
  spec version: json-ld-1.1

tin03
type: PositiveEvaluationTest
type: ToRDFTest
name: Multiple properties mapping to @included are folded together
purpose: Tests included blocks.
input: toRdf/in03-in.jsonld
expect: toRdf/in03-out.nq
option:
  spec version: json-ld-1.1

tin04
type: PositiveEvaluationTest
type: ToRDFTest
name: Included containing @included
purpose: Tests included blocks.
input: toRdf/in04-in.jsonld
expect: toRdf/in04-out.nq
option:
  spec version: json-ld-1.1

tin05
type: PositiveEvaluationTest
type: ToRDFTest
name: Property value with @included
purpose: Tests included blocks.
input: toRdf/in05-in.jsonld
expect: toRdf/in05-out.nq
option:
  spec version: json-ld-1.1

tin06
type: PositiveEvaluationTest
type: ToRDFTest
name: json.api example
purpose: Tests included blocks.
input: toRdf/in06-in.jsonld
expect: toRdf/in06-out.nq
option:
  spec version: json-ld-1.1

tin07
type: NegativeEvaluationTest
type: ToRDFTest
name: Error if @included value is a string
purpose: Tests included blocks.
input: toRdf/in07-in.jsonld
expect error code: invalid @included value
option:
  spec version: json-ld-1.1

tin08
type: NegativeEvaluationTest
type: ToRDFTest
name: Error if @included value is a value object
purpose: Tests included blocks.
input: toRdf/in08-in.jsonld
expect error code: invalid @included value
option:
  spec version: json-ld-1.1

tin09
type: NegativeEvaluationTest
type: ToRDFTest
name: Error if @included value is a list object
purpose: Tests included blocks.
input: toRdf/in09-in.jsonld
expect error code: invalid @included value
option:
  spec version: json-ld-1.1

tjs01
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (boolean true)
purpose: Tests transforming property with @type @json to a JSON literal (boolean true).
input: toRdf/js01-in.jsonld
expect: toRdf/js01-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs02
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (boolean false)
purpose: Tests transforming property with @type @json to a JSON literal (boolean false).
input: toRdf/js02-in.jsonld
expect: toRdf/js02-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs03
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (double)
purpose: Tests transforming property with @type @json to a JSON literal (double).
input: toRdf/js03-in.jsonld
expect: toRdf/js03-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs04
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (double-zero)
purpose: Tests transforming property with @type @json to a JSON literal (double-zero).
input: toRdf/js04-in.jsonld
expect: toRdf/js04-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs05
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (integer)
purpose: Tests transforming property with @type @json to a JSON literal (integer).
input: toRdf/js05-in.jsonld
expect: toRdf/js05-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs06
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (object)
purpose: Tests transforming property with @type @json to a JSON literal (object).
input: toRdf/js06-in.jsonld
expect: toRdf/js06-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs07
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (array)
purpose: Tests transforming property with @type @json to a JSON literal (array).
input: toRdf/js07-in.jsonld
expect: toRdf/js07-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs08
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with array canonicalization
purpose: Tests transforming JSON literal with array canonicalization.
input: toRdf/js08-in.jsonld
expect: toRdf/js08-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs09
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with string canonicalization
purpose: Tests transforming JSON literal with string canonicalization.
input: toRdf/js09-in.jsonld
expect: toRdf/js09-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs10
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with structural canonicalization
purpose: Tests transforming JSON literal with structural canonicalization.
input: toRdf/js10-in.jsonld
expect: toRdf/js10-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs11
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with unicode canonicalization
purpose: Tests transforming JSON literal with unicode canonicalization.
input: toRdf/js11-in.jsonld
expect: toRdf/js11-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs12
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with value canonicalization
purpose: Tests transforming JSON literal with value canonicalization.
input: toRdf/js12-in.jsonld
expect: toRdf/js12-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs13
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with wierd canonicalization
purpose: Tests transforming JSON literal with wierd canonicalization.
input: toRdf/js13-in.jsonld
expect: toRdf/js13-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs14
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal without expanding contents
purpose: Tests transforming JSON literal does not expand terms inside json.
input: toRdf/js14-in.jsonld
expect: toRdf/js14-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs15
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal aleady in expanded form
purpose: Tests transforming JSON literal in expanded form.
input: toRdf/js15-in.jsonld
expect: toRdf/js15-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs16
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal aleady in expanded form with aliased keys
purpose: Tests transforming JSON literal in expanded form with aliased keys in value object.
input: toRdf/js16-in.jsonld
expect: toRdf/js16-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs17
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (string)
purpose: Tests transforming property with @type @json to a JSON literal (string).
input: toRdf/js17-in.jsonld
expect: toRdf/js17-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs18
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (null)
purpose: Tests transforming property with @type @json to a JSON literal (null).
input: toRdf/js18-in.jsonld
expect: toRdf/js18-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs19
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with aliased @type
purpose: Tests transforming JSON literal with aliased @type.
input: toRdf/js19-in.jsonld
expect: toRdf/js19-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs20
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with aliased @value
purpose: Tests transforming JSON literal with aliased @value.
input: toRdf/js20-in.jsonld
expect: toRdf/js20-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs21
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal with @context
purpose: Tests transforming JSON literal with a @context.
input: toRdf/js21-in.jsonld
expect: toRdf/js21-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs22
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (null) aleady in expanded form.
purpose: Tests transforming property with @type @json to a JSON literal (null).
input: toRdf/js22-in.jsonld
expect: toRdf/js22-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tjs23
type: PositiveEvaluationTest
type: ToRDFTest
name: Transform JSON literal (empty array).
purpose: Tests transforming property with @type @json to a JSON literal (empty array).
input: toRdf/js23-in.jsonld
expect: toRdf/js23-out.nq
option:
  spec version: json-ld-1.1
  use JCS: true

tli01
type: PositiveEvaluationTest
type: ToRDFTest
name: @list containing @list
purpose: List of lists.
input: toRdf/li01-in.jsonld
expect: toRdf/li01-out.nq
option:
  spec version: json-ld-1.1

tli02
type: PositiveEvaluationTest
type: ToRDFTest
name: @list containing empty @list
purpose: List of lists.
input: toRdf/li02-in.jsonld
expect: toRdf/li02-out.nq
option:
  spec version: json-ld-1.1

tli03
type: PositiveEvaluationTest
type: ToRDFTest
name: @list containing @list (with coercion)
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li03-in.jsonld
expect: toRdf/li03-out.nq

tli04
type: PositiveEvaluationTest
type: ToRDFTest
name: @list containing empty @list (with coercion)
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li04-in.jsonld
expect: toRdf/li04-out.nq

tli05
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @list containing an array
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li05-in.jsonld
expect: toRdf/li05-out.nq

tli06
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @list containing an empty array
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li06-in.jsonld
expect: toRdf/li06-out.nq

tli07
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @list containing deep arrays
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li07-in.jsonld
expect: toRdf/li07-out.nq

tli08
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @list containing deep empty arrays
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li08-in.jsonld
expect: toRdf/li08-out.nq

tli09
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @list containing multiple lists
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li09-in.jsonld
expect: toRdf/li09-out.nq

tli10
type: PositiveEvaluationTest
type: ToRDFTest
name: coerced @list containing mixed list values
purpose: List of lists
option:
  spec version: json-ld-1.1
input: toRdf/li10-in.jsonld
expect: toRdf/li10-out.nq

tli11
type: PositiveEvaluationTest
type: ToRDFTest
name: List with good @base.
purpose: Tests list elements expanded to IRIs with a good @base.
option:
  spec version: json-ld-1.1
  base: http://example.com/
input: toRdf/li11-in.jsonld
expect: toRdf/li11-out.nq

tli12
type: PositiveEvaluationTest
type: ToRDFTest
name: List with bad @base.
purpose: Tests list elements expanded to IRIs with a bad @base.
option:
  spec version: json-ld-1.1
input: toRdf/li12-in.jsonld
expect: toRdf/li12-out.nq

tli13
type: PositiveEvaluationTest
type: ToRDFTest
name: List with empty @base.
purpose: Tests list elements expanded to IRIs with an empty @base.
option:
  spec version: json-ld-1.1
  base: http://example.com/
input: toRdf/li13-in.jsonld
expect: toRdf/li13-out.nq

tli14
type: PositiveEvaluationTest
type: ToRDFTest
name: List with null @base.
purpose: Tests list elements expanded to IRIs with a null @base.
option:
  spec version: json-ld-1.1
  base: http://example.com/
input: toRdf/li14-in.jsonld
expect: toRdf/li14-out.nq

tm001
type: PositiveEvaluationTest
type: ToRDFTest
name: Adds @id to object not having an @id
purpose: Expansion using @container: @id
input: toRdf/m001-in.jsonld
expect: toRdf/m001-out.nq
option:
  spec version: json-ld-1.1

tm002
type: PositiveEvaluationTest
type: ToRDFTest
name: Retains @id in object already having an @id
purpose: Expansion using @container: @id
input: toRdf/m002-in.jsonld
expect: toRdf/m002-out.nq
option:
  spec version: json-ld-1.1

tm003
type: PositiveEvaluationTest
type: ToRDFTest
name: Adds @type to object not having an @type
purpose: Expansion using @container: @type
input: toRdf/m003-in.jsonld
expect: toRdf/m003-out.nq
option:
  spec version: json-ld-1.1

tm004
type: PositiveEvaluationTest
type: ToRDFTest
name: Prepends @type in object already having an @type
purpose: Expansion using @container: @type
input: toRdf/m004-in.jsonld
expect: toRdf/m004-out.nq
option:
  spec version: json-ld-1.1

tm005
type: PositiveEvaluationTest
type: ToRDFTest
name: Adds expanded @id to object
purpose: Expansion using @container: @id
input: toRdf/m005-in.jsonld
expect: toRdf/m005-out.nq
option:
  base: http://example.org/
  spec version: json-ld-1.1

tm006
type: PositiveEvaluationTest
type: ToRDFTest
name: Adds vocabulary expanded @type to object
purpose: Expansion using @container: @type
input: toRdf/m006-in.jsonld
expect: toRdf/m006-out.nq
option:
  spec version: json-ld-1.1

tm007
type: PositiveEvaluationTest
type: ToRDFTest
name: Adds document expanded @type to object
purpose: Expansion using @container: @type
input: toRdf/m007-in.jsonld
expect: toRdf/m007-out.nq
option:
  spec version: json-ld-1.1

tm008
type: PositiveEvaluationTest
type: ToRDFTest
name: When type is in a type map
purpose: scoped context on @type
input: toRdf/m008-in.jsonld
expect: toRdf/m008-out.nq
option:
  spec version: json-ld-1.1

tm009
type: PositiveEvaluationTest
type: ToRDFTest
name: language map with @none
purpose: index on @language
input: toRdf/m009-in.jsonld
expect: toRdf/m009-out.nq
option:
  spec version: json-ld-1.1

tm010
type: PositiveEvaluationTest
type: ToRDFTest
name: language map with alias of @none
purpose: index on @language
input: toRdf/m010-in.jsonld
expect: toRdf/m010-out.nq
option:
  spec version: json-ld-1.1

tm011
type: PositiveEvaluationTest
type: ToRDFTest
name: id map with @none
purpose: index on @id
input: toRdf/m011-in.jsonld
expect: toRdf/m011-out.nq
option:
  spec version: json-ld-1.1

tm012
type: PositiveEvaluationTest
type: ToRDFTest
name: type map with alias of @none
purpose: index on @type
input: toRdf/m012-in.jsonld
expect: toRdf/m012-out.nq
option:
  spec version: json-ld-1.1

tm013
type: PositiveEvaluationTest
type: ToRDFTest
name: graph index map with @none
purpose: index on @graph and @index
input: toRdf/m013-in.jsonld
expect: toRdf/m013-out.nq
option:
  spec version: json-ld-1.1

tm014
type: PositiveEvaluationTest
type: ToRDFTest
name: graph index map with alias @none
purpose: index on @graph and @index
input: toRdf/m014-in.jsonld
expect: toRdf/m014-out.nq
option:
  spec version: json-ld-1.1

tm015
type: PositiveEvaluationTest
type: ToRDFTest
name: graph id index map with aliased @none
purpose: index on @graph and @id with @none
input: toRdf/m015-in.jsonld
expect: toRdf/m015-out.nq
option:
  spec version: json-ld-1.1

tm016
type: PositiveEvaluationTest
type: ToRDFTest
name: graph id index map with aliased @none
purpose: index on @graph and @id with @none
input: toRdf/m016-in.jsonld
expect: toRdf/m016-out.nq
option:
  spec version: json-ld-1.1

tm017
type: PositiveEvaluationTest
type: ToRDFTest
name: string value of type map expands to node reference
purpose: index on @type
input: toRdf/m017-in.jsonld
expect: toRdf/m017-out.nq
option:
  spec version: json-ld-1.1

tm018
type: PositiveEvaluationTest
type: ToRDFTest
name: string value of type map expands to node reference with @type: @id
purpose: index on @type
input: toRdf/m018-in.jsonld
expect: toRdf/m018-out.nq
option:
  spec version: json-ld-1.1

tm019
type: PositiveEvaluationTest
type: ToRDFTest
name: string value of type map expands to node reference with @type: @vocab
purpose: index on @type
input: toRdf/m019-in.jsonld
expect: toRdf/m019-out.nq
option:
  spec version: json-ld-1.1

tm020
type: NegativeEvaluationTest
type: ToRDFTest
name: string value of type map must not be a literal
purpose: index on @type
input: toRdf/m020-in.jsonld
expect error code: invalid type mapping
option:
  spec version: json-ld-1.1

tn001
type: PositiveEvaluationTest
type: ToRDFTest
name: Expands input using @nest
purpose: Expansion using @nest
input: toRdf/n001-in.jsonld
expect: toRdf/n001-out.nq
option:
  spec version: json-ld-1.1

tn002
type: PositiveEvaluationTest
type: ToRDFTest
name: Expands input using aliased @nest
purpose: Expansion using @nest
input: toRdf/n002-in.jsonld
expect: toRdf/n002-out.nq
option:
  spec version: json-ld-1.1

tn003
type: PositiveEvaluationTest
type: ToRDFTest
name: Appends nested values when property at base and nested
purpose: Expansion using @nest
input: toRdf/n003-in.jsonld
expect: toRdf/n003-out.nq
option:
  spec version: json-ld-1.1

tn004
type: PositiveEvaluationTest
type: ToRDFTest
name: Appends nested values from all @nest aliases in term order
purpose: Expansion using @nest
input: toRdf/n004-in.jsonld
expect: toRdf/n004-out.nq
option:
  spec version: json-ld-1.1

tn005
type: PositiveEvaluationTest
type: ToRDFTest
name: Nested nested containers
purpose: Expansion using @nest
input: toRdf/n005-in.jsonld
expect: toRdf/n005-out.nq
option:
  spec version: json-ld-1.1

tn006
type: PositiveEvaluationTest
type: ToRDFTest
name: Arrays of nested values
purpose: Expansion using @nest
input: toRdf/n006-in.jsonld
expect: toRdf/n006-out.nq
option:
  spec version: json-ld-1.1

tn007
type: PositiveEvaluationTest
type: ToRDFTest
name: A nest of arrays
purpose: Expansion using @nest
input: toRdf/n007-in.jsonld
expect: toRdf/n007-out.nq
option:
  spec version: json-ld-1.1

tn008
type: PositiveEvaluationTest
type: ToRDFTest
name: Multiple keys may mapping to @type when nesting
purpose: Expansion using @nest
input: toRdf/n008-in.jsonld
expect: toRdf/n008-out.nq
option:
  spec version: json-ld-1.1

tnt01
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_ascii_boundaries
purpose: literal_ascii_boundaries '\x00\x26\x28...' from N-Triples
input: toRdf/nt01-in.jsonld

tnt02
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_UTF8_boundaries
purpose: literal_with_UTF8_boundaries '\x80\x7ff\x800\xfff...' from N-Triples
input: toRdf/nt02-in.jsonld

tnt03
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_all_controls
purpose: literal_all_controls '\x00\x01\x02\x03\x04...' from N-Triples
input: toRdf/nt03-in.jsonld

tnt04
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_all_punctuation
purpose: literal_all_punctuation '!"#$%&()...' from N-Triples
input: toRdf/nt04-in.jsonld

tnt05
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_squote
purpose: literal with squote "x'y" from N-Triples
input: toRdf/nt05-in.jsonld

tnt06
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_2_squotes
purpose: literal with 2 squotes "x''y" from N-Triples
input: toRdf/nt06-in.jsonld

tnt07
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_dquote
purpose: literal with dquote "x"y" from N-Triples
input: toRdf/nt07-in.jsonld

tnt08
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_2_dquotes
purpose: literal with 2 dquotes """a""b""" from N-Triples
input: toRdf/nt08-in.jsonld

tnt09
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_REVERSE_SOLIDUS2
purpose: REVERSE SOLIDUS at end of literal from N-Triples
input: toRdf/nt09-in.jsonld

tnt10
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_CHARACTER_TABULATION
purpose: literal with CHARACTER TABULATION from N-Triples
input: toRdf/nt10-in.jsonld

tnt11
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_BACKSPACE
purpose: literal with BACKSPACE from N-Triples
input: toRdf/nt11-in.jsonld

tnt12
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_LINE_FEED
purpose: literal with LINE FEED from N-Triples
input: toRdf/nt12-in.jsonld

tnt13
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_CARRIAGE_RETURN
purpose: literal with CARRIAGE RETURN from N-Triples
input: toRdf/nt13-in.jsonld

tnt14
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_FORM_FEED
purpose: literal with FORM FEED from N-Triples
input: toRdf/nt14-in.jsonld

tnt15
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_REVERSE_SOLIDUS
purpose: literal with REVERSE SOLIDUS from N-Triples
input: toRdf/nt15-in.jsonld

tnt16
type: PositiveSyntaxTest
type: ToRDFTest
name: literal_with_numeric_escape4
purpose: literal with numeric escape4 \u from N-Triples
input: toRdf/nt16-in.jsonld

tp001
type: PositiveEvaluationTest
type: ToRDFTest
name: @version may be specified after first context
purpose: If processing mode is not set through API, it is set by the first context containing @version.
option:
  spec version: json-ld-1.1
input: toRdf/p001-in.jsonld
expect: toRdf/p001-out.nq

tp002
type: PositiveEvaluationTest
type: ToRDFTest
name: @version setting [1.0, 1.1, 1.0]
purpose: If processing mode is not set through API, it is set by the first context containing @version.
option:
  spec version: json-ld-1.1
input: toRdf/p002-in.jsonld
expect: toRdf/p002-out.nq

tp003
type: PositiveEvaluationTest
type: ToRDFTest
name: @version setting [1.1, 1.0]
purpose: If processing mode is not set through API, it is set by the first context containing @version.
option:
  spec version: json-ld-1.1
input: toRdf/p003-in.jsonld
expect: toRdf/p003-out.nq

tp004
type: PositiveEvaluationTest
type: ToRDFTest
name: @version setting [1.1, 1.0, 1.1]
purpose: If processing mode is not set through API, it is set by the first context containing @version.
option:
  spec version: json-ld-1.1
input: toRdf/p004-in.jsonld
expect: toRdf/p004-out.nq

tpi01
type: NegativeEvaluationTest
type: ToRDFTest
name: error if @version is json-ld-1.0 for property-valued index
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
  processing mode: json-ld-1.0
input: toRdf/pi01-in.jsonld
expect error code: invalid term definition

tpi02
type: NegativeEvaluationTest
type: ToRDFTest
name: error if @container does not include @index for property-valued index
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi02-in.jsonld
expect error code: invalid term definition

tpi03
type: NegativeEvaluationTest
type: ToRDFTest
name: error if @index is a keyword for property-valued index
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi03-in.jsonld
expect error code: invalid term definition

tpi04
type: NegativeEvaluationTest
type: ToRDFTest
name: error if @index is not a string for property-valued index
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi04-in.jsonld
expect error code: invalid term definition

tpi05
type: NegativeEvaluationTest
type: ToRDFTest
name: error if attempting to add property to value object for property-valued index
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi05-in.jsonld
expect error code: invalid value object

tpi06
type: PositiveEvaluationTest
type: ToRDFTest
name: property-valued index expands to property value, instead of @index (value)
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi06-in.jsonld
expect: toRdf/pi06-out.nq

tpi07
type: PositiveEvaluationTest
type: ToRDFTest
name: property-valued index appends to property value, instead of @index (value)
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi07-in.jsonld
expect: toRdf/pi07-out.nq

tpi08
type: PositiveEvaluationTest
type: ToRDFTest
name: property-valued index expands to property value, instead of @index (node)
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi08-in.jsonld
expect: toRdf/pi08-out.nq

tpi09
type: PositiveEvaluationTest
type: ToRDFTest
name: property-valued index appends to property value, instead of @index (node)
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi09-in.jsonld
expect: toRdf/pi09-out.nq

tpi10
type: PositiveEvaluationTest
type: ToRDFTest
name: property-valued index does not output property for @none
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi10-in.jsonld
expect: toRdf/pi10-out.nq

tpi11
type: PositiveEvaluationTest
type: ToRDFTest
name: property-valued index adds property to graph object
purpose: Expanding index maps where index is a property.
option:
  spec version: json-ld-1.1
input: toRdf/pi11-in.jsonld
expect: toRdf/pi11-out.nq

tpr01
type: NegativeEvaluationTest
type: ToRDFTest
name: Protect a term
purpose: Check error when overriding a protected term.
option:
  spec version: json-ld-1.1
input: toRdf/pr01-in.jsonld
expect error code: protected term redefinition

tpr02
type: PositiveEvaluationTest
type: ToRDFTest
name: Set a term to not be protected
purpose: A term with @protected: false is not protected.
option:
  spec version: json-ld-1.1
input: toRdf/pr02-in.jsonld
expect: toRdf/pr02-out.nq

tpr03
type: NegativeEvaluationTest
type: ToRDFTest
name: Protect all terms in context
purpose: A protected context protects all term definitions.
option:
  spec version: json-ld-1.1
input: toRdf/pr03-in.jsonld
expect error code: protected term redefinition

tpr04
type: NegativeEvaluationTest
type: ToRDFTest
name: Do not protect term with @protected: false
purpose: A protected context does not protect terms with @protected: false.
option:
  spec version: json-ld-1.1
input: toRdf/pr04-in.jsonld
expect error code: protected term redefinition

tpr05
type: NegativeEvaluationTest
type: ToRDFTest
name: Clear active context with protected terms from an embedded context
purpose: The Active context be set to null from an embedded context.
option:
  spec version: json-ld-1.1
input: toRdf/pr05-in.jsonld
expect error code: invalid context nullification

tpr06
type: PositiveEvaluationTest
type: ToRDFTest
name: Clear active context of protected terms from a term.
purpose: The Active context may be set to null from a scoped context of a term.
option:
  spec version: json-ld-1.1
input: toRdf/pr06-in.jsonld
expect: toRdf/pr06-out.nq

tpr08
type: NegativeEvaluationTest
type: ToRDFTest
name: Term with protected scoped context.
purpose: A scoped context can protect terms.
option:
  spec version: json-ld-1.1
input: toRdf/pr08-in.jsonld
expect error code: protected term redefinition

tpr09
type: NegativeEvaluationTest
type: ToRDFTest
name: Attempt to redefine term in other protected context.
purpose: A protected term cannot redefine another protected term.
option:
  spec version: json-ld-1.1
input: toRdf/pr09-in.jsonld
expect error code: protected term redefinition

tpr10
type: PositiveEvaluationTest
type: ToRDFTest
name: Simple protected and unprotected terms.
purpose: Simple protected and unprotected terms.
option:
  spec version: json-ld-1.1
input: toRdf/pr10-in.jsonld
expect: toRdf/pr10-out.nq

tpr11
type: NegativeEvaluationTest
type: ToRDFTest
name: Fail to override protected term.
purpose: Fail to override protected term.
option:
  spec version: json-ld-1.1
input: toRdf/pr11-in.jsonld
expect error code: protected term redefinition

tpr12
type: NegativeEvaluationTest
type: ToRDFTest
name: Scoped context fail to override protected term.
purpose: Scoped context fail to override protected term.
option:
  spec version: json-ld-1.1
input: toRdf/pr12-in.jsonld
expect error code: protected term redefinition

tpr13
type: PositiveEvaluationTest
type: ToRDFTest
name: Override unprotected term.
purpose: Override unprotected term.
option:
  spec version: json-ld-1.1
input: toRdf/pr13-in.jsonld
expect: toRdf/pr13-out.nq

tpr14
type: PositiveEvaluationTest
type: ToRDFTest
name: Clear protection with null context.
purpose: Clear protection with null context.
option:
  spec version: json-ld-1.1
input: toRdf/pr14-in.jsonld
expect: toRdf/pr14-out.nq

tpr15
type: PositiveEvaluationTest
type: ToRDFTest
name: Clear protection with array with null context
purpose: Clear protection with array with null context
option:
  spec version: json-ld-1.1
input: toRdf/pr15-in.jsonld
expect: toRdf/pr15-out.nq

tpr16
type: PositiveEvaluationTest
type: ToRDFTest
name: Override protected terms after null.
purpose: Override protected terms after null.
option:
  spec version: json-ld-1.1
input: toRdf/pr16-in.jsonld
expect: toRdf/pr16-out.nq

tpr17
type: NegativeEvaluationTest
type: ToRDFTest
name: Fail to override protected terms with type.
purpose: Fail to override protected terms with type.
option:
  spec version: json-ld-1.1
input: toRdf/pr17-in.jsonld
expect error code: invalid context nullification

tpr18
type: NegativeEvaluationTest
type: ToRDFTest
name: Fail to override protected terms with type+null+ctx.
purpose: Fail to override protected terms with type+null+ctx.
option:
  spec version: json-ld-1.1
input: toRdf/pr18-in.jsonld
expect error code: invalid context nullification

tpr19
type: PositiveEvaluationTest
type: ToRDFTest
name: Mix of protected and unprotected terms.
purpose: Mix of protected and unprotected terms.
option:
  spec version: json-ld-1.1
input: toRdf/pr19-in.jsonld
expect: toRdf/pr19-out.nq

tpr20
type: NegativeEvaluationTest
type: ToRDFTest
name: Fail with mix of protected and unprotected terms with type+null+ctx.
purpose: Fail with mix of protected and unprotected terms with type+null+ctx.
option:
  spec version: json-ld-1.1
input: toRdf/pr20-in.jsonld
expect error code: invalid context nullification

tpr21
type: NegativeEvaluationTest
type: ToRDFTest
name: Fail with mix of protected and unprotected terms with type+null.
purpose: Fail with mix of protected and unprotected terms with type+null.
option:
  spec version: json-ld-1.1
input: toRdf/pr21-in.jsonld
expect error code: invalid context nullification

tpr22
type: PositiveEvaluationTest
type: ToRDFTest
name: Check legal overriding of type-scoped protected term from nested node.
purpose: Check legal overriding of type-scoped protected term from nested node.
option:
  spec version: json-ld-1.1
input: toRdf/pr22-in.jsonld
expect: toRdf/pr22-out.nq

tpr23
type: PositiveEvaluationTest
type: ToRDFTest
name: Allows redefinition of protected alias term with same definition.
purpose: Allows redefinition of protected alias term with same definition.
option:
  spec version: json-ld-1.1
input: toRdf/pr23-in.jsonld
expect: toRdf/pr23-out.nq

tpr24
type: PositiveEvaluationTest
type: ToRDFTest
name: Allows redefinition of protected prefix term with same definition.
purpose: Allows redefinition of protected prefix term with same definition.
option:
  spec version: json-ld-1.1
input: toRdf/pr24-in.jsonld
expect: toRdf/pr24-out.nq

tpr25
type: PositiveEvaluationTest
type: ToRDFTest
name: Allows redefinition of terms with scoped contexts using same definitions.
purpose: Allows redefinition of terms with scoped contexts using same definitions.
option:
  spec version: json-ld-1.1
input: toRdf/pr25-in.jsonld
expect: toRdf/pr25-out.nq

tpr26
type: NegativeEvaluationTest
type: ToRDFTest
name: Fails on redefinition of terms with scoped contexts using different definitions.
purpose: Fails on redefinition of terms with scoped contexts using different definitions.
option:
  spec version: json-ld-1.1
input: toRdf/pr26-in.jsonld
expect error code: protected term redefinition

tpr27
type: PositiveEvaluationTest
type: ToRDFTest
name: Allows redefinition of protected alias term with same definition modulo protected flag.
purpose: Allows redefinition of protected alias term with same definition modulo protected flag.
option:
  spec version: json-ld-1.1
input: toRdf/pr27-in.jsonld
expect: toRdf/pr27-out.nq

tpr28
type: NegativeEvaluationTest
type: ToRDFTest
name: Fails if trying to redefine a protected null term.
purpose: A protected term with a null IRI mapping cannot be redefined.
option:
  spec version: json-ld-1.1
input: toRdf/pr28-in.jsonld
expect error code: protected term redefinition

tpr29
type: PositiveEvaluationTest
type: ToRDFTest
name: Does not expand a Compact IRI using a non-prefix term.
purpose: Expansion of Compact IRIs considers if the term can be used as a prefix.
option:
  spec version: json-ld-1.1
input: toRdf/pr29-in.jsonld
expect: toRdf/pr29-out.nq

tpr30
type: PositiveEvaluationTest
type: ToRDFTest
name: Keywords may be protected.
purpose: Keywords may not be redefined other than to protect them.
option:
  spec version: json-ld-1.1
input: toRdf/pr30-in.jsonld
expect: toRdf/pr30-out.nq

tpr31
type: NegativeEvaluationTest
type: ToRDFTest
name: Protected keyword aliases cannot be overridden.
purpose: Keywords may not be redefined other than to protect them.
option:
  spec version: json-ld-1.1
input: toRdf/pr31-in.jsonld
expect error code: protected term redefinition

tpr32
type: NegativeEvaluationTest
type: ToRDFTest
name: Protected @type cannot be overridden.
purpose: Keywords may not be redefined other than to protect them.
option:
  spec version: json-ld-1.1
input: toRdf/pr32-in.jsonld
expect error code: protected term redefinition

tpr33
type: NegativeEvaluationTest
type: ToRDFTest
name: Fails if trying to declare a keyword alias as prefix.
purpose: Keyword aliases can not be used as prefixes.
option:
  spec version: json-ld-1.1
input: toRdf/pr33-in.jsonld
expect error code: invalid term definition

tpr34
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignores a non-keyword term starting with '@'
purpose: Terms in the form of a keyword, which are not keywords, are ignored.
option:
  spec version: json-ld-1.1
input: toRdf/pr34-in.jsonld
expect: toRdf/pr34-out.nq

tpr35
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignores a non-keyword term starting with '@' (with @vocab)
purpose: Terms in the form of a keyword, which are not keywords, are ignored.
option:
  spec version: json-ld-1.1
input: toRdf/pr35-in.jsonld
expect: toRdf/pr35-out.nq

tpr36
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignores a term mapping to a value in the form of a keyword.
purpose: Terms in the form of a keyword, which are not keywords, are ignored.
option:
  spec version: json-ld-1.1
input: toRdf/pr36-in.jsonld
expect: toRdf/pr36-out.nq

tpr37
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignores a term mapping to a value in the form of a keyword (with @vocab).
purpose: Terms in the form of a keyword, which are not keywords, are ignored.
option:
  spec version: json-ld-1.1
input: toRdf/pr37-in.jsonld
expect: toRdf/pr37-out.nq

tpr38
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignores a term mapping to a value in the form of a keyword (@reverse).
purpose: Terms in the form of a keyword, which are not keywords, are ignored.
option:
  spec version: json-ld-1.1
input: toRdf/pr38-in.jsonld
expect: toRdf/pr38-out.nq

tpr39
type: PositiveEvaluationTest
type: ToRDFTest
name: Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab).
purpose: Terms in the form of a keyword, which are not keywords, are ignored.
option:
  spec version: json-ld-1.1
input: toRdf/pr39-in.jsonld
expect: toRdf/pr39-out.nq

tpr40
type: PositiveEvaluationTest
type: ToRDFTest
name: Protected terms and property-scoped contexts
purpose: Check overriding of protected term from property-scoped context.
option:
  spec version: json-ld-1.1
input: toRdf/pr40-in.jsonld
expect: toRdf/pr40-out.nq

trt01
type: PositiveEvaluationTest
type: ToRDFTest
name: Representing numbers >= 1e21
purpose: numbers with no fractions but that are >= 1e21 are represented as xsd:double
option:
  spec version: json-ld-1.1
input: toRdf/rt01-in.jsonld
expect: toRdf/rt01-out.nq

tso01
type: NegativeEvaluationTest
type: ToRDFTest
name: @import is invalid in 1.0.
purpose: @import is invalid in 1.0.
option:
  spec version: json-ld-1.1
  processing mode: json-ld-1.0
input: toRdf/so01-in.jsonld
expect error code: invalid context entry

tso02
type: NegativeEvaluationTest
type: ToRDFTest
name: @import must be a string
purpose: @import must be a string.
option:
  spec version: json-ld-1.1
input: toRdf/so02-in.jsonld
expect error code: invalid @import value

tso03
type: NegativeEvaluationTest
type: ToRDFTest
name: @import overflow
purpose: Processors must detect source contexts that include @import.
option:
  spec version: json-ld-1.1
input: toRdf/so03-in.jsonld
expect error code: invalid context entry

tso05
type: PositiveEvaluationTest
type: ToRDFTest
name: @propagate: true on type-scoped context with @import
purpose: type-scoped context with @propagate: true survive node-objects (with @import)
input: toRdf/so05-in.jsonld
expect: toRdf/so05-out.nq
option:
  spec version: json-ld-1.1

tso06
type: PositiveEvaluationTest
type: ToRDFTest
name: @propagate: false on property-scoped context with @import
purpose: property-scoped context with @propagate: false do not survive node-objects (with @import)
input: toRdf/so06-in.jsonld
expect: toRdf/so06-out.nq
option:
  spec version: json-ld-1.1

tso07
type: NegativeEvaluationTest
type: ToRDFTest
name: Protect all terms in sourced context
purpose: A protected context protects all term definitions.
option:
  spec version: json-ld-1.1
input: toRdf/so07-in.jsonld
expect error code: protected term redefinition

tso08
type: PositiveEvaluationTest
type: ToRDFTest
name: Override term defined in sourced context
purpose: The containing context is merged into the source context.
option:
  spec version: json-ld-1.1
input: toRdf/so08-in.jsonld
expect: toRdf/so08-out.nq

tso09
type: PositiveEvaluationTest
type: ToRDFTest
name: Override @vocab defined in sourced context
purpose: The containing context is merged into the source context.
option:
  spec version: json-ld-1.1
input: toRdf/so09-in.jsonld
expect: toRdf/so09-out.nq

tso10
type: NegativeEvaluationTest
type: ToRDFTest
name: Protect terms in sourced context
purpose: The containing context is merged into the source context.
option:
  spec version: json-ld-1.1
input: toRdf/so10-in.jsonld
expect error code: protected term redefinition

tso11
type: PositiveEvaluationTest
type: ToRDFTest
name: Override protected terms in sourced context
purpose: The containing context is merged into the source context.
option:
  spec version: json-ld-1.1
input: toRdf/so11-in.jsonld
expect: toRdf/so11-out.nq

tso12
type: NegativeEvaluationTest
type: ToRDFTest
name: @import may not be used in an imported context.
purpose: @import only valid within a term definition.
option:
  spec version: json-ld-1.1
input: toRdf/so12-in.jsonld
expect error code: invalid context entry

tso13
type: NegativeEvaluationTest
type: ToRDFTest
name: @import can only reference a single context
purpose: @import can only reference a single context.
option:
  spec version: json-ld-1.1
input: toRdf/so13-in.jsonld
expect error code: invalid remote context

ttn01
type: NegativeEvaluationTest
type: ToRDFTest
name: @type: @none is illegal in 1.0.
purpose: @type: @none is illegal in json-ld-1.0.
option:
  spec version: json-ld-1.1
  processing mode: json-ld-1.0
input: toRdf/tn01-in.jsonld
expect error code: invalid type mapping

ttn02
type: PositiveEvaluationTest
type: ToRDFTest
name: @type: @none expands strings as value objects
purpose: @type: @none leaves inputs other than strings alone
option:
  spec version: json-ld-1.1
input: toRdf/tn02-in.jsonld
expect: toRdf/tn02-out.nq

twf01
type: PositiveEvaluationTest
type: ToRDFTest
name: Triples including invalid subject IRIs are rejected
purpose: ToRdf emits only well-formed statements.
input: toRdf/wf01-in.jsonld
expect: toRdf/wf01-out.nq
option:
  spec version: json-ld-1.1

twf02
type: PositiveEvaluationTest
type: ToRDFTest
name: Triples including invalid predicate IRIs are rejected
purpose: ToRdf emits only well-formed statements.
input: toRdf/wf02-in.jsonld
expect: toRdf/wf02-out.nq
option:
  spec version: json-ld-1.1

twf03
type: PositiveEvaluationTest
type: ToRDFTest
name: Triples including invalid object IRIs are rejected
purpose: ToRdf emits only well-formed statements.
input: toRdf/wf03-in.jsonld
expect: toRdf/wf03-out.nq
option:
  spec version: json-ld-1.1

twf04
type: PositiveEvaluationTest
type: ToRDFTest
name: Triples including invalid type IRIs are rejected
purpose: ToRdf emits only well-formed statements.
input: toRdf/wf04-in.jsonld
expect: toRdf/wf04-out.nq
option:
  spec version: json-ld-1.1

twf05
type: PositiveEvaluationTest
type: ToRDFTest
name: Triples including invalid language tags are rejected
purpose: ToRdf emits only well-formed statements.
input: toRdf/wf05-in.jsonld
expect: toRdf/wf05-out.nq
option:
  spec version: json-ld-1.1

twf07
type: PositiveEvaluationTest
type: ToRDFTest
name: Triples including invalid graph name IRIs are rejected
purpose: ToRdf emits only well-formed statements.
input: toRdf/wf07-in.jsonld
expect: toRdf/wf07-out.nq
option:
  spec version: json-ld-1.1