W3C

Expansion

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

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

The JSON-LD Framing Specification maintains it's own test suite.

General instructions for running the JSON-LD Test suites

expand tests have input and expected documents.

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

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

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

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

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

JSON-LD Object comparison

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

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

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

Running tests

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior. Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

Contributing Tests

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

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

Distribution

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

Disclaimer

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

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

JSON-LD Expansion tests.

Test sequence:

Test t0001 drop free-floating nodes
id
#t0001
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expand drops unreferenced nodes having only @id
input
expand/0001-in.jsonld
expect
expand/0001-out.jsonld
Test t0002 basic
id
#t0002
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding terms with different types of values
input
expand/0002-in.jsonld
expect
expand/0002-out.jsonld
Test t0003 drop null and unmapped properties
id
#t0003
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that null values and unmapped properties are removed from expanded output
input
expand/0003-in.jsonld
expect
expand/0003-out.jsonld
Test t0004 optimize @set, keep empty arrays
id
#t0004
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained
input
expand/0004-in.jsonld
expect
expand/0004-out.jsonld
Test t0005 do not expand aliased @id/@type
id
#t0005
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
If a keyword is aliased, it is not used when expanding
input
expand/0005-in.jsonld
expect
expand/0005-out.jsonld
Test t0006 alias keywords
id
#t0006
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Aliased keywords expand in resulting document
input
expand/0006-in.jsonld
expect
expand/0006-out.jsonld
Test t0007 date type-coercion
id
#t0007
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expand strings to expanded value with @type: xsd:dateTime
input
expand/0007-in.jsonld
expect
expand/0007-out.jsonld
Test t0008 @value with @language
id
#t0008
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Keep expanded values with @language, drop non-conforming value objects containing just @language
input
expand/0008-in.jsonld
expect
expand/0008-out.jsonld
Test t0009 @graph with terms
id
#t0009
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph to contain multiple nodes within array
input
expand/0009-in.jsonld
expect
expand/0009-out.jsonld
Test t0010 native types
id
#t0010
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding native scalar retains native scalar within expanded value
input
expand/0010-in.jsonld
expect
expand/0010-out.jsonld
Test t0011 coerced @id
id
#t0011
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
A value of a property with @type: @id coercion expands to a node reference
input
expand/0011-in.jsonld
expect
expand/0011-out.jsonld
Test t0012 @graph with embed
id
#t0012
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph to contain multiple nodes within array
input
expand/0012-in.jsonld
expect
expand/0012-out.jsonld
Test t0013 expand already expanded
id
#t0013
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expand does not mess up already expanded document
input
expand/0013-in.jsonld
expect
expand/0013-out.jsonld
Test t0014 @set of @value objects with keyword aliases
id
#t0014
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding aliased @set and @value
input
expand/0014-in.jsonld
expect
expand/0014-out.jsonld
Test t0015 collapse set of sets, keep empty lists
id
#t0015
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
An array of multiple @set nodes are collapsed into a single array
input
expand/0015-in.jsonld
expect
expand/0015-out.jsonld
Test t0016 context reset
id
#t0016
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Setting @context to null within an embedded object resets back to initial context state
input
expand/0016-in.jsonld
expect
expand/0016-out.jsonld
Test t0017 @graph and @id aliased
id
#t0017
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding with @graph and @id aliases
input
expand/0017-in.jsonld
expect
expand/0017-out.jsonld
Test t0018 override default @language
id
#t0018
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
override default @language in terms; only language-tag strings
input
expand/0018-in.jsonld
expect
expand/0018-out.jsonld
Test t0019 remove @value = null
id
#t0019
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding a value of null removes the value
input
expand/0019-in.jsonld
expect
expand/0019-out.jsonld
Test t0020 do not remove @graph if not at top-level
id
#t0020
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
@graph used under a node is retained
input
expand/0020-in.jsonld
expect
expand/0020-out.jsonld
Test t0021 do not remove @graph at top-level if not only property
id
#t0021
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
@graph used at the top level is retained if there are other properties
input
expand/0021-in.jsonld
expect
expand/0021-out.jsonld
Test t0022 expand value with default language
id
#t0022
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding with a default language applies that language to string values
input
expand/0022-in.jsonld
expect
expand/0022-out.jsonld
Test t0023 Expanding list/set with coercion
id
#t0023
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding lists and sets with properties having coercion coerces list/set values
input
expand/0023-in.jsonld
expect
expand/0023-out.jsonld
Test t0024 Multiple contexts
id
#t0024
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests that contexts in an array are merged
input
expand/0024-in.jsonld
expect
expand/0024-out.jsonld
Test t0025 Problematic IRI expansion tests
id
#t0025
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding different kinds of terms and Compact IRIs
input
expand/0025-in.jsonld
expect
expand/0025-out.jsonld
Test t0026 Term definition with @id: @type
id
#t0026
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding term mapping to @type uses @type syntax
input
expand/0026-in.jsonld
expect
expand/0026-out.jsonld
Options
specVersion
json-ld-1.0
Test t0027 Duplicate values in @list and @set
id
#t0027
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Duplicate values in @list and @set are not merged
input
expand/0027-in.jsonld
expect
expand/0027-out.jsonld
Test t0028 Use @vocab in properties and @type but not in @id
id
#t0028
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
@vocab is used to compact properties and @type, but is not used for @id
input
expand/0028-in.jsonld
expect
expand/0028-out.jsonld
Test t0029 Relative IRIs
id
#t0029
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
@base is used to compact @id; test with different relative IRIs
input
expand/0029-in.jsonld
expect
expand/0029-out.jsonld
Test t0030 Language maps
id
#t0030
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Language Maps expand values to include @language
input
expand/0030-in.jsonld
expect
expand/0030-out.jsonld
Test t0031 type-coercion of native types
id
#t0031
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation
input
expand/0031-in.jsonld
expect
expand/0031-out.jsonld
Test t0032 Null term and @vocab
id
#t0032
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Mapping a term to null decouples it from @vocab
input
expand/0032-in.jsonld
expect
expand/0032-out.jsonld
Test t0033 Using @vocab with with type-coercion
id
#t0033
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that terms can be defined using @vocab
input
expand/0033-in.jsonld
expect
expand/0033-out.jsonld
Test t0034 Multiple properties expanding to the same IRI
id
#t0034
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
input
expand/0034-in.jsonld
expect
expand/0034-out.jsonld
Test t0035 Language maps with @vocab, default language, and colliding property
id
#t0035
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Pathological tests of language maps
input
expand/0035-in.jsonld
expect
expand/0035-out.jsonld
Test t0036 Expanding @index
id
#t0036
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps for terms defined with @container: @index
input
expand/0036-in.jsonld
expect
expand/0036-out.jsonld
Test t0037 Expanding @reverse
id
#t0037
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding @reverse keeps @reverse
input
expand/0037-in.jsonld
expect
expand/0037-out.jsonld
Test t0038 Expanding blank node labels
id
#t0038
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Blank nodes are not relabeled during expansion
input
expand/0038-in.jsonld
expect
expand/0038-out.jsonld
Options
specVersion
json-ld-1.0
Test t0039 Using terms in a reverse-maps
id
#t0039
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms within @reverse are expanded
input
expand/0039-in.jsonld
expect
expand/0039-out.jsonld
Test t0040 language and index expansion on non-objects
id
#t0040
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Only invoke language and index map expansion if the value is a JSON object
input
expand/0040-in.jsonld
expect
expand/0040-out.jsonld
Test t0041 @language: null resets the default language
id
#t0041
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
input
expand/0041-in.jsonld
expect
expand/0041-out.jsonld
Test t0042 Reverse properties
id
#t0042
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding terms defined as reverse properties uses @reverse in expanded document
input
expand/0042-in.jsonld
expect
expand/0042-out.jsonld
Test t0043 Using reverse properties inside a @reverse-container
id
#t0043
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding a reverse property within a @reverse undoes both reversals
input
expand/0043-in.jsonld
expect
expand/0043-out.jsonld
Test t0044 Index maps with language mappings
id
#t0044
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Ensure index maps use language mapping
input
expand/0044-in.jsonld
expect
expand/0044-out.jsonld
Test t0045 Top-level value objects
id
#t0045
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding top-level value objects causes them to be removed
input
expand/0045-in.jsonld
expect
expand/0045-out.jsonld
Test t0046 Free-floating nodes
id
#t0046
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding free-floating nodes causes them to be removed
input
expand/0046-in.jsonld
expect
expand/0046-out.jsonld
Test t0047 Free-floating values in sets and free-floating lists
id
#t0047
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Free-floating values in sets are removed, free-floating lists are removed completely
input
expand/0047-in.jsonld
expect
expand/0047-out.jsonld
Test t0048 Terms are ignored in @id
id
#t0048
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Values of @id are not expanded as terms
input
expand/0048-in.jsonld
expect
expand/0048-out.jsonld
Test t0049 String values of reverse properties
id
#t0049
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
String values of a reverse property with @type: @id are treated as IRIs
input
expand/0049-in.jsonld
expect
expand/0049-out.jsonld
Test t0050 Term definitions with prefix separate from prefix definitions
id
#t0050
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Term definitions using compact IRIs don't inherit the definitions of the prefix
input
expand/0050-in.jsonld
expect
expand/0050-out.jsonld
Test t0051 Expansion of keyword aliases in term definitions
id
#t0051
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding terms which are keyword aliases
input
expand/0051-in.jsonld
expect
expand/0051-out.jsonld
Test t0052 @vocab-relative IRIs in term definitions
id
#t0052
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
If @vocab is defined, term definitions are expanded relative to @vocab
input
expand/0052-in.jsonld
expect
expand/0052-out.jsonld
Test t0053 Expand absolute IRI with @type: @vocab
id
#t0053
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding values of properties of @type: @vocab does not further expand absolute IRIs
input
expand/0053-in.jsonld
expect
expand/0053-out.jsonld
Test t0054 Expand term with @type: @vocab
id
#t0054
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding values of properties of @type: @vocab does not expand term values
input
expand/0054-in.jsonld
expect
expand/0054-out.jsonld
Test t0055 Expand @vocab-relative term with @type: @vocab
id
#t0055
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding values of properties of @type: @vocab expands relative IRIs using @vocab
input
expand/0055-in.jsonld
expect
expand/0055-out.jsonld
Test t0056 Use terms with @type: @vocab but not with @type: @id
id
#t0056
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Checks that expansion uses appropriate base depending on term definition having @type @id or @vocab
input
expand/0056-in.jsonld
expect
expand/0056-out.jsonld
Test t0057 Expand relative IRI with @type: @vocab
id
#t0057
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Relative values of terms with @type: @vocab expand relative to @vocab
input
expand/0057-in.jsonld
expect
expand/0057-out.jsonld
Test t0058 Expand compact IRI with @type: @vocab
id
#t0058
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Compact IRIs are expanded normally even if term has @type: @vocab
input
expand/0058-in.jsonld
expect
expand/0058-out.jsonld
Test t0059 Reset @vocab by setting it to null
id
#t0059
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Setting @vocab to null removes a previous definition
input
expand/0059-in.jsonld
expect
expand/0059-out.jsonld
Test t0060 Overwrite document base with @base and reset it again
id
#t0060
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Setting @base to an IRI and then resetting it to nil
input
expand/0060-in.jsonld
expect
expand/0060-out.jsonld
Test t0061 Coercing native types to arbitrary datatypes
id
#t0061
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding native types when coercing to arbitrary datatypes
input
expand/0061-in.jsonld
expect
expand/0061-out.jsonld
Test t0062 Various relative IRIs with with @base
id
#t0062
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Pathological relative IRIs
input
expand/0062-in.jsonld
expect
expand/0062-out.jsonld
Test t0063 Reverse property and index container
id
#t0063
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expaning reverse properties with an index-container
input
expand/0063-in.jsonld
expect
expand/0063-out.jsonld
Test t0064 bnode values of reverse properties
id
#t0064
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expand reverse property whose values are unlabeled blank nodes
input
expand/0064-in.jsonld
expect
expand/0064-out.jsonld
Test t0065 Drop unmapped keys in reverse map
id
#t0065
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Keys that are not mapped to an IRI in a reverse-map are dropped
input
expand/0065-in.jsonld
expect
expand/0065-out.jsonld
Test t0066 Reverse-map keys with @vocab
id
#t0066
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expand uses @vocab to expand keys in reverse-maps
input
expand/0066-in.jsonld
expect
expand/0066-out.jsonld
Test t0067 prefix://suffix not a compact IRI
id
#t0067
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
prefix:suffix values are not interpreted as compact IRIs if suffix begins with two slashes
input
expand/0067-in.jsonld
expect
expand/0067-out.jsonld
Test t0068 _:suffix values are not a compact IRI
id
#t0068
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
prefix:suffix values are not interpreted as compact IRIs if prefix is an underscore
input
expand/0068-in.jsonld
expect
expand/0068-out.jsonld
Test t0069 Compact IRI as term with type mapping
id
#t0069
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Redefine compact IRI to define type mapping using the compact IRI itself as value of @id
input
expand/0069-in.jsonld
expect
expand/0069-out.jsonld
Test t0070 Compact IRI as term defined using equivalent compact IRI
id
#t0070
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Redefine compact IRI to define type mapping using the compact IRI itself as string value
input
expand/0070-in.jsonld
expect
expand/0070-out.jsonld
Test t0071 Redefine terms looking like compact IRIs
id
#t0071
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Term definitions may look like compact IRIs
input
expand/0071-in.jsonld
expect
expand/0071-out.jsonld
Options
specVersion
json-ld-1.0
Test t0072 Redefine term using @vocab, not itself
id
#t0072
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Redefining a term as itself when @vocab is defined uses @vocab, not previous term definition
input
expand/0072-in.jsonld
expect
expand/0072-out.jsonld
Test t0073 @context not first property
id
#t0073
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
input
expand/0073-in.jsonld
expect
expand/0073-out.jsonld
Test t0074 @id not first property
id
#t0074
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
input
expand/0074-in.jsonld
expect
expand/0074-out.jsonld
Test t0075 @vocab as blank node identifier
id
#t0075
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use @vocab to map all properties to blank node identifiers
input
expand/0075-in.jsonld
expect
expand/0075-out.jsonld
Options
processingMode
json-ld-1.0
Test t0076 base option overrides document location
id
#t0076
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of the base option overrides the document location
input
expand/0076-in.jsonld
expect
expand/0076-out.jsonld
Options
base
http://example/base/
Test t0077 expandContext option
id
#t0077
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of the expandContext option to expand the input document
input
expand/0077-in.jsonld
expect
expand/0077-out.jsonld
Options
expandContext
0077-context.jsonld
Test t0078 multiple reverse properties
id
#t0078
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of multiple reverse properties
input
expand/0078-in.jsonld
expect
expand/0078-out.jsonld
Test t0079 expand @graph container
id
#t0079
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers
input
expand/0079-in.jsonld
expect
expand/0079-out.jsonld
Options
specVersion
json-ld-1.1
Test t0080 expand [@graph, @set] container
id
#t0080
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of [@graph, @set] containers
input
expand/0080-in.jsonld
expect
expand/0080-out.jsonld
Options
specVersion
json-ld-1.1
Test t0081 Creates an @graph container if value is a graph
id
#t0081
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Don't double-expand an already expanded graph
input
expand/0081-in.jsonld
expect
expand/0081-out.jsonld
Options
specVersion
json-ld-1.1
Test t0082 expand [@graph, @index] container
id
#t0082
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @index
input
expand/0082-in.jsonld
expect
expand/0082-out.jsonld
Options
specVersion
json-ld-1.1
Test t0083 expand [@graph, @index, @set] container
id
#t0083
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @index and @set
input
expand/0083-in.jsonld
expect
expand/0083-out.jsonld
Options
specVersion
json-ld-1.1
Test t0084 Do not expand [@graph, @index] container if value is a graph
id
#t0084
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
expand/0084-in.jsonld
expect
expand/0084-out.jsonld
Options
specVersion
json-ld-1.1
Test t0085 expand [@graph, @id] container
id
#t0085
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @id
input
expand/0085-in.jsonld
expect
expand/0085-out.jsonld
Options
specVersion
json-ld-1.1
Test t0086 expand [@graph, @id, @set] container
id
#t0086
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @id and @set
input
expand/0086-in.jsonld
expect
expand/0086-out.jsonld
Options
specVersion
json-ld-1.1
Test t0087 Do not expand [@graph, @id] container if value is a graph
id
#t0087
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
expand/0087-in.jsonld
expect
expand/0087-out.jsonld
Options
specVersion
json-ld-1.1
Test t0088 Do not expand native values to IRIs
id
#t0088
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Value Expansion does not expand native values, such as booleans, to a node object
input
expand/0088-in.jsonld
expect
expand/0088-out.jsonld
Test t0089 empty @base applied to the base option
id
#t0089
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of an empty @base is applied to the base option
input
expand/0089-in.jsonld
expect
expand/0089-out.jsonld
Options
base
http://example/base/
Test t0090 relative @base overrides base option and document location
id
#t0090
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of a relative @base overrides base option and document location
input
expand/0090-in.jsonld
expect
expand/0090-out.jsonld
Options
base
http://example/base/
Test t0091 relative and absolute @base overrides base option and document location
id
#t0091
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of a relative and absolute @base overrides base option and document location
input
expand/0091-in.jsonld
expect
expand/0091-out.jsonld
Options
base
http://example/base/
Test t0092 Various relative IRIs as properties with with @vocab: ''
id
#t0092
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Pathological relative property IRIs
input
expand/0092-in.jsonld
expect
expand/0092-out.jsonld
Options
specVersion
json-ld-1.1
Test t0093 expand @graph container (multiple objects)
id
#t0093
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers
input
expand/0093-in.jsonld
expect
expand/0093-out.jsonld
Options
specVersion
json-ld-1.1
Test t0094 expand [@graph, @set] container (multiple objects)
id
#t0094
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of [@graph, @set] containers
input
expand/0094-in.jsonld
expect
expand/0094-out.jsonld
Options
specVersion
json-ld-1.1
Test t0095 Creates an @graph container if value is a graph (multiple objects)
id
#t0095
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Double-expand an already expanded graph
input
expand/0095-in.jsonld
expect
expand/0095-out.jsonld
Options
specVersion
json-ld-1.1
Test t0096 expand [@graph, @index] container (multiple indexed objects)
id
#t0096
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @index
input
expand/0096-in.jsonld
expect
expand/0096-out.jsonld
Options
specVersion
json-ld-1.1
Test t0097 expand [@graph, @index, @set] container (multiple objects)
id
#t0097
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @index and @set
input
expand/0097-in.jsonld
expect
expand/0097-out.jsonld
Options
specVersion
json-ld-1.1
Test t0098 Do not expand [@graph, @index] container if value is a graph (multiple objects)
id
#t0098
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
expand/0098-in.jsonld
expect
expand/0098-out.jsonld
Options
specVersion
json-ld-1.1
Test t0099 expand [@graph, @id] container (multiple objects)
id
#t0099
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @id
input
expand/0099-in.jsonld
expect
expand/0099-out.jsonld
Options
specVersion
json-ld-1.1
Test t0100 expand [@graph, @id, @set] container (multiple objects)
id
#t0100
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @id and @set
input
expand/0100-in.jsonld
expect
expand/0100-out.jsonld
Options
specVersion
json-ld-1.1
Test t0101 Do not expand [@graph, @id] container if value is a graph (multiple objects)
id
#t0101
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
expand/0101-in.jsonld
expect
expand/0101-out.jsonld
Options
specVersion
json-ld-1.1
Test t0102 Expand @graph container if value is a graph (multiple objects)
id
#t0102
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Creates a new graph object if indexed value is already a graph object
input
expand/0102-in.jsonld
expect
expand/0102-out.jsonld
Options
specVersion
json-ld-1.1
Test t0103 Expand @graph container if value is a graph (multiple graphs)
id
#t0103
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Creates a new graph object if indexed value is already a graph object
input
expand/0103-in.jsonld
expect
expand/0103-out.jsonld
Options
specVersion
json-ld-1.1
Test t0104 Creates an @graph container if value is a graph (mixed graph and object)
id
#t0104
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Double-expand an already expanded graph
input
expand/0104-in.jsonld
expect
expand/0104-out.jsonld
Options
specVersion
json-ld-1.1
Test t0105 Do not expand [@graph, @index] container if value is a graph (mixed graph and object)
id
#t0105
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
expand/0105-in.jsonld
expect
expand/0105-out.jsonld
Options
specVersion
json-ld-1.1
Test t0106 Do not expand [@graph, @id] container if value is a graph (mixed graph and object)
id
#t0106
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Does not create a new graph object if indexed value is already a graph object
input
expand/0106-in.jsonld
expect
expand/0106-out.jsonld
Options
specVersion
json-ld-1.1
Test t0107 expand [@graph, @index] container (indexes with multiple objects)
id
#t0107
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @index
input
expand/0107-in.jsonld
expect
expand/0107-out.jsonld
Options
specVersion
json-ld-1.1
Test t0108 expand [@graph, @id] container (multiple ids and objects)
id
#t0108
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Use of @graph containers with @id
input
expand/0108-in.jsonld
expect
expand/0108-out.jsonld
Options
specVersion
json-ld-1.1
Test t0109 IRI expansion of fragments including ':'
id
#t0109
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
input
expand/0109-in.jsonld
expect
expand/0109-out.jsonld
Test t0110 Various relative IRIs as properties with with relative @vocab
id
#t0110
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Pathological relative property IRIs
input
expand/0110-in.jsonld
expect
expand/0110-out.jsonld
Options
specVersion
json-ld-1.1
Test t0111 Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base
id
#t0111
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Pathological relative property IRIs
input
expand/0111-in.jsonld
expect
expand/0111-out.jsonld
Options
specVersion
json-ld-1.1
Test t0112 Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base
id
#t0112
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Pathological relative property IRIs
input
expand/0112-in.jsonld
expect
expand/0112-out.jsonld
Options
specVersion
json-ld-1.1
Test t0113 context with JavaScript Object property names
id
#t0113
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expand with context including JavaScript Object property names
input
expand/0113-in.jsonld
expect
expand/0113-out.jsonld
Test t0114 Expansion allows multiple properties expanding to @type
id
#t0114
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
An exception for the colliding keywords error is made for @type
input
expand/0114-in.jsonld
expect
expand/0114-out.jsonld
Options
specVersion
json-ld-1.1
Test t0115 Verifies that relative IRIs as properties with @vocab: '' in 1.0 generate an error
id
#t0115
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Relative property IRIs with relative @vocab in 1.0
input
expand/0115-in.jsonld
expect
invalid vocab mapping
Options
specVersion
json-ld-1.0
Test t0116 Verifies that relative IRIs as properties with relative @vocab in 1.0 generate an error
id
#t0116
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Relative property IRIs with relative @vocab in 1.0
input
expand/0116-in.jsonld
expect
invalid vocab mapping
Options
specVersion
json-ld-1.0
Test t0117 A term starting with a colon can expand to a different IRI
id
#t0117
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms may begin with a colon and not be treated as IRIs.
input
expand/0117-in.jsonld
expect
expand/0117-out.jsonld
Options
specVersion
json-ld-1.1
Test t0118 Expanding a value staring with a colon does not treat that value as an IRI
id
#t0118
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms may begin with a colon and not be treated as IRIs.
input
expand/0118-in.jsonld
expect
expand/0118-out.jsonld
Options
specVersion
json-ld-1.1
Test t0119 Ignore some terms with @, allow others.
id
#t0119
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
input
expand/0119-in.jsonld
expect
expand/0119-out.jsonld
Options
specVersion
json-ld-1.1
Test t0120 Ignore some values of @id with @, allow others.
id
#t0120
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
input
expand/0120-in.jsonld
expect
expand/0120-out.jsonld
Options
specVersion
json-ld-1.1
Test t0121 Ignore some values of @reverse with @, allow others.
id
#t0121
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
input
expand/0121-in.jsonld
expect
expand/0121-out.jsonld
Options
specVersion
json-ld-1.1
Test t0122 Ignore some IRIs when that start with @ when expanding.
id
#t0122
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Processors SHOULD generate a warning and MUST ignore IRIs having the form of a keyword.
input
expand/0122-in.jsonld
expect
expand/0122-out.jsonld
Options
specVersion
json-ld-1.1
Test tc001 adding new term
id
#tc001
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
expand/c001-in.jsonld
expect
expand/c001-out.jsonld
Options
specVersion
json-ld-1.1
Test tc002 overriding a term
id
#tc002
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
expand/c002-in.jsonld
expect
expand/c002-out.jsonld
Options
specVersion
json-ld-1.1
Test tc003 property and value with different terms mapping to the same expanded property
id
#tc003
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
expand/c003-in.jsonld
expect
expand/c003-out.jsonld
Options
specVersion
json-ld-1.1
Test tc004 deep @context affects nested nodes
id
#tc004
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
expand/c004-in.jsonld
expect
expand/c004-out.jsonld
Options
specVersion
json-ld-1.1
Test tc005 scoped context layers on intemediate contexts
id
#tc005
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using a scoped context uses term scope for selecting proper term
input
expand/c005-in.jsonld
expect
expand/c005-out.jsonld
Options
specVersion
json-ld-1.1
Test tc006 adding new term
id
#tc006
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c006-in.jsonld
expect
expand/c006-out.jsonld
Options
specVersion
json-ld-1.1
Test tc007 overriding a term
id
#tc007
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c007-in.jsonld
expect
expand/c007-out.jsonld
Options
specVersion
json-ld-1.1
Test tc008 alias of @type
id
#tc008
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c008-in.jsonld
expect
expand/c008-out.jsonld
Options
specVersion
json-ld-1.1
Test tc009 deep @type-scoped @context does NOT affect nested nodes
id
#tc009
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c009-in.jsonld
expect
expand/c009-out.jsonld
Options
specVersion
json-ld-1.1
Test tc010 scoped context layers on intemediate contexts
id
#tc010
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c010-in.jsonld
expect
expand/c010-out.jsonld
Options
specVersion
json-ld-1.1
Test tc011 orders @type terms when applying scoped contexts
id
#tc011
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c011-in.jsonld
expect
expand/c011-out.jsonld
Options
specVersion
json-ld-1.1
Test tc012 deep property-term scoped @context in @type-scoped @context affects nested nodes
id
#tc012
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c012-in.jsonld
expect
expand/c012-out.jsonld
Options
specVersion
json-ld-1.1
Test tc013 type maps use scoped context from type index and not scoped context from containing
id
#tc013
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/c013-in.jsonld
expect
expand/c013-out.jsonld
Options
specVersion
json-ld-1.1
Test tc014 type-scoped context nullification
id
#tc014
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped context nullification
input
expand/c014-in.jsonld
expect
expand/c014-out.jsonld
Options
specVersion
json-ld-1.1
Test tc015 type-scoped base
id
#tc015
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped base
input
expand/c015-in.jsonld
expect
expand/c015-out.jsonld
Options
specVersion
json-ld-1.1
Test tc016 type-scoped vocab
id
#tc016
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped vocab
input
expand/c016-in.jsonld
expect
expand/c016-out.jsonld
Options
specVersion
json-ld-1.1
Test tc017 multiple type-scoped contexts are properly reverted
id
#tc017
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
multiple type-scoped contexts are property reverted
input
expand/c017-in.jsonld
expect
expand/c017-out.jsonld
Options
specVersion
json-ld-1.1
Test tc018 multiple type-scoped types resolved against previous context
id
#tc018
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
multiple type-scoped types resolved against previous context
input
expand/c018-in.jsonld
expect
expand/c018-out.jsonld
Options
specVersion
json-ld-1.1
Test tc019 type-scoped context with multiple property scoped terms
id
#tc019
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped context with multiple property scoped terms
input
expand/c019-in.jsonld
expect
expand/c019-out.jsonld
Options
specVersion
json-ld-1.1
Test tc020 type-scoped value
id
#tc020
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped value
input
expand/c020-in.jsonld
expect
expand/c020-out.jsonld
Options
specVersion
json-ld-1.1
Test tc021 type-scoped value mix
id
#tc021
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped value mix
input
expand/c021-in.jsonld
expect
expand/c021-out.jsonld
Options
specVersion
json-ld-1.1
Test tc022 type-scoped property-scoped contexts including @type:@vocab
id
#tc022
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped property-scoped contexts including @type:@vocab
input
expand/c022-in.jsonld
expect
expand/c022-out.jsonld
Options
specVersion
json-ld-1.1
Test tc023 composed type-scoped property-scoped contexts including @type:@vocab
id
#tc023
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
composed type-scoped property-scoped contexts including @type:@vocab
input
expand/c023-in.jsonld
expect
expand/c023-out.jsonld
Options
specVersion
json-ld-1.1
Test tc024 type-scoped + property-scoped + values evaluates against previous context
id
#tc024
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped + property-scoped + values evaluates against previous context
input
expand/c024-in.jsonld
expect
expand/c024-out.jsonld
Options
specVersion
json-ld-1.1
Test tc025 type-scoped + graph container
id
#tc025
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped + graph container
input
expand/c025-in.jsonld
expect
expand/c025-out.jsonld
Options
specVersion
json-ld-1.1
Test tc026 @propagate: true on type-scoped context
id
#tc026
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped context with @propagate: true survive node-objects
input
expand/c026-in.jsonld
expect
expand/c026-out.jsonld
Options
specVersion
json-ld-1.1
Test tc027 @propagate: false on property-scoped context
id
#tc027
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
property-scoped context with @propagate: false do not survive node-objects
input
expand/c027-in.jsonld
expect
expand/c027-out.jsonld
Options
specVersion
json-ld-1.1
Test tc028 @propagate: false on embedded context
id
#tc028
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
embedded context with @propagate: false do not survive node-objects
input
expand/c028-in.jsonld
expect
expand/c028-out.jsonld
Options
specVersion
json-ld-1.1
Test tc029 @propagate is invalid in 1.0
id
#tc029
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@propagate is invalid in 1.0
input
expand/c029-in.jsonld
expect
invalid context member
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test tc030 @propagate must be boolean valued
id
#tc030
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@propagate must be boolean valued
input
expand/c030-in.jsonld
expect
invalid @propagate value
Options
specVersion
json-ld-1.1
Test tdi01 Expand string using default and term directions
id
#tdi01
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Strings are coerced to have @direction based on default and term direction.
input
expand/di01-in.jsonld
expect
expand/di01-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi02 Expand string using default and term directions and languages
id
#tdi02
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Strings are coerced to have @direction based on default and term direction.
input
expand/di02-in.jsonld
expect
expand/di02-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi03 expand list values with @direction
id
#tdi03
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List values where the term has @direction are used in expansion.
input
expand/di03-in.jsonld
expect
expand/di03-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi04 simple language map with term direction
id
#tdi04
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Term selection with language maps and @direction.
input
expand/di04-in.jsonld
expect
expand/di04-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi05 simple language mapwith overriding term direction
id
#tdi05
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Term selection with language maps and @direction.
input
expand/di05-in.jsonld
expect
expand/di05-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi06 simple language mapwith overriding null direction
id
#tdi06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Term selection with language maps and @direction.
input
expand/di06-in.jsonld
expect
expand/di06-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi07 simple language map with mismatching term direction
id
#tdi07
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Term selection with language maps and @direction.
input
expand/di07-in.jsonld
expect
expand/di07-out.jsonld
Options
specVersion
json-ld-1.1
Test tdi08 @direction must be one of ltr or rtl
id
#tdi08
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Generate an error if @direction has illegal value.
input
expand/di08-in.jsonld
expect
invalid base direction
Options
specVersion
json-ld-1.1
Test tdi09 @direction is incompatible with @type
id
#tdi09
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Value objects can have either @type but not @language or @direction.
input
expand/di09-in.jsonld
expect
invalid value object
Options
specVersion
json-ld-1.1
Test te001 Keywords cannot be aliased to other keywords
id
#te001
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
input
expand/e001-in.jsonld
expect
keyword redefinition
Test te002 A context may not include itself recursively (direct)
id
#te002
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing a context referencing itself
input
expand/e002-in.jsonld
expect
recursive context inclusion
Options
specVersion
json-ld-1.0
Test te003 A context may not include itself recursively (indirect)
id
#te003
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
input
expand/e003-in.jsonld
expect
recursive context inclusion
Options
specVersion
json-ld-1.0
Test te004 Error dereferencing a remote context
id
#te004
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context dereference results in an error
input
expand/e004-in.jsonld
expect
loading remote context failed
Test te005 Invalid remote context
id
#te005
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a remote context is not an object containing @context
input
expand/e005-in.jsonld
expect
invalid remote context
Options
specVersion
json-ld-1.1
Test te006 Invalid local context
id
#te006
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context is not a string or object
input
expand/e006-in.jsonld
expect
invalid local context
Test te007 Invalid base IRI
id
#te007
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @base
input
expand/e007-in.jsonld
expect
invalid base IRI
Test te008 Invalid vocab mapping
id
#te008
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
input
expand/e008-in.jsonld
expect
invalid vocab mapping
Test te009 Invalid default language
id
#te009
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @language
input
expand/e009-in.jsonld
expect
invalid default language
Test te010 Cyclic IRI mapping
id
#te010
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
input
expand/e010-in.jsonld
expect
cyclic IRI mapping
Test te011 Invalid term definition
id
#te011
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid term definition is found
input
expand/e011-in.jsonld
expect
invalid term definition
Test te012 Invalid type mapping (not a string)
id
#te012
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid type mapping is found
input
expand/e012-in.jsonld
expect
invalid type mapping
Test te013 Invalid type mapping (not absolute IRI)
id
#te013
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid type mapping is found
input
expand/e013-in.jsonld
expect
invalid type mapping
Test te014 Invalid reverse property (contains @id)
id
#te014
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid reverse property is found
input
expand/e014-in.jsonld
expect
invalid reverse property
Test te015 Invalid IRI mapping (@reverse not a string)
id
#te015
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/e015-in.jsonld
expect
invalid IRI mapping
Test te016 Invalid IRI mapping (not an absolute IRI)
id
#te016
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/e016-in.jsonld
expect
invalid IRI mapping
Test te017 Invalid reverse property (invalid @container)
id
#te017
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid reverse property is found
input
expand/e017-in.jsonld
expect
invalid reverse property
Test te018 Invalid IRI mapping (@id not a string)
id
#te018
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/e018-in.jsonld
expect
invalid IRI mapping
Test te019 Invalid keyword alias
id
#te019
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid keyword alias is found
input
expand/e019-in.jsonld
expect
invalid keyword alias
Test te020 Invalid IRI mapping (no vocab mapping)
id
#te020
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/e020-in.jsonld
expect
invalid IRI mapping
Test te021 Invalid container mapping
id
#te021
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid container mapping is found
input
expand/e021-in.jsonld
expect
invalid container mapping
Options
processingMode
json-ld-1.0
specVersion
json-ld-1.1
Test te022 Invalid language mapping
id
#te022
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid language mapping is found
input
expand/e022-in.jsonld
expect
invalid language mapping
Test te023 Invalid IRI mapping (relative IRI in @type)
id
#te023
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid type mapping is found
input
expand/e023-in.jsonld
expect
invalid type mapping
Test te024 List of lists (from array)
id
#te024
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when a list of lists is found
input
expand/e024-in.jsonld
expect
list of lists
Options
specVersion
json-ld-1.0
Test te025 Invalid reverse property map
id
#te025
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when a invalid reverse property map is found
input
expand/e025-in.jsonld
expect
invalid reverse property map
Test te026 Colliding keywords
id
#te026
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when colliding keywords are found
input
expand/e026-in.jsonld
expect
colliding keywords
Test te027 Invalid @id value
id
#te027
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid @id value is found
input
expand/e027-in.jsonld
expect
invalid @id value
Test te028 Invalid type value
id
#te028
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid type value is found
input
expand/e028-in.jsonld
expect
invalid type value
Test te029 Invalid value object value
id
#te029
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object value is found
input
expand/e029-in.jsonld
expect
invalid value object value
Test te030 Invalid language-tagged string
id
#te030
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
input
expand/e030-in.jsonld
expect
invalid language-tagged string
Test te031 Invalid @index value
id
#te031
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid @index value value is found
input
expand/e031-in.jsonld
expect
invalid @index value
Test te032 List of lists (from array)
id
#te032
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when a list of lists is found
input
expand/e032-in.jsonld
expect
list of lists
Options
specVersion
json-ld-1.0
Test te033 Invalid @reverse value
id
#te033
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid @reverse value is found
input
expand/e033-in.jsonld
expect
invalid @reverse value
Test te034 Invalid reverse property value (in @reverse)
id
#te034
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
input
expand/e034-in.jsonld
expect
invalid reverse property value
Test te035 Invalid language map value
id
#te035
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid language map value is found
input
expand/e035-in.jsonld
expect
invalid language map value
Test te036 Invalid reverse property value (through coercion)
id
#te036
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
input
expand/e036-in.jsonld
expect
invalid reverse property value
Test te037 Invalid value object (unexpected keyword)
id
#te037
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object is found
input
expand/e037-in.jsonld
expect
invalid value object
Test te038 Invalid value object (@type and @language)
id
#te038
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object is found
input
expand/e038-in.jsonld
expect
invalid value object
Test te039 Invalid language-tagged value
id
#te039
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
input
expand/e039-in.jsonld
expect
invalid language-tagged value
Test te040 Invalid typed value
id
#te040
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid typed value is found
input
expand/e040-in.jsonld
expect
invalid typed value
Test te041 Invalid set or list object
id
#te041
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid set or list object is found
input
expand/e041-in.jsonld
expect
invalid set or list object
Test te042 Keywords may not be redefined in 1.0
id
#te042
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
input
expand/e042-in.jsonld
expect
keyword redefinition
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test te043 Term definition with @id: @type
id
#te043
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding term mapping to @type uses @type syntax now illegal
input
expand/e043-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test te044 Redefine terms looking like compact IRIs
id
#te044
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Term definitions may look like compact IRIs, but must be consistent.
input
expand/e044-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test te046 compact IRI as @vocab
id
#te046
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that @vocab defined as a compact IRI expands properly
input
expand/e046-in.jsonld
expect
expand/e046-out.jsonld
Options
specVersion
json-ld-1.1
Test te047 term as @vocab
id
#te047
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that @vocab defined as a term expands properly
input
expand/e047-in.jsonld
expect
expand/e047-out.jsonld
Options
specVersion
json-ld-1.1
Test te048 Invalid term as relative IRI
id
#te048
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that a relative IRI cannot be used as a term.
input
expand/e048-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test te049 A relative IRI cannot be used as a prefix
id
#te049
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that a relative IRI cannot be used as a term.
input
expand/e049-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test te050 Invalid reverse id
id
#te050
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
input
expand/e050-in.jsonld
expect
invalid IRI mapping
Test tec01 Invalid keyword in term definition
id
#tec01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid term definition is found
input
expand/ec01-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test tem01 Invalid container mapping
id
#tem01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid container mapping is found
input
expand/em01-in.jsonld
expect
invalid container mapping
Options
specVersion
json-ld-1.1
Test ten01 @nest MUST NOT have a string value
id
#ten01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
container: @nest
input
expand/en01-in.jsonld
expect
invalid @nest value
Options
specVersion
json-ld-1.1
Test ten02 @nest MUST NOT have a boolen value
id
#ten02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Transparent Nesting
input
expand/en02-in.jsonld
expect
invalid @nest value
Options
specVersion
json-ld-1.1
Test ten03 @nest MUST NOT have a numeric value
id
#ten03
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Transparent Nesting
input
expand/en03-in.jsonld
expect
invalid @nest value
Options
specVersion
json-ld-1.1
Test ten04 @nest MUST NOT have a value object value
id
#ten04
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Transparent Nesting
input
expand/en04-in.jsonld
expect
invalid @nest value
Options
specVersion
json-ld-1.1
Test ten05 does not allow a keyword other than @nest for the value of @nest
id
#ten05
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Transparent Nesting
input
expand/en05-in.jsonld
expect
invalid @nest value
Options
specVersion
json-ld-1.1
Test ten06 does not allow @nest with @reverse
id
#ten06
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Transparent Nesting
input
expand/en06-in.jsonld
expect
invalid reverse property
Options
specVersion
json-ld-1.1
Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1
id
#tep02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
input
expand/ep02-in.jsonld
expect
processing mode conflict
Options
processingMode
json-ld-1.0
specVersion
json-ld-1.1
Test tep03 @version must be 1.1
id
#tep03
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
If @version is specified, it must be 1.1
input
expand/ep03-in.jsonld
expect
invalid @version value
Options
specVersion
json-ld-1.1
Test tes01 Using an array value for @context is illegal in JSON-LD 1.0
id
#tes01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid container mapping is found
input
expand/es01-in.jsonld
expect
invalid container mapping
Options
processingMode
json-ld-1.0
specVersion
json-ld-1.1
Test tes02 Mapping @container: [@list, @set] is invalid
id
#tes02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Testing legal combinations of @set with other container values
input
expand/es02-in.jsonld
expect
invalid container mapping
Options
specVersion
json-ld-1.1
Test tin01 Basic Included array
id
#tin01
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in01-in.jsonld
expect
expand/in01-out.jsonld
Options
specVersion
json-ld-1.1
Test tin02 Basic Included object
id
#tin02
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in02-in.jsonld
expect
expand/in02-out.jsonld
Options
specVersion
json-ld-1.1
Test tin03 Multiple properties mapping to @included are folded together
id
#tin03
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in03-in.jsonld
expect
expand/in03-out.jsonld
Options
specVersion
json-ld-1.1
Test tin04 Included containing @included
id
#tin04
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in04-in.jsonld
expect
expand/in04-out.jsonld
Options
specVersion
json-ld-1.1
Test tin05 Property value with @included
id
#tin05
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in05-in.jsonld
expect
expand/in05-out.jsonld
Options
specVersion
json-ld-1.1
Test tin06 json.api example
id
#tin06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in06-in.jsonld
expect
expand/in06-out.jsonld
Options
specVersion
json-ld-1.1
Test tin07 Error if @included value is a string
id
#tin07
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in07-in.jsonld
expect
invalid @included value
Options
specVersion
json-ld-1.1
Test tin08 Error if @included value is a value object
id
#tin08
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in08-in.jsonld
expect
invalid @included value
Options
specVersion
json-ld-1.1
Test tin09 Error if @included value is a list object
id
#tin09
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Tests included maps.
input
expand/in09-in.jsonld
expect
invalid @included value
Options
specVersion
json-ld-1.1
Test tjs01 Expand JSON literal (boolean true)
id
#tjs01
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (boolean true).
input
expand/js01-in.jsonld
expect
expand/js01-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs02 Expand JSON literal (boolean false)
id
#tjs02
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (boolean false).
input
expand/js02-in.jsonld
expect
expand/js02-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs03 Expand JSON literal (double)
id
#tjs03
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (double).
input
expand/js03-in.jsonld
expect
expand/js03-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs04 Expand JSON literal (double-zero)
id
#tjs04
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (double-zero).
input
expand/js04-in.jsonld
expect
expand/js04-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs05 Expand JSON literal (integer)
id
#tjs05
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (integer).
input
expand/js05-in.jsonld
expect
expand/js05-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs06 Expand JSON literal (object)
id
#tjs06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (object).
input
expand/js06-in.jsonld
expect
expand/js06-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs07 Expand JSON literal (array)
id
#tjs07
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (array).
input
expand/js07-in.jsonld
expect
expand/js07-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs08 Expand JSON literal without expanding contents
id
#tjs08
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal does not expand terms inside json.
input
expand/js08-in.jsonld
expect
expand/js08-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs09 Expand JSON literal aleady in expanded form
id
#tjs09
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal in expanded form.
input
expand/js09-in.jsonld
expect
expand/js09-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs10 Expand JSON literal aleady in expanded form with aliased keys
id
#tjs10
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal in expanded form with aliased keys in value object.
input
expand/js10-in.jsonld
expect
expand/js10-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs11 Expand JSON literal (string)
id
#tjs11
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal in expanded form with aliased keys in value object.
input
expand/js11-in.jsonld
expect
expand/js11-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs12 Expand JSON literal (null)
id
#tjs12
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal in expanded form with aliased keys in value object.
input
expand/js12-in.jsonld
expect
expand/js12-out.jsonld
Options
specVersion
json-ld-1.1
Test tl001 Language map with null value
id
#tl001
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
A language map may have a null value, which is ignored
input
expand/l001-in.jsonld
expect
expand/l001-out.jsonld
Options
specVersion
json-ld-1.1
Test tli01 @list containing @list
id
#tli01
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li01-in.jsonld
expect
expand/li01-out.jsonld
Options
specVersion
json-ld-1.1
Test tli02 @list containing empty @list
id
#tli02
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li02-in.jsonld
expect
expand/li02-out.jsonld
Options
specVersion
json-ld-1.1
Test tli03 @list containing @list (with coercion)
id
#tli03
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li03-in.jsonld
expect
expand/li03-out.jsonld
Options
specVersion
json-ld-1.1
Test tli04 @list containing empty @list (with coercion)
id
#tli04
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li04-in.jsonld
expect
expand/li04-out.jsonld
Options
specVersion
json-ld-1.1
Test tli05 coerced @list containing an array
id
#tli05
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li05-in.jsonld
expect
expand/li05-out.jsonld
Options
specVersion
json-ld-1.1
Test tli06 coerced @list containing an empty array
id
#tli06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li06-in.jsonld
expect
expand/li06-out.jsonld
Options
specVersion
json-ld-1.1
Test tli07 coerced @list containing deep arrays
id
#tli07
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li07-in.jsonld
expect
expand/li07-out.jsonld
Options
specVersion
json-ld-1.1
Test tli08 coerced @list containing deep empty arrays
id
#tli08
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li08-in.jsonld
expect
expand/li08-out.jsonld
Options
specVersion
json-ld-1.1
Test tli09 coerced @list containing multiple lists
id
#tli09
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li09-in.jsonld
expect
expand/li09-out.jsonld
Options
specVersion
json-ld-1.1
Test tli10 coerced @list containing mixed list values
id
#tli10
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
List of lists
input
expand/li10-in.jsonld
expect
expand/li10-out.jsonld
Options
specVersion
json-ld-1.1
Test tm001 Adds @id to object not having an @id
id
#tm001
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @id
input
expand/m001-in.jsonld
expect
expand/m001-out.jsonld
Options
specVersion
json-ld-1.1
Test tm002 Retains @id in object already having an @id
id
#tm002
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @id
input
expand/m002-in.jsonld
expect
expand/m002-out.jsonld
Options
specVersion
json-ld-1.1
Test tm003 Adds @type to object not having an @type
id
#tm003
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @type
input
expand/m003-in.jsonld
expect
expand/m003-out.jsonld
Options
specVersion
json-ld-1.1
Test tm004 Prepends @type in object already having an @type
id
#tm004
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @type
input
expand/m004-in.jsonld
expect
expand/m004-out.jsonld
Options
specVersion
json-ld-1.1
Test tm005 Adds expanded @id to object
id
#tm005
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @id
input
expand/m005-in.jsonld
expect
expand/m005-out.jsonld
Options
base
http://example.org/
specVersion
json-ld-1.1
Test tm006 Adds vocabulary expanded @type to object
id
#tm006
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @type
input
expand/m006-in.jsonld
expect
expand/m006-out.jsonld
Options
specVersion
json-ld-1.1
Test tm007 Adds document expanded @type to object
id
#tm007
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @container: @type
input
expand/m007-in.jsonld
expect
expand/m007-out.jsonld
Options
specVersion
json-ld-1.1
Test tm008 When type is in a type map
id
#tm008
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
scoped context on @type
input
expand/m008-in.jsonld
expect
expand/m008-out.jsonld
Options
specVersion
json-ld-1.1
Test tm009 language map with @none
id
#tm009
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @language
input
expand/m009-in.jsonld
expect
expand/m009-out.jsonld
Options
specVersion
json-ld-1.1
Test tm010 language map with alias of @none
id
#tm010
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @language
input
expand/m010-in.jsonld
expect
expand/m010-out.jsonld
Options
specVersion
json-ld-1.1
Test tm011 id map with @none
id
#tm011
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @id
input
expand/m011-in.jsonld
expect
expand/m011-out.jsonld
Options
specVersion
json-ld-1.1
Test tm012 type map with alias of @none
id
#tm012
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @type
input
expand/m012-in.jsonld
expect
expand/m012-out.jsonld
Options
specVersion
json-ld-1.1
Test tm013 index map with @none
id
#tm013
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @graph and @index
input
expand/m013-in.jsonld
expect
expand/m013-out.jsonld
Options
specVersion
json-ld-1.1
Test tm014 index map with alias @none
id
#tm014
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @graph and @index
input
expand/m014-in.jsonld
expect
expand/m014-out.jsonld
Options
specVersion
json-ld-1.1
Test tm015 index map with alias @none
id
#tm015
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @graph and @index
input
expand/m015-in.jsonld
expect
expand/m015-out.jsonld
Options
specVersion
json-ld-1.1
Test tm016 index map with alias @none
id
#tm016
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @graph and @index
input
expand/m016-in.jsonld
expect
expand/m016-out.jsonld
Options
specVersion
json-ld-1.1
Test tm017 string value of type map expands to node reference
id
#tm017
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @type
input
expand/m017-in.jsonld
expect
expand/m017-out.jsonld
Options
specVersion
json-ld-1.1
Test tm018 string value of type map expands to node reference with @type: @id
id
#tm018
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @type
input
expand/m018-in.jsonld
expect
expand/m018-out.jsonld
Options
specVersion
json-ld-1.1
Test tm019 string value of type map expands to node reference with @type: @vocab
id
#tm019
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @type
input
expand/m019-in.jsonld
expect
expand/m019-out.jsonld
Options
specVersion
json-ld-1.1
Test tm020 string value of type map must not be a literal
id
#tm020
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
index on @type
input
expand/m020-in.jsonld
expect
invalid type mapping
Options
specVersion
json-ld-1.1
Test tn001 Expands input using @nest
id
#tn001
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n001-in.jsonld
expect
expand/n001-out.jsonld
Options
specVersion
json-ld-1.1
Test tn002 Expands input using aliased @nest
id
#tn002
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n002-in.jsonld
expect
expand/n002-out.jsonld
Options
specVersion
json-ld-1.1
Test tn003 Appends nested values when property at base and nested
id
#tn003
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n003-in.jsonld
expect
expand/n003-out.jsonld
Options
specVersion
json-ld-1.1
Test tn004 Appends nested values from all @nest aliases in term order
id
#tn004
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n004-in.jsonld
expect
expand/n004-out.jsonld
Options
specVersion
json-ld-1.1
Test tn005 Nested nested containers
id
#tn005
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n005-in.jsonld
expect
expand/n005-out.jsonld
Options
specVersion
json-ld-1.1
Test tn006 Arrays of nested values
id
#tn006
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n006-in.jsonld
expect
expand/n006-out.jsonld
Options
specVersion
json-ld-1.1
Test tn007 A nest of arrays
id
#tn007
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n007-in.jsonld
expect
expand/n007-out.jsonld
Options
specVersion
json-ld-1.1
Test tn008 Multiple keys may mapping to @type when nesting
id
#tn008
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion using @nest
input
expand/n008-in.jsonld
expect
expand/n008-out.jsonld
Options
specVersion
json-ld-1.1
Test tp001 @version may be specified after first context
id
#tp001
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
expand/p001-in.jsonld
expect
expand/p001-out.jsonld
Options
specVersion
json-ld-1.1
Test tp002 @version setting [1.0, 1.1, 1.0]
id
#tp002
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
expand/p002-in.jsonld
expect
expand/p002-out.jsonld
Options
specVersion
json-ld-1.1
Test tp003 @version setting [1.1, 1.0]
id
#tp003
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
expand/p003-in.jsonld
expect
expand/p003-out.jsonld
Options
specVersion
json-ld-1.1
Test tp004 @version setting [1.1, 1.0, 1.1]
id
#tp004
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
If processing mode is not set through API, it is set by the first context containing @version.
input
expand/p004-in.jsonld
expect
expand/p004-out.jsonld
Options
specVersion
json-ld-1.1
Test tpi01 error if @version is json-ld-1.0 for property-valued index
id
#tpi01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi01-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test tpi02 error if @container does not include @index for property-valued index
id
#tpi02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi02-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test tpi03 error if @index is a keyword for property-valued index
id
#tpi03
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi03-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test tpi04 error if @index is not a string for property-valued index
id
#tpi04
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi04-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test tpi05 error if attempting to add property to value object for property-valued index
id
#tpi05
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi05-in.jsonld
expect
invalid value object
Options
specVersion
json-ld-1.1
Test tpi06 property-valued index expands to property value, instead of @index (value)
id
#tpi06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi06-in.jsonld
expect
expand/pi06-out.jsonld
Options
specVersion
json-ld-1.1
Test tpi07 property-valued index appends to property value, instead of @index (value)
id
#tpi07
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi07-in.jsonld
expect
expand/pi07-out.jsonld
Options
specVersion
json-ld-1.1
Test tpi08 property-valued index expands to property value, instead of @index (node)
id
#tpi08
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi08-in.jsonld
expect
expand/pi08-out.jsonld
Options
specVersion
json-ld-1.1
Test tpi09 property-valued index appends to property value, instead of @index (node)
id
#tpi09
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi09-in.jsonld
expect
expand/pi09-out.jsonld
Options
specVersion
json-ld-1.1
Test tpi10 property-valued index does not output property for @none
id
#tpi10
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi10-in.jsonld
expect
expand/pi10-out.jsonld
Options
specVersion
json-ld-1.1
Test tpi11 property-valued index adds property to graph object
id
#tpi11
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding index maps where index is a property.
input
expand/pi11-in.jsonld
expect
expand/pi11-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr01 Protect a term
id
#tpr01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Check error when overriding a protected term.
input
expand/pr01-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr02 Set a term to not be protected
id
#tpr02
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
A term with @protected: false is not protected.
input
expand/pr02-in.jsonld
expect
expand/pr02-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr03 Protect all terms in context
id
#tpr03
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
A protected context protects all term definitions.
input
expand/pr03-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr04 Do not protect term with @protected: false
id
#tpr04
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
A protected context does not protect terms with @protected: false.
input
expand/pr04-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr05 Clear active context with protected terms from an embedded context
id
#tpr05
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
The Active context be set to null from an embedded context.
input
expand/pr05-in.jsonld
expect
invalid context nullification
Options
specVersion
json-ld-1.1
Test tpr06 Clear active context of protected terms from a term.
id
#tpr06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
The Active context may be set to null from a scoped context of a term.
input
expand/pr06-in.jsonld
expect
expand/pr06-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr08 Term with protected scoped context.
id
#tpr08
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
A scoped context can protect terms.
input
expand/pr08-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr09 Attempt to redefine term in other protected context.
id
#tpr09
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
A protected term cannot redefine another protected term.
input
expand/pr09-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr10 Simple protected and unprotected terms.
id
#tpr10
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Simple protected and unprotected terms.
input
expand/pr10-in.jsonld
expect
expand/pr10-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr11 Fail to override protected term.
id
#tpr11
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Fail to override protected term.
input
expand/pr11-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr12 Scoped context fail to override protected term.
id
#tpr12
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Scoped context fail to override protected term.
input
expand/pr12-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr13 Override unprotected term.
id
#tpr13
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Override unprotected term.
input
expand/pr13-in.jsonld
expect
expand/pr13-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr14 Clear protection with null context.
id
#tpr14
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Clear protection with null context.
input
expand/pr14-in.jsonld
expect
expand/pr14-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr15 Clear protection with array with null context
id
#tpr15
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Clear protection with array with null context
input
expand/pr15-in.jsonld
expect
expand/pr15-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr16 Override protected terms after null.
id
#tpr16
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Override protected terms after null.
input
expand/pr16-in.jsonld
expect
expand/pr16-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr17 Fail to override protected terms with type.
id
#tpr17
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Fail to override protected terms with type.
input
expand/pr17-in.jsonld
expect
invalid context nullification
Options
specVersion
json-ld-1.1
Test tpr18 Fail to override protected terms with type+null+ctx.
id
#tpr18
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Fail to override protected terms with type+null+ctx.
input
expand/pr18-in.jsonld
expect
invalid context nullification
Options
specVersion
json-ld-1.1
Test tpr19 Mix of protected and unprotected terms.
id
#tpr19
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Mix of protected and unprotected terms.
input
expand/pr19-in.jsonld
expect
expand/pr19-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr20 Fail with mix of protected and unprotected terms with type+null+ctx.
id
#tpr20
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Fail with mix of protected and unprotected terms with type+null+ctx.
input
expand/pr20-in.jsonld
expect
invalid context nullification
Options
specVersion
json-ld-1.1
Test tpr21 Fail with mix of protected and unprotected terms with type+null.
id
#tpr21
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Fail with mix of protected and unprotected terms with type+null.
input
expand/pr21-in.jsonld
expect
invalid context nullification
Options
specVersion
json-ld-1.1
Test tpr22 Check legal overriding of type-scoped protected term from nested node.
id
#tpr22
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Check legal overriding of type-scoped protected term from nested node.
input
expand/pr22-in.jsonld
expect
expand/pr22-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr23 Allows redefinition of protected alias term with same definition.
id
#tpr23
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Allows redefinition of protected alias term with same definition.
input
expand/pr23-in.jsonld
expect
expand/pr23-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr24 Allows redefinition of protected prefix term with same definition.
id
#tpr24
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Allows redefinition of protected prefix term with same definition.
input
expand/pr24-in.jsonld
expect
expand/pr24-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr25 Allows redefinition of terms with scoped contexts using same definitions.
id
#tpr25
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Allows redefinition of terms with scoped contexts using same definitions.
input
expand/pr25-in.jsonld
expect
expand/pr25-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr26 Fails on redefinition of terms with scoped contexts using different definitions.
id
#tpr26
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Fails on redefinition of terms with scoped contexts using different definitions.
input
expand/pr26-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag.
id
#tpr27
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Allows redefinition of protected alias term with same definition modulo protected flag.
input
expand/pr27-in.jsonld
expect
expand/pr27-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr28 Fails if trying to redefine a protected null term.
id
#tpr28
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
A protected term with a null IRI mapping cannot be redefined.
input
expand/pr28-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr29 Does not expand a Compact IRI using a non-prefix term.
id
#tpr29
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expansion of Compact IRIs considers if the term can be used as a prefix.
input
expand/pr29-in.jsonld
expect
expand/pr29-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr30 Keywords may be protected.
id
#tpr30
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Keywords may not be redefined other than to protect them.
input
expand/pr30-in.jsonld
expect
expand/pr30-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr31 Protected keyword aliases cannot be overridden.
id
#tpr31
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Keywords may not be redefined other than to protect them.
input
expand/pr31-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr32 Protected @type cannot be overridden.
id
#tpr32
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Keywords may not be redefined other than to protect them.
input
expand/pr32-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr33 Fails if trying to declare a keyword alias as prefix.
id
#tpr33
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Keyword aliases can not be used as prefixes.
input
expand/pr33-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test tpr34 Ignores a non-keyword term starting with '@'
id
#tpr34
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr34-in.jsonld
expect
expand/pr34-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab)
id
#tpr35
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr35-in.jsonld
expect
expand/pr35-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr36 Ignores a term mapping to a value in the form of a keyword.
id
#tpr36
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr36-in.jsonld
expect
expand/pr36-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr37 Ignores a term mapping to a value in the form of a keyword (with @vocab).
id
#tpr37
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr37-in.jsonld
expect
expand/pr37-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr38 Ignores a term mapping to a value in the form of a keyword (@reverse).
id
#tpr38
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr38-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test tpr39 Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab).
id
#tpr39
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr39-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test tso01 @import is invalid in 1.0.
id
#tso01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@import is invalid in 1.0.
input
expand/so01-in.jsonld
expect
invalid context member
Options
specVersion
json-ld-1.1
Test tso02 @import must be a string
id
#tso02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@import must be a string.
input
expand/so02-in.jsonld
expect
invalid @import value
Options
specVersion
json-ld-1.1
Test tso03 @import overflow
id
#tso03
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Processors must detect source contexts that include @import.
input
expand/so03-in.jsonld
expect
invalid context member
Options
specVersion
json-ld-1.1
Test tso05 @propagate: true on type-scoped context with @import
id
#tso05
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
type-scoped context with @propagate: true survive node-objects (with @import)
input
expand/so05-in.jsonld
expect
expand/so05-out.jsonld
Options
specVersion
json-ld-1.1
Test tso06 @propagate: false on property-scoped context with @import
id
#tso06
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
property-scoped context with @propagate: false do not survive node-objects (with @import)
input
expand/so06-in.jsonld
expect
expand/so06-out.jsonld
Options
specVersion
json-ld-1.1
Test tso07 Protect all terms in sourced context
id
#tso07
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
A protected context protects all term definitions.
input
expand/so07-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tso08 Override term defined in sourced context
id
#tso08
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
The containing context is merged into the source context.
input
expand/so08-in.jsonld
expect
expand/so08-out.jsonld
Options
specVersion
json-ld-1.1
Test tso09 Override @vocab defined in sourced context
id
#tso09
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
The containing context is merged into the source context.
input
expand/so09-in.jsonld
expect
expand/so09-out.jsonld
Options
specVersion
json-ld-1.1
Test tso10 Protect terms in sourced context
id
#tso10
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
The containing context is merged into the source context.
input
expand/so10-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tso11 Override protected terms in sourced context
id
#tso11
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
The containing context is merged into the source context.
input
expand/so11-in.jsonld
expect
expand/so11-out.jsonld
Options
specVersion
json-ld-1.1
Test ttn01 @type: @none is illegal in 1.0.
id
#ttn01
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@type: @none is illegal in json-ld-1.0.
input
expand/tn01-in.jsonld
expect
invalid type mapping
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test ttn02 @type: @none expands strings as value objects
id
#ttn02
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
@type: @none leaves inputs other than strings alone
input
expand/tn02-in.jsonld
expect
expand/tn02-out.jsonld
Options
specVersion
json-ld-1.1