W3C

Expansion

These tests implement the requirements for the JSON-LD Expansion Algorithm.

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

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

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

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

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

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

JSON-LD Object comparison

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

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

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

Running tests

The top-level manifest references the specific test manifests, which in turn reference each test associated with a particular type of behavior.

Implementations create their own infrastructure for running the test suite. In particular, the following should be considered:

Contributing Tests

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

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

Distribution

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

Disclaimer

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

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

Test sequence:

Test t0001 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
expand/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. (Note: the resulting document will not be valid JSON-LD, due to the `null` value for `@id`)
input
expand/0122-in.jsonld
expect
expand/0122-out.jsonld
Options
specVersion
json-ld-1.1
normative
false
Test t0123 Value objects including invalid literal datatype IRIs are rejected
id
#t0123
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Processors MUST validate datatype IRIs.
input
expand/0123-in.jsonld
expect
invalid typed value
Options
specVersion
json-ld-1.1
Test t0124 compact IRI as @vocab
id
#t0124
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that @vocab defined as a compact IRI expands properly
input
expand/0124-in.jsonld
expect
expand/0124-out.jsonld
Options
specVersion
json-ld-1.1
Test t0125 term as @vocab
id
#t0125
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that @vocab defined as a term expands properly
input
expand/0125-in.jsonld
expect
expand/0125-out.jsonld
Options
specVersion
json-ld-1.1
Test t0126 A scoped context may include itself recursively (direct)
id
#t0126
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
input
expand/0126-in.jsonld
expect
expand/0126-out.jsonld
Options
specVersion
json-ld-1.1
Test t0127 A scoped context may include itself recursively (indirect)
id
#t0127
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
input
expand/0127-in.jsonld
expect
expand/0127-out.jsonld
Options
specVersion
json-ld-1.1
Test t0128 Two scoped context may include a shared context
id
#t0128
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
input
expand/0128-in.jsonld
expect
expand/0128-out.jsonld
Options
specVersion
json-ld-1.1
Test t0129 Base without trailing slash, without path
id
#t0129
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
input
expand/0129-in.jsonld
expect
expand/0129-out.jsonld
Test t0130 Base without trailing slash, with path
id
#t0130
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
input
expand/0130-in.jsonld
expect
expand/0130-out.jsonld
Test t0131 Reverse term with property based indexed container
id
#t0131
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Expanding a reverse term using @container: @index and @index set to a property
input
expand/0131-in.jsonld
expect
expand/0131-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 entry
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test tc030 @propagate must be boolean valued
id
#tc030
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@propagate must be boolean valued
input
expand/c030-in.jsonld
expect
invalid @propagate value
Options
specVersion
json-ld-1.1
Test tc031 @context resolutions respects relative URLs.
id
#tc031
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
URL resolution follows RFC3986
input
expand/c031-in.jsonld
expect
expand/c031-out.jsonld
Options
specVersion
json-ld-1.1
Test tc032 Unused embedded context with error.
id
#tc032
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
An embedded context which is never used should still be checked.
input
expand/c032-in.jsonld
expect
invalid scoped context
Options
specVersion
json-ld-1.1
Test tc033 Unused context with an embedded context error.
id
#tc033
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
An unused context with an embedded context should still be checked.
input
expand/c033-in.jsonld
expect
invalid scoped context
Options
specVersion
json-ld-1.1
Test tc034 Remote scoped context.
id
#tc034
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Scoped contexts may be externally loaded.
input
expand/c034-in.jsonld
expect
expand/c034-out.jsonld
Options
specVersion
json-ld-1.1
Test tc035 Term scoping with embedded contexts.
id
#tc035
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms should make use of @vocab relative to the scope in which the term was defined.
input
expand/c035-in.jsonld
expect
expand/c035-out.jsonld
Options
specVersion
json-ld-1.1
Test tc036 Expansion with empty property-scoped context.
id
#tc036
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.
input
expand/c036-in.jsonld
expect
expand/c036-out.jsonld
Options
specVersion
json-ld-1.1
Test tc037 property-scoped contexts which are alias of @nest
id
#tc037
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Nesting terms may have property-scoped contexts defined.
input
expand/c037-in.jsonld
expect
expand/c037-out.jsonld
Options
specVersion
json-ld-1.1
Test tc038 Bibframe example (poor-mans inferrence)
id
#tc038
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Nesting terms may have property-scoped contexts defined.
input
expand/c038-in.jsonld
expect
expand/c038-out.jsonld
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 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 tec02 Term definition on @type with empty map
id
#tec02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised if @type is defined as a term with an empty map
input
expand/ec02-in.jsonld
expect
keyword redefinition
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 ter01 Keywords cannot be aliased to other keywords
id
#ter01
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/er01-in.jsonld
expect
keyword redefinition
Test ter02 A context may not include itself recursively (direct)
id
#ter02
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing a context referencing itself
input
expand/er02-in.jsonld
expect
recursive context inclusion
Options
specVersion
json-ld-1.0
Test ter03 A context may not include itself recursively (indirect)
id
#ter03
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
input
expand/er03-in.jsonld
expect
recursive context inclusion
Options
specVersion
json-ld-1.0
Test ter04 Error dereferencing a remote context
id
#ter04
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context dereference results in an error
input
expand/er04-in.jsonld
expect
loading remote context failed
Test ter05 Invalid remote context
id
#ter05
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/er05-in.jsonld
expect
invalid remote context
Options
specVersion
json-ld-1.1
Test ter06 Invalid local context
id
#ter06
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/er06-in.jsonld
expect
invalid local context
Test ter07 Invalid base IRI
id
#ter07
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @base
input
expand/er07-in.jsonld
expect
invalid base IRI
Test ter08 Invalid vocab mapping
id
#ter08
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
input
expand/er08-in.jsonld
expect
invalid vocab mapping
Test ter09 Invalid default language
id
#ter09
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @language
input
expand/er09-in.jsonld
expect
invalid default language
Test ter10 Cyclic IRI mapping
id
#ter10
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
input
expand/er10-in.jsonld
expect
cyclic IRI mapping
Test ter11 Invalid term definition
id
#ter11
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid term definition is found
input
expand/er11-in.jsonld
expect
invalid term definition
Test ter12 Invalid type mapping (not a string)
id
#ter12
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid type mapping is found
input
expand/er12-in.jsonld
expect
invalid type mapping
Test ter13 Invalid type mapping (not absolute IRI)
id
#ter13
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid type mapping is found
input
expand/er13-in.jsonld
expect
invalid type mapping
Test ter14 Invalid reverse property (contains @id)
id
#ter14
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid reverse property is found
input
expand/er14-in.jsonld
expect
invalid reverse property
Test ter15 Invalid IRI mapping (@reverse not a string)
id
#ter15
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/er15-in.jsonld
expect
invalid IRI mapping
Test ter17 Invalid reverse property (invalid @container)
id
#ter17
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid reverse property is found
input
expand/er17-in.jsonld
expect
invalid reverse property
Test ter18 Invalid IRI mapping (@id not a string)
id
#ter18
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/er18-in.jsonld
expect
invalid IRI mapping
Test ter19 Invalid keyword alias (@context)
id
#ter19
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid keyword alias is found
input
expand/er19-in.jsonld
expect
invalid keyword alias
Test ter20 Invalid IRI mapping (no vocab mapping)
id
#ter20
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid IRI mapping is found
input
expand/er20-in.jsonld
expect
invalid IRI mapping
Test ter21 Invalid container mapping
id
#ter21
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid container mapping is found
input
expand/er21-in.jsonld
expect
invalid container mapping
Options
processingMode
json-ld-1.0
specVersion
json-ld-1.1
Test ter22 Invalid language mapping
id
#ter22
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid language mapping is found
input
expand/er22-in.jsonld
expect
invalid language mapping
Test ter23 Invalid IRI mapping (relative IRI in @type)
id
#ter23
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a invalid type mapping is found
input
expand/er23-in.jsonld
expect
invalid type mapping
Test ter24 List of lists (from array)
id
#ter24
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when a list of lists is found
input
expand/er24-in.jsonld
expect
list of lists
Options
specVersion
json-ld-1.0
Test ter25 Invalid reverse property map
id
#ter25
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when a invalid reverse property map is found
input
expand/er25-in.jsonld
expect
invalid reverse property map
Test ter26 Colliding keywords
id
#ter26
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when colliding keywords are found
input
expand/er26-in.jsonld
expect
colliding keywords
Test ter27 Invalid @id value
id
#ter27
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid @id value is found
input
expand/er27-in.jsonld
expect
invalid @id value
Test ter28 Invalid type value
id
#ter28
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid type value is found
input
expand/er28-in.jsonld
expect
invalid type value
Test ter29 Invalid value object value
id
#ter29
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object value is found
input
expand/er29-in.jsonld
expect
invalid value object value
Test ter30 Invalid language-tagged string
id
#ter30
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/er30-in.jsonld
expect
invalid language-tagged string
Test ter31 Invalid @index value
id
#ter31
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid @index value value is found
input
expand/er31-in.jsonld
expect
invalid @index value
Test ter32 List of lists (from array)
id
#ter32
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when a list of lists is found
input
expand/er32-in.jsonld
expect
list of lists
Options
specVersion
json-ld-1.0
Test ter33 Invalid @reverse value
id
#ter33
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid @reverse value is found
input
expand/er33-in.jsonld
expect
invalid @reverse value
Test ter34 Invalid reverse property value (in @reverse)
id
#ter34
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
input
expand/er34-in.jsonld
expect
invalid reverse property value
Test ter35 Invalid language map value
id
#ter35
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid language map value is found
input
expand/er35-in.jsonld
expect
invalid language map value
Test ter36 Invalid reverse property value (through coercion)
id
#ter36
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid reverse property value is found
input
expand/er36-in.jsonld
expect
invalid reverse property value
Test ter37 Invalid value object (unexpected keyword)
id
#ter37
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object is found
input
expand/er37-in.jsonld
expect
invalid value object
Test ter38 Invalid value object (@type and @language)
id
#ter38
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object is found
input
expand/er38-in.jsonld
expect
invalid value object
Test ter39 Invalid language-tagged value
id
#ter39
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
input
expand/er39-in.jsonld
expect
invalid language-tagged value
Test ter40 Invalid typed value
id
#ter40
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid typed value is found
input
expand/er40-in.jsonld
expect
invalid typed value
Test ter41 Invalid set or list object
id
#ter41
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/er41-in.jsonld
expect
invalid set or list object
Test ter42 Keywords may not be redefined in 1.0
id
#ter42
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword
input
expand/er42-in.jsonld
expect
keyword redefinition
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test ter43 Term definition with @id: @type
id
#ter43
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Expanding term mapping to @type uses @type syntax now illegal
input
expand/er43-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test ter44 Redefine terms looking like compact IRIs
id
#ter44
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Term definitions may look like compact IRIs, but must be consistent.
input
expand/er44-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test ter48 Invalid term as relative IRI
id
#ter48
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that a relative IRI cannot be used as a term.
input
expand/er48-in.jsonld
expect
invalid IRI mapping
Options
specVersion
json-ld-1.1
Test ter49 A relative IRI cannot be used as a prefix
id
#ter49
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that a relative IRI cannot be used as a term.
input
expand/er49-in.jsonld
expect
invalid term definition
Options
specVersion
json-ld-1.1
Test ter50 Invalid reverse id
id
#ter50
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
input
expand/er50-in.jsonld
expect
invalid IRI mapping
Test ter51 Invalid value object value using a value alias
id
#ter51
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised in Expansion when an invalid value object value is found using a value alias
input
expand/er51-in.jsonld
expect
invalid value object value
Test ter52 Definition for the empty term
id
#ter52
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains a definition for the empty term
input
expand/er52-in.jsonld
expect
invalid term definition
Test ter53 Invalid prefix value
id
#ter53
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
input
expand/er53-in.jsonld
expect
invalid @prefix value
Options
specVersion
json-ld-1.1
Test ter54 Invalid value object, multiple values for @type.
id
#ter54
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
The value of @type in a value object MUST be a string or null.
input
expand/er54-in.jsonld
expect
invalid typed value
Test ter55 Invalid term definition, multiple values for @type.
id
#ter55
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
The value of @type in an expanded term definition object MUST be a string or null.
input
expand/er55-in.jsonld
expect
invalid type mapping
Test ter56 Invalid redefinition of @context keyword.
id
#ter56
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Verifies that an exception is raised when attempting to redefine @context.
input
expand/er56-in.jsonld
expect
keyword redefinition
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 blocks.
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 blocks.
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 blocks.
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 blocks.
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 blocks.
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 blocks.
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 blocks.
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 blocks.
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 blocks.
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 with array canonicalization
id
#tjs08
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with array canonicalization.
input
expand/js08-in.jsonld
expect
expand/js08-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs09 Transform JSON literal with string canonicalization
id
#tjs09
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with string canonicalization.
input
expand/js09-in.jsonld
expect
expand/js09-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs10 Expand JSON literal with structural canonicalization
id
#tjs10
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with structural canonicalization.
input
expand/js10-in.jsonld
expect
expand/js10-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs11 Expand JSON literal with unicode canonicalization
id
#tjs11
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with unicode canonicalization.
input
expand/js11-in.jsonld
expect
expand/js11-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs12 Expand JSON literal with value canonicalization
id
#tjs12
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with value canonicalization.
input
expand/js12-in.jsonld
expect
expand/js12-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs13 Expand JSON literal with wierd canonicalization
id
#tjs13
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with wierd canonicalization.
input
expand/js13-in.jsonld
expect
expand/js13-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs14 Expand JSON literal without expanding contents
id
#tjs14
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal does not expand terms inside json.
input
expand/js14-in.jsonld
expect
expand/js14-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs15 Expand JSON literal aleady in expanded form
id
#tjs15
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal in expanded form.
input
expand/js15-in.jsonld
expect
expand/js15-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs16 Expand JSON literal aleady in expanded form with aliased keys
id
#tjs16
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal in expanded form with aliased keys in value object.
input
expand/js16-in.jsonld
expect
expand/js16-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs17 Expand JSON literal (string)
id
#tjs17
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (string).
input
expand/js17-in.jsonld
expect
expand/js17-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs18 Expand JSON literal (null)
id
#tjs18
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (null).
input
expand/js18-in.jsonld
expect
expand/js18-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs19 Expand JSON literal with aliased @type
id
#tjs19
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with aliased @type.
input
expand/js19-in.jsonld
expect
expand/js19-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs20 Expand JSON literal with aliased @value
id
#tjs20
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with aliased @value.
input
expand/js20-in.jsonld
expect
expand/js20-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs21 Expand JSON literal with @context
id
#tjs21
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding JSON literal with a @context.
input
expand/js21-in.jsonld
expect
expand/js21-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs22 Expand JSON literal (null) aleady in expanded form.
id
#tjs22
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (null).
input
expand/js22-in.jsonld
expect
expand/js22-out.jsonld
Options
specVersion
json-ld-1.1
Test tjs23 Expand JSON literal (empty array).
id
#tjs23
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Tests expanding property with @type @json to a JSON literal (empty array).
input
expand/js23-in.jsonld
expect
expand/js23-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 graph 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 graph 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 graph id index map with aliased @none
id
#tm015
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @graph and @id with @none
input
expand/m015-in.jsonld
expect
expand/m015-out.jsonld
Options
specVersion
json-ld-1.1
Test tm016 graph id index map with aliased @none
id
#tm016
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
index on @graph and @id with @none
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
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:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr38-in.jsonld
expect
expand/pr38-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr39 Ignores a term mapping to a value in the form of a keyword (@reverse with @vocab).
id
#tpr39
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Terms in the form of a keyword, which are not keywords, are ignored.
input
expand/pr39-in.jsonld
expect
expand/pr39-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr40 Protected terms and property-scoped contexts
id
#tpr40
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Check overriding of protected term from property-scoped context.
input
expand/pr40-in.jsonld
expect
expand/pr40-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr41 Allows protected redefinition of equivalent id terms
id
#tpr41
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Check protected redefinition of equivalent id terms in different forms.
input
expand/pr41-in.jsonld
expect
expand/pr41-out.jsonld
Options
specVersion
json-ld-1.1
Test tpr42 Fail if protected flag not retained during redefinition
id
#tpr42
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
Check protected redefinition retains protected flag.
input
expand/pr42-in.jsonld
expect
protected term redefinition
Options
specVersion
json-ld-1.1
Test tpr43 Clear protection in @graph @container with null context.
id
#tpr43
Type
jld:PositiveEvaluationTest, jld:ExpandTest
Purpose
Clear protection in @graph @container with null context.
input
expand/pr43-in.jsonld
expect
expand/pr43-out.jsonld
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 entry
Options
specVersion
json-ld-1.1
processingMode
json-ld-1.0
Test tso02 @import must be a string
id
#tso02
Type
jld:NegativeEvaluationTest, jld: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 entry
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 tso12 @import may not be used in an imported context.
id
#tso12
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@import only valid within a term definition.
input
expand/so12-in.jsonld
expect
invalid context entry
Options
specVersion
json-ld-1.1
Test tso13 @import can only reference a single context
id
#tso13
Type
jld:NegativeEvaluationTest, jld:ExpandTest
Purpose
@import can only reference a single context.
input
expand/so13-in.jsonld
expect
invalid remote context
Options
specVersion
json-ld-1.1
Test ttn01 @type: @none is illegal in 1.0.
id
#ttn01
Type
jld:NegativeEvaluationTest, jld: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