From 77d7605bc0ebe21af98a8e6c3c7988765b3291d9 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Sat, 4 Apr 2026 21:58:01 +0400 Subject: [PATCH 1/8] Fix nullable LoadDocumentOptions callback argument --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 6c6aa58e..3ee79131 100644 --- a/index.html +++ b/index.html @@ -6572,7 +6572,7 @@

LoadDocumentCallback

         callback LoadDocumentCallback = Promise<RemoteDocument> (
           USVString url,
-          optional LoadDocumentOptions? options
+          optional LoadDocumentOptions options = {}
         );
       
From 5f1b129082258e3f7e54d9c118c73ceb639b9b8f Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Sat, 11 Apr 2026 13:22:51 +0400 Subject: [PATCH 2/8] tests: add expand #t0132 for @base vs property keys --- tests/expand-manifest.html | 3444 +++++++++++++++++----------------- tests/expand-manifest.jsonld | 8 + tests/expand/0132-in.jsonld | 9 + tests/expand/0132-out.jsonld | 4 + 4 files changed, 1757 insertions(+), 1708 deletions(-) create mode 100644 tests/expand/0132-in.jsonld create mode 100644 tests/expand/0132-out.jsonld diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index 145e21c4..d9c5b236 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -1,17 +1,17 @@ - + Expansion - - + +

- - W3C + + W3C

Expansion

@@ -69,13 +69,13 @@

Contributing Tests

that you will be creating a new test or fix and the purpose of the change.
  • Clone the git repository: git://github.com/w3c/json-ld-api.git
  • -
  • Make your changes and submit them via github, or via a 'git format-patch' +
  • 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.

    +

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

    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
    @@ -85,12 +85,12 @@

    Disclaimer

    Test sequence:

    -
    -
    +
    +
    Test t0001 drop free-floating nodes
    -
    +
    id
    #t0001
    Type
    @@ -99,19 +99,19 @@

    Expand drops unreferenced nodes having only @id
    input
    - expand/0001-in.jsonld + expand/0001-in.jsonld
    expect
    - expand/0001-out.jsonld + expand/0001-out.jsonld

    -
    +
    Test t0002 basic
    -
    +
    id
    #t0002
    Type
    @@ -120,19 +120,19 @@

    Expanding terms with different types of values
    input
    - expand/0002-in.jsonld + expand/0002-in.jsonld
    expect
    - expand/0002-out.jsonld + expand/0002-out.jsonld

    -
    +
    Test t0003 drop null and unmapped properties
    -
    +
    id
    #t0003
    Type
    @@ -141,19 +141,19 @@

    Verifies that null values and unmapped properties are removed from expanded output
    input
    - expand/0003-in.jsonld + expand/0003-in.jsonld
    expect
    - expand/0003-out.jsonld + expand/0003-out.jsonld

    -
    +
    Test t0004 optimize @set, keep empty arrays
    -
    +
    id
    #t0004
    Type
    @@ -162,19 +162,19 @@

    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 + expand/0004-in.jsonld
    expect
    - expand/0004-out.jsonld + expand/0004-out.jsonld

    -
    +
    Test t0005 do not expand aliased @id/@type
    -
    +
    id
    #t0005
    Type
    @@ -183,19 +183,19 @@

    If a keyword is aliased, it is not used when expanding
    input
    - expand/0005-in.jsonld + expand/0005-in.jsonld
    expect
    - expand/0005-out.jsonld + expand/0005-out.jsonld

    -
    +
    Test t0006 alias keywords
    -
    +
    id
    #t0006
    Type
    @@ -204,19 +204,19 @@

    Aliased keywords expand in resulting document
    input
    - expand/0006-in.jsonld + expand/0006-in.jsonld
    expect
    - expand/0006-out.jsonld + expand/0006-out.jsonld

    -
    +
    Test t0007 date type-coercion
    -
    +
    id
    #t0007
    Type
    @@ -225,19 +225,19 @@

    Expand strings to expanded value with @type: xsd:dateTime
    input
    - expand/0007-in.jsonld + expand/0007-in.jsonld
    expect
    - expand/0007-out.jsonld + expand/0007-out.jsonld

    -
    +
    Test t0008 @value with @language
    -
    +
    id
    #t0008
    Type
    @@ -246,19 +246,19 @@

    Keep expanded values with @language, drop non-conforming value objects containing just @language
    input
    - expand/0008-in.jsonld + expand/0008-in.jsonld
    expect
    - expand/0008-out.jsonld + expand/0008-out.jsonld

    -
    +
    Test t0009 @graph with terms
    -
    +
    id
    #t0009
    Type
    @@ -267,19 +267,19 @@

    Use of @graph to contain multiple nodes within array
    input
    - expand/0009-in.jsonld + expand/0009-in.jsonld
    expect
    - expand/0009-out.jsonld + expand/0009-out.jsonld

    -
    +
    Test t0010 native types
    -
    +
    id
    #t0010
    Type
    @@ -288,19 +288,19 @@

    Expanding native scalar retains native scalar within expanded value
    input
    - expand/0010-in.jsonld + expand/0010-in.jsonld
    expect
    - expand/0010-out.jsonld + expand/0010-out.jsonld

    -
    +
    Test t0011 coerced @id
    -
    +
    id
    #t0011
    Type
    @@ -309,19 +309,19 @@

    A value of a property with @type: @id coercion expands to a node reference
    input
    - expand/0011-in.jsonld + expand/0011-in.jsonld
    expect
    - expand/0011-out.jsonld + expand/0011-out.jsonld

    -
    +
    Test t0012 @graph with embed
    -
    +
    id
    #t0012
    Type
    @@ -330,19 +330,19 @@

    Use of @graph to contain multiple nodes within array
    input
    - expand/0012-in.jsonld + expand/0012-in.jsonld
    expect
    - expand/0012-out.jsonld + expand/0012-out.jsonld

    -
    +
    Test t0013 expand already expanded
    -
    +
    id
    #t0013
    Type
    @@ -351,19 +351,19 @@

    Expand does not mess up already expanded document
    input
    - expand/0013-in.jsonld + expand/0013-in.jsonld
    expect
    - expand/0013-out.jsonld + expand/0013-out.jsonld

    -
    +
    Test t0014 @set of @value objects with keyword aliases
    -
    +
    id
    #t0014
    Type
    @@ -372,19 +372,19 @@

    Expanding aliased @set and @value
    input
    - expand/0014-in.jsonld + expand/0014-in.jsonld
    expect
    - expand/0014-out.jsonld + expand/0014-out.jsonld

    -
    +
    Test t0015 collapse set of sets, keep empty lists
    -
    +
    id
    #t0015
    Type
    @@ -393,19 +393,19 @@

    An array of multiple @set nodes are collapsed into a single array
    input
    - expand/0015-in.jsonld + expand/0015-in.jsonld
    expect
    - expand/0015-out.jsonld + expand/0015-out.jsonld

    -
    +
    Test t0016 context reset
    -
    +
    id
    #t0016
    Type
    @@ -414,19 +414,19 @@

    Setting @context to null within an embedded object resets back to initial context state
    input
    - expand/0016-in.jsonld + expand/0016-in.jsonld
    expect
    - expand/0016-out.jsonld + expand/0016-out.jsonld

    -
    +
    Test t0017 @graph and @id aliased
    -
    +
    id
    #t0017
    Type
    @@ -435,19 +435,19 @@

    Expanding with @graph and @id aliases
    input
    - expand/0017-in.jsonld + expand/0017-in.jsonld
    expect
    - expand/0017-out.jsonld + expand/0017-out.jsonld

    -
    +
    Test t0018 override default @language
    -
    +
    id
    #t0018
    Type
    @@ -456,19 +456,19 @@

    override default @language in terms; only language-tag strings
    input
    - expand/0018-in.jsonld + expand/0018-in.jsonld
    expect
    - expand/0018-out.jsonld + expand/0018-out.jsonld

    -
    +
    Test t0019 remove @value = null
    -
    +
    id
    #t0019
    Type
    @@ -477,19 +477,19 @@

    Expanding a value of null removes the value
    input
    - expand/0019-in.jsonld + expand/0019-in.jsonld
    expect
    - expand/0019-out.jsonld + expand/0019-out.jsonld

    -
    +
    Test t0020 do not remove @graph if not at top-level
    -
    +
    id
    #t0020
    Type
    @@ -498,19 +498,19 @@

    @graph used under a node is retained
    input
    - expand/0020-in.jsonld + expand/0020-in.jsonld
    expect
    - expand/0020-out.jsonld + expand/0020-out.jsonld

    -
    +
    Test t0021 do not remove @graph at top-level if not only property
    -
    +
    id
    #t0021
    Type
    @@ -519,19 +519,19 @@

    @graph used at the top level is retained if there are other properties
    input
    - expand/0021-in.jsonld + expand/0021-in.jsonld
    expect
    - expand/0021-out.jsonld + expand/0021-out.jsonld

    -
    +
    Test t0022 expand value with default language
    -
    +
    id
    #t0022
    Type
    @@ -540,19 +540,19 @@

    Expanding with a default language applies that language to string values
    input
    - expand/0022-in.jsonld + expand/0022-in.jsonld
    expect
    - expand/0022-out.jsonld + expand/0022-out.jsonld

    -
    +
    Test t0023 Expanding list/set with coercion
    -
    +
    id
    #t0023
    Type
    @@ -561,19 +561,19 @@

    Expanding lists and sets with properties having coercion coerces list/set values
    input
    - expand/0023-in.jsonld + expand/0023-in.jsonld
    expect
    - expand/0023-out.jsonld + expand/0023-out.jsonld

    -
    +
    Test t0024 Multiple contexts
    -
    +
    id
    #t0024
    Type
    @@ -582,19 +582,19 @@

    Tests that contexts in an array are merged
    input
    - expand/0024-in.jsonld + expand/0024-in.jsonld
    expect
    - expand/0024-out.jsonld + expand/0024-out.jsonld

    -
    +
    Test t0025 Problematic IRI expansion tests
    -
    +
    id
    #t0025
    Type
    @@ -603,19 +603,19 @@

    Expanding different kinds of terms and Compact IRIs
    input
    - expand/0025-in.jsonld + expand/0025-in.jsonld
    expect
    - expand/0025-out.jsonld + expand/0025-out.jsonld

    -
    +
    Test t0026 Term definition with @id: @type
    -
    +
    id
    #t0026
    Type
    @@ -624,26 +624,26 @@

    Expanding term mapping to @type uses @type syntax
    input
    - expand/0026-in.jsonld + expand/0026-in.jsonld
    expect
    - expand/0026-out.jsonld + expand/0026-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0027 Duplicate values in @list and @set
    -
    +
    id
    #t0027
    Type
    @@ -652,19 +652,19 @@

    Duplicate values in @list and @set are not merged
    input
    - expand/0027-in.jsonld + expand/0027-in.jsonld
    expect
    - expand/0027-out.jsonld + expand/0027-out.jsonld

    -
    +
    Test t0028 Use @vocab in properties and @type but not in @id
    -
    +
    id
    #t0028
    Type
    @@ -673,19 +673,19 @@

    @vocab is used to compact properties and @type, but is not used for @id
    input
    - expand/0028-in.jsonld + expand/0028-in.jsonld
    expect
    - expand/0028-out.jsonld + expand/0028-out.jsonld

    -
    +
    Test t0029 Relative IRIs
    -
    +
    id
    #t0029
    Type
    @@ -694,19 +694,19 @@

    @base is used to compact @id; test with different relative IRIs
    input
    - expand/0029-in.jsonld + expand/0029-in.jsonld
    expect
    - expand/0029-out.jsonld + expand/0029-out.jsonld

    -
    +
    Test t0030 Language maps
    -
    +
    id
    #t0030
    Type
    @@ -715,19 +715,19 @@

    Language Maps expand values to include @language
    input
    - expand/0030-in.jsonld + expand/0030-in.jsonld
    expect
    - expand/0030-out.jsonld + expand/0030-out.jsonld

    -
    +
    Test t0031 type-coercion of native types
    -
    +
    id
    #t0031
    Type
    @@ -736,19 +736,19 @@

    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 + expand/0031-in.jsonld
    expect
    - expand/0031-out.jsonld + expand/0031-out.jsonld

    -
    +
    Test t0032 Null term and @vocab
    -
    +
    id
    #t0032
    Type
    @@ -757,19 +757,19 @@

    Mapping a term to null decouples it from @vocab
    input
    - expand/0032-in.jsonld + expand/0032-in.jsonld
    expect
    - expand/0032-out.jsonld + expand/0032-out.jsonld

    -
    +
    Test t0033 Using @vocab with with type-coercion
    -
    +
    id
    #t0033
    Type
    @@ -778,19 +778,19 @@

    Verifies that terms can be defined using @vocab
    input
    - expand/0033-in.jsonld + expand/0033-in.jsonld
    expect
    - expand/0033-out.jsonld + expand/0033-out.jsonld

    -
    +
    Test t0034 Multiple properties expanding to the same IRI
    -
    +
    id
    #t0034
    Type
    @@ -799,19 +799,19 @@

    Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
    input
    - expand/0034-in.jsonld + expand/0034-in.jsonld
    expect
    - expand/0034-out.jsonld + expand/0034-out.jsonld

    -
    +
    Test t0035 Language maps with @vocab, default language, and colliding property
    -
    +
    id
    #t0035
    Type
    @@ -820,19 +820,19 @@

    Pathological tests of language maps
    input
    - expand/0035-in.jsonld + expand/0035-in.jsonld
    expect
    - expand/0035-out.jsonld + expand/0035-out.jsonld

    -
    +
    Test t0036 Expanding @index
    -
    +
    id
    #t0036
    Type
    @@ -841,19 +841,19 @@

    Expanding index maps for terms defined with @container: @index
    input
    - expand/0036-in.jsonld + expand/0036-in.jsonld
    expect
    - expand/0036-out.jsonld + expand/0036-out.jsonld

    -
    +
    Test t0037 Expanding @reverse
    -
    +
    id
    #t0037
    Type
    @@ -862,19 +862,19 @@

    Expanding @reverse keeps @reverse
    input
    - expand/0037-in.jsonld + expand/0037-in.jsonld
    expect
    - expand/0037-out.jsonld + expand/0037-out.jsonld

    -
    +
    Test t0038 Expanding blank node labels
    -
    +
    id
    #t0038
    Type
    @@ -883,26 +883,26 @@

    Blank nodes are not relabeled during expansion
    input
    - expand/0038-in.jsonld + expand/0038-in.jsonld
    expect
    - expand/0038-out.jsonld + expand/0038-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0039 Using terms in a reverse-maps
    -
    +
    id
    #t0039
    Type
    @@ -911,19 +911,19 @@

    Terms within @reverse are expanded
    input
    - expand/0039-in.jsonld + expand/0039-in.jsonld
    expect
    - expand/0039-out.jsonld + expand/0039-out.jsonld

    -
    +
    Test t0040 language and index expansion on non-objects
    -
    +
    id
    #t0040
    Type
    @@ -932,19 +932,19 @@

    Only invoke language and index map expansion if the value is a JSON object
    input
    - expand/0040-in.jsonld + expand/0040-in.jsonld
    expect
    - expand/0040-out.jsonld + expand/0040-out.jsonld

    -
    +
    Test t0041 @language: null
    -
    +
    id
    #t0041
    Type
    @@ -953,19 +953,19 @@

    @language: null resets the default language
    input
    - expand/0041-in.jsonld + expand/0041-in.jsonld
    expect
    - expand/0041-out.jsonld + expand/0041-out.jsonld

    -
    +
    Test t0042 Reverse properties
    -
    +
    id
    #t0042
    Type
    @@ -974,19 +974,19 @@

    Expanding terms defined as reverse properties uses @reverse in expanded document
    input
    - expand/0042-in.jsonld + expand/0042-in.jsonld
    expect
    - expand/0042-out.jsonld + expand/0042-out.jsonld

    -
    +
    Test t0043 Using reverse properties inside a @reverse-container
    -
    +
    id
    #t0043
    Type
    @@ -995,19 +995,19 @@

    Expanding a reverse property within a @reverse undoes both reversals
    input
    - expand/0043-in.jsonld + expand/0043-in.jsonld
    expect
    - expand/0043-out.jsonld + expand/0043-out.jsonld

    -
    +
    Test t0044 Index maps with language mappings
    -
    +
    id
    #t0044
    Type
    @@ -1016,19 +1016,19 @@

    Ensure index maps use language mapping
    input
    - expand/0044-in.jsonld + expand/0044-in.jsonld
    expect
    - expand/0044-out.jsonld + expand/0044-out.jsonld

    -
    +
    Test t0045 Top-level value objects
    -
    +
    id
    #t0045
    Type
    @@ -1037,19 +1037,19 @@

    Expanding top-level value objects causes them to be removed
    input
    - expand/0045-in.jsonld + expand/0045-in.jsonld
    expect
    - expand/0045-out.jsonld + expand/0045-out.jsonld

    -
    +
    Test t0046 Free-floating nodes
    -
    +
    id
    #t0046
    Type
    @@ -1058,19 +1058,19 @@

    Expanding free-floating nodes causes them to be removed
    input
    - expand/0046-in.jsonld + expand/0046-in.jsonld
    expect
    - expand/0046-out.jsonld + expand/0046-out.jsonld

    -
    +
    Test t0047 Free-floating values in sets and free-floating lists
    -
    +
    id
    #t0047
    Type
    @@ -1079,19 +1079,19 @@

    Free-floating values in sets are removed, free-floating lists are removed completely
    input
    - expand/0047-in.jsonld + expand/0047-in.jsonld
    expect
    - expand/0047-out.jsonld + expand/0047-out.jsonld

    -
    +
    Test t0048 Terms are ignored in @id
    -
    +
    id
    #t0048
    Type
    @@ -1100,19 +1100,19 @@

    Values of @id are not expanded as terms
    input
    - expand/0048-in.jsonld + expand/0048-in.jsonld
    expect
    - expand/0048-out.jsonld + expand/0048-out.jsonld

    -
    +
    Test t0049 String values of reverse properties
    -
    +
    id
    #t0049
    Type
    @@ -1121,19 +1121,19 @@

    String values of a reverse property with @type: @id are treated as IRIs
    input
    - expand/0049-in.jsonld + expand/0049-in.jsonld
    expect
    - expand/0049-out.jsonld + expand/0049-out.jsonld

    -
    +
    Test t0050 Term definitions with prefix separate from prefix definitions
    -
    +
    id
    #t0050
    Type
    @@ -1142,19 +1142,19 @@

    Term definitions using compact IRIs don't inherit the definitions of the prefix
    input
    - expand/0050-in.jsonld + expand/0050-in.jsonld
    expect
    - expand/0050-out.jsonld + expand/0050-out.jsonld

    -
    +
    Test t0051 Expansion of keyword aliases in term definitions
    -
    +
    id
    #t0051
    Type
    @@ -1163,19 +1163,19 @@

    Expanding terms which are keyword aliases
    input
    - expand/0051-in.jsonld + expand/0051-in.jsonld
    expect
    - expand/0051-out.jsonld + expand/0051-out.jsonld

    -
    +
    Test t0052 @vocab-relative IRIs in term definitions
    -
    +
    id
    #t0052
    Type
    @@ -1184,19 +1184,19 @@

    If @vocab is defined, term definitions are expanded relative to @vocab
    input
    - expand/0052-in.jsonld + expand/0052-in.jsonld
    expect
    - expand/0052-out.jsonld + expand/0052-out.jsonld

    -
    +
    Test t0053 Expand absolute IRI with @type: @vocab
    -
    +
    id
    #t0053
    Type
    @@ -1205,19 +1205,19 @@

    Expanding values of properties of @type: @vocab does not further expand absolute IRIs
    input
    - expand/0053-in.jsonld + expand/0053-in.jsonld
    expect
    - expand/0053-out.jsonld + expand/0053-out.jsonld

    -
    +
    Test t0054 Expand term with @type: @vocab
    -
    +
    id
    #t0054
    Type
    @@ -1226,19 +1226,19 @@

    Expanding values of properties of @type: @vocab does not expand term values
    input
    - expand/0054-in.jsonld + expand/0054-in.jsonld
    expect
    - expand/0054-out.jsonld + expand/0054-out.jsonld

    -
    +
    Test t0055 Expand @vocab-relative term with @type: @vocab
    -
    +
    id
    #t0055
    Type
    @@ -1247,19 +1247,19 @@

    Expanding values of properties of @type: @vocab expands relative IRIs using @vocab
    input
    - expand/0055-in.jsonld + expand/0055-in.jsonld
    expect
    - expand/0055-out.jsonld + expand/0055-out.jsonld

    -
    +
    Test t0056 Use terms with @type: @vocab but not with @type: @id
    -
    +
    id
    #t0056
    Type
    @@ -1268,19 +1268,19 @@

    Checks that expansion uses appropriate base depending on term definition having @type @id or @vocab
    input
    - expand/0056-in.jsonld + expand/0056-in.jsonld
    expect
    - expand/0056-out.jsonld + expand/0056-out.jsonld

    -
    +
    Test t0057 Expand relative IRI with @type: @vocab
    -
    +
    id
    #t0057
    Type
    @@ -1289,19 +1289,19 @@

    Relative values of terms with @type: @vocab expand relative to @vocab
    input
    - expand/0057-in.jsonld + expand/0057-in.jsonld
    expect
    - expand/0057-out.jsonld + expand/0057-out.jsonld

    -
    +
    Test t0058 Expand compact IRI with @type: @vocab
    -
    +
    id
    #t0058
    Type
    @@ -1310,19 +1310,19 @@

    Compact IRIs are expanded normally even if term has @type: @vocab
    input
    - expand/0058-in.jsonld + expand/0058-in.jsonld
    expect
    - expand/0058-out.jsonld + expand/0058-out.jsonld

    -
    +
    Test t0059 Reset @vocab by setting it to null
    -
    +
    id
    #t0059
    Type
    @@ -1331,19 +1331,19 @@

    Setting @vocab to null removes a previous definition
    input
    - expand/0059-in.jsonld + expand/0059-in.jsonld
    expect
    - expand/0059-out.jsonld + expand/0059-out.jsonld

    -
    +
    Test t0060 Overwrite document base with @base and reset it again
    -
    +
    id
    #t0060
    Type
    @@ -1352,19 +1352,19 @@

    Setting @base to an IRI and then resetting it to nil
    input
    - expand/0060-in.jsonld + expand/0060-in.jsonld
    expect
    - expand/0060-out.jsonld + expand/0060-out.jsonld

    -
    +
    Test t0061 Coercing native types to arbitrary datatypes
    -
    +
    id
    #t0061
    Type
    @@ -1373,19 +1373,19 @@

    Expanding native types when coercing to arbitrary datatypes
    input
    - expand/0061-in.jsonld + expand/0061-in.jsonld
    expect
    - expand/0061-out.jsonld + expand/0061-out.jsonld

    -
    +
    Test t0062 Various relative IRIs with with @base
    -
    +
    id
    #t0062
    Type
    @@ -1394,19 +1394,19 @@

    Pathological relative IRIs
    input
    - expand/0062-in.jsonld + expand/0062-in.jsonld
    expect
    - expand/0062-out.jsonld + expand/0062-out.jsonld

    -
    +
    Test t0063 Reverse property and index container
    -
    +
    id
    #t0063
    Type
    @@ -1415,19 +1415,19 @@

    Expaning reverse properties with an index-container
    input
    - expand/0063-in.jsonld + expand/0063-in.jsonld
    expect
    - expand/0063-out.jsonld + expand/0063-out.jsonld

    -
    +
    Test t0064 bnode values of reverse properties
    -
    +
    id
    #t0064
    Type
    @@ -1436,19 +1436,19 @@

    Expand reverse property whose values are unlabeled blank nodes
    input
    - expand/0064-in.jsonld + expand/0064-in.jsonld
    expect
    - expand/0064-out.jsonld + expand/0064-out.jsonld

    -
    +
    Test t0065 Drop unmapped keys in reverse map
    -
    +
    id
    #t0065
    Type
    @@ -1457,19 +1457,19 @@

    Keys that are not mapped to an IRI in a reverse-map are dropped
    input
    - expand/0065-in.jsonld + expand/0065-in.jsonld
    expect
    - expand/0065-out.jsonld + expand/0065-out.jsonld

    -
    +
    Test t0066 Reverse-map keys with @vocab
    -
    +
    id
    #t0066
    Type
    @@ -1478,19 +1478,19 @@

    Expand uses @vocab to expand keys in reverse-maps
    input
    - expand/0066-in.jsonld + expand/0066-in.jsonld
    expect
    - expand/0066-out.jsonld + expand/0066-out.jsonld

    -
    +
    Test t0067 prefix://suffix not a compact IRI
    -
    +
    id
    #t0067
    Type
    @@ -1499,19 +1499,19 @@

    prefix:suffix values are not interpreted as compact IRIs if suffix begins with two slashes
    input
    - expand/0067-in.jsonld + expand/0067-in.jsonld
    expect
    - expand/0067-out.jsonld + expand/0067-out.jsonld

    -
    +
    Test t0068 _:suffix values are not a compact IRI
    -
    +
    id
    #t0068
    Type
    @@ -1520,19 +1520,19 @@

    prefix:suffix values are not interpreted as compact IRIs if prefix is an underscore
    input
    - expand/0068-in.jsonld + expand/0068-in.jsonld
    expect
    - expand/0068-out.jsonld + expand/0068-out.jsonld

    -
    +
    Test t0069 Compact IRI as term with type mapping
    -
    +
    id
    #t0069
    Type
    @@ -1541,19 +1541,19 @@

    Redefine compact IRI to define type mapping using the compact IRI itself as value of @id
    input
    - expand/0069-in.jsonld + expand/0069-in.jsonld
    expect
    - expand/0069-out.jsonld + expand/0069-out.jsonld

    -
    +
    Test t0070 Compact IRI as term defined using equivalent compact IRI
    -
    +
    id
    #t0070
    Type
    @@ -1562,19 +1562,19 @@

    Redefine compact IRI to define type mapping using the compact IRI itself as string value
    input
    - expand/0070-in.jsonld + expand/0070-in.jsonld
    expect
    - expand/0070-out.jsonld + expand/0070-out.jsonld

    -
    +
    Test t0071 Redefine terms looking like compact IRIs
    -
    +
    id
    #t0071
    Type
    @@ -1583,26 +1583,26 @@

    Term definitions may look like compact IRIs
    input
    - expand/0071-in.jsonld + expand/0071-in.jsonld
    expect
    - expand/0071-out.jsonld + expand/0071-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0072 Redefine term using @vocab, not itself
    -
    +
    id
    #t0072
    Type
    @@ -1611,19 +1611,19 @@

    Redefining a term as itself when @vocab is defined uses @vocab, not previous term definition
    input
    - expand/0072-in.jsonld + expand/0072-in.jsonld
    expect
    - expand/0072-out.jsonld + expand/0072-out.jsonld

    -
    +
    Test t0073 @context not first property
    -
    +
    id
    #t0073
    Type
    @@ -1632,19 +1632,19 @@

    Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
    input
    - expand/0073-in.jsonld + expand/0073-in.jsonld
    expect
    - expand/0073-out.jsonld + expand/0073-out.jsonld

    -
    +
    Test t0074 @id not first property
    -
    +
    id
    #t0074
    Type
    @@ -1653,19 +1653,19 @@

    Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
    input
    - expand/0074-in.jsonld + expand/0074-in.jsonld
    expect
    - expand/0074-out.jsonld + expand/0074-out.jsonld

    -
    +
    Test t0075 @vocab as blank node identifier
    -
    +
    id
    #t0075
    Type
    @@ -1674,26 +1674,26 @@

    Use @vocab to map all properties to blank node identifiers
    input
    - expand/0075-in.jsonld + expand/0075-in.jsonld
    expect
    - expand/0075-out.jsonld + expand/0075-out.jsonld
    Options
    -
    +
    processingMode
    json-ld-1.0

    -
    +
    Test t0076 base option overrides document location
    -
    +
    id
    #t0076
    Type
    @@ -1702,26 +1702,26 @@

    Use of the base option overrides the document location
    input
    - expand/0076-in.jsonld + expand/0076-in.jsonld
    expect
    - expand/0076-out.jsonld + expand/0076-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0077 expandContext option
    -
    +
    id
    #t0077
    Type
    @@ -1730,26 +1730,26 @@

    Use of the expandContext option to expand the input document
    input
    - expand/0077-in.jsonld + expand/0077-in.jsonld
    expect
    - expand/0077-out.jsonld + expand/0077-out.jsonld
    Options
    -
    +
    expandContext
    expand/0077-context.jsonld

    -
    +
    Test t0078 multiple reverse properties
    -
    +
    id
    #t0078
    Type
    @@ -1758,19 +1758,19 @@

    Use of multiple reverse properties
    input
    - expand/0078-in.jsonld + expand/0078-in.jsonld
    expect
    - expand/0078-out.jsonld + expand/0078-out.jsonld

    -
    +
    Test t0079 expand @graph container
    -
    +
    id
    #t0079
    Type
    @@ -1779,26 +1779,26 @@

    Use of @graph containers
    input
    - expand/0079-in.jsonld + expand/0079-in.jsonld
    expect
    - expand/0079-out.jsonld + expand/0079-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0080 expand [@graph, @set] container
    -
    +
    id
    #t0080
    Type
    @@ -1807,26 +1807,26 @@

    Use of [@graph, @set] containers
    input
    - expand/0080-in.jsonld + expand/0080-in.jsonld
    expect
    - expand/0080-out.jsonld + expand/0080-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0081 Creates an @graph container if value is a graph
    -
    +
    id
    #t0081
    Type
    @@ -1835,26 +1835,26 @@

    Don't double-expand an already expanded graph
    input
    - expand/0081-in.jsonld + expand/0081-in.jsonld
    expect
    - expand/0081-out.jsonld + expand/0081-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0082 expand [@graph, @index] container
    -
    +
    id
    #t0082
    Type
    @@ -1863,26 +1863,26 @@

    Use of @graph containers with @index
    input
    - expand/0082-in.jsonld + expand/0082-in.jsonld
    expect
    - expand/0082-out.jsonld + expand/0082-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0083 expand [@graph, @index, @set] container
    -
    +
    id
    #t0083
    Type
    @@ -1891,26 +1891,26 @@

    Use of @graph containers with @index and @set
    input
    - expand/0083-in.jsonld + expand/0083-in.jsonld
    expect
    - expand/0083-out.jsonld + 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
    @@ -1919,26 +1919,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0084-in.jsonld + expand/0084-in.jsonld
    expect
    - expand/0084-out.jsonld + expand/0084-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0085 expand [@graph, @id] container
    -
    +
    id
    #t0085
    Type
    @@ -1947,26 +1947,26 @@

    Use of @graph containers with @id
    input
    - expand/0085-in.jsonld + expand/0085-in.jsonld
    expect
    - expand/0085-out.jsonld + expand/0085-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0086 expand [@graph, @id, @set] container
    -
    +
    id
    #t0086
    Type
    @@ -1975,26 +1975,26 @@

    Use of @graph containers with @id and @set
    input
    - expand/0086-in.jsonld + expand/0086-in.jsonld
    expect
    - expand/0086-out.jsonld + 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
    @@ -2003,26 +2003,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0087-in.jsonld + expand/0087-in.jsonld
    expect
    - expand/0087-out.jsonld + expand/0087-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0088 Do not expand native values to IRIs
    -
    +
    id
    #t0088
    Type
    @@ -2031,19 +2031,19 @@

    Value Expansion does not expand native values, such as booleans, to a node object
    input
    - expand/0088-in.jsonld + expand/0088-in.jsonld
    expect
    - expand/0088-out.jsonld + expand/0088-out.jsonld

    -
    +
    Test t0089 empty @base applied to the base option
    -
    +
    id
    #t0089
    Type
    @@ -2052,26 +2052,26 @@

    Use of an empty @base is applied to the base option
    input
    - expand/0089-in.jsonld + expand/0089-in.jsonld
    expect
    - expand/0089-out.jsonld + expand/0089-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0090 relative @base overrides base option and document location
    -
    +
    id
    #t0090
    Type
    @@ -2080,26 +2080,26 @@

    Use of a relative @base overrides base option and document location
    input
    - expand/0090-in.jsonld + expand/0090-in.jsonld
    expect
    - expand/0090-out.jsonld + expand/0090-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0091 relative and absolute @base overrides base option and document location
    -
    +
    id
    #t0091
    Type
    @@ -2108,26 +2108,26 @@

    Use of a relative and absolute @base overrides base option and document location
    input
    - expand/0091-in.jsonld + expand/0091-in.jsonld
    expect
    - expand/0091-out.jsonld + expand/0091-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0092 Various relative IRIs as properties with with @vocab: ''
    -
    +
    id
    #t0092
    Type
    @@ -2136,26 +2136,26 @@

    Pathological relative property IRIs
    input
    - expand/0092-in.jsonld + expand/0092-in.jsonld
    expect
    - expand/0092-out.jsonld + expand/0092-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0093 expand @graph container (multiple objects)
    -
    +
    id
    #t0093
    Type
    @@ -2164,26 +2164,26 @@

    Use of @graph containers
    input
    - expand/0093-in.jsonld + expand/0093-in.jsonld
    expect
    - expand/0093-out.jsonld + expand/0093-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0094 expand [@graph, @set] container (multiple objects)
    -
    +
    id
    #t0094
    Type
    @@ -2192,26 +2192,26 @@

    Use of [@graph, @set] containers
    input
    - expand/0094-in.jsonld + expand/0094-in.jsonld
    expect
    - expand/0094-out.jsonld + 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
    @@ -2220,26 +2220,26 @@

    Double-expand an already expanded graph
    input
    - expand/0095-in.jsonld + expand/0095-in.jsonld
    expect
    - expand/0095-out.jsonld + expand/0095-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0096 expand [@graph, @index] container (multiple indexed objects)
    -
    +
    id
    #t0096
    Type
    @@ -2248,26 +2248,26 @@

    Use of @graph containers with @index
    input
    - expand/0096-in.jsonld + expand/0096-in.jsonld
    expect
    - expand/0096-out.jsonld + expand/0096-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0097 expand [@graph, @index, @set] container (multiple objects)
    -
    +
    id
    #t0097
    Type
    @@ -2276,26 +2276,26 @@

    Use of @graph containers with @index and @set
    input
    - expand/0097-in.jsonld + expand/0097-in.jsonld
    expect
    - expand/0097-out.jsonld + 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
    @@ -2304,26 +2304,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0098-in.jsonld + expand/0098-in.jsonld
    expect
    - expand/0098-out.jsonld + expand/0098-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0099 expand [@graph, @id] container (multiple objects)
    -
    +
    id
    #t0099
    Type
    @@ -2332,26 +2332,26 @@

    Use of @graph containers with @id
    input
    - expand/0099-in.jsonld + expand/0099-in.jsonld
    expect
    - expand/0099-out.jsonld + expand/0099-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0100 expand [@graph, @id, @set] container (multiple objects)
    -
    +
    id
    #t0100
    Type
    @@ -2360,26 +2360,26 @@

    Use of @graph containers with @id and @set
    input
    - expand/0100-in.jsonld + expand/0100-in.jsonld
    expect
    - expand/0100-out.jsonld + 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
    @@ -2388,26 +2388,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0101-in.jsonld + expand/0101-in.jsonld
    expect
    - expand/0101-out.jsonld + 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
    @@ -2416,26 +2416,26 @@

    Creates a new graph object if indexed value is already a graph object
    input
    - expand/0102-in.jsonld + expand/0102-in.jsonld
    expect
    - expand/0102-out.jsonld + 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
    @@ -2444,26 +2444,26 @@

    Creates a new graph object if indexed value is already a graph object
    input
    - expand/0103-in.jsonld + expand/0103-in.jsonld
    expect
    - expand/0103-out.jsonld + 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
    @@ -2472,26 +2472,26 @@

    Double-expand an already expanded graph
    input
    - expand/0104-in.jsonld + expand/0104-in.jsonld
    expect
    - expand/0104-out.jsonld + 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
    @@ -2500,26 +2500,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0105-in.jsonld + expand/0105-in.jsonld
    expect
    - expand/0105-out.jsonld + 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
    @@ -2528,26 +2528,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0106-in.jsonld + expand/0106-in.jsonld
    expect
    - expand/0106-out.jsonld + expand/0106-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0107 expand [@graph, @index] container (indexes with multiple objects)
    -
    +
    id
    #t0107
    Type
    @@ -2556,26 +2556,26 @@

    Use of @graph containers with @index
    input
    - expand/0107-in.jsonld + expand/0107-in.jsonld
    expect
    - expand/0107-out.jsonld + expand/0107-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0108 expand [@graph, @id] container (multiple ids and objects)
    -
    +
    id
    #t0108
    Type
    @@ -2584,26 +2584,26 @@

    Use of @graph containers with @id
    input
    - expand/0108-in.jsonld + expand/0108-in.jsonld
    expect
    - expand/0108-out.jsonld + expand/0108-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0109 IRI expansion of fragments including ':'
    -
    +
    id
    #t0109
    Type
    @@ -2612,19 +2612,19 @@

    Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
    input
    - expand/0109-in.jsonld + expand/0109-in.jsonld
    expect
    - expand/0109-out.jsonld + expand/0109-out.jsonld

    -
    +
    Test t0110 Various relative IRIs as properties with with relative @vocab
    -
    +
    id
    #t0110
    Type
    @@ -2633,26 +2633,26 @@

    Pathological relative property IRIs
    input
    - expand/0110-in.jsonld + expand/0110-in.jsonld
    expect
    - expand/0110-out.jsonld + 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
    @@ -2661,26 +2661,26 @@

    Pathological relative property IRIs
    input
    - expand/0111-in.jsonld + expand/0111-in.jsonld
    expect
    - expand/0111-out.jsonld + 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
    @@ -2689,26 +2689,26 @@

    Pathological relative property IRIs
    input
    - expand/0112-in.jsonld + expand/0112-in.jsonld
    expect
    - expand/0112-out.jsonld + expand/0112-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0113 context with JavaScript Object property names
    -
    +
    id
    #t0113
    Type
    @@ -2717,19 +2717,19 @@

    Expand with context including JavaScript Object property names
    input
    - expand/0113-in.jsonld + expand/0113-in.jsonld
    expect
    - expand/0113-out.jsonld + expand/0113-out.jsonld

    -
    +
    Test t0114 Expansion allows multiple properties expanding to @type
    -
    +
    id
    #t0114
    Type
    @@ -2738,26 +2738,26 @@

    An exception for the colliding keywords error is made for @type
    input
    - expand/0114-in.jsonld + expand/0114-in.jsonld
    expect
    - expand/0114-out.jsonld + 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
    @@ -2766,7 +2766,7 @@

    Relative property IRIs with relative @vocab in 1.0
    input
    - expand/0115-in.jsonld + expand/0115-in.jsonld
    expect
    @@ -2774,18 +2774,18 @@

    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
    @@ -2794,7 +2794,7 @@

    Relative property IRIs with relative @vocab in 1.0
    input
    - expand/0116-in.jsonld + expand/0116-in.jsonld
    expect
    @@ -2802,18 +2802,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0117 A term starting with a colon can expand to a different IRI
    -
    +
    id
    #t0117
    Type
    @@ -2822,26 +2822,26 @@

    Terms may begin with a colon and not be treated as IRIs.
    input
    - expand/0117-in.jsonld + expand/0117-in.jsonld
    expect
    - expand/0117-out.jsonld + 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
    @@ -2850,26 +2850,26 @@

    Terms may begin with a colon and not be treated as IRIs.
    input
    - expand/0118-in.jsonld + expand/0118-in.jsonld
    expect
    - expand/0118-out.jsonld + expand/0118-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0119 Ignore some terms with @, allow others.
    -
    +
    id
    #t0119
    Type
    @@ -2878,26 +2878,26 @@

    Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
    input
    - expand/0119-in.jsonld + expand/0119-in.jsonld
    expect
    - expand/0119-out.jsonld + expand/0119-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0120 Ignore some values of @id with @, allow others.
    -
    +
    id
    #t0120
    Type
    @@ -2906,26 +2906,26 @@

    Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
    input
    - expand/0120-in.jsonld + expand/0120-in.jsonld
    expect
    - expand/0120-out.jsonld + expand/0120-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0121 Ignore some values of @reverse with @, allow others.
    -
    +
    id
    #t0121
    Type
    @@ -2934,26 +2934,26 @@

    Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
    input
    - expand/0121-in.jsonld + expand/0121-in.jsonld
    expect
    - expand/0121-out.jsonld + expand/0121-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0122 Ignore some IRIs when that start with @ when expanding.
    -
    +
    id
    #t0122
    Type
    @@ -2962,15 +2962,15 @@

    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 + expand/0122-in.jsonld
    expect
    - expand/0122-out.jsonld + expand/0122-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1
    normative
    @@ -2979,11 +2979,11 @@

    -
    +
    Test t0123 Value objects including invalid literal datatype IRIs are rejected
    -
    +
    id
    #t0123
    Type
    @@ -2992,7 +2992,7 @@

    Processors MUST validate datatype IRIs.
    input
    - expand/0123-in.jsonld + expand/0123-in.jsonld
    expect
    @@ -3000,18 +3000,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0124 compact IRI as @vocab
    -
    +
    id
    #t0124
    Type
    @@ -3020,26 +3020,26 @@

    Verifies that @vocab defined as a compact IRI expands properly
    input
    - expand/0124-in.jsonld + expand/0124-in.jsonld
    expect
    - expand/0124-out.jsonld + expand/0124-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0125 term as @vocab
    -
    +
    id
    #t0125
    Type
    @@ -3048,26 +3048,26 @@

    Verifies that @vocab defined as a term expands properly
    input
    - expand/0125-in.jsonld + expand/0125-in.jsonld
    expect
    - expand/0125-out.jsonld + expand/0125-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0126 A scoped context may include itself recursively (direct)
    -
    +
    id
    #t0126
    Type
    @@ -3076,26 +3076,26 @@

    Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
    input
    - expand/0126-in.jsonld + expand/0126-in.jsonld
    expect
    - expand/0126-out.jsonld + expand/0126-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0127 A scoped context may include itself recursively (indirect)
    -
    +
    id
    #t0127
    Type
    @@ -3104,26 +3104,26 @@

    Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
    input
    - expand/0127-in.jsonld + expand/0127-in.jsonld
    expect
    - expand/0127-out.jsonld + expand/0127-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0128 Two scoped context may include a shared context
    -
    +
    id
    #t0128
    Type
    @@ -3132,26 +3132,26 @@

    Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
    input
    - expand/0128-in.jsonld + expand/0128-in.jsonld
    expect
    - expand/0128-out.jsonld + expand/0128-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0129 Base without trailing slash, without path
    -
    +
    id
    #t0129
    Type
    @@ -3160,19 +3160,19 @@

    Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
    input
    - expand/0129-in.jsonld + expand/0129-in.jsonld
    expect
    - expand/0129-out.jsonld + expand/0129-out.jsonld

    -
    +
    Test t0130 Base without trailing slash, with path
    -
    +
    id
    #t0130
    Type
    @@ -3181,19 +3181,19 @@

    Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
    input
    - expand/0130-in.jsonld + expand/0130-in.jsonld
    expect
    - expand/0130-out.jsonld + expand/0130-out.jsonld

    -
    +
    Test t0131 Reverse term with property based indexed container
    -
    +
    id
    #t0131
    Type
    @@ -3202,26 +3202,54 @@

    Expanding a reverse term using @container: @index and @index set to a property
    input
    - expand/0131-in.jsonld + expand/0131-in.jsonld
    expect
    - expand/0131-out.jsonld + expand/0131-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    + Test t0132 @base does not expand property keys +
    +
    +
    +
    id
    +
    #t0132
    +
    Type
    +
    jld:PositiveEvaluationTest, jld:ExpandTest
    +
    Purpose
    +
    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    +
    input
    +
    + expand/0132-in.jsonld +
    +
    expect
    +
    + expand/0132-out.jsonld +
    +
    Options
    +
    +
    +
    specVersion
    +
    json-ld-1.1
    +
    +
    +
    +
    +
    Test tc001 adding new term
    -
    +
    id
    #tc001
    Type
    @@ -3230,26 +3258,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c001-in.jsonld + expand/c001-in.jsonld
    expect
    - expand/c001-out.jsonld + expand/c001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc002 overriding a term
    -
    +
    id
    #tc002
    Type
    @@ -3258,26 +3286,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c002-in.jsonld + expand/c002-in.jsonld
    expect
    - expand/c002-out.jsonld + 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
    @@ -3286,26 +3314,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c003-in.jsonld + expand/c003-in.jsonld
    expect
    - expand/c003-out.jsonld + expand/c003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc004 deep @context affects nested nodes
    -
    +
    id
    #tc004
    Type
    @@ -3314,26 +3342,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c004-in.jsonld + expand/c004-in.jsonld
    expect
    - expand/c004-out.jsonld + expand/c004-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc005 scoped context layers on intemediate contexts
    -
    +
    id
    #tc005
    Type
    @@ -3342,26 +3370,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c005-in.jsonld + expand/c005-in.jsonld
    expect
    - expand/c005-out.jsonld + expand/c005-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc006 adding new term
    -
    +
    id
    #tc006
    Type
    @@ -3370,26 +3398,26 @@

    scoped context on @type
    input
    - expand/c006-in.jsonld + expand/c006-in.jsonld
    expect
    - expand/c006-out.jsonld + expand/c006-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc007 overriding a term
    -
    +
    id
    #tc007
    Type
    @@ -3398,26 +3426,26 @@

    scoped context on @type
    input
    - expand/c007-in.jsonld + expand/c007-in.jsonld
    expect
    - expand/c007-out.jsonld + expand/c007-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc008 alias of @type
    -
    +
    id
    #tc008
    Type
    @@ -3426,26 +3454,26 @@

    scoped context on @type
    input
    - expand/c008-in.jsonld + expand/c008-in.jsonld
    expect
    - expand/c008-out.jsonld + expand/c008-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc009 deep @type-scoped @context does NOT affect nested nodes
    -
    +
    id
    #tc009
    Type
    @@ -3454,26 +3482,26 @@

    scoped context on @type
    input
    - expand/c009-in.jsonld + expand/c009-in.jsonld
    expect
    - expand/c009-out.jsonld + expand/c009-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc010 scoped context layers on intemediate contexts
    -
    +
    id
    #tc010
    Type
    @@ -3482,26 +3510,26 @@

    scoped context on @type
    input
    - expand/c010-in.jsonld + expand/c010-in.jsonld
    expect
    - expand/c010-out.jsonld + expand/c010-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc011 orders @type terms when applying scoped contexts
    -
    +
    id
    #tc011
    Type
    @@ -3510,26 +3538,26 @@

    scoped context on @type
    input
    - expand/c011-in.jsonld + expand/c011-in.jsonld
    expect
    - expand/c011-out.jsonld + 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
    @@ -3538,26 +3566,26 @@

    scoped context on @type
    input
    - expand/c012-in.jsonld + expand/c012-in.jsonld
    expect
    - expand/c012-out.jsonld + 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
    @@ -3566,26 +3594,26 @@

    scoped context on @type
    input
    - expand/c013-in.jsonld + expand/c013-in.jsonld
    expect
    - expand/c013-out.jsonld + expand/c013-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc014 type-scoped context nullification
    -
    +
    id
    #tc014
    Type
    @@ -3594,26 +3622,26 @@

    type-scoped context nullification
    input
    - expand/c014-in.jsonld + expand/c014-in.jsonld
    expect
    - expand/c014-out.jsonld + expand/c014-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc015 type-scoped base
    -
    +
    id
    #tc015
    Type
    @@ -3622,26 +3650,26 @@

    type-scoped base
    input
    - expand/c015-in.jsonld + expand/c015-in.jsonld
    expect
    - expand/c015-out.jsonld + expand/c015-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc016 type-scoped vocab
    -
    +
    id
    #tc016
    Type
    @@ -3650,26 +3678,26 @@

    type-scoped vocab
    input
    - expand/c016-in.jsonld + expand/c016-in.jsonld
    expect
    - expand/c016-out.jsonld + expand/c016-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc017 multiple type-scoped contexts are properly reverted
    -
    +
    id
    #tc017
    Type
    @@ -3678,26 +3706,26 @@

    multiple type-scoped contexts are property reverted
    input
    - expand/c017-in.jsonld + expand/c017-in.jsonld
    expect
    - expand/c017-out.jsonld + expand/c017-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc018 multiple type-scoped types resolved against previous context
    -
    +
    id
    #tc018
    Type
    @@ -3706,26 +3734,26 @@

    multiple type-scoped types resolved against previous context
    input
    - expand/c018-in.jsonld + expand/c018-in.jsonld
    expect
    - expand/c018-out.jsonld + expand/c018-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc019 type-scoped context with multiple property scoped terms
    -
    +
    id
    #tc019
    Type
    @@ -3734,26 +3762,26 @@

    type-scoped context with multiple property scoped terms
    input
    - expand/c019-in.jsonld + expand/c019-in.jsonld
    expect
    - expand/c019-out.jsonld + expand/c019-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc020 type-scoped value
    -
    +
    id
    #tc020
    Type
    @@ -3762,26 +3790,26 @@

    type-scoped value
    input
    - expand/c020-in.jsonld + expand/c020-in.jsonld
    expect
    - expand/c020-out.jsonld + expand/c020-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc021 type-scoped value mix
    -
    +
    id
    #tc021
    Type
    @@ -3790,26 +3818,26 @@

    type-scoped value mix
    input
    - expand/c021-in.jsonld + expand/c021-in.jsonld
    expect
    - expand/c021-out.jsonld + expand/c021-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc022 type-scoped property-scoped contexts including @type:@vocab
    -
    +
    id
    #tc022
    Type
    @@ -3818,26 +3846,26 @@

    type-scoped property-scoped contexts including @type:@vocab
    input
    - expand/c022-in.jsonld + expand/c022-in.jsonld
    expect
    - expand/c022-out.jsonld + expand/c022-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc023 composed type-scoped property-scoped contexts including @type:@vocab
    -
    +
    id
    #tc023
    Type
    @@ -3846,26 +3874,26 @@

    composed type-scoped property-scoped contexts including @type:@vocab
    input
    - expand/c023-in.jsonld + expand/c023-in.jsonld
    expect
    - expand/c023-out.jsonld + expand/c023-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc024 type-scoped + property-scoped + values evaluates against previous context
    -
    +
    id
    #tc024
    Type
    @@ -3874,26 +3902,26 @@

    type-scoped + property-scoped + values evaluates against previous context
    input
    - expand/c024-in.jsonld + expand/c024-in.jsonld
    expect
    - expand/c024-out.jsonld + expand/c024-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc025 type-scoped + graph container
    -
    +
    id
    #tc025
    Type
    @@ -3902,26 +3930,26 @@

    type-scoped + graph container
    input
    - expand/c025-in.jsonld + expand/c025-in.jsonld
    expect
    - expand/c025-out.jsonld + expand/c025-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc026 @propagate: true on type-scoped context
    -
    +
    id
    #tc026
    Type
    @@ -3930,26 +3958,26 @@

    type-scoped context with @propagate: true survive node-objects
    input
    - expand/c026-in.jsonld + expand/c026-in.jsonld
    expect
    - expand/c026-out.jsonld + expand/c026-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc027 @propagate: false on property-scoped context
    -
    +
    id
    #tc027
    Type
    @@ -3958,26 +3986,26 @@

    property-scoped context with @propagate: false do not survive node-objects
    input
    - expand/c027-in.jsonld + expand/c027-in.jsonld
    expect
    - expand/c027-out.jsonld + expand/c027-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc028 @propagate: false on embedded context
    -
    +
    id
    #tc028
    Type
    @@ -3986,26 +4014,26 @@

    embedded context with @propagate: false do not survive node-objects
    input
    - expand/c028-in.jsonld + expand/c028-in.jsonld
    expect
    - expand/c028-out.jsonld + expand/c028-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc029 @propagate is invalid in 1.0
    -
    +
    id
    #tc029
    Type
    @@ -4014,7 +4042,7 @@

    @propagate is invalid in 1.0
    input
    - expand/c029-in.jsonld + expand/c029-in.jsonld
    expect
    @@ -4022,7 +4050,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -4031,11 +4059,11 @@

    -
    +
    Test tc030 @propagate must be boolean valued
    -
    +
    id
    #tc030
    Type
    @@ -4044,7 +4072,7 @@

    @propagate must be boolean valued
    input
    - expand/c030-in.jsonld + expand/c030-in.jsonld
    expect
    @@ -4052,18 +4080,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc031 @context resolutions respects relative URLs.
    -
    +
    id
    #tc031
    Type
    @@ -4072,26 +4100,26 @@

    URL resolution follows RFC3986
    input
    - expand/c031-in.jsonld + expand/c031-in.jsonld
    expect
    - expand/c031-out.jsonld + expand/c031-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc032 Unused embedded context with error.
    -
    +
    id
    #tc032
    Type
    @@ -4100,7 +4128,7 @@

    An embedded context which is never used should still be checked.
    input
    - expand/c032-in.jsonld + expand/c032-in.jsonld
    expect
    @@ -4108,18 +4136,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc033 Unused context with an embedded context error.
    -
    +
    id
    #tc033
    Type
    @@ -4128,7 +4156,7 @@

    An unused context with an embedded context should still be checked.
    input
    - expand/c033-in.jsonld + expand/c033-in.jsonld
    expect
    @@ -4136,18 +4164,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc034 Remote scoped context.
    -
    +
    id
    #tc034
    Type
    @@ -4156,26 +4184,26 @@

    Scoped contexts may be externally loaded.
    input
    - expand/c034-in.jsonld + expand/c034-in.jsonld
    expect
    - expand/c034-out.jsonld + expand/c034-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc035 Term scoping with embedded contexts.
    -
    +
    id
    #tc035
    Type
    @@ -4184,26 +4212,26 @@

    Terms should make use of @vocab relative to the scope in which the term was defined.
    input
    - expand/c035-in.jsonld + expand/c035-in.jsonld
    expect
    - expand/c035-out.jsonld + expand/c035-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc036 Expansion with empty property-scoped context.
    -
    +
    id
    #tc036
    Type
    @@ -4212,26 +4240,26 @@

    Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.
    input
    - expand/c036-in.jsonld + expand/c036-in.jsonld
    expect
    - expand/c036-out.jsonld + expand/c036-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc037 property-scoped contexts which are alias of @nest
    -
    +
    id
    #tc037
    Type
    @@ -4240,26 +4268,26 @@

    Nesting terms may have property-scoped contexts defined.
    input
    - expand/c037-in.jsonld + expand/c037-in.jsonld
    expect
    - expand/c037-out.jsonld + expand/c037-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc038 Bibframe example (poor-mans inferrence)
    -
    +
    id
    #tc038
    Type
    @@ -4268,26 +4296,26 @@

    Nesting terms may have property-scoped contexts defined.
    input
    - expand/c038-in.jsonld + expand/c038-in.jsonld
    expect
    - expand/c038-out.jsonld + expand/c038-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi01 Expand string using default and term directions
    -
    +
    id
    #tdi01
    Type
    @@ -4296,26 +4324,26 @@

    Strings are coerced to have @direction based on default and term direction.
    input
    - expand/di01-in.jsonld + expand/di01-in.jsonld
    expect
    - expand/di01-out.jsonld + expand/di01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi02 Expand string using default and term directions and languages
    -
    +
    id
    #tdi02
    Type
    @@ -4324,26 +4352,26 @@

    Strings are coerced to have @direction based on default and term direction.
    input
    - expand/di02-in.jsonld + expand/di02-in.jsonld
    expect
    - expand/di02-out.jsonld + expand/di02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi03 expand list values with @direction
    -
    +
    id
    #tdi03
    Type
    @@ -4352,26 +4380,26 @@

    List values where the term has @direction are used in expansion.
    input
    - expand/di03-in.jsonld + expand/di03-in.jsonld
    expect
    - expand/di03-out.jsonld + expand/di03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi04 simple language map with term direction
    -
    +
    id
    #tdi04
    Type
    @@ -4380,26 +4408,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di04-in.jsonld + expand/di04-in.jsonld
    expect
    - expand/di04-out.jsonld + expand/di04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi05 simple language mapwith overriding term direction
    -
    +
    id
    #tdi05
    Type
    @@ -4408,26 +4436,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di05-in.jsonld + expand/di05-in.jsonld
    expect
    - expand/di05-out.jsonld + expand/di05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi06 simple language mapwith overriding null direction
    -
    +
    id
    #tdi06
    Type
    @@ -4436,26 +4464,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di06-in.jsonld + expand/di06-in.jsonld
    expect
    - expand/di06-out.jsonld + expand/di06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi07 simple language map with mismatching term direction
    -
    +
    id
    #tdi07
    Type
    @@ -4464,26 +4492,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di07-in.jsonld + expand/di07-in.jsonld
    expect
    - expand/di07-out.jsonld + expand/di07-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi08 @direction must be one of ltr or rtl
    -
    +
    id
    #tdi08
    Type
    @@ -4492,7 +4520,7 @@

    Generate an error if @direction has illegal value.
    input
    - expand/di08-in.jsonld + expand/di08-in.jsonld
    expect
    @@ -4500,18 +4528,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi09 @direction is incompatible with @type
    -
    +
    id
    #tdi09
    Type
    @@ -4520,7 +4548,7 @@

    Value objects can have either @type but not @language or @direction.
    input
    - expand/di09-in.jsonld + expand/di09-in.jsonld
    expect
    @@ -4528,18 +4556,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tec01 Invalid keyword in term definition
    -
    +
    id
    #tec01
    Type
    @@ -4548,7 +4576,7 @@

    Verifies that an exception is raised on expansion when a invalid term definition is found
    input
    - expand/ec01-in.jsonld + expand/ec01-in.jsonld
    expect
    @@ -4556,18 +4584,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tec02 Term definition on @type with empty map
    -
    +
    id
    #tec02
    Type
    @@ -4576,7 +4604,7 @@

    Verifies that an exception is raised if @type is defined as a term with an empty map
    input
    - expand/ec02-in.jsonld + expand/ec02-in.jsonld
    expect
    @@ -4584,18 +4612,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tem01 Invalid container mapping
    -
    +
    id
    #tem01
    Type
    @@ -4604,7 +4632,7 @@

    Verifies that an exception is raised on expansion when a invalid container mapping is found
    input
    - expand/em01-in.jsonld + expand/em01-in.jsonld
    expect
    @@ -4612,18 +4640,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten01 @nest MUST NOT have a string value
    -
    +
    id
    #ten01
    Type
    @@ -4632,7 +4660,7 @@

    container: @nest
    input
    - expand/en01-in.jsonld + expand/en01-in.jsonld
    expect
    @@ -4640,18 +4668,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten02 @nest MUST NOT have a boolen value
    -
    +
    id
    #ten02
    Type
    @@ -4660,7 +4688,7 @@

    Transparent Nesting
    input
    - expand/en02-in.jsonld + expand/en02-in.jsonld
    expect
    @@ -4668,18 +4696,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten03 @nest MUST NOT have a numeric value
    -
    +
    id
    #ten03
    Type
    @@ -4688,7 +4716,7 @@

    Transparent Nesting
    input
    - expand/en03-in.jsonld + expand/en03-in.jsonld
    expect
    @@ -4696,18 +4724,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten04 @nest MUST NOT have a value object value
    -
    +
    id
    #ten04
    Type
    @@ -4716,7 +4744,7 @@

    Transparent Nesting
    input
    - expand/en04-in.jsonld + expand/en04-in.jsonld
    expect
    @@ -4724,18 +4752,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten05 does not allow a keyword other than @nest for the value of @nest
    -
    +
    id
    #ten05
    Type
    @@ -4744,7 +4772,7 @@

    Transparent Nesting
    input
    - expand/en05-in.jsonld + expand/en05-in.jsonld
    expect
    @@ -4752,18 +4780,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten06 does not allow @nest with @reverse
    -
    +
    id
    #ten06
    Type
    @@ -4772,7 +4800,7 @@

    Transparent Nesting
    input
    - expand/en06-in.jsonld + expand/en06-in.jsonld
    expect
    @@ -4780,18 +4808,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1
    -
    +
    id
    #tep02
    Type
    @@ -4800,7 +4828,7 @@

    If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
    input
    - expand/ep02-in.jsonld + expand/ep02-in.jsonld
    expect
    @@ -4808,7 +4836,7 @@

    Options
    -
    +
    processingMode
    json-ld-1.0
    specVersion
    @@ -4817,11 +4845,11 @@

    -
    +
    Test tep03 @version must be 1.1
    -
    +
    id
    #tep03
    Type
    @@ -4830,7 +4858,7 @@

    If @version is specified, it must be 1.1
    input
    - expand/ep03-in.jsonld + expand/ep03-in.jsonld
    expect
    @@ -4838,18 +4866,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter01 Keywords cannot be aliased to other keywords
    -
    +
    id
    #ter01
    Type
    @@ -4858,7 +4886,7 @@

    Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
    input
    - expand/er01-in.jsonld + expand/er01-in.jsonld
    expect
    @@ -4866,11 +4894,11 @@

    -
    +
    Test ter02 A context may not include itself recursively (direct)
    -
    +
    id
    #ter02
    Type
    @@ -4879,7 +4907,7 @@

    Verifies that an exception is raised on expansion when processing a context referencing itself
    input
    - expand/er02-in.jsonld + expand/er02-in.jsonld
    expect
    @@ -4887,18 +4915,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter03 A context may not include itself recursively (indirect)
    -
    +
    id
    #ter03
    Type
    @@ -4907,7 +4935,7 @@

    Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
    input
    - expand/er03-in.jsonld + expand/er03-in.jsonld
    expect
    @@ -4915,18 +4943,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter04 Error dereferencing a remote context
    -
    +
    id
    #ter04
    Type
    @@ -4935,7 +4963,7 @@

    Verifies that an exception is raised on expansion when a context dereference results in an error
    input
    - expand/er04-in.jsonld + expand/er04-in.jsonld
    expect
    @@ -4943,11 +4971,11 @@

    -
    +
    Test ter05 Invalid remote context
    -
    +
    id
    #ter05
    Type
    @@ -4956,7 +4984,7 @@

    Verifies that an exception is raised on expansion when a remote context is not an object containing @context
    input
    - expand/er05-in.jsonld + expand/er05-in.jsonld
    expect
    @@ -4964,18 +4992,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter06 Invalid local context
    -
    +
    id
    #ter06
    Type
    @@ -4984,7 +5012,7 @@

    Verifies that an exception is raised on expansion when a context is not a string or object
    input
    - expand/er06-in.jsonld + expand/er06-in.jsonld
    expect
    @@ -4992,11 +5020,11 @@

    -
    +
    Test ter07 Invalid base IRI
    -
    +
    id
    #ter07
    Type
    @@ -5005,7 +5033,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @base
    input
    - expand/er07-in.jsonld + expand/er07-in.jsonld
    expect
    @@ -5013,11 +5041,11 @@

    -
    +
    Test ter08 Invalid vocab mapping
    -
    +
    id
    #ter08
    Type
    @@ -5026,7 +5054,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
    input
    - expand/er08-in.jsonld + expand/er08-in.jsonld
    expect
    @@ -5034,11 +5062,11 @@

    -
    +
    Test ter09 Invalid default language
    -
    +
    id
    #ter09
    Type
    @@ -5047,7 +5075,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @language
    input
    - expand/er09-in.jsonld + expand/er09-in.jsonld
    expect
    @@ -5055,11 +5083,11 @@

    -
    +
    Test ter10 Cyclic IRI mapping
    -
    +
    id
    #ter10
    Type
    @@ -5068,7 +5096,7 @@

    Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
    input
    - expand/er10-in.jsonld + expand/er10-in.jsonld
    expect
    @@ -5076,11 +5104,11 @@

    -
    +
    Test ter11 Invalid term definition
    -
    +
    id
    #ter11
    Type
    @@ -5089,7 +5117,7 @@

    Verifies that an exception is raised on expansion when a invalid term definition is found
    input
    - expand/er11-in.jsonld + expand/er11-in.jsonld
    expect
    @@ -5097,11 +5125,11 @@

    -
    +
    Test ter12 Invalid type mapping (not a string)
    -
    +
    id
    #ter12
    Type
    @@ -5110,7 +5138,7 @@

    Verifies that an exception is raised on expansion when a invalid type mapping is found
    input
    - expand/er12-in.jsonld + expand/er12-in.jsonld
    expect
    @@ -5118,11 +5146,11 @@

    -
    +
    Test ter13 Invalid type mapping (not absolute IRI)
    -
    +
    id
    #ter13
    Type
    @@ -5131,7 +5159,7 @@

    Verifies that an exception is raised on expansion when a invalid type mapping is found
    input
    - expand/er13-in.jsonld + expand/er13-in.jsonld
    expect
    @@ -5139,11 +5167,11 @@

    -
    +
    Test ter14 Invalid reverse property (contains @id)
    -
    +
    id
    #ter14
    Type
    @@ -5152,7 +5180,7 @@

    Verifies that an exception is raised on expansion when a invalid reverse property is found
    input
    - expand/er14-in.jsonld + expand/er14-in.jsonld
    expect
    @@ -5160,11 +5188,11 @@

    -
    +
    Test ter15 Invalid IRI mapping (@reverse not a string)
    -
    +
    id
    #ter15
    Type
    @@ -5173,7 +5201,7 @@

    Verifies that an exception is raised on expansion when a invalid IRI mapping is found
    input
    - expand/er15-in.jsonld + expand/er15-in.jsonld
    expect
    @@ -5181,11 +5209,11 @@

    -
    +
    Test ter17 Invalid reverse property (invalid @container)
    -
    +
    id
    #ter17
    Type
    @@ -5194,7 +5222,7 @@

    Verifies that an exception is raised on expansion when a invalid reverse property is found
    input
    - expand/er17-in.jsonld + expand/er17-in.jsonld
    expect
    @@ -5202,11 +5230,11 @@

    -
    +
    Test ter18 Invalid IRI mapping (@id not a string)
    -
    +
    id
    #ter18
    Type
    @@ -5215,7 +5243,7 @@

    Verifies that an exception is raised on expansion when a invalid IRI mapping is found
    input
    - expand/er18-in.jsonld + expand/er18-in.jsonld
    expect
    @@ -5223,11 +5251,11 @@

    -
    +
    Test ter19 Invalid keyword alias (@context)
    -
    +
    id
    #ter19
    Type
    @@ -5236,7 +5264,7 @@

    Verifies that an exception is raised on expansion when a invalid keyword alias is found
    input
    - expand/er19-in.jsonld + expand/er19-in.jsonld
    expect
    @@ -5244,11 +5272,11 @@

    -
    +
    Test ter20 Invalid IRI mapping (no vocab mapping)
    -
    +
    id
    #ter20
    Type
    @@ -5257,7 +5285,7 @@

    Verifies that an exception is raised on expansion when a invalid IRI mapping is found
    input
    - expand/er20-in.jsonld + expand/er20-in.jsonld
    expect
    @@ -5265,11 +5293,11 @@

    -
    +
    Test ter21 Invalid container mapping
    -
    +
    id
    #ter21
    Type
    @@ -5278,7 +5306,7 @@

    Verifies that an exception is raised on expansion when a invalid container mapping is found
    input
    - expand/er21-in.jsonld + expand/er21-in.jsonld
    expect
    @@ -5286,7 +5314,7 @@

    Options
    -
    +
    processingMode
    json-ld-1.0
    specVersion
    @@ -5295,11 +5323,11 @@

    -
    +
    Test ter22 Invalid language mapping
    -
    +
    id
    #ter22
    Type
    @@ -5308,7 +5336,7 @@

    Verifies that an exception is raised on expansion when a invalid language mapping is found
    input
    - expand/er22-in.jsonld + expand/er22-in.jsonld
    expect
    @@ -5316,11 +5344,11 @@

    -
    +
    Test ter23 Invalid IRI mapping (relative IRI in @type)
    -
    +
    id
    #ter23
    Type
    @@ -5329,7 +5357,7 @@

    Verifies that an exception is raised on expansion when a invalid type mapping is found
    input
    - expand/er23-in.jsonld + expand/er23-in.jsonld
    expect
    @@ -5337,11 +5365,11 @@

    -
    +
    Test ter24 List of lists (from array)
    -
    +
    id
    #ter24
    Type
    @@ -5350,7 +5378,7 @@

    Verifies that an exception is raised in Expansion when a list of lists is found
    input
    - expand/er24-in.jsonld + expand/er24-in.jsonld
    expect
    @@ -5358,18 +5386,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter25 Invalid reverse property map
    -
    +
    id
    #ter25
    Type
    @@ -5378,7 +5406,7 @@

    Verifies that an exception is raised in Expansion when a invalid reverse property map is found
    input
    - expand/er25-in.jsonld + expand/er25-in.jsonld
    expect
    @@ -5386,11 +5414,11 @@

    -
    +
    Test ter26 Colliding keywords
    -
    +
    id
    #ter26
    Type
    @@ -5399,7 +5427,7 @@

    Verifies that an exception is raised in Expansion when colliding keywords are found
    input
    - expand/er26-in.jsonld + expand/er26-in.jsonld
    expect
    @@ -5407,11 +5435,11 @@

    -
    +
    Test ter27 Invalid @id value
    -
    +
    id
    #ter27
    Type
    @@ -5420,7 +5448,7 @@

    Verifies that an exception is raised in Expansion when an invalid @id value is found
    input
    - expand/er27-in.jsonld + expand/er27-in.jsonld
    expect
    @@ -5428,11 +5456,11 @@

    -
    +
    Test ter28 Invalid type value
    -
    +
    id
    #ter28
    Type
    @@ -5441,7 +5469,7 @@

    Verifies that an exception is raised in Expansion when an invalid type value is found
    input
    - expand/er28-in.jsonld + expand/er28-in.jsonld
    expect
    @@ -5449,11 +5477,11 @@

    -
    +
    Test ter29 Invalid value object value
    -
    +
    id
    #ter29
    Type
    @@ -5462,7 +5490,7 @@

    Verifies that an exception is raised in Expansion when an invalid value object value is found
    input
    - expand/er29-in.jsonld + expand/er29-in.jsonld
    expect
    @@ -5470,11 +5498,11 @@

    -
    +
    Test ter30 Invalid language-tagged string
    -
    +
    id
    #ter30
    Type
    @@ -5483,7 +5511,7 @@

    Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
    input
    - expand/er30-in.jsonld + expand/er30-in.jsonld
    expect
    @@ -5491,11 +5519,11 @@

    -
    +
    Test ter31 Invalid @index value
    -
    +
    id
    #ter31
    Type
    @@ -5504,7 +5532,7 @@

    Verifies that an exception is raised in Expansion when an invalid @index value value is found
    input
    - expand/er31-in.jsonld + expand/er31-in.jsonld
    expect
    @@ -5512,11 +5540,11 @@

    -
    +
    Test ter32 List of lists (from array)
    -
    +
    id
    #ter32
    Type
    @@ -5525,7 +5553,7 @@

    Verifies that an exception is raised in Expansion when a list of lists is found
    input
    - expand/er32-in.jsonld + expand/er32-in.jsonld
    expect
    @@ -5533,18 +5561,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter33 Invalid @reverse value
    -
    +
    id
    #ter33
    Type
    @@ -5553,7 +5581,7 @@

    Verifies that an exception is raised in Expansion when an invalid @reverse value is found
    input
    - expand/er33-in.jsonld + expand/er33-in.jsonld
    expect
    @@ -5561,11 +5589,11 @@

    -
    +
    Test ter34 Invalid reverse property value (in @reverse)
    -
    +
    id
    #ter34
    Type
    @@ -5574,7 +5602,7 @@

    Verifies that an exception is raised in Expansion when an invalid reverse property value is found
    input
    - expand/er34-in.jsonld + expand/er34-in.jsonld
    expect
    @@ -5582,11 +5610,11 @@

    -
    +
    Test ter35 Invalid language map value
    -
    +
    id
    #ter35
    Type
    @@ -5595,7 +5623,7 @@

    Verifies that an exception is raised in Expansion when an invalid language map value is found
    input
    - expand/er35-in.jsonld + expand/er35-in.jsonld
    expect
    @@ -5603,11 +5631,11 @@

    -
    +
    Test ter36 Invalid reverse property value (through coercion)
    -
    +
    id
    #ter36
    Type
    @@ -5616,7 +5644,7 @@

    Verifies that an exception is raised in Expansion when an invalid reverse property value is found
    input
    - expand/er36-in.jsonld + expand/er36-in.jsonld
    expect
    @@ -5624,11 +5652,11 @@

    -
    +
    Test ter37 Invalid value object (unexpected keyword)
    -
    +
    id
    #ter37
    Type
    @@ -5637,7 +5665,7 @@

    Verifies that an exception is raised in Expansion when an invalid value object is found
    input
    - expand/er37-in.jsonld + expand/er37-in.jsonld
    expect
    @@ -5645,11 +5673,11 @@

    -
    +
    Test ter38 Invalid value object (@type and @language)
    -
    +
    id
    #ter38
    Type
    @@ -5658,7 +5686,7 @@

    Verifies that an exception is raised in Expansion when an invalid value object is found
    input
    - expand/er38-in.jsonld + expand/er38-in.jsonld
    expect
    @@ -5666,11 +5694,11 @@

    -
    +
    Test ter39 Invalid language-tagged value
    -
    +
    id
    #ter39
    Type
    @@ -5679,7 +5707,7 @@

    Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
    input
    - expand/er39-in.jsonld + expand/er39-in.jsonld
    expect
    @@ -5687,11 +5715,11 @@

    -
    +
    Test ter40 Invalid typed value
    -
    +
    id
    #ter40
    Type
    @@ -5700,7 +5728,7 @@

    Verifies that an exception is raised in Expansion when an invalid typed value is found
    input
    - expand/er40-in.jsonld + expand/er40-in.jsonld
    expect
    @@ -5708,11 +5736,11 @@

    -
    +
    Test ter41 Invalid set or list object
    -
    +
    id
    #ter41
    Type
    @@ -5721,7 +5749,7 @@

    Verifies that an exception is raised in Expansion when an invalid set or list object is found
    input
    - expand/er41-in.jsonld + expand/er41-in.jsonld
    expect
    @@ -5729,11 +5757,11 @@

    -
    +
    Test ter42 Keywords may not be redefined in 1.0
    -
    +
    id
    #ter42
    Type
    @@ -5742,7 +5770,7 @@

    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 + expand/er42-in.jsonld
    expect
    @@ -5750,7 +5778,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -5759,11 +5787,11 @@

    -
    +
    Test ter43 Term definition with @id: @type
    -
    +
    id
    #ter43
    Type
    @@ -5772,7 +5800,7 @@

    Expanding term mapping to @type uses @type syntax now illegal
    input
    - expand/er43-in.jsonld + expand/er43-in.jsonld
    expect
    @@ -5780,18 +5808,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter44 Redefine terms looking like compact IRIs
    -
    +
    id
    #ter44
    Type
    @@ -5800,7 +5828,7 @@

    Term definitions may look like compact IRIs, but must be consistent.
    input
    - expand/er44-in.jsonld + expand/er44-in.jsonld
    expect
    @@ -5808,18 +5836,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter48 Invalid term as relative IRI
    -
    +
    id
    #ter48
    Type
    @@ -5828,7 +5856,7 @@

    Verifies that a relative IRI cannot be used as a term.
    input
    - expand/er48-in.jsonld + expand/er48-in.jsonld
    expect
    @@ -5836,18 +5864,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter49 A relative IRI cannot be used as a prefix
    -
    +
    id
    #ter49
    Type
    @@ -5856,7 +5884,7 @@

    Verifies that a relative IRI cannot be used as a term.
    input
    - expand/er49-in.jsonld + expand/er49-in.jsonld
    expect
    @@ -5864,18 +5892,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter50 Invalid reverse id
    -
    +
    id
    #ter50
    Type
    @@ -5884,7 +5912,7 @@

    Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
    input
    - expand/er50-in.jsonld + expand/er50-in.jsonld
    expect
    @@ -5892,11 +5920,11 @@

    -
    +
    Test ter51 Invalid value object value using a value alias
    -
    +
    id
    #ter51
    Type
    @@ -5905,7 +5933,7 @@

    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 + expand/er51-in.jsonld
    expect
    @@ -5913,11 +5941,11 @@

    -
    +
    Test ter52 Definition for the empty term
    -
    +
    id
    #ter52
    Type
    @@ -5926,7 +5954,7 @@

    Verifies that an exception is raised on expansion when a context contains a definition for the empty term
    input
    - expand/er52-in.jsonld + expand/er52-in.jsonld
    expect
    @@ -5934,11 +5962,11 @@

    -
    +
    Test ter53 Invalid prefix value
    -
    +
    id
    #ter53
    Type
    @@ -5947,7 +5975,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
    input
    - expand/er53-in.jsonld + expand/er53-in.jsonld
    expect
    @@ -5955,18 +5983,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter54 Invalid value object, multiple values for @type.
    -
    +
    id
    #ter54
    Type
    @@ -5975,7 +6003,7 @@

    The value of @type in a value object MUST be a string or null.
    input
    - expand/er54-in.jsonld + expand/er54-in.jsonld
    expect
    @@ -5983,11 +6011,11 @@

    -
    +
    Test ter55 Invalid term definition, multiple values for @type.
    -
    +
    id
    #ter55
    Type
    @@ -5996,7 +6024,7 @@

    The value of @type in an expanded term definition object MUST be a string or null.
    input
    - expand/er55-in.jsonld + expand/er55-in.jsonld
    expect
    @@ -6004,11 +6032,11 @@

    -
    +
    Test ter56 Invalid redefinition of @context keyword.
    -
    +
    id
    #ter56
    Type
    @@ -6017,7 +6045,7 @@

    Verifies that an exception is raised when attempting to redefine @context.
    input
    - expand/er56-in.jsonld + expand/er56-in.jsonld
    expect
    @@ -6025,11 +6053,11 @@

    -
    +
    Test tes01 Using an array value for @context is illegal in JSON-LD 1.0
    -
    +
    id
    #tes01
    Type
    @@ -6038,7 +6066,7 @@

    Verifies that an exception is raised on expansion when a invalid container mapping is found
    input
    - expand/es01-in.jsonld + expand/es01-in.jsonld
    expect
    @@ -6046,7 +6074,7 @@

    Options
    -
    +
    processingMode
    json-ld-1.0
    specVersion
    @@ -6055,11 +6083,11 @@

    -
    +
    Test tes02 Mapping @container: [@list, @set] is invalid
    -
    +
    id
    #tes02
    Type
    @@ -6068,7 +6096,7 @@

    Testing legal combinations of @set with other container values
    input
    - expand/es02-in.jsonld + expand/es02-in.jsonld
    expect
    @@ -6076,18 +6104,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin01 Basic Included array
    -
    +
    id
    #tin01
    Type
    @@ -6096,26 +6124,26 @@

    Tests included blocks.
    input
    - expand/in01-in.jsonld + expand/in01-in.jsonld
    expect
    - expand/in01-out.jsonld + expand/in01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin02 Basic Included object
    -
    +
    id
    #tin02
    Type
    @@ -6124,26 +6152,26 @@

    Tests included blocks.
    input
    - expand/in02-in.jsonld + expand/in02-in.jsonld
    expect
    - expand/in02-out.jsonld + expand/in02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin03 Multiple properties mapping to @included are folded together
    -
    +
    id
    #tin03
    Type
    @@ -6152,26 +6180,26 @@

    Tests included blocks.
    input
    - expand/in03-in.jsonld + expand/in03-in.jsonld
    expect
    - expand/in03-out.jsonld + expand/in03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin04 Included containing @included
    -
    +
    id
    #tin04
    Type
    @@ -6180,26 +6208,26 @@

    Tests included blocks.
    input
    - expand/in04-in.jsonld + expand/in04-in.jsonld
    expect
    - expand/in04-out.jsonld + expand/in04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin05 Property value with @included
    -
    +
    id
    #tin05
    Type
    @@ -6208,26 +6236,26 @@

    Tests included blocks.
    input
    - expand/in05-in.jsonld + expand/in05-in.jsonld
    expect
    - expand/in05-out.jsonld + expand/in05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin06 json.api example
    -
    +
    id
    #tin06
    Type
    @@ -6236,26 +6264,26 @@

    Tests included blocks.
    input
    - expand/in06-in.jsonld + expand/in06-in.jsonld
    expect
    - expand/in06-out.jsonld + expand/in06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin07 Error if @included value is a string
    -
    +
    id
    #tin07
    Type
    @@ -6264,7 +6292,7 @@

    Tests included blocks.
    input
    - expand/in07-in.jsonld + expand/in07-in.jsonld
    expect
    @@ -6272,18 +6300,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin08 Error if @included value is a value object
    -
    +
    id
    #tin08
    Type
    @@ -6292,7 +6320,7 @@

    Tests included blocks.
    input
    - expand/in08-in.jsonld + expand/in08-in.jsonld
    expect
    @@ -6300,18 +6328,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin09 Error if @included value is a list object
    -
    +
    id
    #tin09
    Type
    @@ -6320,7 +6348,7 @@

    Tests included blocks.
    input
    - expand/in09-in.jsonld + expand/in09-in.jsonld
    expect
    @@ -6328,18 +6356,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs01 Expand JSON literal (boolean true)
    -
    +
    id
    #tjs01
    Type
    @@ -6348,26 +6376,26 @@

    Tests expanding property with @type @json to a JSON literal (boolean true).
    input
    - expand/js01-in.jsonld + expand/js01-in.jsonld
    expect
    - expand/js01-out.jsonld + expand/js01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs02 Expand JSON literal (boolean false)
    -
    +
    id
    #tjs02
    Type
    @@ -6376,26 +6404,26 @@

    Tests expanding property with @type @json to a JSON literal (boolean false).
    input
    - expand/js02-in.jsonld + expand/js02-in.jsonld
    expect
    - expand/js02-out.jsonld + expand/js02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs03 Expand JSON literal (double)
    -
    +
    id
    #tjs03
    Type
    @@ -6404,26 +6432,26 @@

    Tests expanding property with @type @json to a JSON literal (double).
    input
    - expand/js03-in.jsonld + expand/js03-in.jsonld
    expect
    - expand/js03-out.jsonld + expand/js03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs04 Expand JSON literal (double-zero)
    -
    +
    id
    #tjs04
    Type
    @@ -6432,26 +6460,26 @@

    Tests expanding property with @type @json to a JSON literal (double-zero).
    input
    - expand/js04-in.jsonld + expand/js04-in.jsonld
    expect
    - expand/js04-out.jsonld + expand/js04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs05 Expand JSON literal (integer)
    -
    +
    id
    #tjs05
    Type
    @@ -6460,26 +6488,26 @@

    Tests expanding property with @type @json to a JSON literal (integer).
    input
    - expand/js05-in.jsonld + expand/js05-in.jsonld
    expect
    - expand/js05-out.jsonld + expand/js05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs06 Expand JSON literal (object)
    -
    +
    id
    #tjs06
    Type
    @@ -6488,26 +6516,26 @@

    Tests expanding property with @type @json to a JSON literal (object).
    input
    - expand/js06-in.jsonld + expand/js06-in.jsonld
    expect
    - expand/js06-out.jsonld + expand/js06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs07 Expand JSON literal (array)
    -
    +
    id
    #tjs07
    Type
    @@ -6516,26 +6544,26 @@

    Tests expanding property with @type @json to a JSON literal (array).
    input
    - expand/js07-in.jsonld + expand/js07-in.jsonld
    expect
    - expand/js07-out.jsonld + expand/js07-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs08 Expand JSON literal with array canonicalization
    -
    +
    id
    #tjs08
    Type
    @@ -6544,26 +6572,26 @@

    Tests expanding JSON literal with array canonicalization.
    input
    - expand/js08-in.jsonld + expand/js08-in.jsonld
    expect
    - expand/js08-out.jsonld + expand/js08-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs09 Transform JSON literal with string canonicalization
    -
    +
    id
    #tjs09
    Type
    @@ -6572,26 +6600,26 @@

    Tests expanding JSON literal with string canonicalization.
    input
    - expand/js09-in.jsonld + expand/js09-in.jsonld
    expect
    - expand/js09-out.jsonld + expand/js09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs10 Expand JSON literal with structural canonicalization
    -
    +
    id
    #tjs10
    Type
    @@ -6600,26 +6628,26 @@

    Tests expanding JSON literal with structural canonicalization.
    input
    - expand/js10-in.jsonld + expand/js10-in.jsonld
    expect
    - expand/js10-out.jsonld + expand/js10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs11 Expand JSON literal with unicode canonicalization
    -
    +
    id
    #tjs11
    Type
    @@ -6628,26 +6656,26 @@

    Tests expanding JSON literal with unicode canonicalization.
    input
    - expand/js11-in.jsonld + expand/js11-in.jsonld
    expect
    - expand/js11-out.jsonld + expand/js11-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs12 Expand JSON literal with value canonicalization
    -
    +
    id
    #tjs12
    Type
    @@ -6656,26 +6684,26 @@

    Tests expanding JSON literal with value canonicalization.
    input
    - expand/js12-in.jsonld + expand/js12-in.jsonld
    expect
    - expand/js12-out.jsonld + expand/js12-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs13 Expand JSON literal with wierd canonicalization
    -
    +
    id
    #tjs13
    Type
    @@ -6684,26 +6712,26 @@

    Tests expanding JSON literal with wierd canonicalization.
    input
    - expand/js13-in.jsonld + expand/js13-in.jsonld
    expect
    - expand/js13-out.jsonld + expand/js13-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs14 Expand JSON literal without expanding contents
    -
    +
    id
    #tjs14
    Type
    @@ -6712,26 +6740,26 @@

    Tests expanding JSON literal does not expand terms inside json.
    input
    - expand/js14-in.jsonld + expand/js14-in.jsonld
    expect
    - expand/js14-out.jsonld + expand/js14-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs15 Expand JSON literal aleady in expanded form
    -
    +
    id
    #tjs15
    Type
    @@ -6740,26 +6768,26 @@

    Tests expanding JSON literal in expanded form.
    input
    - expand/js15-in.jsonld + expand/js15-in.jsonld
    expect
    - expand/js15-out.jsonld + 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
    @@ -6768,26 +6796,26 @@

    Tests expanding JSON literal in expanded form with aliased keys in value object.
    input
    - expand/js16-in.jsonld + expand/js16-in.jsonld
    expect
    - expand/js16-out.jsonld + expand/js16-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs17 Expand JSON literal (string)
    -
    +
    id
    #tjs17
    Type
    @@ -6796,26 +6824,26 @@

    Tests expanding property with @type @json to a JSON literal (string).
    input
    - expand/js17-in.jsonld + expand/js17-in.jsonld
    expect
    - expand/js17-out.jsonld + expand/js17-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs18 Expand JSON literal (null)
    -
    +
    id
    #tjs18
    Type
    @@ -6824,26 +6852,26 @@

    Tests expanding property with @type @json to a JSON literal (null).
    input
    - expand/js18-in.jsonld + expand/js18-in.jsonld
    expect
    - expand/js18-out.jsonld + expand/js18-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs19 Expand JSON literal with aliased @type
    -
    +
    id
    #tjs19
    Type
    @@ -6852,26 +6880,26 @@

    Tests expanding JSON literal with aliased @type.
    input
    - expand/js19-in.jsonld + expand/js19-in.jsonld
    expect
    - expand/js19-out.jsonld + expand/js19-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs20 Expand JSON literal with aliased @value
    -
    +
    id
    #tjs20
    Type
    @@ -6880,26 +6908,26 @@

    Tests expanding JSON literal with aliased @value.
    input
    - expand/js20-in.jsonld + expand/js20-in.jsonld
    expect
    - expand/js20-out.jsonld + expand/js20-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs21 Expand JSON literal with @context
    -
    +
    id
    #tjs21
    Type
    @@ -6908,26 +6936,26 @@

    Tests expanding JSON literal with a @context.
    input
    - expand/js21-in.jsonld + expand/js21-in.jsonld
    expect
    - expand/js21-out.jsonld + expand/js21-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs22 Expand JSON literal (null) aleady in expanded form.
    -
    +
    id
    #tjs22
    Type
    @@ -6936,26 +6964,26 @@

    Tests expanding property with @type @json to a JSON literal (null).
    input
    - expand/js22-in.jsonld + expand/js22-in.jsonld
    expect
    - expand/js22-out.jsonld + expand/js22-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs23 Expand JSON literal (empty array).
    -
    +
    id
    #tjs23
    Type
    @@ -6964,26 +6992,26 @@

    Tests expanding property with @type @json to a JSON literal (empty array).
    input
    - expand/js23-in.jsonld + expand/js23-in.jsonld
    expect
    - expand/js23-out.jsonld + expand/js23-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tl001 Language map with null value
    -
    +
    id
    #tl001
    Type
    @@ -6992,26 +7020,26 @@

    A language map may have a null value, which is ignored
    input
    - expand/l001-in.jsonld + expand/l001-in.jsonld
    expect
    - expand/l001-out.jsonld + expand/l001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli01 @list containing @list
    -
    +
    id
    #tli01
    Type
    @@ -7020,26 +7048,26 @@

    List of lists
    input
    - expand/li01-in.jsonld + expand/li01-in.jsonld
    expect
    - expand/li01-out.jsonld + expand/li01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli02 @list containing empty @list
    -
    +
    id
    #tli02
    Type
    @@ -7048,26 +7076,26 @@

    List of lists
    input
    - expand/li02-in.jsonld + expand/li02-in.jsonld
    expect
    - expand/li02-out.jsonld + expand/li02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli03 @list containing @list (with coercion)
    -
    +
    id
    #tli03
    Type
    @@ -7076,26 +7104,26 @@

    List of lists
    input
    - expand/li03-in.jsonld + expand/li03-in.jsonld
    expect
    - expand/li03-out.jsonld + expand/li03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli04 @list containing empty @list (with coercion)
    -
    +
    id
    #tli04
    Type
    @@ -7104,26 +7132,26 @@

    List of lists
    input
    - expand/li04-in.jsonld + expand/li04-in.jsonld
    expect
    - expand/li04-out.jsonld + expand/li04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli05 coerced @list containing an array
    -
    +
    id
    #tli05
    Type
    @@ -7132,26 +7160,26 @@

    List of lists
    input
    - expand/li05-in.jsonld + expand/li05-in.jsonld
    expect
    - expand/li05-out.jsonld + expand/li05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli06 coerced @list containing an empty array
    -
    +
    id
    #tli06
    Type
    @@ -7160,26 +7188,26 @@

    List of lists
    input
    - expand/li06-in.jsonld + expand/li06-in.jsonld
    expect
    - expand/li06-out.jsonld + expand/li06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli07 coerced @list containing deep arrays
    -
    +
    id
    #tli07
    Type
    @@ -7188,26 +7216,26 @@

    List of lists
    input
    - expand/li07-in.jsonld + expand/li07-in.jsonld
    expect
    - expand/li07-out.jsonld + expand/li07-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli08 coerced @list containing deep empty arrays
    -
    +
    id
    #tli08
    Type
    @@ -7216,26 +7244,26 @@

    List of lists
    input
    - expand/li08-in.jsonld + expand/li08-in.jsonld
    expect
    - expand/li08-out.jsonld + expand/li08-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli09 coerced @list containing multiple lists
    -
    +
    id
    #tli09
    Type
    @@ -7244,26 +7272,26 @@

    List of lists
    input
    - expand/li09-in.jsonld + expand/li09-in.jsonld
    expect
    - expand/li09-out.jsonld + expand/li09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli10 coerced @list containing mixed list values
    -
    +
    id
    #tli10
    Type
    @@ -7272,26 +7300,26 @@

    List of lists
    input
    - expand/li10-in.jsonld + expand/li10-in.jsonld
    expect
    - expand/li10-out.jsonld + expand/li10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm001 Adds @id to object not having an @id
    -
    +
    id
    #tm001
    Type
    @@ -7300,26 +7328,26 @@

    Expansion using @container: @id
    input
    - expand/m001-in.jsonld + expand/m001-in.jsonld
    expect
    - expand/m001-out.jsonld + expand/m001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm002 Retains @id in object already having an @id
    -
    +
    id
    #tm002
    Type
    @@ -7328,26 +7356,26 @@

    Expansion using @container: @id
    input
    - expand/m002-in.jsonld + expand/m002-in.jsonld
    expect
    - expand/m002-out.jsonld + expand/m002-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm003 Adds @type to object not having an @type
    -
    +
    id
    #tm003
    Type
    @@ -7356,26 +7384,26 @@

    Expansion using @container: @type
    input
    - expand/m003-in.jsonld + expand/m003-in.jsonld
    expect
    - expand/m003-out.jsonld + expand/m003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm004 Prepends @type in object already having an @type
    -
    +
    id
    #tm004
    Type
    @@ -7384,26 +7412,26 @@

    Expansion using @container: @type
    input
    - expand/m004-in.jsonld + expand/m004-in.jsonld
    expect
    - expand/m004-out.jsonld + expand/m004-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm005 Adds expanded @id to object
    -
    +
    id
    #tm005
    Type
    @@ -7412,15 +7440,15 @@

    Expansion using @container: @id
    input
    - expand/m005-in.jsonld + expand/m005-in.jsonld
    expect
    - expand/m005-out.jsonld + expand/m005-out.jsonld
    Options
    -
    +
    base
    http://example.org/
    specVersion
    @@ -7429,11 +7457,11 @@

    -
    +
    Test tm006 Adds vocabulary expanded @type to object
    -
    +
    id
    #tm006
    Type
    @@ -7442,26 +7470,26 @@

    Expansion using @container: @type
    input
    - expand/m006-in.jsonld + expand/m006-in.jsonld
    expect
    - expand/m006-out.jsonld + expand/m006-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm007 Adds document expanded @type to object
    -
    +
    id
    #tm007
    Type
    @@ -7470,26 +7498,26 @@

    Expansion using @container: @type
    input
    - expand/m007-in.jsonld + expand/m007-in.jsonld
    expect
    - expand/m007-out.jsonld + expand/m007-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm008 When type is in a type map
    -
    +
    id
    #tm008
    Type
    @@ -7498,26 +7526,26 @@

    scoped context on @type
    input
    - expand/m008-in.jsonld + expand/m008-in.jsonld
    expect
    - expand/m008-out.jsonld + expand/m008-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm009 language map with @none
    -
    +
    id
    #tm009
    Type
    @@ -7526,26 +7554,26 @@

    index on @language
    input
    - expand/m009-in.jsonld + expand/m009-in.jsonld
    expect
    - expand/m009-out.jsonld + expand/m009-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm010 language map with alias of @none
    -
    +
    id
    #tm010
    Type
    @@ -7554,26 +7582,26 @@

    index on @language
    input
    - expand/m010-in.jsonld + expand/m010-in.jsonld
    expect
    - expand/m010-out.jsonld + expand/m010-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm011 id map with @none
    -
    +
    id
    #tm011
    Type
    @@ -7582,26 +7610,26 @@

    index on @id
    input
    - expand/m011-in.jsonld + expand/m011-in.jsonld
    expect
    - expand/m011-out.jsonld + expand/m011-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm012 type map with alias of @none
    -
    +
    id
    #tm012
    Type
    @@ -7610,26 +7638,26 @@

    index on @type
    input
    - expand/m012-in.jsonld + expand/m012-in.jsonld
    expect
    - expand/m012-out.jsonld + expand/m012-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm013 graph index map with @none
    -
    +
    id
    #tm013
    Type
    @@ -7638,26 +7666,26 @@

    index on @graph and @index
    input
    - expand/m013-in.jsonld + expand/m013-in.jsonld
    expect
    - expand/m013-out.jsonld + expand/m013-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm014 graph index map with alias @none
    -
    +
    id
    #tm014
    Type
    @@ -7666,26 +7694,26 @@

    index on @graph and @index
    input
    - expand/m014-in.jsonld + expand/m014-in.jsonld
    expect
    - expand/m014-out.jsonld + expand/m014-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm015 graph id index map with aliased @none
    -
    +
    id
    #tm015
    Type
    @@ -7694,26 +7722,26 @@

    index on @graph and @id with @none
    input
    - expand/m015-in.jsonld + expand/m015-in.jsonld
    expect
    - expand/m015-out.jsonld + expand/m015-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm016 graph id index map with aliased @none
    -
    +
    id
    #tm016
    Type
    @@ -7722,26 +7750,26 @@

    index on @graph and @id with @none
    input
    - expand/m016-in.jsonld + expand/m016-in.jsonld
    expect
    - expand/m016-out.jsonld + expand/m016-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm017 string value of type map expands to node reference
    -
    +
    id
    #tm017
    Type
    @@ -7750,26 +7778,26 @@

    index on @type
    input
    - expand/m017-in.jsonld + expand/m017-in.jsonld
    expect
    - expand/m017-out.jsonld + 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
    @@ -7778,26 +7806,26 @@

    index on @type
    input
    - expand/m018-in.jsonld + expand/m018-in.jsonld
    expect
    - expand/m018-out.jsonld + 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
    @@ -7806,26 +7834,26 @@

    index on @type
    input
    - expand/m019-in.jsonld + expand/m019-in.jsonld
    expect
    - expand/m019-out.jsonld + 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
    @@ -7834,7 +7862,7 @@

    index on @type
    input
    - expand/m020-in.jsonld + expand/m020-in.jsonld
    expect
    @@ -7842,18 +7870,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn001 Expands input using @nest
    -
    +
    id
    #tn001
    Type
    @@ -7862,26 +7890,26 @@

    Expansion using @nest
    input
    - expand/n001-in.jsonld + expand/n001-in.jsonld
    expect
    - expand/n001-out.jsonld + expand/n001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn002 Expands input using aliased @nest
    -
    +
    id
    #tn002
    Type
    @@ -7890,26 +7918,26 @@

    Expansion using @nest
    input
    - expand/n002-in.jsonld + expand/n002-in.jsonld
    expect
    - expand/n002-out.jsonld + expand/n002-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn003 Appends nested values when property at base and nested
    -
    +
    id
    #tn003
    Type
    @@ -7918,26 +7946,26 @@

    Expansion using @nest
    input
    - expand/n003-in.jsonld + expand/n003-in.jsonld
    expect
    - expand/n003-out.jsonld + expand/n003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn004 Appends nested values from all @nest aliases
    -
    +
    id
    #tn004
    Type
    @@ -7946,26 +7974,26 @@

    Expansion using @nest
    input
    - expand/n004-in.jsonld + expand/n004-in.jsonld
    expect
    - expand/n004-out.jsonld + expand/n004-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn005 Nested nested containers
    -
    +
    id
    #tn005
    Type
    @@ -7974,26 +8002,26 @@

    Expansion using @nest
    input
    - expand/n005-in.jsonld + expand/n005-in.jsonld
    expect
    - expand/n005-out.jsonld + expand/n005-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn006 Arrays of nested values
    -
    +
    id
    #tn006
    Type
    @@ -8002,26 +8030,26 @@

    Expansion using @nest
    input
    - expand/n006-in.jsonld + expand/n006-in.jsonld
    expect
    - expand/n006-out.jsonld + expand/n006-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn007 A nest of arrays
    -
    +
    id
    #tn007
    Type
    @@ -8030,26 +8058,26 @@

    Expansion using @nest
    input
    - expand/n007-in.jsonld + expand/n007-in.jsonld
    expect
    - expand/n007-out.jsonld + expand/n007-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn008 Multiple keys may mapping to @type when nesting
    -
    +
    id
    #tn008
    Type
    @@ -8058,26 +8086,26 @@

    Expansion using @nest
    input
    - expand/n008-in.jsonld + expand/n008-in.jsonld
    expect
    - expand/n008-out.jsonld + expand/n008-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp001 @version may be specified after first context
    -
    +
    id
    #tp001
    Type
    @@ -8086,26 +8114,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p001-in.jsonld + expand/p001-in.jsonld
    expect
    - expand/p001-out.jsonld + expand/p001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp002 @version setting [1.0, 1.1, 1.0]
    -
    +
    id
    #tp002
    Type
    @@ -8114,26 +8142,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p002-in.jsonld + expand/p002-in.jsonld
    expect
    - expand/p002-out.jsonld + expand/p002-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp003 @version setting [1.1, 1.0]
    -
    +
    id
    #tp003
    Type
    @@ -8142,26 +8170,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p003-in.jsonld + expand/p003-in.jsonld
    expect
    - expand/p003-out.jsonld + expand/p003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp004 @version setting [1.1, 1.0, 1.1]
    -
    +
    id
    #tp004
    Type
    @@ -8170,26 +8198,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p004-in.jsonld + expand/p004-in.jsonld
    expect
    - expand/p004-out.jsonld + 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
    @@ -8198,7 +8226,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi01-in.jsonld + expand/pi01-in.jsonld
    expect
    @@ -8206,7 +8234,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -8215,11 +8243,11 @@

    -
    +
    Test tpi02 error if @container does not include @index for property-valued index
    -
    +
    id
    #tpi02
    Type
    @@ -8228,7 +8256,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi02-in.jsonld + expand/pi02-in.jsonld
    expect
    @@ -8236,18 +8264,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi03 error if @index is a keyword for property-valued index
    -
    +
    id
    #tpi03
    Type
    @@ -8256,7 +8284,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi03-in.jsonld + expand/pi03-in.jsonld
    expect
    @@ -8264,18 +8292,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi04 error if @index is not a string for property-valued index
    -
    +
    id
    #tpi04
    Type
    @@ -8284,7 +8312,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi04-in.jsonld + expand/pi04-in.jsonld
    expect
    @@ -8292,18 +8320,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi05 error if attempting to add property to value object for property-valued index
    -
    +
    id
    #tpi05
    Type
    @@ -8312,7 +8340,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi05-in.jsonld + expand/pi05-in.jsonld
    expect
    @@ -8320,18 +8348,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi06 property-valued index expands to property value, instead of @index (value)
    -
    +
    id
    #tpi06
    Type
    @@ -8340,26 +8368,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi06-in.jsonld + expand/pi06-in.jsonld
    expect
    - expand/pi06-out.jsonld + 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
    @@ -8368,26 +8396,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi07-in.jsonld + expand/pi07-in.jsonld
    expect
    - expand/pi07-out.jsonld + 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
    @@ -8396,26 +8424,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi08-in.jsonld + expand/pi08-in.jsonld
    expect
    - expand/pi08-out.jsonld + 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
    @@ -8424,26 +8452,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi09-in.jsonld + expand/pi09-in.jsonld
    expect
    - expand/pi09-out.jsonld + expand/pi09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi10 property-valued index does not output property for @none
    -
    +
    id
    #tpi10
    Type
    @@ -8452,26 +8480,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi10-in.jsonld + expand/pi10-in.jsonld
    expect
    - expand/pi10-out.jsonld + expand/pi10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi11 property-valued index adds property to graph object
    -
    +
    id
    #tpi11
    Type
    @@ -8480,26 +8508,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi11-in.jsonld + expand/pi11-in.jsonld
    expect
    - expand/pi11-out.jsonld + expand/pi11-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr01 Protect a term
    -
    +
    id
    #tpr01
    Type
    @@ -8508,7 +8536,7 @@

    Check error when overriding a protected term.
    input
    - expand/pr01-in.jsonld + expand/pr01-in.jsonld
    expect
    @@ -8516,18 +8544,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr02 Set a term to not be protected
    -
    +
    id
    #tpr02
    Type
    @@ -8536,26 +8564,26 @@

    A term with @protected: false is not protected.
    input
    - expand/pr02-in.jsonld + expand/pr02-in.jsonld
    expect
    - expand/pr02-out.jsonld + expand/pr02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr03 Protect all terms in context
    -
    +
    id
    #tpr03
    Type
    @@ -8564,7 +8592,7 @@

    A protected context protects all term definitions.
    input
    - expand/pr03-in.jsonld + expand/pr03-in.jsonld
    expect
    @@ -8572,18 +8600,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr04 Do not protect term with @protected: false
    -
    +
    id
    #tpr04
    Type
    @@ -8592,7 +8620,7 @@

    A protected context does not protect terms with @protected: false.
    input
    - expand/pr04-in.jsonld + expand/pr04-in.jsonld
    expect
    @@ -8600,18 +8628,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr05 Clear active context with protected terms from an embedded context
    -
    +
    id
    #tpr05
    Type
    @@ -8620,7 +8648,7 @@

    The Active context be set to null from an embedded context.
    input
    - expand/pr05-in.jsonld + expand/pr05-in.jsonld
    expect
    @@ -8628,18 +8656,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr06 Clear active context of protected terms from a term.
    -
    +
    id
    #tpr06
    Type
    @@ -8648,26 +8676,26 @@

    The Active context may be set to null from a scoped context of a term.
    input
    - expand/pr06-in.jsonld + expand/pr06-in.jsonld
    expect
    - expand/pr06-out.jsonld + expand/pr06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr08 Term with protected scoped context.
    -
    +
    id
    #tpr08
    Type
    @@ -8676,7 +8704,7 @@

    A scoped context can protect terms.
    input
    - expand/pr08-in.jsonld + expand/pr08-in.jsonld
    expect
    @@ -8684,18 +8712,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr09 Attempt to redefine term in other protected context.
    -
    +
    id
    #tpr09
    Type
    @@ -8704,7 +8732,7 @@

    A protected term cannot redefine another protected term.
    input
    - expand/pr09-in.jsonld + expand/pr09-in.jsonld
    expect
    @@ -8712,18 +8740,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr10 Simple protected and unprotected terms.
    -
    +
    id
    #tpr10
    Type
    @@ -8732,26 +8760,26 @@

    Simple protected and unprotected terms.
    input
    - expand/pr10-in.jsonld + expand/pr10-in.jsonld
    expect
    - expand/pr10-out.jsonld + expand/pr10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr11 Fail to override protected term.
    -
    +
    id
    #tpr11
    Type
    @@ -8760,7 +8788,7 @@

    Fail to override protected term.
    input
    - expand/pr11-in.jsonld + expand/pr11-in.jsonld
    expect
    @@ -8768,18 +8796,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr12 Scoped context fail to override protected term.
    -
    +
    id
    #tpr12
    Type
    @@ -8788,7 +8816,7 @@

    Scoped context fail to override protected term.
    input
    - expand/pr12-in.jsonld + expand/pr12-in.jsonld
    expect
    @@ -8796,18 +8824,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr13 Override unprotected term.
    -
    +
    id
    #tpr13
    Type
    @@ -8816,26 +8844,26 @@

    Override unprotected term.
    input
    - expand/pr13-in.jsonld + expand/pr13-in.jsonld
    expect
    - expand/pr13-out.jsonld + expand/pr13-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr14 Clear protection with null context.
    -
    +
    id
    #tpr14
    Type
    @@ -8844,26 +8872,26 @@

    Clear protection with null context.
    input
    - expand/pr14-in.jsonld + expand/pr14-in.jsonld
    expect
    - expand/pr14-out.jsonld + expand/pr14-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr15 Clear protection with array with null context
    -
    +
    id
    #tpr15
    Type
    @@ -8872,26 +8900,26 @@

    Clear protection with array with null context
    input
    - expand/pr15-in.jsonld + expand/pr15-in.jsonld
    expect
    - expand/pr15-out.jsonld + expand/pr15-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr16 Override protected terms after null.
    -
    +
    id
    #tpr16
    Type
    @@ -8900,26 +8928,26 @@

    Override protected terms after null.
    input
    - expand/pr16-in.jsonld + expand/pr16-in.jsonld
    expect
    - expand/pr16-out.jsonld + expand/pr16-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr17 Fail to override protected terms with type.
    -
    +
    id
    #tpr17
    Type
    @@ -8928,7 +8956,7 @@

    Fail to override protected terms with type.
    input
    - expand/pr17-in.jsonld + expand/pr17-in.jsonld
    expect
    @@ -8936,18 +8964,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr18 Fail to override protected terms with type+null+ctx.
    -
    +
    id
    #tpr18
    Type
    @@ -8956,7 +8984,7 @@

    Fail to override protected terms with type+null+ctx.
    input
    - expand/pr18-in.jsonld + expand/pr18-in.jsonld
    expect
    @@ -8964,18 +8992,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr19 Mix of protected and unprotected terms.
    -
    +
    id
    #tpr19
    Type
    @@ -8984,26 +9012,26 @@

    Mix of protected and unprotected terms.
    input
    - expand/pr19-in.jsonld + expand/pr19-in.jsonld
    expect
    - expand/pr19-out.jsonld + 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
    @@ -9012,7 +9040,7 @@

    Fail with mix of protected and unprotected terms with type+null+ctx.
    input
    - expand/pr20-in.jsonld + expand/pr20-in.jsonld
    expect
    @@ -9020,18 +9048,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr21 Fail with mix of protected and unprotected terms with type+null.
    -
    +
    id
    #tpr21
    Type
    @@ -9040,7 +9068,7 @@

    Fail with mix of protected and unprotected terms with type+null.
    input
    - expand/pr21-in.jsonld + expand/pr21-in.jsonld
    expect
    @@ -9048,18 +9076,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr22 Check legal overriding of type-scoped protected term from nested node.
    -
    +
    id
    #tpr22
    Type
    @@ -9068,26 +9096,26 @@

    Check legal overriding of type-scoped protected term from nested node.
    input
    - expand/pr22-in.jsonld + expand/pr22-in.jsonld
    expect
    - expand/pr22-out.jsonld + expand/pr22-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr23 Allows redefinition of protected alias term with same definition.
    -
    +
    id
    #tpr23
    Type
    @@ -9096,26 +9124,26 @@

    Allows redefinition of protected alias term with same definition.
    input
    - expand/pr23-in.jsonld + expand/pr23-in.jsonld
    expect
    - expand/pr23-out.jsonld + expand/pr23-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr24 Allows redefinition of protected prefix term with same definition.
    -
    +
    id
    #tpr24
    Type
    @@ -9124,26 +9152,26 @@

    Allows redefinition of protected prefix term with same definition.
    input
    - expand/pr24-in.jsonld + expand/pr24-in.jsonld
    expect
    - expand/pr24-out.jsonld + 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
    @@ -9152,26 +9180,26 @@

    Allows redefinition of terms with scoped contexts using same definitions.
    input
    - expand/pr25-in.jsonld + expand/pr25-in.jsonld
    expect
    - expand/pr25-out.jsonld + 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
    @@ -9180,7 +9208,7 @@

    Fails on redefinition of terms with scoped contexts using different definitions.
    input
    - expand/pr26-in.jsonld + expand/pr26-in.jsonld
    expect
    @@ -9188,18 +9216,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag.
    -
    +
    id
    #tpr27
    Type
    @@ -9208,26 +9236,26 @@

    Allows redefinition of protected alias term with same definition modulo protected flag.
    input
    - expand/pr27-in.jsonld + expand/pr27-in.jsonld
    expect
    - expand/pr27-out.jsonld + expand/pr27-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr28 Fails if trying to redefine a protected null term.
    -
    +
    id
    #tpr28
    Type
    @@ -9236,7 +9264,7 @@

    A protected term with a null IRI mapping cannot be redefined.
    input
    - expand/pr28-in.jsonld + expand/pr28-in.jsonld
    expect
    @@ -9244,18 +9272,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr29 Does not expand a Compact IRI using a non-prefix term.
    -
    +
    id
    #tpr29
    Type
    @@ -9264,26 +9292,26 @@

    Expansion of Compact IRIs considers if the term can be used as a prefix.
    input
    - expand/pr29-in.jsonld + expand/pr29-in.jsonld
    expect
    - expand/pr29-out.jsonld + expand/pr29-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr30 Keywords may be protected.
    -
    +
    id
    #tpr30
    Type
    @@ -9292,26 +9320,26 @@

    Keywords may not be redefined other than to protect them.
    input
    - expand/pr30-in.jsonld + expand/pr30-in.jsonld
    expect
    - expand/pr30-out.jsonld + expand/pr30-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr31 Protected keyword aliases cannot be overridden.
    -
    +
    id
    #tpr31
    Type
    @@ -9320,7 +9348,7 @@

    Keywords may not be redefined other than to protect them.
    input
    - expand/pr31-in.jsonld + expand/pr31-in.jsonld
    expect
    @@ -9328,18 +9356,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr32 Protected @type cannot be overridden.
    -
    +
    id
    #tpr32
    Type
    @@ -9348,7 +9376,7 @@

    Keywords may not be redefined other than to protect them.
    input
    - expand/pr32-in.jsonld + expand/pr32-in.jsonld
    expect
    @@ -9356,18 +9384,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr33 Fails if trying to declare a keyword alias as prefix.
    -
    +
    id
    #tpr33
    Type
    @@ -9376,7 +9404,7 @@

    Keyword aliases can not be used as prefixes.
    input
    - expand/pr33-in.jsonld + expand/pr33-in.jsonld
    expect
    @@ -9384,18 +9412,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr34 Ignores a non-keyword term starting with '@'
    -
    +
    id
    #tpr34
    Type
    @@ -9404,26 +9432,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr34-in.jsonld + expand/pr34-in.jsonld
    expect
    - expand/pr34-out.jsonld + expand/pr34-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab)
    -
    +
    id
    #tpr35
    Type
    @@ -9432,26 +9460,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr35-in.jsonld + expand/pr35-in.jsonld
    expect
    - expand/pr35-out.jsonld + 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
    @@ -9460,26 +9488,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr36-in.jsonld + expand/pr36-in.jsonld
    expect
    - expand/pr36-out.jsonld + 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
    @@ -9488,26 +9516,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr37-in.jsonld + expand/pr37-in.jsonld
    expect
    - expand/pr37-out.jsonld + 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
    @@ -9516,26 +9544,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr38-in.jsonld + expand/pr38-in.jsonld
    expect
    - expand/pr38-out.jsonld + 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
    @@ -9544,26 +9572,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr39-in.jsonld + expand/pr39-in.jsonld
    expect
    - expand/pr39-out.jsonld + expand/pr39-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr40 Protected terms and property-scoped contexts
    -
    +
    id
    #tpr40
    Type
    @@ -9572,26 +9600,26 @@

    Check overriding of protected term from property-scoped context.
    input
    - expand/pr40-in.jsonld + expand/pr40-in.jsonld
    expect
    - expand/pr40-out.jsonld + expand/pr40-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr41 Allows protected redefinition of equivalent id terms
    -
    +
    id
    #tpr41
    Type
    @@ -9600,26 +9628,26 @@

    Check protected redefinition of equivalent id terms in different forms.
    input
    - expand/pr41-in.jsonld + expand/pr41-in.jsonld
    expect
    - expand/pr41-out.jsonld + expand/pr41-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr42 Fail if protected flag not retained during redefinition
    -
    +
    id
    #tpr42
    Type
    @@ -9628,7 +9656,7 @@

    Check protected redefinition retains protected flag.
    input
    - expand/pr42-in.jsonld + expand/pr42-in.jsonld
    expect
    @@ -9636,18 +9664,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr43 Clear protection in @graph @container with null context.
    -
    +
    id
    #tpr43
    Type
    @@ -9656,26 +9684,26 @@

    Clear protection in @graph @container with null context.
    input
    - expand/pr43-in.jsonld + expand/pr43-in.jsonld
    expect
    - expand/pr43-out.jsonld + expand/pr43-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso01 @import is invalid in 1.0.
    -
    +
    id
    #tso01
    Type
    @@ -9684,7 +9712,7 @@

    @import is invalid in 1.0.
    input
    - expand/so01-in.jsonld + expand/so01-in.jsonld
    expect
    @@ -9692,7 +9720,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -9701,11 +9729,11 @@

    -
    +
    Test tso02 @import must be a string
    -
    +
    id
    #tso02
    Type
    @@ -9714,7 +9742,7 @@

    @import must be a string.
    input
    - expand/so02-in.jsonld + expand/so02-in.jsonld
    expect
    @@ -9722,18 +9750,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso03 @import overflow
    -
    +
    id
    #tso03
    Type
    @@ -9742,7 +9770,7 @@

    Processors must detect source contexts that include @import.
    input
    - expand/so03-in.jsonld + expand/so03-in.jsonld
    expect
    @@ -9750,18 +9778,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso05 @propagate: true on type-scoped context with @import
    -
    +
    id
    #tso05
    Type
    @@ -9770,26 +9798,26 @@

    type-scoped context with @propagate: true survive node-objects (with @import)
    input
    - expand/so05-in.jsonld + expand/so05-in.jsonld
    expect
    - expand/so05-out.jsonld + expand/so05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso06 @propagate: false on property-scoped context with @import
    -
    +
    id
    #tso06
    Type
    @@ -9798,26 +9826,26 @@

    property-scoped context with @propagate: false do not survive node-objects (with @import)
    input
    - expand/so06-in.jsonld + expand/so06-in.jsonld
    expect
    - expand/so06-out.jsonld + expand/so06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso07 Protect all terms in sourced context
    -
    +
    id
    #tso07
    Type
    @@ -9826,7 +9854,7 @@

    A protected context protects all term definitions.
    input
    - expand/so07-in.jsonld + expand/so07-in.jsonld
    expect
    @@ -9834,18 +9862,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso08 Override term defined in sourced context
    -
    +
    id
    #tso08
    Type
    @@ -9854,26 +9882,26 @@

    The containing context is merged into the source context.
    input
    - expand/so08-in.jsonld + expand/so08-in.jsonld
    expect
    - expand/so08-out.jsonld + expand/so08-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso09 Override @vocab defined in sourced context
    -
    +
    id
    #tso09
    Type
    @@ -9882,26 +9910,26 @@

    The containing context is merged into the source context.
    input
    - expand/so09-in.jsonld + expand/so09-in.jsonld
    expect
    - expand/so09-out.jsonld + expand/so09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso10 Protect terms in sourced context
    -
    +
    id
    #tso10
    Type
    @@ -9910,7 +9938,7 @@

    The containing context is merged into the source context.
    input
    - expand/so10-in.jsonld + expand/so10-in.jsonld
    expect
    @@ -9918,18 +9946,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso11 Override protected terms in sourced context
    -
    +
    id
    #tso11
    Type
    @@ -9938,26 +9966,26 @@

    The containing context is merged into the source context.
    input
    - expand/so11-in.jsonld + expand/so11-in.jsonld
    expect
    - expand/so11-out.jsonld + expand/so11-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso12 @import may not be used in an imported context.
    -
    +
    id
    #tso12
    Type
    @@ -9966,7 +9994,7 @@

    @import only valid within a term definition.
    input
    - expand/so12-in.jsonld + expand/so12-in.jsonld
    expect
    @@ -9974,18 +10002,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso13 @import can only reference a single context
    -
    +
    id
    #tso13
    Type
    @@ -9994,7 +10022,7 @@

    @import can only reference a single context.
    input
    - expand/so13-in.jsonld + expand/so13-in.jsonld
    expect
    @@ -10002,18 +10030,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ttn01 @type: @none is illegal in 1.0.
    -
    +
    id
    #ttn01
    Type
    @@ -10022,7 +10050,7 @@

    @type: @none is illegal in json-ld-1.0.
    input
    - expand/tn01-in.jsonld + expand/tn01-in.jsonld
    expect
    @@ -10030,7 +10058,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -10039,11 +10067,11 @@

    -
    +
    Test ttn02 @type: @none expands strings as value objects
    -
    +
    id
    #ttn02
    Type
    @@ -10052,15 +10080,15 @@

    @type: @none leaves inputs other than strings alone
    input
    - expand/tn02-in.jsonld + expand/tn02-in.jsonld
    expect
    - expand/tn02-out.jsonld + expand/tn02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1
    diff --git a/tests/expand-manifest.jsonld b/tests/expand-manifest.jsonld index 1fbd5efa..c60386c7 100644 --- a/tests/expand-manifest.jsonld +++ b/tests/expand-manifest.jsonld @@ -987,6 +987,14 @@ "input": "expand/0131-in.jsonld", "expect": "expand/0131-out.jsonld", "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#t0132", + "@type": [ "jld:PositiveEvaluationTest", "jld:ExpandTest" ], + "name": "@base does not expand property keys", + "purpose": "Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.", + "input": "expand/0132-in.jsonld", + "expect": "expand/0132-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} }, { "@id": "#tc001", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], diff --git a/tests/expand/0132-in.jsonld b/tests/expand/0132-in.jsonld new file mode 100644 index 00000000..fd89fc38 --- /dev/null +++ b/tests/expand/0132-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@version": 1.1, + "@base": "https://example.org/vocab/base/" + }, + "@id": "https://example.org/doc", + "@type": "Thing", + "name": "value" +} diff --git a/tests/expand/0132-out.jsonld b/tests/expand/0132-out.jsonld new file mode 100644 index 00000000..cee27d85 --- /dev/null +++ b/tests/expand/0132-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://example.org/doc", + "@type": ["https://example.org/vocab/base/Thing"] +}] From bbfd0b46e5d0273180885a3f0f3870bd611e61b2 Mon Sep 17 00:00:00 2001 From: anatoly-scherbakov Date: Sat, 11 Apr 2026 09:23:45 +0000 Subject: [PATCH 3/8] Automated report generation --- tests/expand-manifest.html | 3426 ++++++++++++++++++------------------ 1 file changed, 1713 insertions(+), 1713 deletions(-) diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index d9c5b236..d86c64dd 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -1,17 +1,17 @@ - + Expansion - - + +

    - - W3C + + W3C

    Expansion

    @@ -69,13 +69,13 @@

    Contributing Tests

    that you will be creating a new test or fix and the purpose of the change.
  • Clone the git repository: git://github.com/w3c/json-ld-api.git
  • -
  • Make your changes and submit them via github, or via a 'git format-patch' +
  • 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.

    +

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

    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
    @@ -85,12 +85,12 @@

    Disclaimer

    Test sequence:

    -
    -
    +
    +
    Test t0001 drop free-floating nodes
    -
    +
    id
    #t0001
    Type
    @@ -99,19 +99,19 @@

    Expand drops unreferenced nodes having only @id
    input
    - expand/0001-in.jsonld + expand/0001-in.jsonld
    expect
    - expand/0001-out.jsonld + expand/0001-out.jsonld

    -
    +
    Test t0002 basic
    -
    +
    id
    #t0002
    Type
    @@ -120,19 +120,19 @@

    Expanding terms with different types of values
    input
    - expand/0002-in.jsonld + expand/0002-in.jsonld
    expect
    - expand/0002-out.jsonld + expand/0002-out.jsonld

    -
    +
    Test t0003 drop null and unmapped properties
    -
    +
    id
    #t0003
    Type
    @@ -141,19 +141,19 @@

    Verifies that null values and unmapped properties are removed from expanded output
    input
    - expand/0003-in.jsonld + expand/0003-in.jsonld
    expect
    - expand/0003-out.jsonld + expand/0003-out.jsonld

    -
    +
    Test t0004 optimize @set, keep empty arrays
    -
    +
    id
    #t0004
    Type
    @@ -162,19 +162,19 @@

    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 + expand/0004-in.jsonld
    expect
    - expand/0004-out.jsonld + expand/0004-out.jsonld

    -
    +
    Test t0005 do not expand aliased @id/@type
    -
    +
    id
    #t0005
    Type
    @@ -183,19 +183,19 @@

    If a keyword is aliased, it is not used when expanding
    input
    - expand/0005-in.jsonld + expand/0005-in.jsonld
    expect
    - expand/0005-out.jsonld + expand/0005-out.jsonld

    -
    +
    Test t0006 alias keywords
    -
    +
    id
    #t0006
    Type
    @@ -204,19 +204,19 @@

    Aliased keywords expand in resulting document
    input
    - expand/0006-in.jsonld + expand/0006-in.jsonld
    expect
    - expand/0006-out.jsonld + expand/0006-out.jsonld

    -
    +
    Test t0007 date type-coercion
    -
    +
    id
    #t0007
    Type
    @@ -225,19 +225,19 @@

    Expand strings to expanded value with @type: xsd:dateTime
    input
    - expand/0007-in.jsonld + expand/0007-in.jsonld
    expect
    - expand/0007-out.jsonld + expand/0007-out.jsonld

    -
    +
    Test t0008 @value with @language
    -
    +
    id
    #t0008
    Type
    @@ -246,19 +246,19 @@

    Keep expanded values with @language, drop non-conforming value objects containing just @language
    input
    - expand/0008-in.jsonld + expand/0008-in.jsonld
    expect
    - expand/0008-out.jsonld + expand/0008-out.jsonld

    -
    +
    Test t0009 @graph with terms
    -
    +
    id
    #t0009
    Type
    @@ -267,19 +267,19 @@

    Use of @graph to contain multiple nodes within array
    input
    - expand/0009-in.jsonld + expand/0009-in.jsonld
    expect
    - expand/0009-out.jsonld + expand/0009-out.jsonld

    -
    +
    Test t0010 native types
    -
    +
    id
    #t0010
    Type
    @@ -288,19 +288,19 @@

    Expanding native scalar retains native scalar within expanded value
    input
    - expand/0010-in.jsonld + expand/0010-in.jsonld
    expect
    - expand/0010-out.jsonld + expand/0010-out.jsonld

    -
    +
    Test t0011 coerced @id
    -
    +
    id
    #t0011
    Type
    @@ -309,19 +309,19 @@

    A value of a property with @type: @id coercion expands to a node reference
    input
    - expand/0011-in.jsonld + expand/0011-in.jsonld
    expect
    - expand/0011-out.jsonld + expand/0011-out.jsonld

    -
    +
    Test t0012 @graph with embed
    -
    +
    id
    #t0012
    Type
    @@ -330,19 +330,19 @@

    Use of @graph to contain multiple nodes within array
    input
    - expand/0012-in.jsonld + expand/0012-in.jsonld
    expect
    - expand/0012-out.jsonld + expand/0012-out.jsonld

    -
    +
    Test t0013 expand already expanded
    -
    +
    id
    #t0013
    Type
    @@ -351,19 +351,19 @@

    Expand does not mess up already expanded document
    input
    - expand/0013-in.jsonld + expand/0013-in.jsonld
    expect
    - expand/0013-out.jsonld + expand/0013-out.jsonld

    -
    +
    Test t0014 @set of @value objects with keyword aliases
    -
    +
    id
    #t0014
    Type
    @@ -372,19 +372,19 @@

    Expanding aliased @set and @value
    input
    - expand/0014-in.jsonld + expand/0014-in.jsonld
    expect
    - expand/0014-out.jsonld + expand/0014-out.jsonld

    -
    +
    Test t0015 collapse set of sets, keep empty lists
    -
    +
    id
    #t0015
    Type
    @@ -393,19 +393,19 @@

    An array of multiple @set nodes are collapsed into a single array
    input
    - expand/0015-in.jsonld + expand/0015-in.jsonld
    expect
    - expand/0015-out.jsonld + expand/0015-out.jsonld

    -
    +
    Test t0016 context reset
    -
    +
    id
    #t0016
    Type
    @@ -414,19 +414,19 @@

    Setting @context to null within an embedded object resets back to initial context state
    input
    - expand/0016-in.jsonld + expand/0016-in.jsonld
    expect
    - expand/0016-out.jsonld + expand/0016-out.jsonld

    -
    +
    Test t0017 @graph and @id aliased
    -
    +
    id
    #t0017
    Type
    @@ -435,19 +435,19 @@

    Expanding with @graph and @id aliases
    input
    - expand/0017-in.jsonld + expand/0017-in.jsonld
    expect
    - expand/0017-out.jsonld + expand/0017-out.jsonld

    -
    +
    Test t0018 override default @language
    -
    +
    id
    #t0018
    Type
    @@ -456,19 +456,19 @@

    override default @language in terms; only language-tag strings
    input
    - expand/0018-in.jsonld + expand/0018-in.jsonld
    expect
    - expand/0018-out.jsonld + expand/0018-out.jsonld

    -
    +
    Test t0019 remove @value = null
    -
    +
    id
    #t0019
    Type
    @@ -477,19 +477,19 @@

    Expanding a value of null removes the value
    input
    - expand/0019-in.jsonld + expand/0019-in.jsonld
    expect
    - expand/0019-out.jsonld + expand/0019-out.jsonld

    -
    +
    Test t0020 do not remove @graph if not at top-level
    -
    +
    id
    #t0020
    Type
    @@ -498,19 +498,19 @@

    @graph used under a node is retained
    input
    - expand/0020-in.jsonld + expand/0020-in.jsonld
    expect
    - expand/0020-out.jsonld + expand/0020-out.jsonld

    -
    +
    Test t0021 do not remove @graph at top-level if not only property
    -
    +
    id
    #t0021
    Type
    @@ -519,19 +519,19 @@

    @graph used at the top level is retained if there are other properties
    input
    - expand/0021-in.jsonld + expand/0021-in.jsonld
    expect
    - expand/0021-out.jsonld + expand/0021-out.jsonld

    -
    +
    Test t0022 expand value with default language
    -
    +
    id
    #t0022
    Type
    @@ -540,19 +540,19 @@

    Expanding with a default language applies that language to string values
    input
    - expand/0022-in.jsonld + expand/0022-in.jsonld
    expect
    - expand/0022-out.jsonld + expand/0022-out.jsonld

    -
    +
    Test t0023 Expanding list/set with coercion
    -
    +
    id
    #t0023
    Type
    @@ -561,19 +561,19 @@

    Expanding lists and sets with properties having coercion coerces list/set values
    input
    - expand/0023-in.jsonld + expand/0023-in.jsonld
    expect
    - expand/0023-out.jsonld + expand/0023-out.jsonld

    -
    +
    Test t0024 Multiple contexts
    -
    +
    id
    #t0024
    Type
    @@ -582,19 +582,19 @@

    Tests that contexts in an array are merged
    input
    - expand/0024-in.jsonld + expand/0024-in.jsonld
    expect
    - expand/0024-out.jsonld + expand/0024-out.jsonld

    -
    +
    Test t0025 Problematic IRI expansion tests
    -
    +
    id
    #t0025
    Type
    @@ -603,19 +603,19 @@

    Expanding different kinds of terms and Compact IRIs
    input
    - expand/0025-in.jsonld + expand/0025-in.jsonld
    expect
    - expand/0025-out.jsonld + expand/0025-out.jsonld

    -
    +
    Test t0026 Term definition with @id: @type
    -
    +
    id
    #t0026
    Type
    @@ -624,26 +624,26 @@

    Expanding term mapping to @type uses @type syntax
    input
    - expand/0026-in.jsonld + expand/0026-in.jsonld
    expect
    - expand/0026-out.jsonld + expand/0026-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0027 Duplicate values in @list and @set
    -
    +
    id
    #t0027
    Type
    @@ -652,19 +652,19 @@

    Duplicate values in @list and @set are not merged
    input
    - expand/0027-in.jsonld + expand/0027-in.jsonld
    expect
    - expand/0027-out.jsonld + expand/0027-out.jsonld

    -
    +
    Test t0028 Use @vocab in properties and @type but not in @id
    -
    +
    id
    #t0028
    Type
    @@ -673,19 +673,19 @@

    @vocab is used to compact properties and @type, but is not used for @id
    input
    - expand/0028-in.jsonld + expand/0028-in.jsonld
    expect
    - expand/0028-out.jsonld + expand/0028-out.jsonld

    -
    +
    Test t0029 Relative IRIs
    -
    +
    id
    #t0029
    Type
    @@ -694,19 +694,19 @@

    @base is used to compact @id; test with different relative IRIs
    input
    - expand/0029-in.jsonld + expand/0029-in.jsonld
    expect
    - expand/0029-out.jsonld + expand/0029-out.jsonld

    -
    +
    Test t0030 Language maps
    -
    +
    id
    #t0030
    Type
    @@ -715,19 +715,19 @@

    Language Maps expand values to include @language
    input
    - expand/0030-in.jsonld + expand/0030-in.jsonld
    expect
    - expand/0030-out.jsonld + expand/0030-out.jsonld

    -
    +
    Test t0031 type-coercion of native types
    -
    +
    id
    #t0031
    Type
    @@ -736,19 +736,19 @@

    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 + expand/0031-in.jsonld
    expect
    - expand/0031-out.jsonld + expand/0031-out.jsonld

    -
    +
    Test t0032 Null term and @vocab
    -
    +
    id
    #t0032
    Type
    @@ -757,19 +757,19 @@

    Mapping a term to null decouples it from @vocab
    input
    - expand/0032-in.jsonld + expand/0032-in.jsonld
    expect
    - expand/0032-out.jsonld + expand/0032-out.jsonld

    -
    +
    Test t0033 Using @vocab with with type-coercion
    -
    +
    id
    #t0033
    Type
    @@ -778,19 +778,19 @@

    Verifies that terms can be defined using @vocab
    input
    - expand/0033-in.jsonld + expand/0033-in.jsonld
    expect
    - expand/0033-out.jsonld + expand/0033-out.jsonld

    -
    +
    Test t0034 Multiple properties expanding to the same IRI
    -
    +
    id
    #t0034
    Type
    @@ -799,19 +799,19 @@

    Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms
    input
    - expand/0034-in.jsonld + expand/0034-in.jsonld
    expect
    - expand/0034-out.jsonld + expand/0034-out.jsonld

    -
    +
    Test t0035 Language maps with @vocab, default language, and colliding property
    -
    +
    id
    #t0035
    Type
    @@ -820,19 +820,19 @@

    Pathological tests of language maps
    input
    - expand/0035-in.jsonld + expand/0035-in.jsonld
    expect
    - expand/0035-out.jsonld + expand/0035-out.jsonld

    -
    +
    Test t0036 Expanding @index
    -
    +
    id
    #t0036
    Type
    @@ -841,19 +841,19 @@

    Expanding index maps for terms defined with @container: @index
    input
    - expand/0036-in.jsonld + expand/0036-in.jsonld
    expect
    - expand/0036-out.jsonld + expand/0036-out.jsonld

    -
    +
    Test t0037 Expanding @reverse
    -
    +
    id
    #t0037
    Type
    @@ -862,19 +862,19 @@

    Expanding @reverse keeps @reverse
    input
    - expand/0037-in.jsonld + expand/0037-in.jsonld
    expect
    - expand/0037-out.jsonld + expand/0037-out.jsonld

    -
    +
    Test t0038 Expanding blank node labels
    -
    +
    id
    #t0038
    Type
    @@ -883,26 +883,26 @@

    Blank nodes are not relabeled during expansion
    input
    - expand/0038-in.jsonld + expand/0038-in.jsonld
    expect
    - expand/0038-out.jsonld + expand/0038-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0039 Using terms in a reverse-maps
    -
    +
    id
    #t0039
    Type
    @@ -911,19 +911,19 @@

    Terms within @reverse are expanded
    input
    - expand/0039-in.jsonld + expand/0039-in.jsonld
    expect
    - expand/0039-out.jsonld + expand/0039-out.jsonld

    -
    +
    Test t0040 language and index expansion on non-objects
    -
    +
    id
    #t0040
    Type
    @@ -932,19 +932,19 @@

    Only invoke language and index map expansion if the value is a JSON object
    input
    - expand/0040-in.jsonld + expand/0040-in.jsonld
    expect
    - expand/0040-out.jsonld + expand/0040-out.jsonld

    -
    +
    Test t0041 @language: null
    -
    +
    id
    #t0041
    Type
    @@ -953,19 +953,19 @@

    @language: null resets the default language
    input
    - expand/0041-in.jsonld + expand/0041-in.jsonld
    expect
    - expand/0041-out.jsonld + expand/0041-out.jsonld

    -
    +
    Test t0042 Reverse properties
    -
    +
    id
    #t0042
    Type
    @@ -974,19 +974,19 @@

    Expanding terms defined as reverse properties uses @reverse in expanded document
    input
    - expand/0042-in.jsonld + expand/0042-in.jsonld
    expect
    - expand/0042-out.jsonld + expand/0042-out.jsonld

    -
    +
    Test t0043 Using reverse properties inside a @reverse-container
    -
    +
    id
    #t0043
    Type
    @@ -995,19 +995,19 @@

    Expanding a reverse property within a @reverse undoes both reversals
    input
    - expand/0043-in.jsonld + expand/0043-in.jsonld
    expect
    - expand/0043-out.jsonld + expand/0043-out.jsonld

    -
    +
    Test t0044 Index maps with language mappings
    -
    +
    id
    #t0044
    Type
    @@ -1016,19 +1016,19 @@

    Ensure index maps use language mapping
    input
    - expand/0044-in.jsonld + expand/0044-in.jsonld
    expect
    - expand/0044-out.jsonld + expand/0044-out.jsonld

    -
    +
    Test t0045 Top-level value objects
    -
    +
    id
    #t0045
    Type
    @@ -1037,19 +1037,19 @@

    Expanding top-level value objects causes them to be removed
    input
    - expand/0045-in.jsonld + expand/0045-in.jsonld
    expect
    - expand/0045-out.jsonld + expand/0045-out.jsonld

    -
    +
    Test t0046 Free-floating nodes
    -
    +
    id
    #t0046
    Type
    @@ -1058,19 +1058,19 @@

    Expanding free-floating nodes causes them to be removed
    input
    - expand/0046-in.jsonld + expand/0046-in.jsonld
    expect
    - expand/0046-out.jsonld + expand/0046-out.jsonld

    -
    +
    Test t0047 Free-floating values in sets and free-floating lists
    -
    +
    id
    #t0047
    Type
    @@ -1079,19 +1079,19 @@

    Free-floating values in sets are removed, free-floating lists are removed completely
    input
    - expand/0047-in.jsonld + expand/0047-in.jsonld
    expect
    - expand/0047-out.jsonld + expand/0047-out.jsonld

    -
    +
    Test t0048 Terms are ignored in @id
    -
    +
    id
    #t0048
    Type
    @@ -1100,19 +1100,19 @@

    Values of @id are not expanded as terms
    input
    - expand/0048-in.jsonld + expand/0048-in.jsonld
    expect
    - expand/0048-out.jsonld + expand/0048-out.jsonld

    -
    +
    Test t0049 String values of reverse properties
    -
    +
    id
    #t0049
    Type
    @@ -1121,19 +1121,19 @@

    String values of a reverse property with @type: @id are treated as IRIs
    input
    - expand/0049-in.jsonld + expand/0049-in.jsonld
    expect
    - expand/0049-out.jsonld + expand/0049-out.jsonld

    -
    +
    Test t0050 Term definitions with prefix separate from prefix definitions
    -
    +
    id
    #t0050
    Type
    @@ -1142,19 +1142,19 @@

    Term definitions using compact IRIs don't inherit the definitions of the prefix
    input
    - expand/0050-in.jsonld + expand/0050-in.jsonld
    expect
    - expand/0050-out.jsonld + expand/0050-out.jsonld

    -
    +
    Test t0051 Expansion of keyword aliases in term definitions
    -
    +
    id
    #t0051
    Type
    @@ -1163,19 +1163,19 @@

    Expanding terms which are keyword aliases
    input
    - expand/0051-in.jsonld + expand/0051-in.jsonld
    expect
    - expand/0051-out.jsonld + expand/0051-out.jsonld

    -
    +
    Test t0052 @vocab-relative IRIs in term definitions
    -
    +
    id
    #t0052
    Type
    @@ -1184,19 +1184,19 @@

    If @vocab is defined, term definitions are expanded relative to @vocab
    input
    - expand/0052-in.jsonld + expand/0052-in.jsonld
    expect
    - expand/0052-out.jsonld + expand/0052-out.jsonld

    -
    +
    Test t0053 Expand absolute IRI with @type: @vocab
    -
    +
    id
    #t0053
    Type
    @@ -1205,19 +1205,19 @@

    Expanding values of properties of @type: @vocab does not further expand absolute IRIs
    input
    - expand/0053-in.jsonld + expand/0053-in.jsonld
    expect
    - expand/0053-out.jsonld + expand/0053-out.jsonld

    -
    +
    Test t0054 Expand term with @type: @vocab
    -
    +
    id
    #t0054
    Type
    @@ -1226,19 +1226,19 @@

    Expanding values of properties of @type: @vocab does not expand term values
    input
    - expand/0054-in.jsonld + expand/0054-in.jsonld
    expect
    - expand/0054-out.jsonld + expand/0054-out.jsonld

    -
    +
    Test t0055 Expand @vocab-relative term with @type: @vocab
    -
    +
    id
    #t0055
    Type
    @@ -1247,19 +1247,19 @@

    Expanding values of properties of @type: @vocab expands relative IRIs using @vocab
    input
    - expand/0055-in.jsonld + expand/0055-in.jsonld
    expect
    - expand/0055-out.jsonld + expand/0055-out.jsonld

    -
    +
    Test t0056 Use terms with @type: @vocab but not with @type: @id
    -
    +
    id
    #t0056
    Type
    @@ -1268,19 +1268,19 @@

    Checks that expansion uses appropriate base depending on term definition having @type @id or @vocab
    input
    - expand/0056-in.jsonld + expand/0056-in.jsonld
    expect
    - expand/0056-out.jsonld + expand/0056-out.jsonld

    -
    +
    Test t0057 Expand relative IRI with @type: @vocab
    -
    +
    id
    #t0057
    Type
    @@ -1289,19 +1289,19 @@

    Relative values of terms with @type: @vocab expand relative to @vocab
    input
    - expand/0057-in.jsonld + expand/0057-in.jsonld
    expect
    - expand/0057-out.jsonld + expand/0057-out.jsonld

    -
    +
    Test t0058 Expand compact IRI with @type: @vocab
    -
    +
    id
    #t0058
    Type
    @@ -1310,19 +1310,19 @@

    Compact IRIs are expanded normally even if term has @type: @vocab
    input
    - expand/0058-in.jsonld + expand/0058-in.jsonld
    expect
    - expand/0058-out.jsonld + expand/0058-out.jsonld

    -
    +
    Test t0059 Reset @vocab by setting it to null
    -
    +
    id
    #t0059
    Type
    @@ -1331,19 +1331,19 @@

    Setting @vocab to null removes a previous definition
    input
    - expand/0059-in.jsonld + expand/0059-in.jsonld
    expect
    - expand/0059-out.jsonld + expand/0059-out.jsonld

    -
    +
    Test t0060 Overwrite document base with @base and reset it again
    -
    +
    id
    #t0060
    Type
    @@ -1352,19 +1352,19 @@

    Setting @base to an IRI and then resetting it to nil
    input
    - expand/0060-in.jsonld + expand/0060-in.jsonld
    expect
    - expand/0060-out.jsonld + expand/0060-out.jsonld

    -
    +
    Test t0061 Coercing native types to arbitrary datatypes
    -
    +
    id
    #t0061
    Type
    @@ -1373,19 +1373,19 @@

    Expanding native types when coercing to arbitrary datatypes
    input
    - expand/0061-in.jsonld + expand/0061-in.jsonld
    expect
    - expand/0061-out.jsonld + expand/0061-out.jsonld

    -
    +
    Test t0062 Various relative IRIs with with @base
    -
    +
    id
    #t0062
    Type
    @@ -1394,19 +1394,19 @@

    Pathological relative IRIs
    input
    - expand/0062-in.jsonld + expand/0062-in.jsonld
    expect
    - expand/0062-out.jsonld + expand/0062-out.jsonld

    -
    +
    Test t0063 Reverse property and index container
    -
    +
    id
    #t0063
    Type
    @@ -1415,19 +1415,19 @@

    Expaning reverse properties with an index-container
    input
    - expand/0063-in.jsonld + expand/0063-in.jsonld
    expect
    - expand/0063-out.jsonld + expand/0063-out.jsonld

    -
    +
    Test t0064 bnode values of reverse properties
    -
    +
    id
    #t0064
    Type
    @@ -1436,19 +1436,19 @@

    Expand reverse property whose values are unlabeled blank nodes
    input
    - expand/0064-in.jsonld + expand/0064-in.jsonld
    expect
    - expand/0064-out.jsonld + expand/0064-out.jsonld

    -
    +
    Test t0065 Drop unmapped keys in reverse map
    -
    +
    id
    #t0065
    Type
    @@ -1457,19 +1457,19 @@

    Keys that are not mapped to an IRI in a reverse-map are dropped
    input
    - expand/0065-in.jsonld + expand/0065-in.jsonld
    expect
    - expand/0065-out.jsonld + expand/0065-out.jsonld

    -
    +
    Test t0066 Reverse-map keys with @vocab
    -
    +
    id
    #t0066
    Type
    @@ -1478,19 +1478,19 @@

    Expand uses @vocab to expand keys in reverse-maps
    input
    - expand/0066-in.jsonld + expand/0066-in.jsonld
    expect
    - expand/0066-out.jsonld + expand/0066-out.jsonld

    -
    +
    Test t0067 prefix://suffix not a compact IRI
    -
    +
    id
    #t0067
    Type
    @@ -1499,19 +1499,19 @@

    prefix:suffix values are not interpreted as compact IRIs if suffix begins with two slashes
    input
    - expand/0067-in.jsonld + expand/0067-in.jsonld
    expect
    - expand/0067-out.jsonld + expand/0067-out.jsonld

    -
    +
    Test t0068 _:suffix values are not a compact IRI
    -
    +
    id
    #t0068
    Type
    @@ -1520,19 +1520,19 @@

    prefix:suffix values are not interpreted as compact IRIs if prefix is an underscore
    input
    - expand/0068-in.jsonld + expand/0068-in.jsonld
    expect
    - expand/0068-out.jsonld + expand/0068-out.jsonld

    -
    +
    Test t0069 Compact IRI as term with type mapping
    -
    +
    id
    #t0069
    Type
    @@ -1541,19 +1541,19 @@

    Redefine compact IRI to define type mapping using the compact IRI itself as value of @id
    input
    - expand/0069-in.jsonld + expand/0069-in.jsonld
    expect
    - expand/0069-out.jsonld + expand/0069-out.jsonld

    -
    +
    Test t0070 Compact IRI as term defined using equivalent compact IRI
    -
    +
    id
    #t0070
    Type
    @@ -1562,19 +1562,19 @@

    Redefine compact IRI to define type mapping using the compact IRI itself as string value
    input
    - expand/0070-in.jsonld + expand/0070-in.jsonld
    expect
    - expand/0070-out.jsonld + expand/0070-out.jsonld

    -
    +
    Test t0071 Redefine terms looking like compact IRIs
    -
    +
    id
    #t0071
    Type
    @@ -1583,26 +1583,26 @@

    Term definitions may look like compact IRIs
    input
    - expand/0071-in.jsonld + expand/0071-in.jsonld
    expect
    - expand/0071-out.jsonld + expand/0071-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0072 Redefine term using @vocab, not itself
    -
    +
    id
    #t0072
    Type
    @@ -1611,19 +1611,19 @@

    Redefining a term as itself when @vocab is defined uses @vocab, not previous term definition
    input
    - expand/0072-in.jsonld + expand/0072-in.jsonld
    expect
    - expand/0072-out.jsonld + expand/0072-out.jsonld

    -
    +
    Test t0073 @context not first property
    -
    +
    id
    #t0073
    Type
    @@ -1632,19 +1632,19 @@

    Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition
    input
    - expand/0073-in.jsonld + expand/0073-in.jsonld
    expect
    - expand/0073-out.jsonld + expand/0073-out.jsonld

    -
    +
    Test t0074 @id not first property
    -
    +
    id
    #t0074
    Type
    @@ -1653,19 +1653,19 @@

    Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition
    input
    - expand/0074-in.jsonld + expand/0074-in.jsonld
    expect
    - expand/0074-out.jsonld + expand/0074-out.jsonld

    -
    +
    Test t0075 @vocab as blank node identifier
    -
    +
    id
    #t0075
    Type
    @@ -1674,26 +1674,26 @@

    Use @vocab to map all properties to blank node identifiers
    input
    - expand/0075-in.jsonld + expand/0075-in.jsonld
    expect
    - expand/0075-out.jsonld + expand/0075-out.jsonld
    Options
    -
    +
    processingMode
    json-ld-1.0

    -
    +
    Test t0076 base option overrides document location
    -
    +
    id
    #t0076
    Type
    @@ -1702,26 +1702,26 @@

    Use of the base option overrides the document location
    input
    - expand/0076-in.jsonld + expand/0076-in.jsonld
    expect
    - expand/0076-out.jsonld + expand/0076-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0077 expandContext option
    -
    +
    id
    #t0077
    Type
    @@ -1730,26 +1730,26 @@

    Use of the expandContext option to expand the input document
    input
    - expand/0077-in.jsonld + expand/0077-in.jsonld
    expect
    - expand/0077-out.jsonld + expand/0077-out.jsonld
    Options
    -
    +
    expandContext
    expand/0077-context.jsonld

    -
    +
    Test t0078 multiple reverse properties
    -
    +
    id
    #t0078
    Type
    @@ -1758,19 +1758,19 @@

    Use of multiple reverse properties
    input
    - expand/0078-in.jsonld + expand/0078-in.jsonld
    expect
    - expand/0078-out.jsonld + expand/0078-out.jsonld

    -
    +
    Test t0079 expand @graph container
    -
    +
    id
    #t0079
    Type
    @@ -1779,26 +1779,26 @@

    Use of @graph containers
    input
    - expand/0079-in.jsonld + expand/0079-in.jsonld
    expect
    - expand/0079-out.jsonld + expand/0079-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0080 expand [@graph, @set] container
    -
    +
    id
    #t0080
    Type
    @@ -1807,26 +1807,26 @@

    Use of [@graph, @set] containers
    input
    - expand/0080-in.jsonld + expand/0080-in.jsonld
    expect
    - expand/0080-out.jsonld + expand/0080-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0081 Creates an @graph container if value is a graph
    -
    +
    id
    #t0081
    Type
    @@ -1835,26 +1835,26 @@

    Don't double-expand an already expanded graph
    input
    - expand/0081-in.jsonld + expand/0081-in.jsonld
    expect
    - expand/0081-out.jsonld + expand/0081-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0082 expand [@graph, @index] container
    -
    +
    id
    #t0082
    Type
    @@ -1863,26 +1863,26 @@

    Use of @graph containers with @index
    input
    - expand/0082-in.jsonld + expand/0082-in.jsonld
    expect
    - expand/0082-out.jsonld + expand/0082-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0083 expand [@graph, @index, @set] container
    -
    +
    id
    #t0083
    Type
    @@ -1891,26 +1891,26 @@

    Use of @graph containers with @index and @set
    input
    - expand/0083-in.jsonld + expand/0083-in.jsonld
    expect
    - expand/0083-out.jsonld + 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
    @@ -1919,26 +1919,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0084-in.jsonld + expand/0084-in.jsonld
    expect
    - expand/0084-out.jsonld + expand/0084-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0085 expand [@graph, @id] container
    -
    +
    id
    #t0085
    Type
    @@ -1947,26 +1947,26 @@

    Use of @graph containers with @id
    input
    - expand/0085-in.jsonld + expand/0085-in.jsonld
    expect
    - expand/0085-out.jsonld + expand/0085-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0086 expand [@graph, @id, @set] container
    -
    +
    id
    #t0086
    Type
    @@ -1975,26 +1975,26 @@

    Use of @graph containers with @id and @set
    input
    - expand/0086-in.jsonld + expand/0086-in.jsonld
    expect
    - expand/0086-out.jsonld + 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
    @@ -2003,26 +2003,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0087-in.jsonld + expand/0087-in.jsonld
    expect
    - expand/0087-out.jsonld + expand/0087-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0088 Do not expand native values to IRIs
    -
    +
    id
    #t0088
    Type
    @@ -2031,19 +2031,19 @@

    Value Expansion does not expand native values, such as booleans, to a node object
    input
    - expand/0088-in.jsonld + expand/0088-in.jsonld
    expect
    - expand/0088-out.jsonld + expand/0088-out.jsonld

    -
    +
    Test t0089 empty @base applied to the base option
    -
    +
    id
    #t0089
    Type
    @@ -2052,26 +2052,26 @@

    Use of an empty @base is applied to the base option
    input
    - expand/0089-in.jsonld + expand/0089-in.jsonld
    expect
    - expand/0089-out.jsonld + expand/0089-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0090 relative @base overrides base option and document location
    -
    +
    id
    #t0090
    Type
    @@ -2080,26 +2080,26 @@

    Use of a relative @base overrides base option and document location
    input
    - expand/0090-in.jsonld + expand/0090-in.jsonld
    expect
    - expand/0090-out.jsonld + expand/0090-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0091 relative and absolute @base overrides base option and document location
    -
    +
    id
    #t0091
    Type
    @@ -2108,26 +2108,26 @@

    Use of a relative and absolute @base overrides base option and document location
    input
    - expand/0091-in.jsonld + expand/0091-in.jsonld
    expect
    - expand/0091-out.jsonld + expand/0091-out.jsonld
    Options
    -
    +
    base
    http://example/base/

    -
    +
    Test t0092 Various relative IRIs as properties with with @vocab: ''
    -
    +
    id
    #t0092
    Type
    @@ -2136,26 +2136,26 @@

    Pathological relative property IRIs
    input
    - expand/0092-in.jsonld + expand/0092-in.jsonld
    expect
    - expand/0092-out.jsonld + expand/0092-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0093 expand @graph container (multiple objects)
    -
    +
    id
    #t0093
    Type
    @@ -2164,26 +2164,26 @@

    Use of @graph containers
    input
    - expand/0093-in.jsonld + expand/0093-in.jsonld
    expect
    - expand/0093-out.jsonld + expand/0093-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0094 expand [@graph, @set] container (multiple objects)
    -
    +
    id
    #t0094
    Type
    @@ -2192,26 +2192,26 @@

    Use of [@graph, @set] containers
    input
    - expand/0094-in.jsonld + expand/0094-in.jsonld
    expect
    - expand/0094-out.jsonld + 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
    @@ -2220,26 +2220,26 @@

    Double-expand an already expanded graph
    input
    - expand/0095-in.jsonld + expand/0095-in.jsonld
    expect
    - expand/0095-out.jsonld + expand/0095-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0096 expand [@graph, @index] container (multiple indexed objects)
    -
    +
    id
    #t0096
    Type
    @@ -2248,26 +2248,26 @@

    Use of @graph containers with @index
    input
    - expand/0096-in.jsonld + expand/0096-in.jsonld
    expect
    - expand/0096-out.jsonld + expand/0096-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0097 expand [@graph, @index, @set] container (multiple objects)
    -
    +
    id
    #t0097
    Type
    @@ -2276,26 +2276,26 @@

    Use of @graph containers with @index and @set
    input
    - expand/0097-in.jsonld + expand/0097-in.jsonld
    expect
    - expand/0097-out.jsonld + 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
    @@ -2304,26 +2304,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0098-in.jsonld + expand/0098-in.jsonld
    expect
    - expand/0098-out.jsonld + expand/0098-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0099 expand [@graph, @id] container (multiple objects)
    -
    +
    id
    #t0099
    Type
    @@ -2332,26 +2332,26 @@

    Use of @graph containers with @id
    input
    - expand/0099-in.jsonld + expand/0099-in.jsonld
    expect
    - expand/0099-out.jsonld + expand/0099-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0100 expand [@graph, @id, @set] container (multiple objects)
    -
    +
    id
    #t0100
    Type
    @@ -2360,26 +2360,26 @@

    Use of @graph containers with @id and @set
    input
    - expand/0100-in.jsonld + expand/0100-in.jsonld
    expect
    - expand/0100-out.jsonld + 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
    @@ -2388,26 +2388,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0101-in.jsonld + expand/0101-in.jsonld
    expect
    - expand/0101-out.jsonld + 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
    @@ -2416,26 +2416,26 @@

    Creates a new graph object if indexed value is already a graph object
    input
    - expand/0102-in.jsonld + expand/0102-in.jsonld
    expect
    - expand/0102-out.jsonld + 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
    @@ -2444,26 +2444,26 @@

    Creates a new graph object if indexed value is already a graph object
    input
    - expand/0103-in.jsonld + expand/0103-in.jsonld
    expect
    - expand/0103-out.jsonld + 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
    @@ -2472,26 +2472,26 @@

    Double-expand an already expanded graph
    input
    - expand/0104-in.jsonld + expand/0104-in.jsonld
    expect
    - expand/0104-out.jsonld + 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
    @@ -2500,26 +2500,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0105-in.jsonld + expand/0105-in.jsonld
    expect
    - expand/0105-out.jsonld + 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
    @@ -2528,26 +2528,26 @@

    Does not create a new graph object if indexed value is already a graph object
    input
    - expand/0106-in.jsonld + expand/0106-in.jsonld
    expect
    - expand/0106-out.jsonld + expand/0106-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0107 expand [@graph, @index] container (indexes with multiple objects)
    -
    +
    id
    #t0107
    Type
    @@ -2556,26 +2556,26 @@

    Use of @graph containers with @index
    input
    - expand/0107-in.jsonld + expand/0107-in.jsonld
    expect
    - expand/0107-out.jsonld + expand/0107-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0108 expand [@graph, @id] container (multiple ids and objects)
    -
    +
    id
    #t0108
    Type
    @@ -2584,26 +2584,26 @@

    Use of @graph containers with @id
    input
    - expand/0108-in.jsonld + expand/0108-in.jsonld
    expect
    - expand/0108-out.jsonld + expand/0108-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0109 IRI expansion of fragments including ':'
    -
    +
    id
    #t0109
    Type
    @@ -2612,19 +2612,19 @@

    Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute
    input
    - expand/0109-in.jsonld + expand/0109-in.jsonld
    expect
    - expand/0109-out.jsonld + expand/0109-out.jsonld

    -
    +
    Test t0110 Various relative IRIs as properties with with relative @vocab
    -
    +
    id
    #t0110
    Type
    @@ -2633,26 +2633,26 @@

    Pathological relative property IRIs
    input
    - expand/0110-in.jsonld + expand/0110-in.jsonld
    expect
    - expand/0110-out.jsonld + 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
    @@ -2661,26 +2661,26 @@

    Pathological relative property IRIs
    input
    - expand/0111-in.jsonld + expand/0111-in.jsonld
    expect
    - expand/0111-out.jsonld + 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
    @@ -2689,26 +2689,26 @@

    Pathological relative property IRIs
    input
    - expand/0112-in.jsonld + expand/0112-in.jsonld
    expect
    - expand/0112-out.jsonld + expand/0112-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0113 context with JavaScript Object property names
    -
    +
    id
    #t0113
    Type
    @@ -2717,19 +2717,19 @@

    Expand with context including JavaScript Object property names
    input
    - expand/0113-in.jsonld + expand/0113-in.jsonld
    expect
    - expand/0113-out.jsonld + expand/0113-out.jsonld

    -
    +
    Test t0114 Expansion allows multiple properties expanding to @type
    -
    +
    id
    #t0114
    Type
    @@ -2738,26 +2738,26 @@

    An exception for the colliding keywords error is made for @type
    input
    - expand/0114-in.jsonld + expand/0114-in.jsonld
    expect
    - expand/0114-out.jsonld + 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
    @@ -2766,7 +2766,7 @@

    Relative property IRIs with relative @vocab in 1.0
    input
    - expand/0115-in.jsonld + expand/0115-in.jsonld
    expect
    @@ -2774,18 +2774,18 @@

    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
    @@ -2794,7 +2794,7 @@

    Relative property IRIs with relative @vocab in 1.0
    input
    - expand/0116-in.jsonld + expand/0116-in.jsonld
    expect
    @@ -2802,18 +2802,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test t0117 A term starting with a colon can expand to a different IRI
    -
    +
    id
    #t0117
    Type
    @@ -2822,26 +2822,26 @@

    Terms may begin with a colon and not be treated as IRIs.
    input
    - expand/0117-in.jsonld + expand/0117-in.jsonld
    expect
    - expand/0117-out.jsonld + 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
    @@ -2850,26 +2850,26 @@

    Terms may begin with a colon and not be treated as IRIs.
    input
    - expand/0118-in.jsonld + expand/0118-in.jsonld
    expect
    - expand/0118-out.jsonld + expand/0118-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0119 Ignore some terms with @, allow others.
    -
    +
    id
    #t0119
    Type
    @@ -2878,26 +2878,26 @@

    Processors SHOULD generate a warning and MUST ignore terms having the form of a keyword.
    input
    - expand/0119-in.jsonld + expand/0119-in.jsonld
    expect
    - expand/0119-out.jsonld + expand/0119-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0120 Ignore some values of @id with @, allow others.
    -
    +
    id
    #t0120
    Type
    @@ -2906,26 +2906,26 @@

    Processors SHOULD generate a warning and MUST ignore values of @id having the form of a keyword.
    input
    - expand/0120-in.jsonld + expand/0120-in.jsonld
    expect
    - expand/0120-out.jsonld + expand/0120-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0121 Ignore some values of @reverse with @, allow others.
    -
    +
    id
    #t0121
    Type
    @@ -2934,26 +2934,26 @@

    Processors SHOULD generate a warning and MUST ignore values of @reverse having the form of a keyword.
    input
    - expand/0121-in.jsonld + expand/0121-in.jsonld
    expect
    - expand/0121-out.jsonld + expand/0121-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0122 Ignore some IRIs when that start with @ when expanding.
    -
    +
    id
    #t0122
    Type
    @@ -2962,15 +2962,15 @@

    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 + expand/0122-in.jsonld
    expect
    - expand/0122-out.jsonld + expand/0122-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1
    normative
    @@ -2979,11 +2979,11 @@

    -
    +
    Test t0123 Value objects including invalid literal datatype IRIs are rejected
    -
    +
    id
    #t0123
    Type
    @@ -2992,7 +2992,7 @@

    Processors MUST validate datatype IRIs.
    input
    - expand/0123-in.jsonld + expand/0123-in.jsonld
    expect
    @@ -3000,18 +3000,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0124 compact IRI as @vocab
    -
    +
    id
    #t0124
    Type
    @@ -3020,26 +3020,26 @@

    Verifies that @vocab defined as a compact IRI expands properly
    input
    - expand/0124-in.jsonld + expand/0124-in.jsonld
    expect
    - expand/0124-out.jsonld + expand/0124-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0125 term as @vocab
    -
    +
    id
    #t0125
    Type
    @@ -3048,26 +3048,26 @@

    Verifies that @vocab defined as a term expands properly
    input
    - expand/0125-in.jsonld + expand/0125-in.jsonld
    expect
    - expand/0125-out.jsonld + expand/0125-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0126 A scoped context may include itself recursively (direct)
    -
    +
    id
    #t0126
    Type
    @@ -3076,26 +3076,26 @@

    Verifies that no exception is raised on expansion when processing a scoped context referencing itself directly
    input
    - expand/0126-in.jsonld + expand/0126-in.jsonld
    expect
    - expand/0126-out.jsonld + expand/0126-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0127 A scoped context may include itself recursively (indirect)
    -
    +
    id
    #t0127
    Type
    @@ -3104,26 +3104,26 @@

    Verifies that no exception is raised on expansion when processing a scoped context referencing itself indirectly
    input
    - expand/0127-in.jsonld + expand/0127-in.jsonld
    expect
    - expand/0127-out.jsonld + expand/0127-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0128 Two scoped context may include a shared context
    -
    +
    id
    #t0128
    Type
    @@ -3132,26 +3132,26 @@

    Verifies that no exception is raised on expansion when processing two scoped contexts referencing a shared context
    input
    - expand/0128-in.jsonld + expand/0128-in.jsonld
    expect
    - expand/0128-out.jsonld + expand/0128-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0129 Base without trailing slash, without path
    -
    +
    id
    #t0129
    Type
    @@ -3160,19 +3160,19 @@

    Verify URI resolution relative to base (without trailing slash, without path) according to RFC 3986
    input
    - expand/0129-in.jsonld + expand/0129-in.jsonld
    expect
    - expand/0129-out.jsonld + expand/0129-out.jsonld

    -
    +
    Test t0130 Base without trailing slash, with path
    -
    +
    id
    #t0130
    Type
    @@ -3181,19 +3181,19 @@

    Verify URI resolution relative to base (without trailing slash, with path) according to RFC 3986
    input
    - expand/0130-in.jsonld + expand/0130-in.jsonld
    expect
    - expand/0130-out.jsonld + expand/0130-out.jsonld

    -
    +
    Test t0131 Reverse term with property based indexed container
    -
    +
    id
    #t0131
    Type
    @@ -3202,26 +3202,26 @@

    Expanding a reverse term using @container: @index and @index set to a property
    input
    - expand/0131-in.jsonld + expand/0131-in.jsonld
    expect
    - expand/0131-out.jsonld + expand/0131-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test t0132 @base does not expand property keys
    -
    +
    id
    #t0132
    Type
    @@ -3230,26 +3230,26 @@

    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    input
    - expand/0132-in.jsonld + expand/0132-in.jsonld
    expect
    - expand/0132-out.jsonld + expand/0132-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc001 adding new term
    -
    +
    id
    #tc001
    Type
    @@ -3258,26 +3258,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c001-in.jsonld + expand/c001-in.jsonld
    expect
    - expand/c001-out.jsonld + expand/c001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc002 overriding a term
    -
    +
    id
    #tc002
    Type
    @@ -3286,26 +3286,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c002-in.jsonld + expand/c002-in.jsonld
    expect
    - expand/c002-out.jsonld + 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
    @@ -3314,26 +3314,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c003-in.jsonld + expand/c003-in.jsonld
    expect
    - expand/c003-out.jsonld + expand/c003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc004 deep @context affects nested nodes
    -
    +
    id
    #tc004
    Type
    @@ -3342,26 +3342,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c004-in.jsonld + expand/c004-in.jsonld
    expect
    - expand/c004-out.jsonld + expand/c004-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc005 scoped context layers on intemediate contexts
    -
    +
    id
    #tc005
    Type
    @@ -3370,26 +3370,26 @@

    Expansion using a scoped context uses term scope for selecting proper term
    input
    - expand/c005-in.jsonld + expand/c005-in.jsonld
    expect
    - expand/c005-out.jsonld + expand/c005-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc006 adding new term
    -
    +
    id
    #tc006
    Type
    @@ -3398,26 +3398,26 @@

    scoped context on @type
    input
    - expand/c006-in.jsonld + expand/c006-in.jsonld
    expect
    - expand/c006-out.jsonld + expand/c006-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc007 overriding a term
    -
    +
    id
    #tc007
    Type
    @@ -3426,26 +3426,26 @@

    scoped context on @type
    input
    - expand/c007-in.jsonld + expand/c007-in.jsonld
    expect
    - expand/c007-out.jsonld + expand/c007-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc008 alias of @type
    -
    +
    id
    #tc008
    Type
    @@ -3454,26 +3454,26 @@

    scoped context on @type
    input
    - expand/c008-in.jsonld + expand/c008-in.jsonld
    expect
    - expand/c008-out.jsonld + expand/c008-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc009 deep @type-scoped @context does NOT affect nested nodes
    -
    +
    id
    #tc009
    Type
    @@ -3482,26 +3482,26 @@

    scoped context on @type
    input
    - expand/c009-in.jsonld + expand/c009-in.jsonld
    expect
    - expand/c009-out.jsonld + expand/c009-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc010 scoped context layers on intemediate contexts
    -
    +
    id
    #tc010
    Type
    @@ -3510,26 +3510,26 @@

    scoped context on @type
    input
    - expand/c010-in.jsonld + expand/c010-in.jsonld
    expect
    - expand/c010-out.jsonld + expand/c010-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc011 orders @type terms when applying scoped contexts
    -
    +
    id
    #tc011
    Type
    @@ -3538,26 +3538,26 @@

    scoped context on @type
    input
    - expand/c011-in.jsonld + expand/c011-in.jsonld
    expect
    - expand/c011-out.jsonld + 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
    @@ -3566,26 +3566,26 @@

    scoped context on @type
    input
    - expand/c012-in.jsonld + expand/c012-in.jsonld
    expect
    - expand/c012-out.jsonld + 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
    @@ -3594,26 +3594,26 @@

    scoped context on @type
    input
    - expand/c013-in.jsonld + expand/c013-in.jsonld
    expect
    - expand/c013-out.jsonld + expand/c013-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc014 type-scoped context nullification
    -
    +
    id
    #tc014
    Type
    @@ -3622,26 +3622,26 @@

    type-scoped context nullification
    input
    - expand/c014-in.jsonld + expand/c014-in.jsonld
    expect
    - expand/c014-out.jsonld + expand/c014-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc015 type-scoped base
    -
    +
    id
    #tc015
    Type
    @@ -3650,26 +3650,26 @@

    type-scoped base
    input
    - expand/c015-in.jsonld + expand/c015-in.jsonld
    expect
    - expand/c015-out.jsonld + expand/c015-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc016 type-scoped vocab
    -
    +
    id
    #tc016
    Type
    @@ -3678,26 +3678,26 @@

    type-scoped vocab
    input
    - expand/c016-in.jsonld + expand/c016-in.jsonld
    expect
    - expand/c016-out.jsonld + expand/c016-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc017 multiple type-scoped contexts are properly reverted
    -
    +
    id
    #tc017
    Type
    @@ -3706,26 +3706,26 @@

    multiple type-scoped contexts are property reverted
    input
    - expand/c017-in.jsonld + expand/c017-in.jsonld
    expect
    - expand/c017-out.jsonld + expand/c017-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc018 multiple type-scoped types resolved against previous context
    -
    +
    id
    #tc018
    Type
    @@ -3734,26 +3734,26 @@

    multiple type-scoped types resolved against previous context
    input
    - expand/c018-in.jsonld + expand/c018-in.jsonld
    expect
    - expand/c018-out.jsonld + expand/c018-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc019 type-scoped context with multiple property scoped terms
    -
    +
    id
    #tc019
    Type
    @@ -3762,26 +3762,26 @@

    type-scoped context with multiple property scoped terms
    input
    - expand/c019-in.jsonld + expand/c019-in.jsonld
    expect
    - expand/c019-out.jsonld + expand/c019-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc020 type-scoped value
    -
    +
    id
    #tc020
    Type
    @@ -3790,26 +3790,26 @@

    type-scoped value
    input
    - expand/c020-in.jsonld + expand/c020-in.jsonld
    expect
    - expand/c020-out.jsonld + expand/c020-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc021 type-scoped value mix
    -
    +
    id
    #tc021
    Type
    @@ -3818,26 +3818,26 @@

    type-scoped value mix
    input
    - expand/c021-in.jsonld + expand/c021-in.jsonld
    expect
    - expand/c021-out.jsonld + expand/c021-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc022 type-scoped property-scoped contexts including @type:@vocab
    -
    +
    id
    #tc022
    Type
    @@ -3846,26 +3846,26 @@

    type-scoped property-scoped contexts including @type:@vocab
    input
    - expand/c022-in.jsonld + expand/c022-in.jsonld
    expect
    - expand/c022-out.jsonld + expand/c022-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc023 composed type-scoped property-scoped contexts including @type:@vocab
    -
    +
    id
    #tc023
    Type
    @@ -3874,26 +3874,26 @@

    composed type-scoped property-scoped contexts including @type:@vocab
    input
    - expand/c023-in.jsonld + expand/c023-in.jsonld
    expect
    - expand/c023-out.jsonld + expand/c023-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc024 type-scoped + property-scoped + values evaluates against previous context
    -
    +
    id
    #tc024
    Type
    @@ -3902,26 +3902,26 @@

    type-scoped + property-scoped + values evaluates against previous context
    input
    - expand/c024-in.jsonld + expand/c024-in.jsonld
    expect
    - expand/c024-out.jsonld + expand/c024-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc025 type-scoped + graph container
    -
    +
    id
    #tc025
    Type
    @@ -3930,26 +3930,26 @@

    type-scoped + graph container
    input
    - expand/c025-in.jsonld + expand/c025-in.jsonld
    expect
    - expand/c025-out.jsonld + expand/c025-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc026 @propagate: true on type-scoped context
    -
    +
    id
    #tc026
    Type
    @@ -3958,26 +3958,26 @@

    type-scoped context with @propagate: true survive node-objects
    input
    - expand/c026-in.jsonld + expand/c026-in.jsonld
    expect
    - expand/c026-out.jsonld + expand/c026-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc027 @propagate: false on property-scoped context
    -
    +
    id
    #tc027
    Type
    @@ -3986,26 +3986,26 @@

    property-scoped context with @propagate: false do not survive node-objects
    input
    - expand/c027-in.jsonld + expand/c027-in.jsonld
    expect
    - expand/c027-out.jsonld + expand/c027-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc028 @propagate: false on embedded context
    -
    +
    id
    #tc028
    Type
    @@ -4014,26 +4014,26 @@

    embedded context with @propagate: false do not survive node-objects
    input
    - expand/c028-in.jsonld + expand/c028-in.jsonld
    expect
    - expand/c028-out.jsonld + expand/c028-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc029 @propagate is invalid in 1.0
    -
    +
    id
    #tc029
    Type
    @@ -4042,7 +4042,7 @@

    @propagate is invalid in 1.0
    input
    - expand/c029-in.jsonld + expand/c029-in.jsonld
    expect
    @@ -4050,7 +4050,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -4059,11 +4059,11 @@

    -
    +
    Test tc030 @propagate must be boolean valued
    -
    +
    id
    #tc030
    Type
    @@ -4072,7 +4072,7 @@

    @propagate must be boolean valued
    input
    - expand/c030-in.jsonld + expand/c030-in.jsonld
    expect
    @@ -4080,18 +4080,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc031 @context resolutions respects relative URLs.
    -
    +
    id
    #tc031
    Type
    @@ -4100,26 +4100,26 @@

    URL resolution follows RFC3986
    input
    - expand/c031-in.jsonld + expand/c031-in.jsonld
    expect
    - expand/c031-out.jsonld + expand/c031-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc032 Unused embedded context with error.
    -
    +
    id
    #tc032
    Type
    @@ -4128,7 +4128,7 @@

    An embedded context which is never used should still be checked.
    input
    - expand/c032-in.jsonld + expand/c032-in.jsonld
    expect
    @@ -4136,18 +4136,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc033 Unused context with an embedded context error.
    -
    +
    id
    #tc033
    Type
    @@ -4156,7 +4156,7 @@

    An unused context with an embedded context should still be checked.
    input
    - expand/c033-in.jsonld + expand/c033-in.jsonld
    expect
    @@ -4164,18 +4164,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc034 Remote scoped context.
    -
    +
    id
    #tc034
    Type
    @@ -4184,26 +4184,26 @@

    Scoped contexts may be externally loaded.
    input
    - expand/c034-in.jsonld + expand/c034-in.jsonld
    expect
    - expand/c034-out.jsonld + expand/c034-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc035 Term scoping with embedded contexts.
    -
    +
    id
    #tc035
    Type
    @@ -4212,26 +4212,26 @@

    Terms should make use of @vocab relative to the scope in which the term was defined.
    input
    - expand/c035-in.jsonld + expand/c035-in.jsonld
    expect
    - expand/c035-out.jsonld + expand/c035-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc036 Expansion with empty property-scoped context.
    -
    +
    id
    #tc036
    Type
    @@ -4240,26 +4240,26 @@

    Adding a minimal/empty property-scoped context should not affect expansion of terms defined in the outer scope.
    input
    - expand/c036-in.jsonld + expand/c036-in.jsonld
    expect
    - expand/c036-out.jsonld + expand/c036-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc037 property-scoped contexts which are alias of @nest
    -
    +
    id
    #tc037
    Type
    @@ -4268,26 +4268,26 @@

    Nesting terms may have property-scoped contexts defined.
    input
    - expand/c037-in.jsonld + expand/c037-in.jsonld
    expect
    - expand/c037-out.jsonld + expand/c037-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tc038 Bibframe example (poor-mans inferrence)
    -
    +
    id
    #tc038
    Type
    @@ -4296,26 +4296,26 @@

    Nesting terms may have property-scoped contexts defined.
    input
    - expand/c038-in.jsonld + expand/c038-in.jsonld
    expect
    - expand/c038-out.jsonld + expand/c038-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi01 Expand string using default and term directions
    -
    +
    id
    #tdi01
    Type
    @@ -4324,26 +4324,26 @@

    Strings are coerced to have @direction based on default and term direction.
    input
    - expand/di01-in.jsonld + expand/di01-in.jsonld
    expect
    - expand/di01-out.jsonld + expand/di01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi02 Expand string using default and term directions and languages
    -
    +
    id
    #tdi02
    Type
    @@ -4352,26 +4352,26 @@

    Strings are coerced to have @direction based on default and term direction.
    input
    - expand/di02-in.jsonld + expand/di02-in.jsonld
    expect
    - expand/di02-out.jsonld + expand/di02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi03 expand list values with @direction
    -
    +
    id
    #tdi03
    Type
    @@ -4380,26 +4380,26 @@

    List values where the term has @direction are used in expansion.
    input
    - expand/di03-in.jsonld + expand/di03-in.jsonld
    expect
    - expand/di03-out.jsonld + expand/di03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi04 simple language map with term direction
    -
    +
    id
    #tdi04
    Type
    @@ -4408,26 +4408,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di04-in.jsonld + expand/di04-in.jsonld
    expect
    - expand/di04-out.jsonld + expand/di04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi05 simple language mapwith overriding term direction
    -
    +
    id
    #tdi05
    Type
    @@ -4436,26 +4436,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di05-in.jsonld + expand/di05-in.jsonld
    expect
    - expand/di05-out.jsonld + expand/di05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi06 simple language mapwith overriding null direction
    -
    +
    id
    #tdi06
    Type
    @@ -4464,26 +4464,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di06-in.jsonld + expand/di06-in.jsonld
    expect
    - expand/di06-out.jsonld + expand/di06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi07 simple language map with mismatching term direction
    -
    +
    id
    #tdi07
    Type
    @@ -4492,26 +4492,26 @@

    Term selection with language maps and @direction.
    input
    - expand/di07-in.jsonld + expand/di07-in.jsonld
    expect
    - expand/di07-out.jsonld + expand/di07-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi08 @direction must be one of ltr or rtl
    -
    +
    id
    #tdi08
    Type
    @@ -4520,7 +4520,7 @@

    Generate an error if @direction has illegal value.
    input
    - expand/di08-in.jsonld + expand/di08-in.jsonld
    expect
    @@ -4528,18 +4528,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tdi09 @direction is incompatible with @type
    -
    +
    id
    #tdi09
    Type
    @@ -4548,7 +4548,7 @@

    Value objects can have either @type but not @language or @direction.
    input
    - expand/di09-in.jsonld + expand/di09-in.jsonld
    expect
    @@ -4556,18 +4556,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tec01 Invalid keyword in term definition
    -
    +
    id
    #tec01
    Type
    @@ -4576,7 +4576,7 @@

    Verifies that an exception is raised on expansion when a invalid term definition is found
    input
    - expand/ec01-in.jsonld + expand/ec01-in.jsonld
    expect
    @@ -4584,18 +4584,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tec02 Term definition on @type with empty map
    -
    +
    id
    #tec02
    Type
    @@ -4604,7 +4604,7 @@

    Verifies that an exception is raised if @type is defined as a term with an empty map
    input
    - expand/ec02-in.jsonld + expand/ec02-in.jsonld
    expect
    @@ -4612,18 +4612,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tem01 Invalid container mapping
    -
    +
    id
    #tem01
    Type
    @@ -4632,7 +4632,7 @@

    Verifies that an exception is raised on expansion when a invalid container mapping is found
    input
    - expand/em01-in.jsonld + expand/em01-in.jsonld
    expect
    @@ -4640,18 +4640,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten01 @nest MUST NOT have a string value
    -
    +
    id
    #ten01
    Type
    @@ -4660,7 +4660,7 @@

    container: @nest
    input
    - expand/en01-in.jsonld + expand/en01-in.jsonld
    expect
    @@ -4668,18 +4668,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten02 @nest MUST NOT have a boolen value
    -
    +
    id
    #ten02
    Type
    @@ -4688,7 +4688,7 @@

    Transparent Nesting
    input
    - expand/en02-in.jsonld + expand/en02-in.jsonld
    expect
    @@ -4696,18 +4696,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten03 @nest MUST NOT have a numeric value
    -
    +
    id
    #ten03
    Type
    @@ -4716,7 +4716,7 @@

    Transparent Nesting
    input
    - expand/en03-in.jsonld + expand/en03-in.jsonld
    expect
    @@ -4724,18 +4724,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten04 @nest MUST NOT have a value object value
    -
    +
    id
    #ten04
    Type
    @@ -4744,7 +4744,7 @@

    Transparent Nesting
    input
    - expand/en04-in.jsonld + expand/en04-in.jsonld
    expect
    @@ -4752,18 +4752,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten05 does not allow a keyword other than @nest for the value of @nest
    -
    +
    id
    #ten05
    Type
    @@ -4772,7 +4772,7 @@

    Transparent Nesting
    input
    - expand/en05-in.jsonld + expand/en05-in.jsonld
    expect
    @@ -4780,18 +4780,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ten06 does not allow @nest with @reverse
    -
    +
    id
    #ten06
    Type
    @@ -4800,7 +4800,7 @@

    Transparent Nesting
    input
    - expand/en06-in.jsonld + expand/en06-in.jsonld
    expect
    @@ -4808,18 +4808,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tep02 processingMode json-ld-1.0 conflicts with @version: 1.1
    -
    +
    id
    #tep02
    Type
    @@ -4828,7 +4828,7 @@

    If processingMode is explicitly json-ld-1.0, it will conflict with 1.1 features.
    input
    - expand/ep02-in.jsonld + expand/ep02-in.jsonld
    expect
    @@ -4836,7 +4836,7 @@

    Options
    -
    +
    processingMode
    json-ld-1.0
    specVersion
    @@ -4845,11 +4845,11 @@

    -
    +
    Test tep03 @version must be 1.1
    -
    +
    id
    #tep03
    Type
    @@ -4858,7 +4858,7 @@

    If @version is specified, it must be 1.1
    input
    - expand/ep03-in.jsonld + expand/ep03-in.jsonld
    expect
    @@ -4866,18 +4866,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter01 Keywords cannot be aliased to other keywords
    -
    +
    id
    #ter01
    Type
    @@ -4886,7 +4886,7 @@

    Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword
    input
    - expand/er01-in.jsonld + expand/er01-in.jsonld
    expect
    @@ -4894,11 +4894,11 @@

    -
    +
    Test ter02 A context may not include itself recursively (direct)
    -
    +
    id
    #ter02
    Type
    @@ -4907,7 +4907,7 @@

    Verifies that an exception is raised on expansion when processing a context referencing itself
    input
    - expand/er02-in.jsonld + expand/er02-in.jsonld
    expect
    @@ -4915,18 +4915,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter03 A context may not include itself recursively (indirect)
    -
    +
    id
    #ter03
    Type
    @@ -4935,7 +4935,7 @@

    Verifies that an exception is raised on expansion when processing a context referencing itself indirectly
    input
    - expand/er03-in.jsonld + expand/er03-in.jsonld
    expect
    @@ -4943,18 +4943,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter04 Error dereferencing a remote context
    -
    +
    id
    #ter04
    Type
    @@ -4963,7 +4963,7 @@

    Verifies that an exception is raised on expansion when a context dereference results in an error
    input
    - expand/er04-in.jsonld + expand/er04-in.jsonld
    expect
    @@ -4971,11 +4971,11 @@

    -
    +
    Test ter05 Invalid remote context
    -
    +
    id
    #ter05
    Type
    @@ -4984,7 +4984,7 @@

    Verifies that an exception is raised on expansion when a remote context is not an object containing @context
    input
    - expand/er05-in.jsonld + expand/er05-in.jsonld
    expect
    @@ -4992,18 +4992,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter06 Invalid local context
    -
    +
    id
    #ter06
    Type
    @@ -5012,7 +5012,7 @@

    Verifies that an exception is raised on expansion when a context is not a string or object
    input
    - expand/er06-in.jsonld + expand/er06-in.jsonld
    expect
    @@ -5020,11 +5020,11 @@

    -
    +
    Test ter07 Invalid base IRI
    -
    +
    id
    #ter07
    Type
    @@ -5033,7 +5033,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @base
    input
    - expand/er07-in.jsonld + expand/er07-in.jsonld
    expect
    @@ -5041,11 +5041,11 @@

    -
    +
    Test ter08 Invalid vocab mapping
    -
    +
    id
    #ter08
    Type
    @@ -5054,7 +5054,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping
    input
    - expand/er08-in.jsonld + expand/er08-in.jsonld
    expect
    @@ -5062,11 +5062,11 @@

    -
    +
    Test ter09 Invalid default language
    -
    +
    id
    #ter09
    Type
    @@ -5075,7 +5075,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @language
    input
    - expand/er09-in.jsonld + expand/er09-in.jsonld
    expect
    @@ -5083,11 +5083,11 @@

    -
    +
    Test ter10 Cyclic IRI mapping
    -
    +
    id
    #ter10
    Type
    @@ -5096,7 +5096,7 @@

    Verifies that an exception is raised on expansion when a cyclic IRI mapping is found
    input
    - expand/er10-in.jsonld + expand/er10-in.jsonld
    expect
    @@ -5104,11 +5104,11 @@

    -
    +
    Test ter11 Invalid term definition
    -
    +
    id
    #ter11
    Type
    @@ -5117,7 +5117,7 @@

    Verifies that an exception is raised on expansion when a invalid term definition is found
    input
    - expand/er11-in.jsonld + expand/er11-in.jsonld
    expect
    @@ -5125,11 +5125,11 @@

    -
    +
    Test ter12 Invalid type mapping (not a string)
    -
    +
    id
    #ter12
    Type
    @@ -5138,7 +5138,7 @@

    Verifies that an exception is raised on expansion when a invalid type mapping is found
    input
    - expand/er12-in.jsonld + expand/er12-in.jsonld
    expect
    @@ -5146,11 +5146,11 @@

    -
    +
    Test ter13 Invalid type mapping (not absolute IRI)
    -
    +
    id
    #ter13
    Type
    @@ -5159,7 +5159,7 @@

    Verifies that an exception is raised on expansion when a invalid type mapping is found
    input
    - expand/er13-in.jsonld + expand/er13-in.jsonld
    expect
    @@ -5167,11 +5167,11 @@

    -
    +
    Test ter14 Invalid reverse property (contains @id)
    -
    +
    id
    #ter14
    Type
    @@ -5180,7 +5180,7 @@

    Verifies that an exception is raised on expansion when a invalid reverse property is found
    input
    - expand/er14-in.jsonld + expand/er14-in.jsonld
    expect
    @@ -5188,11 +5188,11 @@

    -
    +
    Test ter15 Invalid IRI mapping (@reverse not a string)
    -
    +
    id
    #ter15
    Type
    @@ -5201,7 +5201,7 @@

    Verifies that an exception is raised on expansion when a invalid IRI mapping is found
    input
    - expand/er15-in.jsonld + expand/er15-in.jsonld
    expect
    @@ -5209,11 +5209,11 @@

    -
    +
    Test ter17 Invalid reverse property (invalid @container)
    -
    +
    id
    #ter17
    Type
    @@ -5222,7 +5222,7 @@

    Verifies that an exception is raised on expansion when a invalid reverse property is found
    input
    - expand/er17-in.jsonld + expand/er17-in.jsonld
    expect
    @@ -5230,11 +5230,11 @@

    -
    +
    Test ter18 Invalid IRI mapping (@id not a string)
    -
    +
    id
    #ter18
    Type
    @@ -5243,7 +5243,7 @@

    Verifies that an exception is raised on expansion when a invalid IRI mapping is found
    input
    - expand/er18-in.jsonld + expand/er18-in.jsonld
    expect
    @@ -5251,11 +5251,11 @@

    -
    +
    Test ter19 Invalid keyword alias (@context)
    -
    +
    id
    #ter19
    Type
    @@ -5264,7 +5264,7 @@

    Verifies that an exception is raised on expansion when a invalid keyword alias is found
    input
    - expand/er19-in.jsonld + expand/er19-in.jsonld
    expect
    @@ -5272,11 +5272,11 @@

    -
    +
    Test ter20 Invalid IRI mapping (no vocab mapping)
    -
    +
    id
    #ter20
    Type
    @@ -5285,7 +5285,7 @@

    Verifies that an exception is raised on expansion when a invalid IRI mapping is found
    input
    - expand/er20-in.jsonld + expand/er20-in.jsonld
    expect
    @@ -5293,11 +5293,11 @@

    -
    +
    Test ter21 Invalid container mapping
    -
    +
    id
    #ter21
    Type
    @@ -5306,7 +5306,7 @@

    Verifies that an exception is raised on expansion when a invalid container mapping is found
    input
    - expand/er21-in.jsonld + expand/er21-in.jsonld
    expect
    @@ -5314,7 +5314,7 @@

    Options
    -
    +
    processingMode
    json-ld-1.0
    specVersion
    @@ -5323,11 +5323,11 @@

    -
    +
    Test ter22 Invalid language mapping
    -
    +
    id
    #ter22
    Type
    @@ -5336,7 +5336,7 @@

    Verifies that an exception is raised on expansion when a invalid language mapping is found
    input
    - expand/er22-in.jsonld + expand/er22-in.jsonld
    expect
    @@ -5344,11 +5344,11 @@

    -
    +
    Test ter23 Invalid IRI mapping (relative IRI in @type)
    -
    +
    id
    #ter23
    Type
    @@ -5357,7 +5357,7 @@

    Verifies that an exception is raised on expansion when a invalid type mapping is found
    input
    - expand/er23-in.jsonld + expand/er23-in.jsonld
    expect
    @@ -5365,11 +5365,11 @@

    -
    +
    Test ter24 List of lists (from array)
    -
    +
    id
    #ter24
    Type
    @@ -5378,7 +5378,7 @@

    Verifies that an exception is raised in Expansion when a list of lists is found
    input
    - expand/er24-in.jsonld + expand/er24-in.jsonld
    expect
    @@ -5386,18 +5386,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter25 Invalid reverse property map
    -
    +
    id
    #ter25
    Type
    @@ -5406,7 +5406,7 @@

    Verifies that an exception is raised in Expansion when a invalid reverse property map is found
    input
    - expand/er25-in.jsonld + expand/er25-in.jsonld
    expect
    @@ -5414,11 +5414,11 @@

    -
    +
    Test ter26 Colliding keywords
    -
    +
    id
    #ter26
    Type
    @@ -5427,7 +5427,7 @@

    Verifies that an exception is raised in Expansion when colliding keywords are found
    input
    - expand/er26-in.jsonld + expand/er26-in.jsonld
    expect
    @@ -5435,11 +5435,11 @@

    -
    +
    Test ter27 Invalid @id value
    -
    +
    id
    #ter27
    Type
    @@ -5448,7 +5448,7 @@

    Verifies that an exception is raised in Expansion when an invalid @id value is found
    input
    - expand/er27-in.jsonld + expand/er27-in.jsonld
    expect
    @@ -5456,11 +5456,11 @@

    -
    +
    Test ter28 Invalid type value
    -
    +
    id
    #ter28
    Type
    @@ -5469,7 +5469,7 @@

    Verifies that an exception is raised in Expansion when an invalid type value is found
    input
    - expand/er28-in.jsonld + expand/er28-in.jsonld
    expect
    @@ -5477,11 +5477,11 @@

    -
    +
    Test ter29 Invalid value object value
    -
    +
    id
    #ter29
    Type
    @@ -5490,7 +5490,7 @@

    Verifies that an exception is raised in Expansion when an invalid value object value is found
    input
    - expand/er29-in.jsonld + expand/er29-in.jsonld
    expect
    @@ -5498,11 +5498,11 @@

    -
    +
    Test ter30 Invalid language-tagged string
    -
    +
    id
    #ter30
    Type
    @@ -5511,7 +5511,7 @@

    Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found
    input
    - expand/er30-in.jsonld + expand/er30-in.jsonld
    expect
    @@ -5519,11 +5519,11 @@

    -
    +
    Test ter31 Invalid @index value
    -
    +
    id
    #ter31
    Type
    @@ -5532,7 +5532,7 @@

    Verifies that an exception is raised in Expansion when an invalid @index value value is found
    input
    - expand/er31-in.jsonld + expand/er31-in.jsonld
    expect
    @@ -5540,11 +5540,11 @@

    -
    +
    Test ter32 List of lists (from array)
    -
    +
    id
    #ter32
    Type
    @@ -5553,7 +5553,7 @@

    Verifies that an exception is raised in Expansion when a list of lists is found
    input
    - expand/er32-in.jsonld + expand/er32-in.jsonld
    expect
    @@ -5561,18 +5561,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.0

    -
    +
    Test ter33 Invalid @reverse value
    -
    +
    id
    #ter33
    Type
    @@ -5581,7 +5581,7 @@

    Verifies that an exception is raised in Expansion when an invalid @reverse value is found
    input
    - expand/er33-in.jsonld + expand/er33-in.jsonld
    expect
    @@ -5589,11 +5589,11 @@

    -
    +
    Test ter34 Invalid reverse property value (in @reverse)
    -
    +
    id
    #ter34
    Type
    @@ -5602,7 +5602,7 @@

    Verifies that an exception is raised in Expansion when an invalid reverse property value is found
    input
    - expand/er34-in.jsonld + expand/er34-in.jsonld
    expect
    @@ -5610,11 +5610,11 @@

    -
    +
    Test ter35 Invalid language map value
    -
    +
    id
    #ter35
    Type
    @@ -5623,7 +5623,7 @@

    Verifies that an exception is raised in Expansion when an invalid language map value is found
    input
    - expand/er35-in.jsonld + expand/er35-in.jsonld
    expect
    @@ -5631,11 +5631,11 @@

    -
    +
    Test ter36 Invalid reverse property value (through coercion)
    -
    +
    id
    #ter36
    Type
    @@ -5644,7 +5644,7 @@

    Verifies that an exception is raised in Expansion when an invalid reverse property value is found
    input
    - expand/er36-in.jsonld + expand/er36-in.jsonld
    expect
    @@ -5652,11 +5652,11 @@

    -
    +
    Test ter37 Invalid value object (unexpected keyword)
    -
    +
    id
    #ter37
    Type
    @@ -5665,7 +5665,7 @@

    Verifies that an exception is raised in Expansion when an invalid value object is found
    input
    - expand/er37-in.jsonld + expand/er37-in.jsonld
    expect
    @@ -5673,11 +5673,11 @@

    -
    +
    Test ter38 Invalid value object (@type and @language)
    -
    +
    id
    #ter38
    Type
    @@ -5686,7 +5686,7 @@

    Verifies that an exception is raised in Expansion when an invalid value object is found
    input
    - expand/er38-in.jsonld + expand/er38-in.jsonld
    expect
    @@ -5694,11 +5694,11 @@

    -
    +
    Test ter39 Invalid language-tagged value
    -
    +
    id
    #ter39
    Type
    @@ -5707,7 +5707,7 @@

    Verifies that an exception is raised in Expansion when an invalid language-tagged value is found
    input
    - expand/er39-in.jsonld + expand/er39-in.jsonld
    expect
    @@ -5715,11 +5715,11 @@

    -
    +
    Test ter40 Invalid typed value
    -
    +
    id
    #ter40
    Type
    @@ -5728,7 +5728,7 @@

    Verifies that an exception is raised in Expansion when an invalid typed value is found
    input
    - expand/er40-in.jsonld + expand/er40-in.jsonld
    expect
    @@ -5736,11 +5736,11 @@

    -
    +
    Test ter41 Invalid set or list object
    -
    +
    id
    #ter41
    Type
    @@ -5749,7 +5749,7 @@

    Verifies that an exception is raised in Expansion when an invalid set or list object is found
    input
    - expand/er41-in.jsonld + expand/er41-in.jsonld
    expect
    @@ -5757,11 +5757,11 @@

    -
    +
    Test ter42 Keywords may not be redefined in 1.0
    -
    +
    id
    #ter42
    Type
    @@ -5770,7 +5770,7 @@

    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 + expand/er42-in.jsonld
    expect
    @@ -5778,7 +5778,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -5787,11 +5787,11 @@

    -
    +
    Test ter43 Term definition with @id: @type
    -
    +
    id
    #ter43
    Type
    @@ -5800,7 +5800,7 @@

    Expanding term mapping to @type uses @type syntax now illegal
    input
    - expand/er43-in.jsonld + expand/er43-in.jsonld
    expect
    @@ -5808,18 +5808,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter44 Redefine terms looking like compact IRIs
    -
    +
    id
    #ter44
    Type
    @@ -5828,7 +5828,7 @@

    Term definitions may look like compact IRIs, but must be consistent.
    input
    - expand/er44-in.jsonld + expand/er44-in.jsonld
    expect
    @@ -5836,18 +5836,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter48 Invalid term as relative IRI
    -
    +
    id
    #ter48
    Type
    @@ -5856,7 +5856,7 @@

    Verifies that a relative IRI cannot be used as a term.
    input
    - expand/er48-in.jsonld + expand/er48-in.jsonld
    expect
    @@ -5864,18 +5864,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter49 A relative IRI cannot be used as a prefix
    -
    +
    id
    #ter49
    Type
    @@ -5884,7 +5884,7 @@

    Verifies that a relative IRI cannot be used as a term.
    input
    - expand/er49-in.jsonld + expand/er49-in.jsonld
    expect
    @@ -5892,18 +5892,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter50 Invalid reverse id
    -
    +
    id
    #ter50
    Type
    @@ -5912,7 +5912,7 @@

    Verifies that an exception is raised in Expansion when an invalid IRI is used for @reverse.
    input
    - expand/er50-in.jsonld + expand/er50-in.jsonld
    expect
    @@ -5920,11 +5920,11 @@

    -
    +
    Test ter51 Invalid value object value using a value alias
    -
    +
    id
    #ter51
    Type
    @@ -5933,7 +5933,7 @@

    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 + expand/er51-in.jsonld
    expect
    @@ -5941,11 +5941,11 @@

    -
    +
    Test ter52 Definition for the empty term
    -
    +
    id
    #ter52
    Type
    @@ -5954,7 +5954,7 @@

    Verifies that an exception is raised on expansion when a context contains a definition for the empty term
    input
    - expand/er52-in.jsonld + expand/er52-in.jsonld
    expect
    @@ -5962,11 +5962,11 @@

    -
    +
    Test ter53 Invalid prefix value
    -
    +
    id
    #ter53
    Type
    @@ -5975,7 +5975,7 @@

    Verifies that an exception is raised on expansion when a context contains an invalid @prefix value
    input
    - expand/er53-in.jsonld + expand/er53-in.jsonld
    expect
    @@ -5983,18 +5983,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ter54 Invalid value object, multiple values for @type.
    -
    +
    id
    #ter54
    Type
    @@ -6003,7 +6003,7 @@

    The value of @type in a value object MUST be a string or null.
    input
    - expand/er54-in.jsonld + expand/er54-in.jsonld
    expect
    @@ -6011,11 +6011,11 @@

    -
    +
    Test ter55 Invalid term definition, multiple values for @type.
    -
    +
    id
    #ter55
    Type
    @@ -6024,7 +6024,7 @@

    The value of @type in an expanded term definition object MUST be a string or null.
    input
    - expand/er55-in.jsonld + expand/er55-in.jsonld
    expect
    @@ -6032,11 +6032,11 @@

    -
    +
    Test ter56 Invalid redefinition of @context keyword.
    -
    +
    id
    #ter56
    Type
    @@ -6045,7 +6045,7 @@

    Verifies that an exception is raised when attempting to redefine @context.
    input
    - expand/er56-in.jsonld + expand/er56-in.jsonld
    expect
    @@ -6053,11 +6053,11 @@

    -
    +
    Test tes01 Using an array value for @context is illegal in JSON-LD 1.0
    -
    +
    id
    #tes01
    Type
    @@ -6066,7 +6066,7 @@

    Verifies that an exception is raised on expansion when a invalid container mapping is found
    input
    - expand/es01-in.jsonld + expand/es01-in.jsonld
    expect
    @@ -6074,7 +6074,7 @@

    Options
    -
    +
    processingMode
    json-ld-1.0
    specVersion
    @@ -6083,11 +6083,11 @@

    -
    +
    Test tes02 Mapping @container: [@list, @set] is invalid
    -
    +
    id
    #tes02
    Type
    @@ -6096,7 +6096,7 @@

    Testing legal combinations of @set with other container values
    input
    - expand/es02-in.jsonld + expand/es02-in.jsonld
    expect
    @@ -6104,18 +6104,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin01 Basic Included array
    -
    +
    id
    #tin01
    Type
    @@ -6124,26 +6124,26 @@

    Tests included blocks.
    input
    - expand/in01-in.jsonld + expand/in01-in.jsonld
    expect
    - expand/in01-out.jsonld + expand/in01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin02 Basic Included object
    -
    +
    id
    #tin02
    Type
    @@ -6152,26 +6152,26 @@

    Tests included blocks.
    input
    - expand/in02-in.jsonld + expand/in02-in.jsonld
    expect
    - expand/in02-out.jsonld + expand/in02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin03 Multiple properties mapping to @included are folded together
    -
    +
    id
    #tin03
    Type
    @@ -6180,26 +6180,26 @@

    Tests included blocks.
    input
    - expand/in03-in.jsonld + expand/in03-in.jsonld
    expect
    - expand/in03-out.jsonld + expand/in03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin04 Included containing @included
    -
    +
    id
    #tin04
    Type
    @@ -6208,26 +6208,26 @@

    Tests included blocks.
    input
    - expand/in04-in.jsonld + expand/in04-in.jsonld
    expect
    - expand/in04-out.jsonld + expand/in04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin05 Property value with @included
    -
    +
    id
    #tin05
    Type
    @@ -6236,26 +6236,26 @@

    Tests included blocks.
    input
    - expand/in05-in.jsonld + expand/in05-in.jsonld
    expect
    - expand/in05-out.jsonld + expand/in05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin06 json.api example
    -
    +
    id
    #tin06
    Type
    @@ -6264,26 +6264,26 @@

    Tests included blocks.
    input
    - expand/in06-in.jsonld + expand/in06-in.jsonld
    expect
    - expand/in06-out.jsonld + expand/in06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin07 Error if @included value is a string
    -
    +
    id
    #tin07
    Type
    @@ -6292,7 +6292,7 @@

    Tests included blocks.
    input
    - expand/in07-in.jsonld + expand/in07-in.jsonld
    expect
    @@ -6300,18 +6300,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin08 Error if @included value is a value object
    -
    +
    id
    #tin08
    Type
    @@ -6320,7 +6320,7 @@

    Tests included blocks.
    input
    - expand/in08-in.jsonld + expand/in08-in.jsonld
    expect
    @@ -6328,18 +6328,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tin09 Error if @included value is a list object
    -
    +
    id
    #tin09
    Type
    @@ -6348,7 +6348,7 @@

    Tests included blocks.
    input
    - expand/in09-in.jsonld + expand/in09-in.jsonld
    expect
    @@ -6356,18 +6356,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs01 Expand JSON literal (boolean true)
    -
    +
    id
    #tjs01
    Type
    @@ -6376,26 +6376,26 @@

    Tests expanding property with @type @json to a JSON literal (boolean true).
    input
    - expand/js01-in.jsonld + expand/js01-in.jsonld
    expect
    - expand/js01-out.jsonld + expand/js01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs02 Expand JSON literal (boolean false)
    -
    +
    id
    #tjs02
    Type
    @@ -6404,26 +6404,26 @@

    Tests expanding property with @type @json to a JSON literal (boolean false).
    input
    - expand/js02-in.jsonld + expand/js02-in.jsonld
    expect
    - expand/js02-out.jsonld + expand/js02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs03 Expand JSON literal (double)
    -
    +
    id
    #tjs03
    Type
    @@ -6432,26 +6432,26 @@

    Tests expanding property with @type @json to a JSON literal (double).
    input
    - expand/js03-in.jsonld + expand/js03-in.jsonld
    expect
    - expand/js03-out.jsonld + expand/js03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs04 Expand JSON literal (double-zero)
    -
    +
    id
    #tjs04
    Type
    @@ -6460,26 +6460,26 @@

    Tests expanding property with @type @json to a JSON literal (double-zero).
    input
    - expand/js04-in.jsonld + expand/js04-in.jsonld
    expect
    - expand/js04-out.jsonld + expand/js04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs05 Expand JSON literal (integer)
    -
    +
    id
    #tjs05
    Type
    @@ -6488,26 +6488,26 @@

    Tests expanding property with @type @json to a JSON literal (integer).
    input
    - expand/js05-in.jsonld + expand/js05-in.jsonld
    expect
    - expand/js05-out.jsonld + expand/js05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs06 Expand JSON literal (object)
    -
    +
    id
    #tjs06
    Type
    @@ -6516,26 +6516,26 @@

    Tests expanding property with @type @json to a JSON literal (object).
    input
    - expand/js06-in.jsonld + expand/js06-in.jsonld
    expect
    - expand/js06-out.jsonld + expand/js06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs07 Expand JSON literal (array)
    -
    +
    id
    #tjs07
    Type
    @@ -6544,26 +6544,26 @@

    Tests expanding property with @type @json to a JSON literal (array).
    input
    - expand/js07-in.jsonld + expand/js07-in.jsonld
    expect
    - expand/js07-out.jsonld + expand/js07-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs08 Expand JSON literal with array canonicalization
    -
    +
    id
    #tjs08
    Type
    @@ -6572,26 +6572,26 @@

    Tests expanding JSON literal with array canonicalization.
    input
    - expand/js08-in.jsonld + expand/js08-in.jsonld
    expect
    - expand/js08-out.jsonld + expand/js08-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs09 Transform JSON literal with string canonicalization
    -
    +
    id
    #tjs09
    Type
    @@ -6600,26 +6600,26 @@

    Tests expanding JSON literal with string canonicalization.
    input
    - expand/js09-in.jsonld + expand/js09-in.jsonld
    expect
    - expand/js09-out.jsonld + expand/js09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs10 Expand JSON literal with structural canonicalization
    -
    +
    id
    #tjs10
    Type
    @@ -6628,26 +6628,26 @@

    Tests expanding JSON literal with structural canonicalization.
    input
    - expand/js10-in.jsonld + expand/js10-in.jsonld
    expect
    - expand/js10-out.jsonld + expand/js10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs11 Expand JSON literal with unicode canonicalization
    -
    +
    id
    #tjs11
    Type
    @@ -6656,26 +6656,26 @@

    Tests expanding JSON literal with unicode canonicalization.
    input
    - expand/js11-in.jsonld + expand/js11-in.jsonld
    expect
    - expand/js11-out.jsonld + expand/js11-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs12 Expand JSON literal with value canonicalization
    -
    +
    id
    #tjs12
    Type
    @@ -6684,26 +6684,26 @@

    Tests expanding JSON literal with value canonicalization.
    input
    - expand/js12-in.jsonld + expand/js12-in.jsonld
    expect
    - expand/js12-out.jsonld + expand/js12-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs13 Expand JSON literal with wierd canonicalization
    -
    +
    id
    #tjs13
    Type
    @@ -6712,26 +6712,26 @@

    Tests expanding JSON literal with wierd canonicalization.
    input
    - expand/js13-in.jsonld + expand/js13-in.jsonld
    expect
    - expand/js13-out.jsonld + expand/js13-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs14 Expand JSON literal without expanding contents
    -
    +
    id
    #tjs14
    Type
    @@ -6740,26 +6740,26 @@

    Tests expanding JSON literal does not expand terms inside json.
    input
    - expand/js14-in.jsonld + expand/js14-in.jsonld
    expect
    - expand/js14-out.jsonld + expand/js14-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs15 Expand JSON literal aleady in expanded form
    -
    +
    id
    #tjs15
    Type
    @@ -6768,26 +6768,26 @@

    Tests expanding JSON literal in expanded form.
    input
    - expand/js15-in.jsonld + expand/js15-in.jsonld
    expect
    - expand/js15-out.jsonld + 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
    @@ -6796,26 +6796,26 @@

    Tests expanding JSON literal in expanded form with aliased keys in value object.
    input
    - expand/js16-in.jsonld + expand/js16-in.jsonld
    expect
    - expand/js16-out.jsonld + expand/js16-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs17 Expand JSON literal (string)
    -
    +
    id
    #tjs17
    Type
    @@ -6824,26 +6824,26 @@

    Tests expanding property with @type @json to a JSON literal (string).
    input
    - expand/js17-in.jsonld + expand/js17-in.jsonld
    expect
    - expand/js17-out.jsonld + expand/js17-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs18 Expand JSON literal (null)
    -
    +
    id
    #tjs18
    Type
    @@ -6852,26 +6852,26 @@

    Tests expanding property with @type @json to a JSON literal (null).
    input
    - expand/js18-in.jsonld + expand/js18-in.jsonld
    expect
    - expand/js18-out.jsonld + expand/js18-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs19 Expand JSON literal with aliased @type
    -
    +
    id
    #tjs19
    Type
    @@ -6880,26 +6880,26 @@

    Tests expanding JSON literal with aliased @type.
    input
    - expand/js19-in.jsonld + expand/js19-in.jsonld
    expect
    - expand/js19-out.jsonld + expand/js19-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs20 Expand JSON literal with aliased @value
    -
    +
    id
    #tjs20
    Type
    @@ -6908,26 +6908,26 @@

    Tests expanding JSON literal with aliased @value.
    input
    - expand/js20-in.jsonld + expand/js20-in.jsonld
    expect
    - expand/js20-out.jsonld + expand/js20-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs21 Expand JSON literal with @context
    -
    +
    id
    #tjs21
    Type
    @@ -6936,26 +6936,26 @@

    Tests expanding JSON literal with a @context.
    input
    - expand/js21-in.jsonld + expand/js21-in.jsonld
    expect
    - expand/js21-out.jsonld + expand/js21-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs22 Expand JSON literal (null) aleady in expanded form.
    -
    +
    id
    #tjs22
    Type
    @@ -6964,26 +6964,26 @@

    Tests expanding property with @type @json to a JSON literal (null).
    input
    - expand/js22-in.jsonld + expand/js22-in.jsonld
    expect
    - expand/js22-out.jsonld + expand/js22-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tjs23 Expand JSON literal (empty array).
    -
    +
    id
    #tjs23
    Type
    @@ -6992,26 +6992,26 @@

    Tests expanding property with @type @json to a JSON literal (empty array).
    input
    - expand/js23-in.jsonld + expand/js23-in.jsonld
    expect
    - expand/js23-out.jsonld + expand/js23-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tl001 Language map with null value
    -
    +
    id
    #tl001
    Type
    @@ -7020,26 +7020,26 @@

    A language map may have a null value, which is ignored
    input
    - expand/l001-in.jsonld + expand/l001-in.jsonld
    expect
    - expand/l001-out.jsonld + expand/l001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli01 @list containing @list
    -
    +
    id
    #tli01
    Type
    @@ -7048,26 +7048,26 @@

    List of lists
    input
    - expand/li01-in.jsonld + expand/li01-in.jsonld
    expect
    - expand/li01-out.jsonld + expand/li01-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli02 @list containing empty @list
    -
    +
    id
    #tli02
    Type
    @@ -7076,26 +7076,26 @@

    List of lists
    input
    - expand/li02-in.jsonld + expand/li02-in.jsonld
    expect
    - expand/li02-out.jsonld + expand/li02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli03 @list containing @list (with coercion)
    -
    +
    id
    #tli03
    Type
    @@ -7104,26 +7104,26 @@

    List of lists
    input
    - expand/li03-in.jsonld + expand/li03-in.jsonld
    expect
    - expand/li03-out.jsonld + expand/li03-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli04 @list containing empty @list (with coercion)
    -
    +
    id
    #tli04
    Type
    @@ -7132,26 +7132,26 @@

    List of lists
    input
    - expand/li04-in.jsonld + expand/li04-in.jsonld
    expect
    - expand/li04-out.jsonld + expand/li04-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli05 coerced @list containing an array
    -
    +
    id
    #tli05
    Type
    @@ -7160,26 +7160,26 @@

    List of lists
    input
    - expand/li05-in.jsonld + expand/li05-in.jsonld
    expect
    - expand/li05-out.jsonld + expand/li05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli06 coerced @list containing an empty array
    -
    +
    id
    #tli06
    Type
    @@ -7188,26 +7188,26 @@

    List of lists
    input
    - expand/li06-in.jsonld + expand/li06-in.jsonld
    expect
    - expand/li06-out.jsonld + expand/li06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli07 coerced @list containing deep arrays
    -
    +
    id
    #tli07
    Type
    @@ -7216,26 +7216,26 @@

    List of lists
    input
    - expand/li07-in.jsonld + expand/li07-in.jsonld
    expect
    - expand/li07-out.jsonld + expand/li07-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli08 coerced @list containing deep empty arrays
    -
    +
    id
    #tli08
    Type
    @@ -7244,26 +7244,26 @@

    List of lists
    input
    - expand/li08-in.jsonld + expand/li08-in.jsonld
    expect
    - expand/li08-out.jsonld + expand/li08-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli09 coerced @list containing multiple lists
    -
    +
    id
    #tli09
    Type
    @@ -7272,26 +7272,26 @@

    List of lists
    input
    - expand/li09-in.jsonld + expand/li09-in.jsonld
    expect
    - expand/li09-out.jsonld + expand/li09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tli10 coerced @list containing mixed list values
    -
    +
    id
    #tli10
    Type
    @@ -7300,26 +7300,26 @@

    List of lists
    input
    - expand/li10-in.jsonld + expand/li10-in.jsonld
    expect
    - expand/li10-out.jsonld + expand/li10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm001 Adds @id to object not having an @id
    -
    +
    id
    #tm001
    Type
    @@ -7328,26 +7328,26 @@

    Expansion using @container: @id
    input
    - expand/m001-in.jsonld + expand/m001-in.jsonld
    expect
    - expand/m001-out.jsonld + expand/m001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm002 Retains @id in object already having an @id
    -
    +
    id
    #tm002
    Type
    @@ -7356,26 +7356,26 @@

    Expansion using @container: @id
    input
    - expand/m002-in.jsonld + expand/m002-in.jsonld
    expect
    - expand/m002-out.jsonld + expand/m002-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm003 Adds @type to object not having an @type
    -
    +
    id
    #tm003
    Type
    @@ -7384,26 +7384,26 @@

    Expansion using @container: @type
    input
    - expand/m003-in.jsonld + expand/m003-in.jsonld
    expect
    - expand/m003-out.jsonld + expand/m003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm004 Prepends @type in object already having an @type
    -
    +
    id
    #tm004
    Type
    @@ -7412,26 +7412,26 @@

    Expansion using @container: @type
    input
    - expand/m004-in.jsonld + expand/m004-in.jsonld
    expect
    - expand/m004-out.jsonld + expand/m004-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm005 Adds expanded @id to object
    -
    +
    id
    #tm005
    Type
    @@ -7440,15 +7440,15 @@

    Expansion using @container: @id
    input
    - expand/m005-in.jsonld + expand/m005-in.jsonld
    expect
    - expand/m005-out.jsonld + expand/m005-out.jsonld
    Options
    -
    +
    base
    http://example.org/
    specVersion
    @@ -7457,11 +7457,11 @@

    -
    +
    Test tm006 Adds vocabulary expanded @type to object
    -
    +
    id
    #tm006
    Type
    @@ -7470,26 +7470,26 @@

    Expansion using @container: @type
    input
    - expand/m006-in.jsonld + expand/m006-in.jsonld
    expect
    - expand/m006-out.jsonld + expand/m006-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm007 Adds document expanded @type to object
    -
    +
    id
    #tm007
    Type
    @@ -7498,26 +7498,26 @@

    Expansion using @container: @type
    input
    - expand/m007-in.jsonld + expand/m007-in.jsonld
    expect
    - expand/m007-out.jsonld + expand/m007-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm008 When type is in a type map
    -
    +
    id
    #tm008
    Type
    @@ -7526,26 +7526,26 @@

    scoped context on @type
    input
    - expand/m008-in.jsonld + expand/m008-in.jsonld
    expect
    - expand/m008-out.jsonld + expand/m008-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm009 language map with @none
    -
    +
    id
    #tm009
    Type
    @@ -7554,26 +7554,26 @@

    index on @language
    input
    - expand/m009-in.jsonld + expand/m009-in.jsonld
    expect
    - expand/m009-out.jsonld + expand/m009-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm010 language map with alias of @none
    -
    +
    id
    #tm010
    Type
    @@ -7582,26 +7582,26 @@

    index on @language
    input
    - expand/m010-in.jsonld + expand/m010-in.jsonld
    expect
    - expand/m010-out.jsonld + expand/m010-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm011 id map with @none
    -
    +
    id
    #tm011
    Type
    @@ -7610,26 +7610,26 @@

    index on @id
    input
    - expand/m011-in.jsonld + expand/m011-in.jsonld
    expect
    - expand/m011-out.jsonld + expand/m011-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm012 type map with alias of @none
    -
    +
    id
    #tm012
    Type
    @@ -7638,26 +7638,26 @@

    index on @type
    input
    - expand/m012-in.jsonld + expand/m012-in.jsonld
    expect
    - expand/m012-out.jsonld + expand/m012-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm013 graph index map with @none
    -
    +
    id
    #tm013
    Type
    @@ -7666,26 +7666,26 @@

    index on @graph and @index
    input
    - expand/m013-in.jsonld + expand/m013-in.jsonld
    expect
    - expand/m013-out.jsonld + expand/m013-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm014 graph index map with alias @none
    -
    +
    id
    #tm014
    Type
    @@ -7694,26 +7694,26 @@

    index on @graph and @index
    input
    - expand/m014-in.jsonld + expand/m014-in.jsonld
    expect
    - expand/m014-out.jsonld + expand/m014-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm015 graph id index map with aliased @none
    -
    +
    id
    #tm015
    Type
    @@ -7722,26 +7722,26 @@

    index on @graph and @id with @none
    input
    - expand/m015-in.jsonld + expand/m015-in.jsonld
    expect
    - expand/m015-out.jsonld + expand/m015-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm016 graph id index map with aliased @none
    -
    +
    id
    #tm016
    Type
    @@ -7750,26 +7750,26 @@

    index on @graph and @id with @none
    input
    - expand/m016-in.jsonld + expand/m016-in.jsonld
    expect
    - expand/m016-out.jsonld + expand/m016-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tm017 string value of type map expands to node reference
    -
    +
    id
    #tm017
    Type
    @@ -7778,26 +7778,26 @@

    index on @type
    input
    - expand/m017-in.jsonld + expand/m017-in.jsonld
    expect
    - expand/m017-out.jsonld + 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
    @@ -7806,26 +7806,26 @@

    index on @type
    input
    - expand/m018-in.jsonld + expand/m018-in.jsonld
    expect
    - expand/m018-out.jsonld + 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
    @@ -7834,26 +7834,26 @@

    index on @type
    input
    - expand/m019-in.jsonld + expand/m019-in.jsonld
    expect
    - expand/m019-out.jsonld + 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
    @@ -7862,7 +7862,7 @@

    index on @type
    input
    - expand/m020-in.jsonld + expand/m020-in.jsonld
    expect
    @@ -7870,18 +7870,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn001 Expands input using @nest
    -
    +
    id
    #tn001
    Type
    @@ -7890,26 +7890,26 @@

    Expansion using @nest
    input
    - expand/n001-in.jsonld + expand/n001-in.jsonld
    expect
    - expand/n001-out.jsonld + expand/n001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn002 Expands input using aliased @nest
    -
    +
    id
    #tn002
    Type
    @@ -7918,26 +7918,26 @@

    Expansion using @nest
    input
    - expand/n002-in.jsonld + expand/n002-in.jsonld
    expect
    - expand/n002-out.jsonld + expand/n002-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn003 Appends nested values when property at base and nested
    -
    +
    id
    #tn003
    Type
    @@ -7946,26 +7946,26 @@

    Expansion using @nest
    input
    - expand/n003-in.jsonld + expand/n003-in.jsonld
    expect
    - expand/n003-out.jsonld + expand/n003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn004 Appends nested values from all @nest aliases
    -
    +
    id
    #tn004
    Type
    @@ -7974,26 +7974,26 @@

    Expansion using @nest
    input
    - expand/n004-in.jsonld + expand/n004-in.jsonld
    expect
    - expand/n004-out.jsonld + expand/n004-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn005 Nested nested containers
    -
    +
    id
    #tn005
    Type
    @@ -8002,26 +8002,26 @@

    Expansion using @nest
    input
    - expand/n005-in.jsonld + expand/n005-in.jsonld
    expect
    - expand/n005-out.jsonld + expand/n005-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn006 Arrays of nested values
    -
    +
    id
    #tn006
    Type
    @@ -8030,26 +8030,26 @@

    Expansion using @nest
    input
    - expand/n006-in.jsonld + expand/n006-in.jsonld
    expect
    - expand/n006-out.jsonld + expand/n006-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn007 A nest of arrays
    -
    +
    id
    #tn007
    Type
    @@ -8058,26 +8058,26 @@

    Expansion using @nest
    input
    - expand/n007-in.jsonld + expand/n007-in.jsonld
    expect
    - expand/n007-out.jsonld + expand/n007-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tn008 Multiple keys may mapping to @type when nesting
    -
    +
    id
    #tn008
    Type
    @@ -8086,26 +8086,26 @@

    Expansion using @nest
    input
    - expand/n008-in.jsonld + expand/n008-in.jsonld
    expect
    - expand/n008-out.jsonld + expand/n008-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp001 @version may be specified after first context
    -
    +
    id
    #tp001
    Type
    @@ -8114,26 +8114,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p001-in.jsonld + expand/p001-in.jsonld
    expect
    - expand/p001-out.jsonld + expand/p001-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp002 @version setting [1.0, 1.1, 1.0]
    -
    +
    id
    #tp002
    Type
    @@ -8142,26 +8142,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p002-in.jsonld + expand/p002-in.jsonld
    expect
    - expand/p002-out.jsonld + expand/p002-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp003 @version setting [1.1, 1.0]
    -
    +
    id
    #tp003
    Type
    @@ -8170,26 +8170,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p003-in.jsonld + expand/p003-in.jsonld
    expect
    - expand/p003-out.jsonld + expand/p003-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tp004 @version setting [1.1, 1.0, 1.1]
    -
    +
    id
    #tp004
    Type
    @@ -8198,26 +8198,26 @@

    If processing mode is not set through API, it is set by the first context containing @version.
    input
    - expand/p004-in.jsonld + expand/p004-in.jsonld
    expect
    - expand/p004-out.jsonld + 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
    @@ -8226,7 +8226,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi01-in.jsonld + expand/pi01-in.jsonld
    expect
    @@ -8234,7 +8234,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -8243,11 +8243,11 @@

    -
    +
    Test tpi02 error if @container does not include @index for property-valued index
    -
    +
    id
    #tpi02
    Type
    @@ -8256,7 +8256,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi02-in.jsonld + expand/pi02-in.jsonld
    expect
    @@ -8264,18 +8264,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi03 error if @index is a keyword for property-valued index
    -
    +
    id
    #tpi03
    Type
    @@ -8284,7 +8284,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi03-in.jsonld + expand/pi03-in.jsonld
    expect
    @@ -8292,18 +8292,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi04 error if @index is not a string for property-valued index
    -
    +
    id
    #tpi04
    Type
    @@ -8312,7 +8312,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi04-in.jsonld + expand/pi04-in.jsonld
    expect
    @@ -8320,18 +8320,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi05 error if attempting to add property to value object for property-valued index
    -
    +
    id
    #tpi05
    Type
    @@ -8340,7 +8340,7 @@

    Expanding index maps where index is a property.
    input
    - expand/pi05-in.jsonld + expand/pi05-in.jsonld
    expect
    @@ -8348,18 +8348,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi06 property-valued index expands to property value, instead of @index (value)
    -
    +
    id
    #tpi06
    Type
    @@ -8368,26 +8368,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi06-in.jsonld + expand/pi06-in.jsonld
    expect
    - expand/pi06-out.jsonld + 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
    @@ -8396,26 +8396,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi07-in.jsonld + expand/pi07-in.jsonld
    expect
    - expand/pi07-out.jsonld + 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
    @@ -8424,26 +8424,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi08-in.jsonld + expand/pi08-in.jsonld
    expect
    - expand/pi08-out.jsonld + 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
    @@ -8452,26 +8452,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi09-in.jsonld + expand/pi09-in.jsonld
    expect
    - expand/pi09-out.jsonld + expand/pi09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi10 property-valued index does not output property for @none
    -
    +
    id
    #tpi10
    Type
    @@ -8480,26 +8480,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi10-in.jsonld + expand/pi10-in.jsonld
    expect
    - expand/pi10-out.jsonld + expand/pi10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpi11 property-valued index adds property to graph object
    -
    +
    id
    #tpi11
    Type
    @@ -8508,26 +8508,26 @@

    Expanding index maps where index is a property.
    input
    - expand/pi11-in.jsonld + expand/pi11-in.jsonld
    expect
    - expand/pi11-out.jsonld + expand/pi11-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr01 Protect a term
    -
    +
    id
    #tpr01
    Type
    @@ -8536,7 +8536,7 @@

    Check error when overriding a protected term.
    input
    - expand/pr01-in.jsonld + expand/pr01-in.jsonld
    expect
    @@ -8544,18 +8544,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr02 Set a term to not be protected
    -
    +
    id
    #tpr02
    Type
    @@ -8564,26 +8564,26 @@

    A term with @protected: false is not protected.
    input
    - expand/pr02-in.jsonld + expand/pr02-in.jsonld
    expect
    - expand/pr02-out.jsonld + expand/pr02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr03 Protect all terms in context
    -
    +
    id
    #tpr03
    Type
    @@ -8592,7 +8592,7 @@

    A protected context protects all term definitions.
    input
    - expand/pr03-in.jsonld + expand/pr03-in.jsonld
    expect
    @@ -8600,18 +8600,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr04 Do not protect term with @protected: false
    -
    +
    id
    #tpr04
    Type
    @@ -8620,7 +8620,7 @@

    A protected context does not protect terms with @protected: false.
    input
    - expand/pr04-in.jsonld + expand/pr04-in.jsonld
    expect
    @@ -8628,18 +8628,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr05 Clear active context with protected terms from an embedded context
    -
    +
    id
    #tpr05
    Type
    @@ -8648,7 +8648,7 @@

    The Active context be set to null from an embedded context.
    input
    - expand/pr05-in.jsonld + expand/pr05-in.jsonld
    expect
    @@ -8656,18 +8656,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr06 Clear active context of protected terms from a term.
    -
    +
    id
    #tpr06
    Type
    @@ -8676,26 +8676,26 @@

    The Active context may be set to null from a scoped context of a term.
    input
    - expand/pr06-in.jsonld + expand/pr06-in.jsonld
    expect
    - expand/pr06-out.jsonld + expand/pr06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr08 Term with protected scoped context.
    -
    +
    id
    #tpr08
    Type
    @@ -8704,7 +8704,7 @@

    A scoped context can protect terms.
    input
    - expand/pr08-in.jsonld + expand/pr08-in.jsonld
    expect
    @@ -8712,18 +8712,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr09 Attempt to redefine term in other protected context.
    -
    +
    id
    #tpr09
    Type
    @@ -8732,7 +8732,7 @@

    A protected term cannot redefine another protected term.
    input
    - expand/pr09-in.jsonld + expand/pr09-in.jsonld
    expect
    @@ -8740,18 +8740,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr10 Simple protected and unprotected terms.
    -
    +
    id
    #tpr10
    Type
    @@ -8760,26 +8760,26 @@

    Simple protected and unprotected terms.
    input
    - expand/pr10-in.jsonld + expand/pr10-in.jsonld
    expect
    - expand/pr10-out.jsonld + expand/pr10-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr11 Fail to override protected term.
    -
    +
    id
    #tpr11
    Type
    @@ -8788,7 +8788,7 @@

    Fail to override protected term.
    input
    - expand/pr11-in.jsonld + expand/pr11-in.jsonld
    expect
    @@ -8796,18 +8796,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr12 Scoped context fail to override protected term.
    -
    +
    id
    #tpr12
    Type
    @@ -8816,7 +8816,7 @@

    Scoped context fail to override protected term.
    input
    - expand/pr12-in.jsonld + expand/pr12-in.jsonld
    expect
    @@ -8824,18 +8824,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr13 Override unprotected term.
    -
    +
    id
    #tpr13
    Type
    @@ -8844,26 +8844,26 @@

    Override unprotected term.
    input
    - expand/pr13-in.jsonld + expand/pr13-in.jsonld
    expect
    - expand/pr13-out.jsonld + expand/pr13-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr14 Clear protection with null context.
    -
    +
    id
    #tpr14
    Type
    @@ -8872,26 +8872,26 @@

    Clear protection with null context.
    input
    - expand/pr14-in.jsonld + expand/pr14-in.jsonld
    expect
    - expand/pr14-out.jsonld + expand/pr14-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr15 Clear protection with array with null context
    -
    +
    id
    #tpr15
    Type
    @@ -8900,26 +8900,26 @@

    Clear protection with array with null context
    input
    - expand/pr15-in.jsonld + expand/pr15-in.jsonld
    expect
    - expand/pr15-out.jsonld + expand/pr15-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr16 Override protected terms after null.
    -
    +
    id
    #tpr16
    Type
    @@ -8928,26 +8928,26 @@

    Override protected terms after null.
    input
    - expand/pr16-in.jsonld + expand/pr16-in.jsonld
    expect
    - expand/pr16-out.jsonld + expand/pr16-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr17 Fail to override protected terms with type.
    -
    +
    id
    #tpr17
    Type
    @@ -8956,7 +8956,7 @@

    Fail to override protected terms with type.
    input
    - expand/pr17-in.jsonld + expand/pr17-in.jsonld
    expect
    @@ -8964,18 +8964,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr18 Fail to override protected terms with type+null+ctx.
    -
    +
    id
    #tpr18
    Type
    @@ -8984,7 +8984,7 @@

    Fail to override protected terms with type+null+ctx.
    input
    - expand/pr18-in.jsonld + expand/pr18-in.jsonld
    expect
    @@ -8992,18 +8992,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr19 Mix of protected and unprotected terms.
    -
    +
    id
    #tpr19
    Type
    @@ -9012,26 +9012,26 @@

    Mix of protected and unprotected terms.
    input
    - expand/pr19-in.jsonld + expand/pr19-in.jsonld
    expect
    - expand/pr19-out.jsonld + 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
    @@ -9040,7 +9040,7 @@

    Fail with mix of protected and unprotected terms with type+null+ctx.
    input
    - expand/pr20-in.jsonld + expand/pr20-in.jsonld
    expect
    @@ -9048,18 +9048,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr21 Fail with mix of protected and unprotected terms with type+null.
    -
    +
    id
    #tpr21
    Type
    @@ -9068,7 +9068,7 @@

    Fail with mix of protected and unprotected terms with type+null.
    input
    - expand/pr21-in.jsonld + expand/pr21-in.jsonld
    expect
    @@ -9076,18 +9076,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr22 Check legal overriding of type-scoped protected term from nested node.
    -
    +
    id
    #tpr22
    Type
    @@ -9096,26 +9096,26 @@

    Check legal overriding of type-scoped protected term from nested node.
    input
    - expand/pr22-in.jsonld + expand/pr22-in.jsonld
    expect
    - expand/pr22-out.jsonld + expand/pr22-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr23 Allows redefinition of protected alias term with same definition.
    -
    +
    id
    #tpr23
    Type
    @@ -9124,26 +9124,26 @@

    Allows redefinition of protected alias term with same definition.
    input
    - expand/pr23-in.jsonld + expand/pr23-in.jsonld
    expect
    - expand/pr23-out.jsonld + expand/pr23-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr24 Allows redefinition of protected prefix term with same definition.
    -
    +
    id
    #tpr24
    Type
    @@ -9152,26 +9152,26 @@

    Allows redefinition of protected prefix term with same definition.
    input
    - expand/pr24-in.jsonld + expand/pr24-in.jsonld
    expect
    - expand/pr24-out.jsonld + 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
    @@ -9180,26 +9180,26 @@

    Allows redefinition of terms with scoped contexts using same definitions.
    input
    - expand/pr25-in.jsonld + expand/pr25-in.jsonld
    expect
    - expand/pr25-out.jsonld + 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
    @@ -9208,7 +9208,7 @@

    Fails on redefinition of terms with scoped contexts using different definitions.
    input
    - expand/pr26-in.jsonld + expand/pr26-in.jsonld
    expect
    @@ -9216,18 +9216,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr27 Allows redefinition of protected alias term with same definition modulo protected flag.
    -
    +
    id
    #tpr27
    Type
    @@ -9236,26 +9236,26 @@

    Allows redefinition of protected alias term with same definition modulo protected flag.
    input
    - expand/pr27-in.jsonld + expand/pr27-in.jsonld
    expect
    - expand/pr27-out.jsonld + expand/pr27-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr28 Fails if trying to redefine a protected null term.
    -
    +
    id
    #tpr28
    Type
    @@ -9264,7 +9264,7 @@

    A protected term with a null IRI mapping cannot be redefined.
    input
    - expand/pr28-in.jsonld + expand/pr28-in.jsonld
    expect
    @@ -9272,18 +9272,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr29 Does not expand a Compact IRI using a non-prefix term.
    -
    +
    id
    #tpr29
    Type
    @@ -9292,26 +9292,26 @@

    Expansion of Compact IRIs considers if the term can be used as a prefix.
    input
    - expand/pr29-in.jsonld + expand/pr29-in.jsonld
    expect
    - expand/pr29-out.jsonld + expand/pr29-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr30 Keywords may be protected.
    -
    +
    id
    #tpr30
    Type
    @@ -9320,26 +9320,26 @@

    Keywords may not be redefined other than to protect them.
    input
    - expand/pr30-in.jsonld + expand/pr30-in.jsonld
    expect
    - expand/pr30-out.jsonld + expand/pr30-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr31 Protected keyword aliases cannot be overridden.
    -
    +
    id
    #tpr31
    Type
    @@ -9348,7 +9348,7 @@

    Keywords may not be redefined other than to protect them.
    input
    - expand/pr31-in.jsonld + expand/pr31-in.jsonld
    expect
    @@ -9356,18 +9356,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr32 Protected @type cannot be overridden.
    -
    +
    id
    #tpr32
    Type
    @@ -9376,7 +9376,7 @@

    Keywords may not be redefined other than to protect them.
    input
    - expand/pr32-in.jsonld + expand/pr32-in.jsonld
    expect
    @@ -9384,18 +9384,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr33 Fails if trying to declare a keyword alias as prefix.
    -
    +
    id
    #tpr33
    Type
    @@ -9404,7 +9404,7 @@

    Keyword aliases can not be used as prefixes.
    input
    - expand/pr33-in.jsonld + expand/pr33-in.jsonld
    expect
    @@ -9412,18 +9412,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr34 Ignores a non-keyword term starting with '@'
    -
    +
    id
    #tpr34
    Type
    @@ -9432,26 +9432,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr34-in.jsonld + expand/pr34-in.jsonld
    expect
    - expand/pr34-out.jsonld + expand/pr34-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr35 Ignores a non-keyword term starting with '@' (with @vocab)
    -
    +
    id
    #tpr35
    Type
    @@ -9460,26 +9460,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr35-in.jsonld + expand/pr35-in.jsonld
    expect
    - expand/pr35-out.jsonld + 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
    @@ -9488,26 +9488,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr36-in.jsonld + expand/pr36-in.jsonld
    expect
    - expand/pr36-out.jsonld + 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
    @@ -9516,26 +9516,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr37-in.jsonld + expand/pr37-in.jsonld
    expect
    - expand/pr37-out.jsonld + 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
    @@ -9544,26 +9544,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr38-in.jsonld + expand/pr38-in.jsonld
    expect
    - expand/pr38-out.jsonld + 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
    @@ -9572,26 +9572,26 @@

    Terms in the form of a keyword, which are not keywords, are ignored.
    input
    - expand/pr39-in.jsonld + expand/pr39-in.jsonld
    expect
    - expand/pr39-out.jsonld + expand/pr39-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr40 Protected terms and property-scoped contexts
    -
    +
    id
    #tpr40
    Type
    @@ -9600,26 +9600,26 @@

    Check overriding of protected term from property-scoped context.
    input
    - expand/pr40-in.jsonld + expand/pr40-in.jsonld
    expect
    - expand/pr40-out.jsonld + expand/pr40-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr41 Allows protected redefinition of equivalent id terms
    -
    +
    id
    #tpr41
    Type
    @@ -9628,26 +9628,26 @@

    Check protected redefinition of equivalent id terms in different forms.
    input
    - expand/pr41-in.jsonld + expand/pr41-in.jsonld
    expect
    - expand/pr41-out.jsonld + expand/pr41-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr42 Fail if protected flag not retained during redefinition
    -
    +
    id
    #tpr42
    Type
    @@ -9656,7 +9656,7 @@

    Check protected redefinition retains protected flag.
    input
    - expand/pr42-in.jsonld + expand/pr42-in.jsonld
    expect
    @@ -9664,18 +9664,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tpr43 Clear protection in @graph @container with null context.
    -
    +
    id
    #tpr43
    Type
    @@ -9684,26 +9684,26 @@

    Clear protection in @graph @container with null context.
    input
    - expand/pr43-in.jsonld + expand/pr43-in.jsonld
    expect
    - expand/pr43-out.jsonld + expand/pr43-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso01 @import is invalid in 1.0.
    -
    +
    id
    #tso01
    Type
    @@ -9712,7 +9712,7 @@

    @import is invalid in 1.0.
    input
    - expand/so01-in.jsonld + expand/so01-in.jsonld
    expect
    @@ -9720,7 +9720,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -9729,11 +9729,11 @@

    -
    +
    Test tso02 @import must be a string
    -
    +
    id
    #tso02
    Type
    @@ -9742,7 +9742,7 @@

    @import must be a string.
    input
    - expand/so02-in.jsonld + expand/so02-in.jsonld
    expect
    @@ -9750,18 +9750,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso03 @import overflow
    -
    +
    id
    #tso03
    Type
    @@ -9770,7 +9770,7 @@

    Processors must detect source contexts that include @import.
    input
    - expand/so03-in.jsonld + expand/so03-in.jsonld
    expect
    @@ -9778,18 +9778,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso05 @propagate: true on type-scoped context with @import
    -
    +
    id
    #tso05
    Type
    @@ -9798,26 +9798,26 @@

    type-scoped context with @propagate: true survive node-objects (with @import)
    input
    - expand/so05-in.jsonld + expand/so05-in.jsonld
    expect
    - expand/so05-out.jsonld + expand/so05-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso06 @propagate: false on property-scoped context with @import
    -
    +
    id
    #tso06
    Type
    @@ -9826,26 +9826,26 @@

    property-scoped context with @propagate: false do not survive node-objects (with @import)
    input
    - expand/so06-in.jsonld + expand/so06-in.jsonld
    expect
    - expand/so06-out.jsonld + expand/so06-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso07 Protect all terms in sourced context
    -
    +
    id
    #tso07
    Type
    @@ -9854,7 +9854,7 @@

    A protected context protects all term definitions.
    input
    - expand/so07-in.jsonld + expand/so07-in.jsonld
    expect
    @@ -9862,18 +9862,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso08 Override term defined in sourced context
    -
    +
    id
    #tso08
    Type
    @@ -9882,26 +9882,26 @@

    The containing context is merged into the source context.
    input
    - expand/so08-in.jsonld + expand/so08-in.jsonld
    expect
    - expand/so08-out.jsonld + expand/so08-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso09 Override @vocab defined in sourced context
    -
    +
    id
    #tso09
    Type
    @@ -9910,26 +9910,26 @@

    The containing context is merged into the source context.
    input
    - expand/so09-in.jsonld + expand/so09-in.jsonld
    expect
    - expand/so09-out.jsonld + expand/so09-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso10 Protect terms in sourced context
    -
    +
    id
    #tso10
    Type
    @@ -9938,7 +9938,7 @@

    The containing context is merged into the source context.
    input
    - expand/so10-in.jsonld + expand/so10-in.jsonld
    expect
    @@ -9946,18 +9946,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso11 Override protected terms in sourced context
    -
    +
    id
    #tso11
    Type
    @@ -9966,26 +9966,26 @@

    The containing context is merged into the source context.
    input
    - expand/so11-in.jsonld + expand/so11-in.jsonld
    expect
    - expand/so11-out.jsonld + expand/so11-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso12 @import may not be used in an imported context.
    -
    +
    id
    #tso12
    Type
    @@ -9994,7 +9994,7 @@

    @import only valid within a term definition.
    input
    - expand/so12-in.jsonld + expand/so12-in.jsonld
    expect
    @@ -10002,18 +10002,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test tso13 @import can only reference a single context
    -
    +
    id
    #tso13
    Type
    @@ -10022,7 +10022,7 @@

    @import can only reference a single context.
    input
    - expand/so13-in.jsonld + expand/so13-in.jsonld
    expect
    @@ -10030,18 +10030,18 @@

    Options
    -
    +
    specVersion
    json-ld-1.1

    -
    +
    Test ttn01 @type: @none is illegal in 1.0.
    -
    +
    id
    #ttn01
    Type
    @@ -10050,7 +10050,7 @@

    @type: @none is illegal in json-ld-1.0.
    input
    - expand/tn01-in.jsonld + expand/tn01-in.jsonld
    expect
    @@ -10058,7 +10058,7 @@

    Options
    -
    +
    specVersion
    json-ld-1.1
    processingMode
    @@ -10067,11 +10067,11 @@

    -
    +
    Test ttn02 @type: @none expands strings as value objects
    -
    +
    id
    #ttn02
    Type
    @@ -10080,15 +10080,15 @@

    @type: @none leaves inputs other than strings alone
    input
    - expand/tn02-in.jsonld + expand/tn02-in.jsonld
    expect
    - expand/tn02-out.jsonld + expand/tn02-out.jsonld
    Options
    -
    +
    specVersion
    json-ld-1.1
    From ba6adc3dfbf44aaa114ca60e99c340822f38ad1d Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Wed, 15 Apr 2026 19:40:00 +0400 Subject: [PATCH 4/8] =?UTF-8?q?Fix=20formatting=20=C2=A9=20@TallTed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ted Thibodeau Jr --- tests/expand-manifest.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index d86c64dd..37481f69 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -3227,7 +3227,7 @@

    Type
    jld:PositiveEvaluationTest, jld:ExpandTest
    Purpose
    -
    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    +
    Property keys are expanded vocabulary-relative (`@vocab`, term definitions, compact IRIs with a defined prefix). `@base` is for document-relative IRI resolution where the algorithms pass that flag (e.g., certain `@id` and `@type` values), not for unmapped simple keys. With only `@base` set, an unmapped key like `name` has no vocabulary mapping and must be dropped; a relative `@type` token still resolves against the `base`. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    input
    expand/0132-in.jsonld From 85b4717f0017cba756b398a46276d4af3efaeee4 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Wed, 15 Apr 2026 19:40:10 +0400 Subject: [PATCH 5/8] =?UTF-8?q?Fix=20formatting=20=C2=A9=20@TallTed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ted Thibodeau Jr --- tests/expand-manifest.jsonld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/expand-manifest.jsonld b/tests/expand-manifest.jsonld index c60386c7..d6eaac5e 100644 --- a/tests/expand-manifest.jsonld +++ b/tests/expand-manifest.jsonld @@ -991,7 +991,7 @@ "@id": "#t0132", "@type": [ "jld:PositiveEvaluationTest", "jld:ExpandTest" ], "name": "@base does not expand property keys", - "purpose": "Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.", + "purpose": "Property keys are expanded vocabulary-relative (`@vocab`, term definitions, compact IRIs with a defined prefix). `@base` is for document-relative IRI resolution where the algorithms pass that flag (e.g., certain `@id` and `@type` values), not for unmapped simple keys. With only `@base` set, an unmapped key like `name` has no vocabulary mapping and must be dropped; a relative `@type` token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.", "input": "expand/0132-in.jsonld", "expect": "expand/0132-out.jsonld", "option": {"specVersion": "json-ld-1.1"} From 367724b3cf1fa9ee27e1013daa03401c2fe1d2c1 Mon Sep 17 00:00:00 2001 From: anatoly-scherbakov Date: Wed, 15 Apr 2026 15:40:36 +0000 Subject: [PATCH 6/8] Automated report generation --- tests/expand-manifest.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index 37481f69..d86c64dd 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -3227,7 +3227,7 @@

    Type
    jld:PositiveEvaluationTest, jld:ExpandTest
    Purpose
    -
    Property keys are expanded vocabulary-relative (`@vocab`, term definitions, compact IRIs with a defined prefix). `@base` is for document-relative IRI resolution where the algorithms pass that flag (e.g., certain `@id` and `@type` values), not for unmapped simple keys. With only `@base` set, an unmapped key like `name` has no vocabulary mapping and must be dropped; a relative `@type` token still resolves against the `base`. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    +
    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    input
    expand/0132-in.jsonld From 6f3acc4ea390b8a9f3527f4476d09ffe4b929747 Mon Sep 17 00:00:00 2001 From: Anatoly Scherbakov Date: Fri, 17 Apr 2026 11:39:53 +0400 Subject: [PATCH 7/8] Update tests/expand-manifest.html Co-authored-by: Ted Thibodeau Jr --- tests/expand-manifest.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index d86c64dd..10fae817 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -3227,7 +3227,7 @@

    Type
    jld:PositiveEvaluationTest, jld:ExpandTest
    Purpose
    -
    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g. certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    +
    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g., certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    input
    expand/0132-in.jsonld From 8fbed3303afe156ab37307b59f2471cd621526bd Mon Sep 17 00:00:00 2001 From: anatoly-scherbakov Date: Fri, 17 Apr 2026 07:40:25 +0000 Subject: [PATCH 8/8] Automated report generation --- tests/expand-manifest.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/expand-manifest.html b/tests/expand-manifest.html index 10fae817..398410d4 100644 --- a/tests/expand-manifest.html +++ b/tests/expand-manifest.html @@ -3227,7 +3227,7 @@

    Type
    jld:PositiveEvaluationTest, jld:ExpandTest
    Purpose
    -
    Property keys are expanded vocabulary-relative (@vocab, term definitions, compact IRIs with a defined prefix). @base is for document-relative IRI resolution where the algorithms pass that flag (e.g., certain @id and @type values), not for unmapped simple keys. With only @base set, an unmapped key like name has no vocabulary mapping and must be dropped; a relative @type token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    +
    Property keys are expanded vocabulary-relative (`@vocab`, term definitions, compact IRIs with a defined prefix). `@base` is for document-relative IRI resolution where the algorithms pass that flag (e.g., certain `@id` and `@type` values), not for unmapped simple keys. With only `@base` set, an unmapped key like `name` has no vocabulary mapping and must be dropped; a relative `@type` token still resolves against the base. See IRI Expansion in the JSON-LD 1.1 Processing Algorithms and API.
    input
    expand/0132-in.jsonld