diff --git a/.gitignore b/.gitignore index aeafccd3..0ca3bf9b 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.DS_store .classpath .project .settings diff --git a/core/src/main/java/com/github/jsonldjava/core/Context.java b/core/src/main/java/com/github/jsonldjava/core/Context.java index 8c149b08..d0842054 100644 --- a/core/src/main/java/com/github/jsonldjava/core/Context.java +++ b/core/src/main/java/com/github/jsonldjava/core/Context.java @@ -4,11 +4,13 @@ import static com.github.jsonldjava.utils.Obj.newMap; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Optional; import com.github.jsonldjava.core.JsonLdError.Error; import com.github.jsonldjava.utils.JsonLdUrl; @@ -215,6 +217,18 @@ else if (context instanceof String) { // 3.3 throw new JsonLdError(Error.INVALID_LOCAL_CONTEXT, context); } + // 5.5 in 1.1 (https://w3c.github.io/json-ld-api/#context-processing-algorithm) + if (((Map) context).containsKey(JsonLdConsts.VERSION)) { + final Object version = ((Map) context).get(JsonLdConsts.VERSION); + // 5.5.1 + if(!version.equals(Double.valueOf(1.1))) { + throw new JsonLdError(Error.INVALID_VERSION_VALUE, context); + } + // 5.5.2 + if(options.getProcessingMode().equals(JsonLdOptions.JSON_LD_1_0)) { + throw new JsonLdError(Error.PROCESSING_MODE_CONFLICT, context); + } + } checkEmptyKey((Map) context); // 3.4 if (!parsingARemoteContext @@ -248,12 +262,15 @@ else if (context instanceof String) { final Object value = ((Map) context).get(JsonLdConsts.VOCAB); if (value == null) { result.remove(JsonLdConsts.VOCAB); - } else if (value instanceof String) { - if (JsonLdUtils.isAbsoluteIri((String) value)) { - result.put(JsonLdConsts.VOCAB, value); + } + // jsonld 1.1: 5.8.3 in https://w3c.github.io/json-ld-api/#algorithm + else if (value instanceof String) { + if (((String) value).startsWith(JsonLdConsts.BLANK_NODE_PREFIX) + || JsonLdUtils.isAbsoluteIri((String) value) || JsonLdUtils.isRelativeIri((String) value)) { + result.put(JsonLdConsts.VOCAB, + expandIri((String) value, true, true, ((Map) result), null)); } else { - throw new JsonLdError(Error.INVALID_VOCAB_MAPPING, - "@value must be an absolute IRI"); + throw new JsonLdError(Error.INVALID_VOCAB_MAPPING, value); } } else { throw new JsonLdError(Error.INVALID_VOCAB_MAPPING, @@ -276,8 +293,12 @@ else if (context instanceof String) { // 3.7 final Map defined = new LinkedHashMap(); for (final String key : ((Map) context).keySet()) { - if (JsonLdConsts.BASE.equals(key) || JsonLdConsts.VOCAB.equals(key) - || JsonLdConsts.LANGUAGE.equals(key)) { + // jsonld 1.1: 5.13 in https://w3c.github.io/json-ld-api/#algorithm + if (Arrays + .asList(JsonLdConsts.BASE, JsonLdConsts.DIRECTION, JsonLdConsts.IMPORT, + JsonLdConsts.LANGUAGE, JsonLdConsts.PROPAGATE, + JsonLdConsts.PROTECTED, JsonLdConsts.VERSION, JsonLdConsts.VOCAB) + .contains(key)) { continue; } result.createTermDefinition((Map) context, key, defined); @@ -366,15 +387,19 @@ private void createTermDefinition(Map context, String term, } throw new JsonLdError(Error.INVALID_TYPE_MAPPING, type, error); } + // jsonld 1.1: 13.3 in https://w3c.github.io/json-ld-api/#algorithm-0 + if (JsonLdOptions.JSON_LD_1_0.equals(options.getProcessingMode()) + && (JsonLdConsts.NONE.equals(type) || JsonLdConsts.JSON.equals(type))) { + throw new JsonLdError(Error.INVALID_TYPE_MAPPING, type); + } // TODO: fix check for absoluteIri (blank nodes shouldn't count, at // least not here!) - if (JsonLdConsts.ID.equals(type) || JsonLdConsts.VOCAB.equals(type) - || (!type.startsWith(JsonLdConsts.BLANK_NODE_PREFIX) - && JsonLdUtils.isAbsoluteIri(type))) { - definition.put(JsonLdConsts.TYPE, type); - } else { + else if (!JsonLdConsts.ID.equals(type) && !JsonLdConsts.VOCAB.equals(type) + && !JsonLdConsts.JSON.equals(type) && !JsonLdConsts.NONE.equals(type) + && (!JsonLdUtils.isAbsoluteIri(type) || type.startsWith(JsonLdConsts.BLANK_NODE_PREFIX))) { throw new JsonLdError(Error.INVALID_TYPE_MAPPING, type); } + definition.put(JsonLdConsts.TYPE, type); } // 11) @@ -396,13 +421,15 @@ private void createTermDefinition(Map context, String term, } definition.put(JsonLdConsts.ID, reverse); if (val.containsKey(JsonLdConsts.CONTAINER)) { - final String container = (String) val.get(JsonLdConsts.CONTAINER); + final Object containerObject = val.get(JsonLdConsts.CONTAINER); + final String container = selectContainer(checkValidContainerEntry(containerObject)); if (container == null || JsonLdConsts.SET.equals(container) || JsonLdConsts.INDEX.equals(container)) { definition.put(JsonLdConsts.CONTAINER, container); } else { throw new JsonLdError(Error.INVALID_REVERSE_PROPERTY, - "reverse properties only support set- and index-containers"); + "reverse properties only support set- and index-containers, but was: " + + containerObject); } } definition.put(JsonLdConsts.REVERSE, true); @@ -430,7 +457,7 @@ private void createTermDefinition(Map context, String term, definition.put(JsonLdConsts.ID, res); } else { throw new JsonLdError(Error.INVALID_IRI_MAPPING, - "resulting IRI mapping should be a keyword, absolute IRI or blank node"); + "resulting IRI mapping should be a keyword, absolute IRI or blank node, but was: " + res); } } @@ -459,12 +486,16 @@ else if (term.indexOf(":") >= 0) { // 16) if (val.containsKey(JsonLdConsts.CONTAINER)) { - final String container = (String) val.get(JsonLdConsts.CONTAINER); - if (!JsonLdConsts.LIST.equals(container) && !JsonLdConsts.SET.equals(container) - && !JsonLdConsts.INDEX.equals(container) - && !JsonLdConsts.LANGUAGE.equals(container)) { - throw new JsonLdError(Error.INVALID_CONTAINER_MAPPING, - "@container must be either @list, @set, @index, or @language"); + Object containerObject = val.get(JsonLdConsts.CONTAINER); + final List allContainers = checkValidContainerEntry(containerObject); + if (allContainers.isEmpty()) { + throw new JsonLdError(Error.INVALID_CONTAINER_MAPPING, containerObject); + } + String container = selectContainer(allContainers); + if (container == null) { + throw new JsonLdError(Error.NOT_IMPLEMENTED, + "@container must be either @type, @id, @list, @set, @index, or @language, but was: " + + allContainers); } definition.put(JsonLdConsts.CONTAINER, container); if (JsonLdConsts.TYPE.equals(term)) { @@ -490,6 +521,35 @@ else if (term.indexOf(":") >= 0) { defined.put(term, true); } + private String selectContainer(final List allContainers) { + Optional supportedContainer = allContainers + .stream().filter(c -> Arrays.asList(JsonLdConsts.TYPE, JsonLdConsts.ID, JsonLdConsts.LIST, + JsonLdConsts.SET, JsonLdConsts.INDEX, JsonLdConsts.LANGUAGE, JsonLdConsts.GRAPH).contains(c)) + .findFirst(); + return (String) supportedContainer.orElse(null); + } + + // jsonld 1.1: 22.1 in https://w3c.github.io/json-ld-api/#create-term-definition + private List checkValidContainerEntry(final Object containerObject) { + List container = (List) (containerObject instanceof List ? containerObject + : Arrays.asList(containerObject)); + boolean anyOneOf = Arrays.asList(JsonLdConsts.GRAPH, JsonLdConsts.ID, JsonLdConsts.INDEX, + JsonLdConsts.LANGUAGE, JsonLdConsts.LIST, JsonLdConsts.SET, JsonLdConsts.TYPE) + .stream().anyMatch(v -> container.contains(v)) && container.size() == 1; + boolean graphWithOthers = container.contains(JsonLdConsts.GRAPH) + && (container.contains(JsonLdConsts.ID) || container.contains(JsonLdConsts.INDEX) + || container.contains(JsonLdConsts.SET)); + boolean setWithOthers = container.contains(JsonLdConsts.SET) + && Arrays + .asList(JsonLdConsts.INDEX, JsonLdConsts.ID, JsonLdConsts.TYPE, + JsonLdConsts.LANGUAGE) + .stream().anyMatch(v -> container.contains(v)); + if (anyOneOf || graphWithOthers || setWithOthers) { + return container; + } else + return Collections.emptyList(); + } + /** * IRI Expansion Algorithm * @@ -553,8 +613,6 @@ String expandIri(String value, boolean relative, boolean vocab, Map typeMap = (Map) typeLanguageMap + .get(JsonLdConsts.TYPE); // 3.8) if (Boolean.TRUE.equals(definition.get(JsonLdConsts.REVERSE))) { - final Map typeMap = (Map) typeLanguageMap - .get(JsonLdConsts.TYPE); if (!typeMap.containsKey(JsonLdConsts.REVERSE)) { typeMap.put(JsonLdConsts.REVERSE, term); } - // 3.9) - } else if (definition.containsKey(JsonLdConsts.TYPE)) { - final Map typeMap = (Map) typeLanguageMap - .get(JsonLdConsts.TYPE); + } + // jsonld 1.1: 3.10 in https://w3c.github.io/json-ld-api/#inverse-context-creation + else if(JsonLdConsts.NONE.equals(definition.get(JsonLdConsts.TYPE))) { + final Map languageMap = (Map) typeLanguageMap + .get(JsonLdConsts.LANGUAGE); + if(!languageMap.containsKey(JsonLdConsts.ANY)) { + languageMap.put(JsonLdConsts.ANY, term); + } + if(!typeMap.containsKey(JsonLdConsts.ANY)) { + typeMap.put(JsonLdConsts.ANY, term); + } + } + // 3.9) + else if (definition.containsKey(JsonLdConsts.TYPE)) { if (!typeMap.containsKey(definition.get(JsonLdConsts.TYPE))) { typeMap.put((String) definition.get(JsonLdConsts.TYPE), term); } @@ -998,9 +1066,6 @@ public int compare(String a, String b) { if (!languageMap.containsKey(JsonLdConsts.NONE)) { languageMap.put(JsonLdConsts.NONE, term); } - // 3.11.4) - final Map typeMap = (Map) typeLanguageMap - .get(JsonLdConsts.TYPE); // 3.11.5) if (!typeMap.containsKey(JsonLdConsts.NONE)) { typeMap.put(JsonLdConsts.NONE, term); diff --git a/core/src/main/java/com/github/jsonldjava/core/JsonLdApi.java b/core/src/main/java/com/github/jsonldjava/core/JsonLdApi.java index 74cea926..f6cdeedc 100644 --- a/core/src/main/java/com/github/jsonldjava/core/JsonLdApi.java +++ b/core/src/main/java/com/github/jsonldjava/core/JsonLdApi.java @@ -188,7 +188,12 @@ public Object compact(Context activeCtx, String activeProperty, Object element, // 4 if (elem.containsKey(JsonLdConsts.VALUE) || elem.containsKey(JsonLdConsts.ID)) { final Object compactedValue = activeCtx.compactValue(activeProperty, elem); - if (!(compactedValue instanceof Map || compactedValue instanceof List)) { + boolean isScalar = !(compactedValue instanceof Map || compactedValue instanceof List); + // jsonld 1.1: 7 in https://w3c.github.io/json-ld-api/#algorithm-6 + boolean isJson = activeCtx.getTermDefinition(activeProperty) != null + && JsonLdConsts.JSON.equals( + activeCtx.getTermDefinition(activeProperty).get(JsonLdConsts.TYPE)); + if (isScalar || isJson) { return compactedValue; } } @@ -312,7 +317,9 @@ else if (JsonLdConsts.INDEX.equals(expandedProperty) // NOTE: expanded value must be an array due to expansion // algorithm. - + if (!(expandedValue instanceof List)) { + throw new JsonLdError(Error.NOT_IMPLEMENTED, "no array: " + expandedValue); + } // 7.5) if (((List) expandedValue).size() == 0) { // 7.5.1) @@ -523,10 +530,11 @@ public Object expand(Context activeCtx, String activeProperty, Object element) // 3.2.1) final Object v = expand(activeCtx, activeProperty, item); // 3.2.2) - if ((JsonLdConsts.LIST.equals(activeProperty) - || JsonLdConsts.LIST.equals(activeCtx.getContainer(activeProperty))) - && (v instanceof List || (v instanceof Map - && ((Map) v).containsKey(JsonLdConsts.LIST)))) { + if (opts.getProcessingMode().equals(JsonLdOptions.JSON_LD_1_0) + && (JsonLdConsts.LIST.equals(activeProperty) + || JsonLdConsts.LIST.equals(activeCtx.getContainer(activeProperty))) + && (v instanceof List + || (v instanceof Map && ((Map) v).containsKey(JsonLdConsts.LIST)))) { throw new JsonLdError(Error.LIST_OF_LISTS, "lists of lists are not permitted."); } // 3.2.3) @@ -580,6 +588,8 @@ else if (element instanceof Map) { throw new JsonLdError(Error.COLLIDING_KEYWORDS, expandedProperty + " already exists in result"); } + // jsonld 1.1: 12 in https://w3c.github.io/json-ld-api/#algorithm-3 + Object inputType = elem.get(JsonLdConsts.TYPE); // 7.4.3) if (JsonLdConsts.ID.equals(expandedProperty)) { if (value instanceof String) { @@ -645,11 +655,23 @@ else if (JsonLdConsts.GRAPH.equals(expandedProperty)) { } // 7.4.6) else if (JsonLdConsts.VALUE.equals(expandedProperty)) { - if (value != null && (value instanceof Map || value instanceof List)) { + // jsonld 1.1: 13.4.7.1 in https://w3c.github.io/json-ld-api/#algorithm-3 + if(JsonLdConsts.JSON.equals(inputType)) { + expandedValue = value; + if(opts.getProcessingMode().equals(JsonLdOptions.JSON_LD_1_0)) { + throw new JsonLdError(Error.INVALID_VALUE_OBJECT_VALUE, value); + } + } + // jsonld 1.1: 13.4.7.2 in https://w3c.github.io/json-ld-api/#algorithm-3 + else if (value != null && (value instanceof Map || value instanceof List)) { throw new JsonLdError(Error.INVALID_VALUE_OBJECT_VALUE, - "value of " + expandedProperty + " must be a scalar or null"); + "value of " + expandedProperty + " must be a scalar or null, but was: " + value); } - expandedValue = value; + // jsonld 1.1: 13.4.7.3 in https://w3c.github.io/json-ld-api/#algorithm-3 + else { + expandedValue = value; + } + // jsonld 1.1: 13.4.7.4 in https://w3c.github.io/json-ld-api/#algorithm-3 if (expandedValue == null) { result.put(JsonLdConsts.VALUE, null); continue; @@ -688,11 +710,13 @@ else if (JsonLdConsts.LIST.equals(expandedProperty)) { } // 7.4.9.3) - for (final Object o : (List) expandedValue) { - if (o instanceof Map - && ((Map) o).containsKey(JsonLdConsts.LIST)) { - throw new JsonLdError(Error.LIST_OF_LISTS, - "A list may not contain another list"); + if(opts.getProcessingMode().equals(JsonLdOptions.JSON_LD_1_0)) { + for (final Object o : (List) expandedValue) { + if (o instanceof Map + && ((Map) o).containsKey(JsonLdConsts.LIST)) { + throw new JsonLdError(Error.LIST_OF_LISTS, + "A list may not contain another list"); + } } } } @@ -779,14 +803,26 @@ else if (frameExpansion && (JsonLdConsts.EXPLICIT.equals(expandedProperty) expandedValue = expand(activeCtx, expandedProperty, value); } // 7.4.12) - if (expandedValue != null) { + // jsonld 1.1: 13.4.16 in https://w3c.github.io/json-ld-api/#algorithm-3 + if (!(expandedValue == null && JsonLdConsts.VALUE.equals(expandedProperty) + && (inputType == null || JsonLdConsts.JSON.equals(inputType)))) { result.put(expandedProperty, expandedValue); } // 7.4.13) continue; } + // jsonld 1.1: 13.5 in https://w3c.github.io/json-ld-api/#algorithm-3 + String containerMapping = activeCtx.getContainer(key); + // jsonld 1.1: 13.6 in https://w3c.github.io/json-ld-api/#algorithm-3 + if (activeCtx.getTermDefinition(key) != null + && JsonLdConsts.JSON.equals(activeCtx.getTermDefinition(key).get(JsonLdConsts.TYPE))) { + Map newMap = newMap(); + newMap.put(JsonLdConsts.VALUE, value); + newMap.put(JsonLdConsts.TYPE, JsonLdConsts.JSON); + expandedValue = newMap; + } // 7.5 - else if (JsonLdConsts.LANGUAGE.equals(activeCtx.getContainer(key)) + else if (JsonLdConsts.LANGUAGE.equals(containerMapping) && value instanceof Map) { // 7.5.1) expandedValue = new ArrayList(); @@ -801,6 +837,10 @@ else if (JsonLdConsts.LANGUAGE.equals(activeCtx.getContainer(key)) } // 7.5.2.2) for (final Object item : (List) languageValue) { + // jsonld 1.1: 13.7.4.2.1 in https://w3c.github.io/json-ld-api/#expansion-algorithm + if(item == null) { + continue; + } // 7.5.2.2.1) if (!(item instanceof String)) { throw new JsonLdError(Error.INVALID_LANGUAGE_MAP_VALUE, @@ -937,8 +977,11 @@ else if (JsonLdConsts.INDEX.equals(activeCtx.getContainer(key)) // null, so simply return it return null; } + else if (result.getOrDefault(JsonLdConsts.TYPE,"").equals(JsonLdConsts.JSON)) { + // jsonld 1.1: 14.3 in https://w3c.github.io/json-ld-api/#algorithm-3 + } // 8.3) - if (!(rval instanceof String) && result.containsKey(JsonLdConsts.LANGUAGE)) { + else if (!(rval instanceof String) && result.containsKey(JsonLdConsts.LANGUAGE)) { throw new JsonLdError(Error.INVALID_LANGUAGE_TAGGED_VALUE, "when @language is used, @value must be a string"); } diff --git a/core/src/main/java/com/github/jsonldjava/core/JsonLdConsts.java b/core/src/main/java/com/github/jsonldjava/core/JsonLdConsts.java index 9de5b76b..f88be694 100644 --- a/core/src/main/java/com/github/jsonldjava/core/JsonLdConsts.java +++ b/core/src/main/java/com/github/jsonldjava/core/JsonLdConsts.java @@ -27,6 +27,7 @@ public final class JsonLdConsts { public static final String RDF_OBJECT = RDF_SYNTAX_NS + "object"; public static final String RDF_LANGSTRING = RDF_SYNTAX_NS + "langString"; public static final String RDF_LIST = RDF_SYNTAX_NS + "List"; + public static final String RDF_JSON = RDF_SYNTAX_NS + "JSON"; public static final String TEXT_TURTLE = "text/turtle"; public static final String APPLICATION_NQUADS = "application/n-quads"; // https://www.w3.org/TR/n-quads/#sec-mediatype @@ -58,6 +59,13 @@ public final class JsonLdConsts { public static final String VOCAB = "@vocab"; public static final String BASE = "@base"; public static final String REQUIRE_ALL = "@requireAll"; + public static final String VERSION = "@version"; + public static final String PROTECTED = "@protected"; + public static final String PROPAGATE = "@propagate"; + public static final String IMPORT = "@import"; + public static final String DIRECTION = "@direction"; + public static final String JSON = "@json"; + public static final String ANY = "@any"; public enum Embed { ALWAYS, NEVER, LAST, LINK; diff --git a/core/src/main/java/com/github/jsonldjava/core/JsonLdError.java b/core/src/main/java/com/github/jsonldjava/core/JsonLdError.java index 21ab5772..e5a82ad3 100644 --- a/core/src/main/java/com/github/jsonldjava/core/JsonLdError.java +++ b/core/src/main/java/com/github/jsonldjava/core/JsonLdError.java @@ -102,10 +102,14 @@ public enum Error { INVALID_EMBED_VALUE("invalid @embed value"), + INVALID_VERSION_VALUE("invalid @version value"), + + PROCESSING_MODE_CONFLICT("processing mode conflict"), + // non spec related errors SYNTAX_ERROR("syntax error"), - NOT_IMPLEMENTED("not implemnted"), + NOT_IMPLEMENTED("not implemented"), UNKNOWN_FORMAT("unknown format"), @@ -113,6 +117,8 @@ public enum Error { PARSE_ERROR("parse error"), + INVALID_JSON_LITERAL("invalid JSON literal"), + UNKNOWN_ERROR("unknown error"); private final String error; diff --git a/core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java b/core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java index ff0038ee..858ecb40 100644 --- a/core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java +++ b/core/src/main/java/com/github/jsonldjava/core/JsonLdOptions.java @@ -86,7 +86,7 @@ public JsonLdOptions copy() { /** * http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-processingMode */ - private String processingMode = JSON_LD_1_0; + private String processingMode = JSON_LD_1_1; /** * http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-documentLoader */ diff --git a/core/src/main/java/com/github/jsonldjava/core/JsonLdUtils.java b/core/src/main/java/com/github/jsonldjava/core/JsonLdUtils.java index e0accff7..a70ac560 100644 --- a/core/src/main/java/com/github/jsonldjava/core/JsonLdUtils.java +++ b/core/src/main/java/com/github/jsonldjava/core/JsonLdUtils.java @@ -32,7 +32,10 @@ static boolean isKeyword(Object key) { || "@language".equals(key) || "@list".equals(key) || "@omitDefault".equals(key) || "@reverse".equals(key) || "@preserve".equals(key) || "@set".equals(key) || "@type".equals(key) || "@value".equals(key) || "@vocab".equals(key) - || "@requireAll".equals(key); + || "@requireAll".equals(key) || "@version".equals(key)|| "@protected".equals(key) + || "@propagate".equals(key)|| "@import".equals(key)|| "@direction".equals(key) + || "@json".equals(key) || "@none".equals(key) || "@included".equals(key) + || "@nest".equals(key) || "@prefix".equals(key); } public static Boolean deepCompare(Object v1, Object v2, Boolean listOrderMatters) { diff --git a/core/src/main/java/com/github/jsonldjava/core/RDFDataset.java b/core/src/main/java/com/github/jsonldjava/core/RDFDataset.java index 43e279a8..8bff13df 100644 --- a/core/src/main/java/com/github/jsonldjava/core/RDFDataset.java +++ b/core/src/main/java/com/github/jsonldjava/core/RDFDataset.java @@ -5,6 +5,7 @@ import static com.github.jsonldjava.core.JsonLdConsts.RDF_NIL; import static com.github.jsonldjava.core.JsonLdConsts.RDF_REST; import static com.github.jsonldjava.core.JsonLdConsts.RDF_TYPE; +import static com.github.jsonldjava.core.JsonLdConsts.RDF_JSON; import static com.github.jsonldjava.core.JsonLdConsts.XSD_BOOLEAN; import static com.github.jsonldjava.core.JsonLdConsts.XSD_DOUBLE; import static com.github.jsonldjava.core.JsonLdConsts.XSD_INTEGER; @@ -16,6 +17,7 @@ import static com.github.jsonldjava.core.JsonLdUtils.isValue; import static com.github.jsonldjava.utils.Obj.newMap; +import java.io.IOException; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.util.ArrayList; @@ -27,6 +29,8 @@ import java.util.Set; import java.util.regex.Pattern; +import com.github.jsonldjava.utils.JsonUtils; + /** * Starting to migrate away from using plain java Maps as the internal RDF * dataset store. Currently each item just wraps a Map based on the old format @@ -239,7 +243,18 @@ Map toObject(Boolean useNativeTypes) throws JsonLdError { else { rval.put("@type", type); } - } else if (!XSD_STRING.equals(type)) { + } + // jsonld 1.1: 2.5 in https://w3c.github.io/json-ld-api/#algorithm-16 + else if(RDF_JSON.equals(type)) { + rval.put("@type", "@json"); + try { + rval.put("@value", JsonUtils.fromString(value)); + } catch (IOException e) { + e.printStackTrace(); + throw new JsonLdError(JsonLdError.Error.INVALID_JSON_LITERAL, value, e); + } + } + else if (!XSD_STRING.equals(type)) { rval.put("@type", type); } } @@ -680,7 +695,17 @@ private Node objectToRDF(Object item) { return new Literal((String) value, datatype == null ? RDF_LANGSTRING : (String) datatype, (String) ((Map) item).get("@language")); - } else { + } + // jsonld 1.1: 8 in https://w3c.github.io/json-ld-api/#algorithm-13 + else if(JsonLdConsts.JSON.equals(datatype)) { + try { + return new Literal(JsonUtils.toString(value), RDF_JSON, null); + } catch (IOException e) { + e.printStackTrace(); + return null; + } + } + else { return new Literal((String) value, datatype == null ? XSD_STRING : (String) datatype, null); } diff --git a/core/src/test/java/com/github/jsonldjava/core/JsonLdProcessorTest.java b/core/src/test/java/com/github/jsonldjava/core/JsonLdProcessorTest.java index b3074db5..a799e093 100644 --- a/core/src/test/java/com/github/jsonldjava/core/JsonLdProcessorTest.java +++ b/core/src/test/java/com/github/jsonldjava/core/JsonLdProcessorTest.java @@ -46,6 +46,7 @@ public class JsonLdProcessorTest { private static final String TEST_DIR = "json-ld.org"; + private static final String MANIFEST_FILE = "manifest.jsonld"; private static Map REPORT; private static List REPORT_GRAPH; @@ -184,22 +185,37 @@ public static Collection data() throws URISyntaxException, IOException // https://github.com/json-ld/json-ld.org/tree/master/test-suite/tests final ClassLoader cl = Thread.currentThread().getContextClassLoader(); - final File f = new File(cl.getResource(TEST_DIR).toURI()); - final List manifestfiles = Arrays.asList(f.listFiles(new FilenameFilter() { - @Override - public boolean accept(File dir, String name) { - if (name.contains("manifest") && name.endsWith(".jsonld")) { - // System.out.println("Using manifest: " + dir + " " - // + name); - // Remote-doc tests are not currently supported - if (name.contains("remote-doc")) { - return false; - } - return true; - } - return false; - } - })); + final File testDir = new File(cl.getResource(TEST_DIR).toURI()); + final File mainManifestFile = new File(testDir, MANIFEST_FILE); + + final Map mainManifest = (Map) JsonUtils + .fromInputStream(new FileInputStream(mainManifestFile)); + + final List manifestFileNames = (List) mainManifest + .get("sequence"); + + final List manifestfiles = new ArrayList(); + + for (final String manifestFileName : manifestFileNames) { + System.out.println("Using manifest: " + testDir + " " + manifestFileName); + manifestfiles.add(new File(testDir, manifestFileName)); + } + + // final List manifestfiles = Arrays.asList(f.listFiles(new FilenameFilter() { + // @Override + // public boolean accept(File dir, String name) { + // if (name.contains("manifest") && name.endsWith(".jsonld") && !name.equals("manifest.jsonld")) { + // System.out.println("Using manifest: " + dir + " " + // + name); + // // Remote-doc tests are not currently supported + // if (name.contains("remote-doc")) { + // return false; + // } + // return true; + // } + // return false; + // } + // })); final Collection rdata = new ArrayList(); for (final File in : manifestfiles) { @@ -385,8 +401,6 @@ public void runTest() throws URISyntaxException, IOException, JsonLdError { } } else if (testType.contains("jld:NegativeEvaluationTest")) { failure_expected = true; - } else { - assertFalse("Nothing to expect from this test, thus nothing to test if it works", true); } Object result = null; @@ -496,7 +510,7 @@ public void runTest() throws URISyntaxException, IOException, JsonLdError { } } } else { - testpassed = JsonLdUtils.deepCompare(expect, result); + testpassed = testType.contains("jld:PositiveSyntaxTest") || JsonLdUtils.deepCompare(expect, result); } } catch (final Exception e) { e.printStackTrace(); diff --git a/core/src/test/resources/json-ld.org/LICENSE.md b/core/src/test/resources/json-ld.org/LICENSE.md new file mode 100644 index 00000000..5342a9b1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/LICENSE.md @@ -0,0 +1,2 @@ +The JSON-LD Test Suite is covered by the dual-licensing approach described in +[LICENSES FOR W3C TEST SUITES](https://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html). diff --git a/core/src/test/resources/json-ld.org/README.md b/core/src/test/resources/json-ld.org/README.md new file mode 100644 index 00000000..417a89a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/README.md @@ -0,0 +1,87 @@ +# Introduction + +The JSON-LD Test Suite is a set of tests that can +be used to verify JSON-LD Processor conformance to the set of specifications +that constitute JSON-LD. The goal of the suite is to provide an easy and +comprehensive JSON-LD testing solution for developers creating JSON-LD Processors. + +More information and an RDFS definition of the test vocabulary can be found at [vocab](https://w3c.github.io/json-ld-api/tests/vocab). + +# Design + +Tests are defined into _compact_, _expand_, _flatten_, _remote-doc_, _fromRdf_, and _toRdf_ sections: + +* _compact_ tests have _input_, _expected_ and _context_ documents. + The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. Additionally, if the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison). + + For *NegativeEvaluationTests*, the result is a string associated with the expected error code. +* _expand_ tests have _input_ and _expected_ documents. + The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. + + For *NegativeEvaluationTests*, the result is a string associated with the expected error code. +* _flatten_ tests have _input_ and _expected_ documents and an optional _context_ document. + The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output + after potentially remapping blank node identifiers (see below). + Additionally, if the result is compacted and the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison). + + For *NegativeEvaluationTests*, the result is a string associated with the expected error code. +* _remote-doc_ tests have _input_ and _expected_ documents. + The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. + + For *NegativeEvaluationTests*, the result is a string associated with the expected error code. Options may be present to describe the intended HTTP behavior: + * _contentType_: Content-Type of the returned HTTP payload, defaults to the appropriate type for the _input_ suffix. + * _httpStatus_: The HTTP status code to return, defaults to `200`. + * _redirectTo_: The HTTP _Content-Location_ header value. + * _httpLink_: The HTTP _Link_ header value. +* _fromRdf_ tests have _input_ and _expected_ documents. + The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output. +* _toRdf_ tests have _input_ and _expected_ documents. + The _expected_ results can be compared using [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism). +* _http_ tests have _input_ and _expected_ documents and an optional _context_ document. + These tests describe the behavior of an HTTP server performing content-negotiation using the ACCEPT header, specified using the _accept_ option to generate the _expected_ result document. + The _expected_ results can be compared using [JSON-LD object comparison](#json-ld-object-comparison) with the processor output + after potentially remapping blank node identifiers (see below). + Additionally, if the result is compacted and the `ordered` option is not set, result should be expanded and compared with the expanded _expected_ document also using [JSON-LD object comparison](#json-ld-object-comparison). + + If the result is to be compacted, and no explicit context URL is provided, test subjects should use http/default-context.jsonld + + If the profile parameter includes http://example.com/do-not-use, test subjects should reject the URL and not accept the media type. Otherwise, for any other URL, applications should apply the specified URL for the context or frame, as appropriate. + + For *NegativeEvaluationTests*, the result is the expected HTTP status. Options may be present to describe the intended HTTP behavior: + * _accept_: The HTTP _Accept_ header value. + +Unless `processingMode` is set explicitly in a test entry, `processingMode` is compatible with both `json-ld-1.0` and `json-ld-1.1`. + +Test results that include a context input presume that the context is provided locally, and not from the referenced location, thus the results will include the content of the context file, rather than a reference. + +## JSON-LD Object comparison + +If algorithms are invoked with the `ordered` flag set to `true`, simple JSON Object comparison may be used, as the order of all arrays will be preserved (except for _fromRdf_, unless the input quads are also ordered). If `ordered` is `false`, then the following algorithm will ensure arrays other than values of `@list` are compared without regard to order. + +JSON-LD Object comparison compares JSON objects, arrays, and values recursively for equality. + +* JSON objects are compared member by member without regard to the ordering of members within the object. Each member must have a corresponding member in the object being compared to. Values are compared recursively. +* JSON arrays are generally compared without regard to order (the lone exception being if the referencing key is `@list`). Each item within the array must be equivalent to an item in the array being compared to by using the comparison algorithm recursively. For values of `@list`, the order of these items is significant. +* JSON values are compared using strict equality. + +Note that some tests require re-expansion and comparison, as list values may exist as values of properties that have `@container: @list` and the comparison algorithm will not consider ordering significant. + +# Running tests + +Implementations create their own infrastructure for running the test suite. In particular, the following should be considered: + +* _remote-doc_ tests will likely not return expected HTTP headers, so the _options_ should be used to determine what headers are associated with the input document. +* Some algorithms, particularly _fromRdf_, may not preserve the order of statements listed in the input document, and provision should be taken for performing unordered array comparison, for arrays other than values of `@list`. (This may be difficult for compacted results, where array value ordering is dependent on the associated term definition). +* When comparing documents after flattening, framing or generating RDF, blank node identifiers may not be predictable. Implementations using the JSON-LD 1.0 algorithm, where output is always sorted and blank node identifiers are generated sequentially from `_:b0` may continue to use a simple object comparison. Otherwise, implementations should take this into consideration. (One way to do this may be to reduce both results and _expected_ to datsets to extract a bijective mapping of blank node labels between the two datasets as described in [RDF Dataset Isomorphism](https://www.w3.org/TR/rdf11-concepts/#dfn-dataset-isomorphism)). + +# Contributing + +If you would like to contribute a new test or a fix to an existing test, +please follow these steps: + +1. Notify the JSON-LD mailing list, public-json-ld-wg@w3.org, + that you will be creating a new test or fix and the purpose of the + change. +2. Clone the git repository: git://github.com/w3c/json-ld-wg.git +3. Make your changes and submit them via github, or via a 'git format-patch' + to the [JSON-LD Working Group mailing list](mailto:json-ld-wg@w3.org). diff --git a/core/src/test/resources/json-ld.org/compact-0007-context.jsonld b/core/src/test/resources/json-ld.org/compact-0007-context.jsonld deleted file mode 100644 index 05b0b307..00000000 --- a/core/src/test/resources/json-ld.org/compact-0007-context.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:authored": {"@type": "@id"}, - "ex:contains": {"@type": "@id"}, - "foaf": "http://xmlns.com/foaf/0.1/" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0007-out.jsonld b/core/src/test/resources/json-ld.org/compact-0007-out.jsonld deleted file mode 100644 index 10bd5977..00000000 --- a/core/src/test/resources/json-ld.org/compact-0007-out.jsonld +++ /dev/null @@ -1,34 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:authored": {"@type": "@id"}, - "ex:contains": {"@type": "@id"}, - "foaf": "http://xmlns.com/foaf/0.1/" - }, - "@graph": [ - { - "@id": "http://example.org/test#chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - }, - { - "@id": "http://example.org/test#jane", - "ex:authored": "http://example.org/test#chapter", - "foaf:name": "Jane" - }, - { - "@id": "http://example.org/test#john", - "foaf:name": "John" - }, - { - "@id": "http://example.org/test#library", - "ex:contains": { - "@id": "http://example.org/test#book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "http://example.org/vocab#contains": "this-is-not-an-IRI" - } - } - ] -} diff --git a/core/src/test/resources/json-ld.org/compact-0009-context.jsonld b/core/src/test/resources/json-ld.org/compact-0009-context.jsonld deleted file mode 100644 index 0d0575fa..00000000 --- a/core/src/test/resources/json-ld.org/compact-0009-context.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0009-out.jsonld b/core/src/test/resources/json-ld.org/compact-0009-out.jsonld deleted file mode 100644 index a77c4fcf..00000000 --- a/core/src/test/resources/json-ld.org/compact-0009-out.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@id": "http://example.org/test#book", - "dc:title": "Title", - "ex:contains": "http://example.org/test#chapter" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0037-in.jsonld b/core/src/test/resources/json-ld.org/compact-0037-in.jsonld deleted file mode 100644 index ca350a2e..00000000 --- a/core/src/test/resources/json-ld.org/compact-0037-in.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "@id": "http://example.com/people/markus", - "@reverse": { - "http://xmlns.com/foaf/0.1/knows": [ - { - "@id": "http://example.com/people/dave", - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ] - } - ], - "http://example.com/vocab/noTerm": [ - { - "@id": "http://json-ld.org/test-suite/tests/relative-node", - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Compact keys using @vocab" } ] - } - ] - }, - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] - } -] diff --git a/core/src/test/resources/json-ld.org/compact-0045-context.jsonld b/core/src/test/resources/json-ld.org/compact-0045-context.jsonld deleted file mode 100644 index 005f5e16..00000000 --- a/core/src/test/resources/json-ld.org/compact-0045-context.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "term": "http://example.com/terms-are-not-considered-in-id", - "compact-iris": "http://example.com/compact-iris-", - "property": "http://example.com/property", - "@vocab": "http://example.org/vocab-is-not-considered-for-id" - }, - "@id": "term", - "property": [ - { - "@id": "compact-iris:are-considered", - "property": "@id supports the following values: relative, absolute, and compact IRIs" - }, - { - "@id": "../parent-node", - "property": "relative IRIs get resolved against the document's base IRI" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/compact-0045-in.jsonld b/core/src/test/resources/json-ld.org/compact-0045-in.jsonld deleted file mode 100644 index 990d67b3..00000000 --- a/core/src/test/resources/json-ld.org/compact-0045-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/term", - "http://example.com/property": [ - { - "@id": "http://example.com/compact-iris-are-considered", - "http://example.com/property": [ - { "@value": "@id supports the following values: relative, absolute, and compact IRIs" } - ] - }, - { - "@id": "http://json-ld.org/test-suite/parent-node", - "http://example.com/property": [ - { "@value": "relative IRIs get resolved against the document's base IRI" } - ] - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/compact-0045-out.jsonld b/core/src/test/resources/json-ld.org/compact-0045-out.jsonld deleted file mode 100644 index 005f5e16..00000000 --- a/core/src/test/resources/json-ld.org/compact-0045-out.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "term": "http://example.com/terms-are-not-considered-in-id", - "compact-iris": "http://example.com/compact-iris-", - "property": "http://example.com/property", - "@vocab": "http://example.org/vocab-is-not-considered-for-id" - }, - "@id": "term", - "property": [ - { - "@id": "compact-iris:are-considered", - "property": "@id supports the following values: relative, absolute, and compact IRIs" - }, - { - "@id": "../parent-node", - "property": "relative IRIs get resolved against the document's base IRI" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/compact-0062-out.jsonld b/core/src/test/resources/json-ld.org/compact-0062-out.jsonld deleted file mode 100644 index 80fe823a..00000000 --- a/core/src/test/resources/json-ld.org/compact-0062-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "term": { "@id": "http://example.org/term", "@type": "@vocab" } - }, - "term": "http://json-ld.org/test-suite/tests/not-a-term-thus-a-relative-IRI" -} diff --git a/core/src/test/resources/json-ld.org/compact-0066-in.jsonld b/core/src/test/resources/json-ld.org/compact-0066-in.jsonld deleted file mode 100644 index 7ae15cd4..00000000 --- a/core/src/test/resources/json-ld.org/compact-0066-in.jsonld +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/relativeIris", - "@type": [ - "http://json-ld.org/test-suite/tests/link", - "http://json-ld.org/test-suite/tests/compact-0066-in.jsonld#fragment-works", - "http://json-ld.org/test-suite/tests/compact-0066-in.jsonld?query=works", - "http://json-ld.org/test-suite/tests/", - "http://json-ld.org/test-suite/", - "http://json-ld.org/test-suite/parent", - "http://json-ld.org/parent-parent-eq-root", - "http://json-ld.org/still-root", - "http://json-ld.org/too-many-dots", - "http://json-ld.org/absolute", - "http://example.org/scheme-relative" - ], - "http://www.example.com/link": [ { - "@list": [ - { "@id": "http://json-ld.org/test-suite/tests/link" }, - { "@id": "http://json-ld.org/test-suite/tests/compact-0066-in.jsonld#fragment-works" }, - { "@id": "http://json-ld.org/test-suite/tests/compact-0066-in.jsonld?query=works" }, - { "@id": "http://json-ld.org/test-suite/tests/" }, - { "@id": "http://json-ld.org/test-suite/" }, - { "@id": "http://json-ld.org/test-suite/parent" }, - { "@id": "http://json-ld.org/test-suite/parent#fragment" }, - { "@id": "http://json-ld.org/parent-parent-eq-root" }, - { "@id": "http://json-ld.org/still-root" }, - { "@id": "http://json-ld.org/too-many-dots" }, - { "@id": "http://json-ld.org/absolute" }, - { "@id": "http://example.org/scheme-relative" } - ] - } ] - } -] diff --git a/core/src/test/resources/json-ld.org/compact-0066-out.jsonld b/core/src/test/resources/json-ld.org/compact-0066-out.jsonld deleted file mode 100644 index f7f5281c..00000000 --- a/core/src/test/resources/json-ld.org/compact-0066-out.jsonld +++ /dev/null @@ -1,33 +0,0 @@ -{ - "@context": { - "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } - }, - "@id": "relativeIris", - "@type": [ - "http://json-ld.org/test-suite/tests/link", - "http://json-ld.org/test-suite/tests/compact-0066-in.jsonld#fragment-works", - "http://json-ld.org/test-suite/tests/compact-0066-in.jsonld?query=works", - "http://json-ld.org/test-suite/tests/", - "http://json-ld.org/test-suite/", - "http://json-ld.org/test-suite/parent", - "http://json-ld.org/parent-parent-eq-root", - "http://json-ld.org/still-root", - "http://json-ld.org/too-many-dots", - "http://json-ld.org/absolute", - "http://example.org/scheme-relative" - ], - "links": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../parent#fragment", - "../../parent-parent-eq-root", - "../../still-root", - "../../too-many-dots", - "../../absolute", - "http://example.org/scheme-relative" - ] -} diff --git a/core/src/test/resources/json-ld.org/compact-0104-context.jsonld b/core/src/test/resources/json-ld.org/compact-0104-context.jsonld deleted file mode 100644 index dd085528..00000000 --- a/core/src/test/resources/json-ld.org/compact-0104-context.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "@context": { - "@type": {"@container": "@set"} - } -} diff --git a/core/src/test/resources/json-ld.org/compact-0104-out.jsonld b/core/src/test/resources/json-ld.org/compact-0104-out.jsonld deleted file mode 100644 index 6ac5afcc..00000000 --- a/core/src/test/resources/json-ld.org/compact-0104-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "@type": {"@container": "@set"} - }, - "@type": ["http://example.org/type"] -} diff --git a/core/src/test/resources/json-ld.org/compact-0105-context.jsonld b/core/src/test/resources/json-ld.org/compact-0105-context.jsonld deleted file mode 100644 index bc961d55..00000000 --- a/core/src/test/resources/json-ld.org/compact-0105-context.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "@context": { - "type": {"@id": "@type", "@container": "@set"} - } -} diff --git a/core/src/test/resources/json-ld.org/compact-0105-out.jsonld b/core/src/test/resources/json-ld.org/compact-0105-out.jsonld deleted file mode 100644 index 6ce29444..00000000 --- a/core/src/test/resources/json-ld.org/compact-0105-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "type": {"@id": "@type", "@container": "@set"} - }, - "type": ["http://example.org/type"] -} diff --git a/core/src/test/resources/json-ld.org/compact-0106-context.jsonld b/core/src/test/resources/json-ld.org/compact-0106-context.jsonld deleted file mode 100644 index bc961d55..00000000 --- a/core/src/test/resources/json-ld.org/compact-0106-context.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "@context": { - "type": {"@id": "@type", "@container": "@set"} - } -} diff --git a/core/src/test/resources/json-ld.org/compact-0106-out.jsonld b/core/src/test/resources/json-ld.org/compact-0106-out.jsonld deleted file mode 100644 index 349e0fb4..00000000 --- a/core/src/test/resources/json-ld.org/compact-0106-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "type": {"@id": "@type", "@container": "@set"} - }, - "type": "http://example.org/type" -} diff --git a/core/src/test/resources/json-ld.org/compact-manifest.jsonld b/core/src/test/resources/json-ld.org/compact-manifest.jsonld index 14e06675..cdb24721 100644 --- a/core/src/test/resources/json-ld.org/compact-manifest.jsonld +++ b/core/src/test/resources/json-ld.org/compact-manifest.jsonld @@ -1,563 +1,573 @@ { - "@context": "http://json-ld.org/test-suite/context.jsonld", + "@context": "context.jsonld", "@id": "", "@type": "mf:Manifest", "name": "Compaction", "description": "JSON-LD compaction tests use object comparison.", - "baseIri": "http://json-ld.org/test-suite/tests/", + "baseIri": "https://w3c.github.io/json-ld-api/tests/", "sequence": [ { "@id": "#t0001", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "drop free-floating nodes", "purpose": "Unreferenced nodes not containing properties are dropped", - "input": "compact-0001-in.jsonld", - "context": "compact-0001-context.jsonld", - "expect": "compact-0001-out.jsonld" + "input": "compact/0001-in.jsonld", + "context": "compact/0001-context.jsonld", + "expect": "compact/0001-out.jsonld" }, { "@id": "#t0002", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "basic", "purpose": "Basic term and value compaction", - "input": "compact-0002-in.jsonld", - "context": "compact-0002-context.jsonld", - "expect": "compact-0002-out.jsonld" + "input": "compact/0002-in.jsonld", + "context": "compact/0002-context.jsonld", + "expect": "compact/0002-out.jsonld" }, { "@id": "#t0003", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "drop null and unmapped properties", "purpose": "Properties mapped to null or which are never mapped are dropped", - "input": "compact-0003-in.jsonld", - "context": "compact-0003-context.jsonld", - "expect": "compact-0003-out.jsonld" + "input": "compact/0003-in.jsonld", + "context": "compact/0003-context.jsonld", + "expect": "compact/0003-out.jsonld" }, { "@id": "#t0004", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "optimize @set, keep empty arrays", "purpose": "Containers mapped to @set keep empty arrays", - "input": "compact-0004-in.jsonld", - "context": "compact-0004-context.jsonld", - "expect": "compact-0004-out.jsonld" + "input": "compact/0004-in.jsonld", + "context": "compact/0004-context.jsonld", + "expect": "compact/0004-out.jsonld" }, { "@id": "#t0005", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@type and prefix compaction", "purpose": "Compact uses prefixes in @type", - "input": "compact-0005-in.jsonld", - "context": "compact-0005-context.jsonld", - "expect": "compact-0005-out.jsonld" + "input": "compact/0005-in.jsonld", + "context": "compact/0005-context.jsonld", + "expect": "compact/0005-out.jsonld" }, { "@id": "#t0006", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "keep expanded object format if @type doesn't match", "purpose": "Values not matching a coerced @type remain in expanded form", - "input": "compact-0006-in.jsonld", - "context": "compact-0006-context.jsonld", - "expect": "compact-0006-out.jsonld" + "input": "compact/0006-in.jsonld", + "context": "compact/0006-context.jsonld", + "expect": "compact/0006-out.jsonld" }, { "@id": "#t0007", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "add context", "purpose": "External context is added to the compacted document", - "input": "compact-0007-in.jsonld", - "context": "compact-0007-context.jsonld", - "expect": "compact-0007-out.jsonld" + "input": "compact/0007-in.jsonld", + "context": "compact/0007-context.jsonld", + "expect": "compact/0007-out.jsonld" }, { "@id": "#t0008", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "alias keywords", "purpose": "Aliases for keywords are used in compacted document", - "input": "compact-0008-in.jsonld", - "context": "compact-0008-context.jsonld", - "expect": "compact-0008-out.jsonld" + "input": "compact/0008-in.jsonld", + "context": "compact/0008-context.jsonld", + "expect": "compact/0008-out.jsonld" }, { "@id": "#t0009", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "compact @id", "purpose": "Value with @id is compacted to string if property cast to @id", - "input": "compact-0009-in.jsonld", - "context": "compact-0009-context.jsonld", - "expect": "compact-0009-out.jsonld" + "input": "compact/0009-in.jsonld", + "context": "compact/0009-context.jsonld", + "expect": "compact/0009-out.jsonld" }, { "@id": "#t0010", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "array to @graph", "purpose": "An array of objects is serialized with @graph", - "input": "compact-0010-in.jsonld", - "context": "compact-0010-context.jsonld", - "expect": "compact-0010-out.jsonld" + "input": "compact/0010-in.jsonld", + "context": "compact/0010-context.jsonld", + "expect": "compact/0010-out.jsonld" }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "compact date", "purpose": "Expanded value with type xsd:dateTime is represented as string with type coercion", - "input": "compact-0011-in.jsonld", - "context": "compact-0011-context.jsonld", - "expect": "compact-0011-out.jsonld" + "input": "compact/0011-in.jsonld", + "context": "compact/0011-context.jsonld", + "expect": "compact/0011-out.jsonld" }, { "@id": "#t0012", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "native types", "purpose": "Native values are unmodified during compaction", - "input": "compact-0012-in.jsonld", - "context": "compact-0012-context.jsonld", - "expect": "compact-0012-out.jsonld" + "input": "compact/0012-in.jsonld", + "context": "compact/0012-context.jsonld", + "expect": "compact/0012-out.jsonld" }, { "@id": "#t0013", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@value with @language", "purpose": "Values with @language remain in expended form by default", - "input": "compact-0013-in.jsonld", - "context": "compact-0013-context.jsonld", - "expect": "compact-0013-out.jsonld" + "input": "compact/0013-in.jsonld", + "context": "compact/0013-context.jsonld", + "expect": "compact/0013-out.jsonld" }, { "@id": "#t0014", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "array to aliased @graph", "purpose": "Aliasing @graph uses alias in compacted document", - "input": "compact-0014-in.jsonld", - "context": "compact-0014-context.jsonld", - "expect": "compact-0014-out.jsonld" + "input": "compact/0014-in.jsonld", + "context": "compact/0014-context.jsonld", + "expect": "compact/0014-out.jsonld" }, { "@id": "#t0015", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "best match compaction", "purpose": "Property with values of different types use most appropriate term when compacting", - "input": "compact-0015-in.jsonld", - "context": "compact-0015-context.jsonld", - "expect": "compact-0015-out.jsonld" + "input": "compact/0015-in.jsonld", + "context": "compact/0015-context.jsonld", + "expect": "compact/0015-out.jsonld" }, { "@id": "#t0016", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "recursive named graphs", "purpose": "Compacting a document with multiple embedded uses of @graph", - "input": "compact-0016-in.jsonld", - "context": "compact-0016-context.jsonld", - "expect": "compact-0016-out.jsonld" + "input": "compact/0016-in.jsonld", + "context": "compact/0016-context.jsonld", + "expect": "compact/0016-out.jsonld" }, { "@id": "#t0017", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "A term mapping to null removes the mapping", "purpose": "Mapping a term to null causes the property and its values to be removed from the compacted document", - "input": "compact-0017-in.jsonld", - "context": "compact-0017-context.jsonld", - "expect": "compact-0017-out.jsonld" + "input": "compact/0017-in.jsonld", + "context": "compact/0017-context.jsonld", + "expect": "compact/0017-out.jsonld" }, { "@id": "#t0018", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "best matching term for lists", "purpose": "Lists with values of different types use best term in compacted document", - "input": "compact-0018-in.jsonld", - "context": "compact-0018-context.jsonld", - "expect": "compact-0018-out.jsonld" + "input": "compact/0018-in.jsonld", + "context": "compact/0018-context.jsonld", + "expect": "compact/0018-out.jsonld" }, { "@id": "#t0019", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Keep duplicate values in @list and @set", "purpose": "Duplicate values in @list or @set are retained in compacted document", - "input": "compact-0019-in.jsonld", - "context": "compact-0019-context.jsonld", - "expect": "compact-0019-out.jsonld" + "input": "compact/0019-in.jsonld", + "context": "compact/0019-context.jsonld", + "expect": "compact/0019-out.jsonld" }, { "@id": "#t0020", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact @id that is a property IRI when @container is @list", "purpose": "A term with @container: @list is also used as the value of an @id, if appropriate", - "input": "compact-0020-in.jsonld", - "context": "compact-0020-context.jsonld", - "expect": "compact-0020-out.jsonld" + "input": "compact/0020-in.jsonld", + "context": "compact/0020-context.jsonld", + "expect": "compact/0020-out.jsonld" }, { "@id": "#t0021", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact properties and types using @vocab", "purpose": "@vocab is used to create relative properties and types if no other term matches", - "input": "compact-0021-in.jsonld", - "context": "compact-0021-context.jsonld", - "expect": "compact-0021-out.jsonld" + "input": "compact/0021-in.jsonld", + "context": "compact/0021-context.jsonld", + "expect": "compact/0021-out.jsonld" }, { "@id": "#t0022", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@list compaction of nested properties", "purpose": "Compact nested properties using @list containers", - "input": "compact-0022-in.jsonld", - "context": "compact-0022-context.jsonld", - "expect": "compact-0022-out.jsonld" + "input": "compact/0022-in.jsonld", + "context": "compact/0022-context.jsonld", + "expect": "compact/0022-out.jsonld" }, { "@id": "#t0023", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "prefer @vocab over compacted IRIs", "purpose": "@vocab takes precedence over prefixes - even if the result is longer", - "input": "compact-0023-in.jsonld", - "context": "compact-0023-context.jsonld", - "expect": "compact-0023-out.jsonld" + "input": "compact/0023-in.jsonld", + "context": "compact/0023-context.jsonld", + "expect": "compact/0023-out.jsonld" }, { "@id": "#t0024", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "most specific term matching in @list.", "purpose": "The most specific term that matches all of the elements in the list, taking into account the default language, must be selected.", - "input": "compact-0024-in.jsonld", - "context": "compact-0024-context.jsonld", - "expect": "compact-0024-out.jsonld" + "input": "compact/0024-in.jsonld", + "context": "compact/0024-context.jsonld", + "expect": "compact/0024-out.jsonld" }, { "@id": "#t0025", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Language maps", "purpose": "Multiple values with different languages use language maps if property has @container: @language", - "input": "compact-0025-in.jsonld", - "context": "compact-0025-context.jsonld", - "expect": "compact-0025-out.jsonld" + "input": "compact/0025-in.jsonld", + "context": "compact/0025-context.jsonld", + "expect": "compact/0025-out.jsonld" }, { "@id": "#t0026", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Language map term selection with complications", "purpose": "Test appropriate property use given language maps with @vocab, a default language, and a competing term", - "input": "compact-0026-in.jsonld", - "context": "compact-0026-context.jsonld", - "expect": "compact-0026-out.jsonld" + "input": "compact/0026-in.jsonld", + "context": "compact/0026-context.jsonld", + "expect": "compact/0026-out.jsonld" }, { "@id": "#t0027", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@container: @set with multiple values", "purpose": "Fall back to term with @set container if term with language map is defined", - "input": "compact-0027-in.jsonld", - "context": "compact-0027-context.jsonld", - "expect": "compact-0027-out.jsonld" + "input": "compact/0027-in.jsonld", + "context": "compact/0027-context.jsonld", + "expect": "compact/0027-out.jsonld" }, { "@id": "#t0028", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Alias keywords and use @vocab", "purpose": "Combination of keyword aliases and @vocab", - "input": "compact-0028-in.jsonld", - "context": "compact-0028-context.jsonld", - "expect": "compact-0028-out.jsonld" + "input": "compact/0028-in.jsonld", + "context": "compact/0028-context.jsonld", + "expect": "compact/0028-out.jsonld" }, { "@id": "#t0029", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Simple @index map", "purpose": "Output uses index mapping if term is defined with @container: @index", - "input": "compact-0029-in.jsonld", - "context": "compact-0029-context.jsonld", - "expect": "compact-0029-out.jsonld" + "input": "compact/0029-in.jsonld", + "context": "compact/0029-context.jsonld", + "expect": "compact/0029-out.jsonld" }, { "@id": "#t0030", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "non-matching @container: @index", "purpose": "Preserve @index tags if not compacted to an index map", - "input": "compact-0030-in.jsonld", - "context": "compact-0030-context.jsonld", - "expect": "compact-0030-out.jsonld" + "input": "compact/0030-in.jsonld", + "context": "compact/0030-context.jsonld", + "expect": "compact/0030-out.jsonld" }, { "@id": "#t0031", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact @reverse", "purpose": "Compact traverses through @reverse", - "input": "compact-0031-in.jsonld", - "context": "compact-0031-context.jsonld", - "expect": "compact-0031-out.jsonld" + "input": "compact/0031-in.jsonld", + "context": "compact/0031-context.jsonld", + "expect": "compact/0031-out.jsonld" }, { "@id": "#t0032", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact keys in reverse-maps", "purpose": "Compact traverses through @reverse", - "input": "compact-0032-in.jsonld", - "context": "compact-0032-context.jsonld", - "expect": "compact-0032-out.jsonld" + "input": "compact/0032-in.jsonld", + "context": "compact/0032-context.jsonld", + "expect": "compact/0032-out.jsonld" }, { "@id": "#t0033", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact reverse-map to reverse property", "purpose": "A reverse map is replaced with a matching property defined with @reverse", - "input": "compact-0033-in.jsonld", - "context": "compact-0033-context.jsonld", - "expect": "compact-0033-out.jsonld" + "input": "compact/0033-in.jsonld", + "context": "compact/0033-context.jsonld", + "expect": "compact/0033-out.jsonld" }, { "@id": "#t0034", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Skip property with @reverse if no match", "purpose": "Do not use reverse property if no other property matches as normal property", - "input": "compact-0034-in.jsonld", - "context": "compact-0034-context.jsonld", - "expect": "compact-0034-out.jsonld" + "input": "compact/0034-in.jsonld", + "context": "compact/0034-context.jsonld", + "expect": "compact/0034-out.jsonld" }, { "@id": "#t0035", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact @reverse node references using strings", "purpose": "Compact node references to strings for reverse properties using @type: @id", - "input": "compact-0035-in.jsonld", - "context": "compact-0035-context.jsonld", - "expect": "compact-0035-out.jsonld" + "input": "compact/0035-in.jsonld", + "context": "compact/0035-context.jsonld", + "expect": "compact/0035-out.jsonld" }, { "@id": "#t0036", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact reverse properties using index containers", "purpose": "Compact using both reverse properties and index containers", - "input": "compact-0036-in.jsonld", - "context": "compact-0036-context.jsonld", - "expect": "compact-0036-out.jsonld" + "input": "compact/0036-in.jsonld", + "context": "compact/0036-context.jsonld", + "expect": "compact/0036-out.jsonld" }, { "@id": "#t0037", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact keys in @reverse using @vocab", "purpose": "Compact keys in @reverse using @vocab", - "input": "compact-0037-in.jsonld", - "context": "compact-0037-context.jsonld", - "expect": "compact-0037-out.jsonld" + "input": "compact/0037-in.jsonld", + "context": "compact/0037-context.jsonld", + "expect": "compact/0037-out.jsonld" }, { "@id": "#t0038", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Index map round-tripping", - "purpose": "Complext round-tripping use case from Drupal", - "input": "compact-0038-in.jsonld", - "context": "compact-0038-context.jsonld", - "expect": "compact-0038-out.jsonld" + "purpose": "Complex round-tripping use case from Drupal", + "option": {"specVersion": "json-ld-1.0"}, + "input": "compact/0038-in.jsonld", + "context": "compact/0038-context.jsonld", + "expect": "compact/0038-out.jsonld" + }, { + "@id": "#ta038", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Index map round-tripping", + "purpose": "Complex round-tripping use case from Drupal", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/0038-in.jsonld", + "context": "compact/0038-context.jsonld", + "expect": "compact/0038a-out.jsonld" }, { "@id": "#t0039", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@graph is array", "purpose": "Value of @graph is always an array", - "input": "compact-0039-in.jsonld", - "context": "compact-0039-context.jsonld", - "expect": "compact-0039-out.jsonld" + "input": "compact/0039-in.jsonld", + "context": "compact/0039-context.jsonld", + "expect": "compact/0039-out.jsonld" }, { "@id": "#t0040", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@list is array", "purpose": "Ensure that value of @list is always an array", - "input": "compact-0040-in.jsonld", - "context": "compact-0040-context.jsonld", - "expect": "compact-0040-out.jsonld" + "input": "compact/0040-in.jsonld", + "context": "compact/0040-context.jsonld", + "expect": "compact/0040-out.jsonld" }, { "@id": "#t0041", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "index rejects term having @list", "purpose": "If an index is present, a term having an @list container is not selected", - "input": "compact-0041-in.jsonld", - "context": "compact-0041-context.jsonld", - "expect": "compact-0041-out.jsonld" + "input": "compact/0041-in.jsonld", + "context": "compact/0041-context.jsonld", + "expect": "compact/0041-out.jsonld" }, { "@id": "#t0042", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@list keyword aliasing", "purpose": "Make sure keyword aliasing works if a list can't be compacted", - "input": "compact-0042-in.jsonld", - "context": "compact-0042-context.jsonld", - "expect": "compact-0042-out.jsonld" + "input": "compact/0042-in.jsonld", + "context": "compact/0042-context.jsonld", + "expect": "compact/0042-out.jsonld" }, { "@id": "#t0043", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "select term over @vocab", "purpose": "Ensure that @vocab compaction isn't used if the result collides with a term", - "input": "compact-0043-in.jsonld", - "context": "compact-0043-context.jsonld", - "expect": "compact-0043-out.jsonld" + "input": "compact/0043-in.jsonld", + "context": "compact/0043-context.jsonld", + "expect": "compact/0043-out.jsonld" }, { "@id": "#t0044", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@type: @vocab in reverse-map", "purpose": "Prefer properties with @type: @vocab in reverse-maps if the value can be compacted to a term", - "input": "compact-0044-in.jsonld", - "context": "compact-0044-context.jsonld", - "expect": "compact-0044-out.jsonld" + "input": "compact/0044-in.jsonld", + "context": "compact/0044-context.jsonld", + "expect": "compact/0044-out.jsonld" }, { "@id": "#t0045", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@id value uses relative IRI, not term", "purpose": "Values of @id are transformed to relative IRIs, terms are ignored", - "input": "compact-0045-in.jsonld", - "context": "compact-0045-context.jsonld", - "expect": "compact-0045-out.jsonld" + "input": "compact/0045-in.jsonld", + "context": "compact/0045-context.jsonld", + "expect": "compact/0045-out.jsonld" }, { "@id": "#t0046", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "multiple objects without @context use @graph", "purpose": "Wrap top-level array into @graph even if no context is passed", - "input": "compact-0046-in.jsonld", - "context": "compact-0046-context.jsonld", - "expect": "compact-0046-out.jsonld" + "input": "compact/0046-in.jsonld", + "context": "compact/0046-context.jsonld", + "expect": "compact/0046-out.jsonld" }, { "@id": "#t0047", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Round-trip relative URLs", "purpose": "Relative URLs remain relative after compaction", - "input": "compact-0047-in.jsonld", - "context": "compact-0047-context.jsonld", - "expect": "compact-0047-out.jsonld" + "input": "compact/0047-in.jsonld", + "context": "compact/0047-context.jsonld", + "expect": "compact/0047-out.jsonld" }, { "@id": "#t0048", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "term with @language: null", "purpose": "Prefer terms with a language mapping set to null over terms without language-mapping for non-strings", - "input": "compact-0048-in.jsonld", - "context": "compact-0048-context.jsonld", - "expect": "compact-0048-out.jsonld" + "input": "compact/0048-in.jsonld", + "context": "compact/0048-context.jsonld", + "expect": "compact/0048-out.jsonld" }, { "@id": "#t0049", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Round tripping of lists that contain just IRIs", "purpose": "List compaction without @container: @list still uses strings if @type: @id", - "input": "compact-0049-in.jsonld", - "context": "compact-0049-context.jsonld", - "expect": "compact-0049-out.jsonld" + "input": "compact/0049-in.jsonld", + "context": "compact/0049-context.jsonld", + "expect": "compact/0049-out.jsonld" }, { "@id": "#t0050", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Reverse properties require @type: @id to use string values", "purpose": "Node references in reverse properties are not compacted to strings without explicit type-coercion", - "input": "compact-0050-in.jsonld", - "context": "compact-0050-context.jsonld", - "expect": "compact-0050-out.jsonld" + "input": "compact/0050-in.jsonld", + "context": "compact/0050-context.jsonld", + "expect": "compact/0050-out.jsonld" }, { "@id": "#t0051", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Round tripping @list with scalar", "purpose": "Native values survive round-tripping with @list", - "input": "compact-0051-in.jsonld", - "context": "compact-0051-context.jsonld", - "expect": "compact-0051-out.jsonld" + "input": "compact/0051-in.jsonld", + "context": "compact/0051-context.jsonld", + "expect": "compact/0051-out.jsonld" }, { "@id": "#t0052", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Round tripping @list with scalar and @graph alias", "purpose": "Native values survive round-tripping with @list and @graph alias", - "input": "compact-0052-in.jsonld", - "context": "compact-0052-context.jsonld", - "expect": "compact-0052-out.jsonld" + "input": "compact/0052-in.jsonld", + "context": "compact/0052-context.jsonld", + "expect": "compact/0052-out.jsonld" }, { "@id": "#t0053", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Use @type: @vocab if no @type: @id", "purpose": "Compact to @type: @vocab when no @type: @id term available", - "input": "compact-0053-in.jsonld", - "context": "compact-0053-context.jsonld", - "expect": "compact-0053-out.jsonld" + "input": "compact/0053-in.jsonld", + "context": "compact/0053-context.jsonld", + "expect": "compact/0053-out.jsonld" }, { "@id": "#t0054", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact to @type: @vocab and compact @id to term", "purpose": "Compact to @type: @vocab and compact @id to term", - "input": "compact-0054-in.jsonld", - "context": "compact-0054-context.jsonld", - "expect": "compact-0054-out.jsonld" + "input": "compact/0054-in.jsonld", + "context": "compact/0054-context.jsonld", + "expect": "compact/0054-out.jsonld" }, { "@id": "#t0055", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Round tripping @type: @vocab", "purpose": "Compacting IRI value of property with @type: @vocab can use term", - "input": "compact-0055-in.jsonld", - "context": "compact-0055-context.jsonld", - "expect": "compact-0055-out.jsonld" + "input": "compact/0055-in.jsonld", + "context": "compact/0055-context.jsonld", + "expect": "compact/0055-out.jsonld" }, { "@id": "#t0056", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Prefer @type: @vocab over @type: @id for terms", "purpose": "Compacting IRI value of property with @type: @vocab can use term", - "input": "compact-0056-in.jsonld", - "context": "compact-0056-context.jsonld", - "expect": "compact-0056-out.jsonld" + "input": "compact/0056-in.jsonld", + "context": "compact/0056-context.jsonld", + "expect": "compact/0056-out.jsonld" }, { "@id": "#t0057", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Complex round tripping @type: @vocab and @type: @id", "purpose": "Compacting IRI value of property with @type: @vocab can use term; more complex", - "input": "compact-0057-in.jsonld", - "context": "compact-0057-context.jsonld", - "expect": "compact-0057-out.jsonld" + "input": "compact/0057-in.jsonld", + "context": "compact/0057-context.jsonld", + "expect": "compact/0057-out.jsonld" }, { "@id": "#t0058", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Prefer @type: @id over @type: @vocab for non-terms", "purpose": "Choose a term having @type: @id over @type: @value if value is not a term", - "input": "compact-0058-in.jsonld", - "context": "compact-0058-context.jsonld", - "expect": "compact-0058-out.jsonld" + "input": "compact/0058-in.jsonld", + "context": "compact/0058-context.jsonld", + "expect": "compact/0058-out.jsonld" }, { "@id": "#t0059", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Term with @type: @vocab if no @type: @id", "purpose": "If there's no term with @type: @id, use terms with @type: @vocab for IRIs not mapped to terms", - "input": "compact-0059-in.jsonld", - "context": "compact-0059-context.jsonld", - "expect": "compact-0059-out.jsonld" + "input": "compact/0059-in.jsonld", + "context": "compact/0059-context.jsonld", + "expect": "compact/0059-out.jsonld" }, { "@id": "#t0060", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Term with @type: @id if no @type: @vocab and term value", "purpose": "If there's no term with @type: @vocab, use terms with @type: @id for IRIs mapped to terms", - "input": "compact-0060-in.jsonld", - "context": "compact-0060-context.jsonld", - "expect": "compact-0060-out.jsonld" + "input": "compact/0060-in.jsonld", + "context": "compact/0060-context.jsonld", + "expect": "compact/0060-out.jsonld" }, { "@id": "#t0061", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@type: @vocab/@id with values matching either", "purpose": "Separate IRIs for the same property to use term with more specific @type (@id vs. @vocab)", - "input": "compact-0061-in.jsonld", - "context": "compact-0061-context.jsonld", - "expect": "compact-0061-out.jsonld" + "input": "compact/0061-in.jsonld", + "context": "compact/0061-context.jsonld", + "expect": "compact/0061-out.jsonld" }, { "@id": "#t0062", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "@type: @vocab and relative IRIs", "purpose": "Relative IRIs don't round-trip with @type: @vocab", - "input": "compact-0062-in.jsonld", - "context": "compact-0062-context.jsonld", - "expect": "compact-0062-out.jsonld" + "input": "compact/0062-in.jsonld", + "context": "compact/0062-context.jsonld", + "expect": "compact/0062-out.jsonld" }, { "@id": "#t0063", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact IRI round-tripping with @type: @vocab", "purpose": "Term with @type: @vocab will use compact IRIs", - "input": "compact-0063-in.jsonld", - "context": "compact-0063-context.jsonld", - "expect": "compact-0063-out.jsonld" + "input": "compact/0063-in.jsonld", + "context": "compact/0063-context.jsonld", + "expect": "compact/0063-out.jsonld" }, { "@id": "#t0064", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact language-tagged and indexed strings to index-map", "purpose": "Given values with both @index and @language and term index-map term, use index map", - "input": "compact-0064-in.jsonld", - "context": "compact-0064-context.jsonld", - "expect": "compact-0064-out.jsonld" + "input": "compact/0064-in.jsonld", + "context": "compact/0064-context.jsonld", + "expect": "compact/0064-out.jsonld" }, { "@id": "#t0065", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Language-tagged and indexed strings with language-map", "purpose": "Language-tagged and indexed strings don't compact to language-map", - "input": "compact-0065-in.jsonld", - "context": "compact-0065-context.jsonld", - "expect": "compact-0065-out.jsonld" + "input": "compact/0065-in.jsonld", + "context": "compact/0065-context.jsonld", + "expect": "compact/0065-out.jsonld" }, { "@id": "#t0066", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Relative IRIs", "purpose": "Complex use cases for relative IRI compaction", - "input": "compact-0066-in.jsonld", - "context": "compact-0066-context.jsonld", - "expect": "compact-0066-out.jsonld" + "input": "compact/0066-in.jsonld", + "context": "compact/0066-context.jsonld", + "expect": "compact/0066-out.jsonld" }, { "@id": "#t0067", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Reverse properties with blank nodes", "purpose": "Compact reverse property whose values are unlabeled blank nodes", - "input": "compact-0067-in.jsonld", - "context": "compact-0067-context.jsonld", - "expect": "compact-0067-out.jsonld" + "input": "compact/0067-in.jsonld", + "context": "compact/0067-context.jsonld", + "expect": "compact/0067-out.jsonld" }, { "@id": "#t0068", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Single value reverse properties", "purpose": "Single values of reverse properties are compacted as values of ordinary properties", - "input": "compact-0068-in.jsonld", - "context": "compact-0068-context.jsonld", - "expect": "compact-0068-out.jsonld" + "input": "compact/0068-in.jsonld", + "context": "compact/0068-context.jsonld", + "expect": "compact/0068-out.jsonld" }, { "@id": "#t0069", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Single value reverse properties with @set", "purpose": "Single values are kept in array form for reverse properties if the container is to @set", - "input": "compact-0069-in.jsonld", - "context": "compact-0069-context.jsonld", - "expect": "compact-0069-out.jsonld" + "input": "compact/0069-in.jsonld", + "context": "compact/0069-context.jsonld", + "expect": "compact/0069-out.jsonld" }, { "@id": "#t0070", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], @@ -566,55 +576,1364 @@ "option": { "compactArrays": false }, - "input": "compact-0070-in.jsonld", - "context": "compact-0070-context.jsonld", - "expect": "compact-0070-out.jsonld" + "input": "compact/0070-in.jsonld", + "context": "compact/0070-context.jsonld", + "expect": "compact/0070-out.jsonld" }, { "@id": "#t0071", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Input has multiple @contexts, output has one", "purpose": "Expanding input with multiple @contexts and compacting with just one doesn't output undefined properties", - "input": "compact-0071-in.jsonld", - "context": "compact-0071-context.jsonld", - "expect": "compact-0071-out.jsonld" + "input": "compact/0071-in.jsonld", + "context": "compact/0071-context.jsonld", + "expect": "compact/0071-out.jsonld" }, { "@id": "#t0072", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Default language and unmapped properties", "purpose": "Ensure that the default language is handled correctly for unmapped properties", - "input": "compact-0072-in.jsonld", - "context": "compact-0072-context.jsonld", - "expect": "compact-0072-out.jsonld" - }, - { + "input": "compact/0072-in.jsonld", + "context": "compact/0072-context.jsonld", + "expect": "compact/0072-out.jsonld" + }, { + "@id": "#t0073", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Mapped @id and @type", + "purpose": "Ensure that compaction works with mapped @id and @type", + "input": "compact/0073-in.jsonld", + "context": "compact/0073-context.jsonld", + "expect": "compact/0073-out.jsonld" + }, { + "@id": "#t0074", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Container as a list with type of @id", + "purpose": "Ensure that compaction works for empty list when property has container declared as @list and type as @id", + "input": "compact/0074-in.jsonld", + "context": "compact/0074-context.jsonld", + "expect": "compact/0074-out.jsonld" + }, { + "@id": "#t0075", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact using relative fragment identifier", + "purpose": "Compacting a relative round-trips", + "option": {"processingMode": "json-ld-1.0", "base": "http://example.org/"}, + "input": "compact/0075-in.jsonld", + "context": "compact/0075-context.jsonld", + "expect": "compact/0075-out.jsonld" + }, { + "@id": "#t0076", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compacting IRI equivalent to base", + "purpose": "Compacting IRI equivalent to base, uses last path segment of base ending in '/'", + "input": "compact/0076-in.jsonld", + "context": "compact/0076-context.jsonld", + "expect": "compact/0076-out.jsonld" + }, { + "@id": "#t0077", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a @graph container", + "purpose": "Compact a @graph container", + "input": "compact/0077-in.jsonld", + "context": "compact/0077-context.jsonld", + "expect": "compact/0077-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0078", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a [@graph, @set] container", + "purpose": "Compact with [@graph, @set]", + "input": "compact/0078-in.jsonld", + "context": "compact/0078-context.jsonld", + "expect": "compact/0078-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0079", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a @graph container having @index", + "purpose": "Verify that having both @graph and @index allows @graph container compaction", + "input": "compact/0079-in.jsonld", + "context": "compact/0079-context.jsonld", + "expect": "compact/0079-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0080", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Do not compact a graph having @id with a term having an @graph container", + "purpose": "Graph compaction works only on simple graphs", + "input": "compact/0080-in.jsonld", + "context": "compact/0080-context.jsonld", + "expect": "compact/0080-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0081", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a [@graph, @index] container", + "purpose": "Compact a @graph container with @index", + "input": "compact/0081-in.jsonld", + "context": "compact/0081-context.jsonld", + "expect": "compact/0081-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0082", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a [@graph, @index, @set] container", + "purpose": "Compact a @graph container with @index and @set", + "input": "compact/0082-in.jsonld", + "context": "compact/0082-context.jsonld", + "expect": "compact/0082-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0083", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "[@graph, @index] does not compact graph with @id", + "purpose": "Graph compaction with @graph and @index works only on simple graphs", + "input": "compact/0083-in.jsonld", + "context": "compact/0083-context.jsonld", + "expect": "compact/0083-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0084", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a simple graph with a [@graph, @id] container", + "purpose": "Compact a simple graph using a @graph container with @id", + "input": "compact/0084-in.jsonld", + "context": "compact/0084-context.jsonld", + "expect": "compact/0084-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0085", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a named graph with a [@graph, @id] container", + "purpose": "Compact a named graph using a @graph container with @id", + "input": "compact/0085-in.jsonld", + "context": "compact/0085-context.jsonld", + "expect": "compact/0085-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0086", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a simple graph with a [@graph, @id, @set] container", + "purpose": "Compact a simple graph using a @graph container with @id and @set", + "input": "compact/0086-in.jsonld", + "context": "compact/0086-context.jsonld", + "expect": "compact/0086-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0087", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a named graph with a [@graph, @id, @set] container", + "purpose": "Compact a named graph using a @graph container with @id and @set", + "input": "compact/0087-in.jsonld", + "context": "compact/0087-context.jsonld", + "expect": "compact/0087-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0088", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact a graph with @index using a [@graph, @id] container", + "purpose": "Compact a @graph container with @id and @set, discarding an @index value", + "input": "compact/0088-in.jsonld", + "context": "compact/0088-context.jsonld", + "expect": "compact/0088-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0089", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Language map term selection with complications", + "purpose": "Test appropriate property use given language maps with @vocab, a default language, no language, and competing terms", + "input": "compact/0089-in.jsonld", + "context": "compact/0089-context.jsonld", + "expect": "compact/0089-out.jsonld" + }, { + "@id": "#t0090", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact input with @graph container to output without @graph container", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0090-in.jsonld", + "context": "compact/0090-context.jsonld", + "expect": "compact/0090-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0091", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact input with @graph container to output without @graph container with compactArrays unset", + "purpose": "Ensure @graph appears properly in output with compactArrays unset", + "input": "compact/0091-in.jsonld", + "context": "compact/0091-context.jsonld", + "expect": "compact/0091-out.jsonld", + "option": {"compactArrays": false, "processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0092", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact input with [@graph, @set] container to output without [@graph, @set] container", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0092-in.jsonld", + "context": "compact/0092-context.jsonld", + "expect": "compact/0092-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0093", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact input with [@graph, @set] container to output without [@graph, @set] container with compactArrays unset", + "purpose": "Ensure @graph appears properly in output with compactArrays unset", + "input": "compact/0093-in.jsonld", + "context": "compact/0093-context.jsonld", + "expect": "compact/0093-out.jsonld", + "option": {"compactArrays": false, "processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0094", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact input with [@graph, @set] container to output without [@graph, @set] container", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0094-in.jsonld", + "context": "compact/0094-context.jsonld", + "expect": "compact/0094-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0095", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Relative propererty IRIs with @vocab: ''", + "purpose": "Complex use cases for relative IRI compaction or properties", + "input": "compact/0095-in.jsonld", + "context": "compact/0095-context.jsonld", + "expect": "compact/0095-out.jsonld" + }, { + "@id": "#t0096", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact @graph container (multiple objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0096-in.jsonld", + "context": "compact/0096-context.jsonld", + "expect": "compact/0096-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0097", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @set] container (multiple objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0097-in.jsonld", + "context": "compact/0097-context.jsonld", + "expect": "compact/0097-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0098", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @index] container (multiple indexed objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0098-in.jsonld", + "context": "compact/0098-context.jsonld", + "expect": "compact/0098-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0099", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @index, @set] container (multiple indexed objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0099-in.jsonld", + "context": "compact/0099-context.jsonld", + "expect": "compact/0099-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0100", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @id] container (multiple indexed objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0100-in.jsonld", + "context": "compact/0100-context.jsonld", + "expect": "compact/0100-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0101", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @id, @set] container (multiple indexed objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0101-in.jsonld", + "context": "compact/0101-context.jsonld", + "expect": "compact/0101-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0102", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @index] container (multiple indexes and objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0102-in.jsonld", + "context": "compact/0102-context.jsonld", + "expect": "compact/0102-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0103", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact [@graph, @id] container (multiple ids and objects)", + "purpose": "Ensure @graph appears properly in output", + "input": "compact/0103-in.jsonld", + "context": "compact/0103-context.jsonld", + "expect": "compact/0103-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { "@id": "#t0104", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact @type with @container: @set", "purpose": "Ensures that a single @type value is represented as an array", - "input": "compact-0104-in.jsonld", - "context": "compact-0104-context.jsonld", - "expect": "compact-0104-out.jsonld", + "input": "compact/0104-in.jsonld", + "context": "compact/0104-context.jsonld", + "expect": "compact/0104-out.jsonld", "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} - }, - { + }, { "@id": "#t0105", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Compact @type with @container: @set using an alias of @type", "purpose": "Ensures that a single @type value is represented as an array", - "input": "compact-0105-in.jsonld", - "context": "compact-0105-context.jsonld", - "expect": "compact-0105-out.jsonld", + "input": "compact/0105-in.jsonld", + "context": "compact/0105-context.jsonld", + "expect": "compact/0105-out.jsonld", "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} - }, - { + }, { "@id": "#t0106", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], "name": "Do not compact @type with @container: @set to an array using an alias of @type", "purpose": "Ensures that a single @type value is not represented as an array in 1.0", - "input": "compact-0106-in.jsonld", - "context": "compact-0106-context.jsonld", - "expect": "compact-0106-out.jsonld", + "input": "compact/0106-in.jsonld", + "context": "compact/0106-context.jsonld", + "expect": "compact/0106-out.jsonld", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0107", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Relative propererty IRIs with @vocab: ''", + "purpose": "Complex use cases for relative IRI compaction or properties", + "input": "compact/0107-in.jsonld", + "context": "compact/0107-context.jsonld", + "expect": "compact/0107-out.jsonld" + }, { + "@id": "#t0108", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Relative propererty IRIs with @vocab: ''", + "purpose": "Complex use cases for relative IRI compaction or properties", + "name": "context with JavaScript Object property names", + "purpose": "Compact with context including JavaScript Object property names", + "input": "compact/0108-in.jsonld", + "context": "compact/0108-context.jsonld", + "expect": "compact/0108-out.jsonld" + }, { + "@id": "#tc001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "adding new term", + "purpose": "Compaction using a scoped context uses term scope for selecting proper term", + "input": "compact/c001-in.jsonld", + "context": "compact/c001-context.jsonld", + "expect": "compact/c001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "overriding a term", + "purpose": "Compaction using a scoped context uses term scope for selecting proper term", + "input": "compact/c002-in.jsonld", + "context": "compact/c002-context.jsonld", + "expect": "compact/c002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc003", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property and value with different terms mapping to the same expanded property", + "purpose": "Compaction using a scoped context uses term scope for selecting proper term", + "input": "compact/c003-in.jsonld", + "context": "compact/c003-context.jsonld", + "expect": "compact/c003-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc004", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "deep @context affects nested nodes", + "purpose": "Compaction using a scoped context uses term scope for selecting proper term", + "input": "compact/c004-in.jsonld", + "context": "compact/c004-context.jsonld", + "expect": "compact/c004-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc005", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "scoped context layers on intemediate contexts", + "purpose": "Compaction using a scoped context uses term scope for selecting proper term", + "input": "compact/c005-in.jsonld", + "context": "compact/c005-context.jsonld", + "expect": "compact/c005-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc006", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "adding new term", + "purpose": "scoped context on @type", + "input": "compact/c006-in.jsonld", + "context": "compact/c006-context.jsonld", + "expect": "compact/c006-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc007", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "overriding a term", + "purpose": "scoped context on @type", + "input": "compact/c007-in.jsonld", + "context": "compact/c007-context.jsonld", + "expect": "compact/c007-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc008", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "alias of @type", + "purpose": "scoped context on @type", + "input": "compact/c008-in.jsonld", + "context": "compact/c008-context.jsonld", + "expect": "compact/c008-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc009", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "deep @type-scoped @context does NOT affect nested nodes", + "purpose": "scoped context on @type", + "input": "compact/c009-in.jsonld", + "context": "compact/c009-context.jsonld", + "expect": "compact/c009-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc010", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "scoped context layers on intemediate contexts", + "purpose": "scoped context on @type", + "input": "compact/c010-in.jsonld", + "context": "compact/c010-context.jsonld", + "expect": "compact/c010-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc011", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "applies context for all values", + "purpose": "scoped context on @type", + "input": "compact/c011-in.jsonld", + "context": "compact/c011-context.jsonld", + "expect": "compact/c011-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc012", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "orders @type terms when applying scoped contexts", + "purpose": "scoped context on @type", + "input": "compact/c012-in.jsonld", + "context": "compact/c012-context.jsonld", + "expect": "compact/c012-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc013", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "deep property-term scoped @context in @type-scoped @context affects nested nodes", + "purpose": "scoped context on @type", + "input": "compact/c013-in.jsonld", + "context": "compact/c013-context.jsonld", + "expect": "compact/c013-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc014", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped context nullification", + "purpose": "type-scoped context nullification", + "input": "compact/c014-in.jsonld", + "context": "compact/c014-context.jsonld", + "expect": "compact/c014-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc015", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped base", + "purpose": "type-scoped base", + "input": "compact/c015-in.jsonld", + "context": "compact/c015-context.jsonld", + "expect": "compact/c015-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc016", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped vocab", + "purpose": "type-scoped vocab", + "input": "compact/c016-in.jsonld", + "context": "compact/c016-context.jsonld", + "expect": "compact/c016-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc017", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "multiple type-scoped contexts are properly reverted", + "purpose": "multiple type-scoped contexts are property reverted", + "input": "compact/c017-in.jsonld", + "context": "compact/c017-context.jsonld", + "expect": "compact/c017-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc018", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "multiple type-scoped types resolved against previous context", + "purpose": "multiple type-scoped types resolved against previous context", + "input": "compact/c018-in.jsonld", + "context": "compact/c018-context.jsonld", + "expect": "compact/c018-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc019", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped context with multiple property scoped terms", + "purpose": "type-scoped context with multiple property scoped terms", + "input": "compact/c019-in.jsonld", + "context": "compact/c019-context.jsonld", + "expect": "compact/c019-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc020", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped value", + "purpose": "type-scoped value", + "input": "compact/c020-in.jsonld", + "context": "compact/c020-context.jsonld", + "expect": "compact/c020-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc021", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped value mix", + "purpose": "type-scoped value mix", + "input": "compact/c021-in.jsonld", + "context": "compact/c021-context.jsonld", + "expect": "compact/c021-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc022", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped property-scoped contexts including @type:@vocab", + "purpose": "type-scoped property-scoped contexts including @type:@vocab", + "input": "compact/c022-in.jsonld", + "context": "compact/c022-context.jsonld", + "expect": "compact/c022-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc023", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "composed type-scoped property-scoped contexts including @type:@vocab", + "purpose": "composed type-scoped property-scoped contexts including @type:@vocab", + "input": "compact/c023-in.jsonld", + "context": "compact/c023-context.jsonld", + "expect": "compact/c023-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc024", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped + property-scoped + values evaluates against previous context", + "purpose": "type-scoped + property-scoped + values evaluates against previous context", + "input": "compact/c024-in.jsonld", + "context": "compact/c024-context.jsonld", + "expect": "compact/c024-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc025", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type-scoped + graph container", + "purpose": "type-scoped + graph container", + "input": "compact/c025-in.jsonld", + "context": "compact/c025-context.jsonld", + "expect": "compact/c025-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#te001", + "@type": [ "jld:NegativeEvaluationTest", "jld:CompactTest" ], + "name": "Compaction to list of lists", + "purpose": "Verifies that an exception is raised in Compaction when attempting to compact a list of lists", + "option": {"specVersion": "json-ld-1.0"}, + "input": "compact/e001-in.jsonld", + "context": "compact/e001-context.jsonld", + "expect": "compaction to list of lists" + }, { + "@id": "#te002", + "@type": [ "jld:NegativeEvaluationTest", "jld:CompactTest" ], + "name": "Absolute IRI confused with Compact IRI", + "purpose": "Verifies that IRI compaction detects when the result is an absolute IRI with a scheme matching a term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/e002-in.jsonld", + "context": "compact/e002-context.jsonld", + "expect": "IRI confused with prefix" + }, { + "@id": "#ten01", + "@type": [ "jld:NegativeEvaluationTest", "jld:CompactTest" ], + "name": "Nest term not defined", + "purpose": "Transparent Nesting", + "input": "compact/en01-in.jsonld", + "context": "compact/en01-context.jsonld", + "expect": "invalid @nest value", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tep04", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "Processing mode is implicitly json-ld-1.0", + "purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/ep04-in.jsonld", + "context": "compact/ep04-context.jsonld", + "expect": "invalid container mapping" + }, { + "@id": "#tep05", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "processingMode json-ld-1.0 conflicts with @version: 1.1", + "purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0", + "input": "compact/ep05-in.jsonld", + "context": "compact/ep05-context.jsonld", + "expect": "processing mode conflict", "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tep06", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@version must be 1.1", + "purpose": "If @version is specified, it must be 1.1", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/ep06-in.jsonld", + "context": "compact/ep06-context.jsonld", + "expect": "invalid @version value" + }, { + "@id": "#tep07", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@prefix is not allowed in 1.0", + "purpose": "@prefix is not allowed in a term definition 1.0", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep07-in.jsonld", + "context": "compact/ep07-context.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tep08", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@prefix must be a boolean", + "purpose": "@prefix must be a boolean in a term definition in 1.1", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/ep08-in.jsonld", + "context": "compact/ep08-context.jsonld", + "expect": "invalid @prefix value" + }, { + "@id": "#tep09", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@prefix not allowed on compact IRI term", + "purpose": "If processingMode is json-ld-1.0, or if term contains a colon (:), an invalid term definition has been detected and processing is aborted.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/ep09-in.jsonld", + "context": "compact/ep09-context.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tep10", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@nest is not allowed in 1.0", + "purpose": "@nest is not allowed in a term definitionin 1.0", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep10-in.jsonld", + "context": "compact/ep10-context.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tep11", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@context is not allowed in 1.0", + "purpose": "@context is not allowed in a term definitionin 1.0", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep11-in.jsonld", + "context": "compact/ep11-context.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tep12", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@container may not be an array in 1.0", + "purpose": "validate appropriate values of @container", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep12-in.jsonld", + "context": "compact/ep12-context.jsonld", + "expect": "invalid container mapping" + }, { + "@id": "#tep13", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@container may not be @id in 1.0", + "purpose": "validate appropriate values of @container", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep13-in.jsonld", + "context": "compact/ep13-context.jsonld", + "expect": "invalid container mapping" + }, { + "@id": "#tep14", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@container may not be @type in 1.0", + "purpose": "validate appropriate values of @container", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep14-in.jsonld", + "context": "compact/ep14-context.jsonld", + "expect": "invalid container mapping" + }, { + "@id": "#tep15", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "@container may not be @graph in 1.0", + "purpose": "validate appropriate values of @container", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/ep15-in.jsonld", + "context": "compact/ep15-context.jsonld", + "expect": "invalid container mapping" + }, { + "@id": "#th001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compacts embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "compact/h001-in.html", + "context": "compact/h001-context.jsonld", + "expect": "compact/h001-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compacts first embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "compact/h002-in.html", + "context": "compact/h002-context.jsonld", + "expect": "compact/h002-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th003", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compacts targeted JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier", + "input": "compact/h003-in.html#second", + "context": "compact/h003-context.jsonld", + "expect": "compact/h003-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th004", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compacts all embedded JSON-LD script elements with extractAllScripts option", + "purpose": "Tests embedded JSON-LD in HTML extracting all elements", + "input": "compact/h004-in.html", + "context": "compact/h004-context.jsonld", + "expect": "compact/h004-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "extractAllScripts": true} + }, { + "@id": "#tjs01", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (boolean true)", + "purpose": "Tests compacting property with @type @json to a JSON literal (boolean true).", + "input": "compact/js01-in.jsonld", + "context": "compact/js01-context.jsonld", + "expect": "compact/js01-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs02", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (boolean false)", + "purpose": "Tests compacting property with @type @json to a JSON literal (boolean false).", + "input": "compact/js02-in.jsonld", + "context": "compact/js02-context.jsonld", + "expect": "compact/js02-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs03", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (double)", + "purpose": "Tests compacting property with @type @json to a JSON literal (double).", + "input": "compact/js03-in.jsonld", + "context": "compact/js03-context.jsonld", + "expect": "compact/js03-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs04", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (double-zero)", + "purpose": "Tests compacting property with @type @json to a JSON literal (double-zero).", + "input": "compact/js04-in.jsonld", + "context": "compact/js04-context.jsonld", + "expect": "compact/js04-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs05", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (integer)", + "purpose": "Tests compacting property with @type @json to a JSON literal (integer).", + "input": "compact/js05-in.jsonld", + "context": "compact/js05-context.jsonld", + "expect": "compact/js05-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs06", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (object)", + "purpose": "Tests compacting property with @type @json to a JSON literal (object).", + "input": "compact/js06-in.jsonld", + "context": "compact/js06-context.jsonld", + "expect": "compact/js06-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs07", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact JSON literal (array)", + "purpose": "Tests compacting property with @type @json to a JSON literal (array).", + "input": "compact/js07-in.jsonld", + "context": "compact/js07-context.jsonld", + "expect": "compact/js07-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs08", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact already expanded JSON literal", + "purpose": "Tests compacting JSON literal does not expand terms inside json.", + "input": "compact/js08-in.jsonld", + "context": "compact/js08-context.jsonld", + "expect": "compact/js08-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs09", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact already expanded JSON literal with aliased keys", + "purpose": "Tests compacting JSON literal in expanded form.", + "input": "compact/js09-in.jsonld", + "context": "compact/js09-context.jsonld", + "expect": "compact/js09-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tm001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to object not having an @id", + "purpose": "Compaction using @container: @id", + "input": "compact/m001-in.jsonld", + "context": "compact/m001-context.jsonld", + "expect": "compact/m001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to object already having an @id", + "purpose": "Compaction using @container: @id", + "input": "compact/m002-in.jsonld", + "context": "compact/m002-context.jsonld", + "expect": "compact/m002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm003", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to object not having an @type", + "purpose": "Compaction using @container: @type", + "input": "compact/m003-in.jsonld", + "context": "compact/m003-context.jsonld", + "expect": "compact/m003-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm004", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to object already having an @type", + "purpose": "Compaction using @container: @type", + "input": "compact/m004-in.jsonld", + "context": "compact/m004-context.jsonld", + "expect": "compact/m004-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm005", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to object using compact IRI @id", + "purpose": "Compaction using @container: @id", + "input": "compact/m005-in.jsonld", + "context": "compact/m005-context.jsonld", + "expect": "compact/m005-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm006", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes using compacted @type", + "purpose": "Compaction using @container: @type", + "input": "compact/m006-in.jsonld", + "context": "compact/m006-context.jsonld", + "expect": "compact/m006-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm007", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "When type is in a type map", + "purpose": "scoped context on @type", + "input": "compact/m007-in.jsonld", + "context": "compact/m007-context.jsonld", + "expect": "compact/m007-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm008", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@index map with @none node definition", + "purpose": "index on @index", + "input": "compact/m008-in.jsonld", + "context": "compact/m008-context.jsonld", + "expect": "compact/m008-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm009", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@index map with @none value", + "purpose": "index on @index", + "input": "compact/m009-in.jsonld", + "context": "compact/m009-context.jsonld", + "expect": "compact/m009-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm010", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@index map with @none value using alias of @none", + "purpose": "index on @index", + "input": "compact/m010-in.jsonld", + "context": "compact/m010-context.jsonld", + "expect": "compact/m010-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm011", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@language map with no @language", + "purpose": "index on @language", + "input": "compact/m011-in.jsonld", + "context": "compact/m011-context.jsonld", + "expect": "compact/m011-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm012", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "language map with no @language using alias of @none", + "purpose": "index on @language", + "input": "compact/m012-in.jsonld", + "context": "compact/m012-context.jsonld", + "expect": "compact/m012-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm013", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "id map using @none", + "purpose": "index on @id", + "input": "compact/m013-in.jsonld", + "context": "compact/m013-context.jsonld", + "expect": "compact/m013-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm014", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "id map using @none with alias", + "purpose": "index on @id", + "input": "compact/m014-in.jsonld", + "context": "compact/m014-context.jsonld", + "expect": "compact/m014-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm015", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type map using @none with alias", + "purpose": "index on @type", + "input": "compact/m015-in.jsonld", + "context": "compact/m015-context.jsonld", + "expect": "compact/m015-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm016", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "type map using @none with alias", + "purpose": "index on @type", + "input": "compact/m016-in.jsonld", + "context": "compact/m016-context.jsonld", + "expect": "compact/m016-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm017", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "graph index map using @none", + "purpose": "index on @graph and @index", + "input": "compact/m017-in.jsonld", + "context": "compact/m017-context.jsonld", + "expect": "compact/m017-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm018", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "graph id map using @none", + "purpose": "index on @graph and @id", + "input": "compact/m018-in.jsonld", + "context": "compact/m018-context.jsonld", + "expect": "compact/m018-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm019", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "graph id map using alias of @none", + "purpose": "index on @graph and @id", + "input": "compact/m019-in.jsonld", + "context": "compact/m019-context.jsonld", + "expect": "compact/m019-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to @nest for property with @nest", + "purpose": "Compaction using @nest", + "input": "compact/n001-in.jsonld", + "context": "compact/n001-context.jsonld", + "expect": "compact/n001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Indexes to @nest for all properties with @nest", + "purpose": "Compaction using @nest", + "input": "compact/n002-in.jsonld", + "context": "compact/n002-context.jsonld", + "expect": "compact/n002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn003", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Nests using alias of @nest", + "purpose": "Compaction using @nest", + "input": "compact/n003-in.jsonld", + "context": "compact/n003-context.jsonld", + "expect": "compact/n003-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn004", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Arrays of nested values", + "purpose": "Compaction using @nest", + "input": "compact/n004-in.jsonld", + "context": "compact/n004-context.jsonld", + "expect": "compact/n004-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn005", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Nested @container: @list", + "purpose": "Compaction using @nest", + "input": "compact/n005-in.jsonld", + "context": "compact/n005-context.jsonld", + "expect": "compact/n005-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn006", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Nested @container: @index", + "purpose": "Compaction using @nest", + "input": "compact/n006-in.jsonld", + "context": "compact/n006-context.jsonld", + "expect": "compact/n006-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn007", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Nested @container: @language", + "purpose": "Compaction using @nest", + "input": "compact/n007-in.jsonld", + "context": "compact/n007-context.jsonld", + "expect": "compact/n007-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn008", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Nested @container: @type", + "purpose": "Compaction using @nest", + "input": "compact/n008-in.jsonld", + "context": "compact/n008-context.jsonld", + "expect": "compact/n008-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn009", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Nested @container: @id", + "purpose": "Compaction using @nest", + "input": "compact/n009-in.jsonld", + "context": "compact/n009-context.jsonld", + "expect": "compact/n009-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn010", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Multiple nest aliases", + "purpose": "Compaction using @nest", + "input": "compact/n010-in.jsonld", + "context": "compact/n010-context.jsonld", + "expect": "compact/n010-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tp001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI will not use an expanded term definition in 1.0", + "purpose": "Terms with an expanded term definition are not used for creating compact IRIs", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"}, + "input": "compact/p001-in.jsonld", + "context": "compact/p001-context.jsonld", + "expect": "compact/p001-out.jsonld" + }, { + "@id": "#tp002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI does not use expanded term definition in 1.1", + "purpose": "Terms with an expanded term definition are not used for creating compact IRIs", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/p002-in.jsonld", + "context": "compact/p002-context.jsonld", + "expect": "compact/p002-out.jsonld" + }, { + "@id": "#tp003", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI does not use simple term that does not end with a gen-delim", + "purpose": "Terms not ending with a gen-delim are not used for creating compact IRIs", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/p003-in.jsonld", + "context": "compact/p003-context.jsonld", + "expect": "compact/p003-out.jsonld" + }, { + "@id": "#tp004", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRIs using simple terms ending with gen-delim", + "purpose": "All simple terms ending with gen-delim are suitable for compaction", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/p004-in.jsonld", + "context": "compact/p004-context.jsonld", + "expect": "compact/p004-out.jsonld" + }, { + "@id": "#tp005", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI uses term with definition including @prefix: true", + "purpose": "Expanded term definition may set prefix explicitly in 1.1", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/p005-in.jsonld", + "context": "compact/p005-context.jsonld", + "expect": "compact/p005-out.jsonld" + }, { + "@id": "#tp006", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI uses term with definition including @prefix: true", + "purpose": "Expanded term definition may set prefix explicitly in 1.1", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/p006-in.jsonld", + "context": "compact/p006-context.jsonld", + "expect": "compact/p006-out.jsonld" + }, { + "@id": "#tp007", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI not used as prefix", + "purpose": "Terms including a colon are excluded from being used as a prefix", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/p007-in.jsonld", + "context": "compact/p007-context.jsonld", + "expect": "compact/p007-out.jsonld" + }, { + "@id": "#tp008", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Compact IRI does not use term with definition including @prefix: false", + "purpose": "Expanded term definition may set prefix explicitly in 1.1", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/p008-in.jsonld", + "context": "compact/p008-context.jsonld", + "expect": "compact/p008-out.jsonld" + }, { + "@id": "#tpi01", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property-valued index indexes property value, instead of property (value)", + "purpose": "Compacting property-valued indexes.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/pi01-in.jsonld", + "context": "compact/pi01-context.jsonld", + "expect": "compact/pi01-out.jsonld" + }, { + "@id": "#tpi02", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property-valued index indexes property value, instead of property (multiple values)", + "purpose": "Compacting property-valued indexes.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/pi02-in.jsonld", + "context": "compact/pi02-context.jsonld", + "expect": "compact/pi02-out.jsonld" + }, { + "@id": "#tpi03", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property-valued index indexes property value, instead of property (node)", + "purpose": "Compacting property-valued indexes.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/pi03-in.jsonld", + "context": "compact/pi03-context.jsonld", + "expect": "compact/pi03-out.jsonld" + }, { + "@id": "#tpi04", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property-valued index indexes property value, instead of property (multiple nodes)", + "purpose": "Compacting property-valued indexes.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/pi04-in.jsonld", + "context": "compact/pi04-context.jsonld", + "expect": "compact/pi04-out.jsonld" + }, { + "@id": "#tpi05", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property-valued index indexes using @none if no property value exists", + "purpose": "Compacting property-valued indexes.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/pi05-in.jsonld", + "context": "compact/pi05-context.jsonld", + "expect": "compact/pi05-out.jsonld" + }, { + "@id": "#tpi06", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "property-valued index indexes using @none if no property value does not compact to string", + "purpose": "Compacting property-valued indexes.", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, + "input": "compact/pi06-in.jsonld", + "context": "compact/pi06-context.jsonld", + "expect": "compact/pi06-out.jsonld" + }, { + "@id": "#tpr01", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "Check illegal clearing of context with protected terms", + "purpose": "Check error when clearing a context with protected terms.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/pr01-in.jsonld", + "context": "compact/pr01-context.jsonld", + "expect": "invalid context nullification" + }, { + "@id": "#tpr02", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "Check illegal overriding of protected term", + "purpose": "Check error when overriding a protected term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/pr02-in.jsonld", + "context": "compact/pr02-context.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr03", + "@type": ["jld:NegativeEvaluationTest", "jld:CompactTest"], + "name": "Check illegal overriding of protected term from type-scoped context", + "purpose": "Check error when overriding a protected term from type-scoped context.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/pr03-in.jsonld", + "context": "compact/pr03-context.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr04", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Check legal overriding of protected term from property-scoped context", + "purpose": "Check overriding a protected term from property-scoped context.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/pr04-in.jsonld", + "context": "compact/pr04-context.jsonld", + "expect": "compact/pr04-out.jsonld" + }, { + "@id": "#tpr05", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Check legal overriding of type-scoped protected term from nested node", + "purpose": "Check legal overriding of type-scoped protected term from nested node.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "compact/pr05-in.jsonld", + "context": "compact/pr05-context.jsonld", + "expect": "compact/pr05-out.jsonld" + }, { + "@id": "#tr001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Expands and compacts to document base by default", + "purpose": "Compact IRI attempts to compact document-relative IRIs", + "input": "compact/r001-in.jsonld", + "context": "compact/r001-context.jsonld", + "expect": "compact/r001-out.jsonld", + "option": {"base": "http://example.org/", "processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tr002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "Expands and does not compact to document base with compactToRelative false", + "purpose": "With compactToRelative option set to false, IRIs which could be made relative to the document base are not made relative.", + "input": "compact/r002-in.jsonld", + "context": "compact/r002-context.jsonld", + "expect": "compact/r002-out.jsonld", + "option": { + "processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1", + "compactToRelative": false + } + }, { + "@id": "#ts001", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@context with single array values", + "purpose": "@context values may be in an array", + "input": "compact/s001-in.jsonld", + "context": "compact/s001-context.jsonld", + "expect": "compact/s001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ts002", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@context with array including @set uses array values", + "purpose": "@context values may include @set along with another compatible value", + "input": "compact/s002-in.jsonld", + "context": "compact/s002-context.jsonld", + "expect": "compact/s002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tli01", + "@type": [ "jld:PositiveEvaluationTest", "jld:CompactTest" ], + "name": "coerced @list containing an empty list", + "purpose": "Lists of Lists", + "input": "compact/li01-in.jsonld", + "context": "compact/li01-context.jsonld", + "expect": "compact/li01-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli02", + "@type": [ "jld:PositiveEvaluationTest", "jld:CompactTest" ], + "name": "coerced @list containing a list", + "purpose": "Lists of Lists", + "input": "compact/li02-in.jsonld", + "context": "compact/li02-context.jsonld", + "expect": "compact/li02-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli03", + "@type": [ "jld:PositiveEvaluationTest", "jld:CompactTest" ], + "name": "coerced @list containing an deep list", + "purpose": "Lists of Lists", + "input": "compact/li03-in.jsonld", + "context": "compact/li03-context.jsonld", + "expect": "compact/li03-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli04", + "@type": [ "jld:PositiveEvaluationTest", "jld:CompactTest" ], + "name": "coerced @list containing multiple lists", + "purpose": "Lists of Lists", + "input": "compact/li04-in.jsonld", + "context": "compact/li04-context.jsonld", + "expect": "compact/li04-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli05", + "@type": [ "jld:PositiveEvaluationTest", "jld:CompactTest" ], + "name": "coerced @list containing mixed list values", + "purpose": "Lists of Lists", + "input": "compact/li05-in.jsonld", + "context": "compact/li05-context.jsonld", + "expect": "compact/li05-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#ttn01", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@type: @none does not compact values", + "purpose": "@type: @none does not compact values.", + "option": {"specVersion": "json-ld-1.1"}, + "context": "compact/tn01-context.jsonld", + "input": "compact/tn01-in.jsonld", + "expect": "compact/tn01-out.jsonld" + }, { + "@id": "#ttn02", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@type: @none does not use arrays by default", + "purpose": "@type: @none honors @container.", + "option": {"specVersion": "json-ld-1.1"}, + "context": "compact/tn02-context.jsonld", + "input": "compact/tn02-in.jsonld", + "expect": "compact/tn02-out.jsonld" + }, { + "@id": "#ttn03", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "@type: @none uses arrays with @container: @set", + "purpose": "@type: @none honors @container.", + "option": {"specVersion": "json-ld-1.1"}, + "context": "compact/tn03-context.jsonld", + "input": "compact/tn03-in.jsonld", + "expect": "compact/tn03-out.jsonld" } ] } diff --git a/core/src/test/resources/json-ld.org/compact-0001-context.jsonld b/core/src/test/resources/json-ld.org/compact/0001-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0001-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0001-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0001-in.jsonld b/core/src/test/resources/json-ld.org/compact/0001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0001-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0001-out.jsonld b/core/src/test/resources/json-ld.org/compact/0001-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0001-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0001-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0002-context.jsonld b/core/src/test/resources/json-ld.org/compact/0002-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0002-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0002-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0002-in.jsonld b/core/src/test/resources/json-ld.org/compact/0002-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0002-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0002-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0002-out.jsonld b/core/src/test/resources/json-ld.org/compact/0002-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0002-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0002-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0003-context.jsonld b/core/src/test/resources/json-ld.org/compact/0003-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0003-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0003-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0003-in.jsonld b/core/src/test/resources/json-ld.org/compact/0003-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0003-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0003-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0003-out.jsonld b/core/src/test/resources/json-ld.org/compact/0003-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0003-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0003-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0004-context.jsonld b/core/src/test/resources/json-ld.org/compact/0004-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0004-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0004-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0004-in.jsonld b/core/src/test/resources/json-ld.org/compact/0004-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0004-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0004-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0004-out.jsonld b/core/src/test/resources/json-ld.org/compact/0004-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0004-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0004-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0005-context.jsonld b/core/src/test/resources/json-ld.org/compact/0005-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0005-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0005-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0005-in.jsonld b/core/src/test/resources/json-ld.org/compact/0005-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0005-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0005-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0005-out.jsonld b/core/src/test/resources/json-ld.org/compact/0005-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0005-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0005-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0006-context.jsonld b/core/src/test/resources/json-ld.org/compact/0006-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0006-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0006-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0006-in.jsonld b/core/src/test/resources/json-ld.org/compact/0006-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0006-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0006-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0006-out.jsonld b/core/src/test/resources/json-ld.org/compact/0006-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0006-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0006-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0007-context.jsonld b/core/src/test/resources/json-ld.org/compact/0007-context.jsonld new file mode 100644 index 00000000..5b427354 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0007-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:authored": {"@type": "@id"}, + "ex:contains": {"@type": "@id"}, + "foaf": "http://xmlns.com/foaf/0.1/" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0007-in.jsonld b/core/src/test/resources/json-ld.org/compact/0007-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0007-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0007-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0007-out.jsonld b/core/src/test/resources/json-ld.org/compact/0007-out.jsonld new file mode 100644 index 00000000..785ba46b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0007-out.jsonld @@ -0,0 +1,34 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:authored": {"@type": "@id"}, + "ex:contains": {"@type": "@id"}, + "foaf": "http://xmlns.com/foaf/0.1/" + }, + "@graph": [ + { + "@id": "http://example.org/test#chapter", + "dc11:description": "Fun", + "dc11:title": "Chapter One" + }, + { + "@id": "http://example.org/test#jane", + "ex:authored": "http://example.org/test#chapter", + "foaf:name": "Jane" + }, + { + "@id": "http://example.org/test#john", + "foaf:name": "John" + }, + { + "@id": "http://example.org/test#library", + "ex:contains": { + "@id": "http://example.org/test#book", + "dc11:contributor": "Writer", + "dc11:title": "My Book", + "http://example.org/vocab#contains": "this-is-not-an-IRI" + } + } + ] +} diff --git a/core/src/test/resources/json-ld.org/compact-0008-context.jsonld b/core/src/test/resources/json-ld.org/compact/0008-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0008-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0008-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0008-in.jsonld b/core/src/test/resources/json-ld.org/compact/0008-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0008-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0008-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0008-out.jsonld b/core/src/test/resources/json-ld.org/compact/0008-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0008-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0008-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0009-context.jsonld b/core/src/test/resources/json-ld.org/compact/0009-context.jsonld new file mode 100644 index 00000000..b199a5e4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0009-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:contains": {"@type": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0009-in.jsonld b/core/src/test/resources/json-ld.org/compact/0009-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0009-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0009-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0009-out.jsonld b/core/src/test/resources/json-ld.org/compact/0009-out.jsonld new file mode 100644 index 00000000..d721d32e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0009-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:contains": {"@type": "@id"} + }, + "@id": "http://example.org/test#book", + "dc11:title": "Title", + "ex:contains": "http://example.org/test#chapter" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0010-context.jsonld b/core/src/test/resources/json-ld.org/compact/0010-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0010-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0010-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0010-in.jsonld b/core/src/test/resources/json-ld.org/compact/0010-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0010-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0010-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0010-out.jsonld b/core/src/test/resources/json-ld.org/compact/0010-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0010-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0010-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0011-context.jsonld b/core/src/test/resources/json-ld.org/compact/0011-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0011-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0011-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0011-in.jsonld b/core/src/test/resources/json-ld.org/compact/0011-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0011-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0011-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0011-out.jsonld b/core/src/test/resources/json-ld.org/compact/0011-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0011-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0011-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0012-context.jsonld b/core/src/test/resources/json-ld.org/compact/0012-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0012-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0012-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0012-in.jsonld b/core/src/test/resources/json-ld.org/compact/0012-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0012-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0012-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0012-out.jsonld b/core/src/test/resources/json-ld.org/compact/0012-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0012-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0012-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0013-context.jsonld b/core/src/test/resources/json-ld.org/compact/0013-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0013-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0013-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0013-in.jsonld b/core/src/test/resources/json-ld.org/compact/0013-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0013-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0013-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0013-out.jsonld b/core/src/test/resources/json-ld.org/compact/0013-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0013-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0013-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0014-context.jsonld b/core/src/test/resources/json-ld.org/compact/0014-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0014-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0014-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0014-in.jsonld b/core/src/test/resources/json-ld.org/compact/0014-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0014-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0014-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0014-out.jsonld b/core/src/test/resources/json-ld.org/compact/0014-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0014-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0014-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0015-context.jsonld b/core/src/test/resources/json-ld.org/compact/0015-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0015-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0015-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0015-in.jsonld b/core/src/test/resources/json-ld.org/compact/0015-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0015-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0015-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0015-out.jsonld b/core/src/test/resources/json-ld.org/compact/0015-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0015-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0015-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0016-context.jsonld b/core/src/test/resources/json-ld.org/compact/0016-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0016-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0016-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0016-in.jsonld b/core/src/test/resources/json-ld.org/compact/0016-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0016-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0016-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0016-out.jsonld b/core/src/test/resources/json-ld.org/compact/0016-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0016-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0016-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0017-context.jsonld b/core/src/test/resources/json-ld.org/compact/0017-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0017-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0017-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0017-in.jsonld b/core/src/test/resources/json-ld.org/compact/0017-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0017-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0017-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0017-out.jsonld b/core/src/test/resources/json-ld.org/compact/0017-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0017-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0017-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0018-context.jsonld b/core/src/test/resources/json-ld.org/compact/0018-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0018-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0018-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0018-in.jsonld b/core/src/test/resources/json-ld.org/compact/0018-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0018-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0018-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0018-out.jsonld b/core/src/test/resources/json-ld.org/compact/0018-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0018-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0018-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0019-context.jsonld b/core/src/test/resources/json-ld.org/compact/0019-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0019-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0019-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0019-in.jsonld b/core/src/test/resources/json-ld.org/compact/0019-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0019-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0019-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0019-out.jsonld b/core/src/test/resources/json-ld.org/compact/0019-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0019-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0019-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0020-context.jsonld b/core/src/test/resources/json-ld.org/compact/0020-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0020-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0020-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0020-in.jsonld b/core/src/test/resources/json-ld.org/compact/0020-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0020-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0020-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0020-out.jsonld b/core/src/test/resources/json-ld.org/compact/0020-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0020-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0020-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0021-context.jsonld b/core/src/test/resources/json-ld.org/compact/0021-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0021-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0021-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0021-in.jsonld b/core/src/test/resources/json-ld.org/compact/0021-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0021-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0021-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0021-out.jsonld b/core/src/test/resources/json-ld.org/compact/0021-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0021-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0021-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0022-context.jsonld b/core/src/test/resources/json-ld.org/compact/0022-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0022-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0022-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0022-in.jsonld b/core/src/test/resources/json-ld.org/compact/0022-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0022-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0022-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0022-out.jsonld b/core/src/test/resources/json-ld.org/compact/0022-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0022-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0022-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0023-context.jsonld b/core/src/test/resources/json-ld.org/compact/0023-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0023-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0023-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0023-in.jsonld b/core/src/test/resources/json-ld.org/compact/0023-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0023-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0023-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0023-out.jsonld b/core/src/test/resources/json-ld.org/compact/0023-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0023-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0023-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0024-context.jsonld b/core/src/test/resources/json-ld.org/compact/0024-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0024-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0024-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0024-in.jsonld b/core/src/test/resources/json-ld.org/compact/0024-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0024-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0024-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0024-out.jsonld b/core/src/test/resources/json-ld.org/compact/0024-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0024-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0024-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0025-context.jsonld b/core/src/test/resources/json-ld.org/compact/0025-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0025-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0025-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0025-in.jsonld b/core/src/test/resources/json-ld.org/compact/0025-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0025-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0025-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0025-out.jsonld b/core/src/test/resources/json-ld.org/compact/0025-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0025-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0025-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0026-context.jsonld b/core/src/test/resources/json-ld.org/compact/0026-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0026-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0026-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0026-in.jsonld b/core/src/test/resources/json-ld.org/compact/0026-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0026-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0026-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0026-out.jsonld b/core/src/test/resources/json-ld.org/compact/0026-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0026-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0026-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0027-context.jsonld b/core/src/test/resources/json-ld.org/compact/0027-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0027-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0027-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0027-in.jsonld b/core/src/test/resources/json-ld.org/compact/0027-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0027-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0027-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0027-out.jsonld b/core/src/test/resources/json-ld.org/compact/0027-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0027-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0027-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0028-context.jsonld b/core/src/test/resources/json-ld.org/compact/0028-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0028-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0028-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0028-in.jsonld b/core/src/test/resources/json-ld.org/compact/0028-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0028-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0028-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0028-out.jsonld b/core/src/test/resources/json-ld.org/compact/0028-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0028-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0028-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0029-context.jsonld b/core/src/test/resources/json-ld.org/compact/0029-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0029-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0029-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0029-in.jsonld b/core/src/test/resources/json-ld.org/compact/0029-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0029-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0029-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0029-out.jsonld b/core/src/test/resources/json-ld.org/compact/0029-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0029-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0029-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0030-context.jsonld b/core/src/test/resources/json-ld.org/compact/0030-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0030-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0030-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0030-in.jsonld b/core/src/test/resources/json-ld.org/compact/0030-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0030-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0030-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0030-out.jsonld b/core/src/test/resources/json-ld.org/compact/0030-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0030-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0030-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0031-context.jsonld b/core/src/test/resources/json-ld.org/compact/0031-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0031-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0031-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0031-in.jsonld b/core/src/test/resources/json-ld.org/compact/0031-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0031-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0031-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0031-out.jsonld b/core/src/test/resources/json-ld.org/compact/0031-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0031-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0031-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0032-context.jsonld b/core/src/test/resources/json-ld.org/compact/0032-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0032-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0032-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0032-in.jsonld b/core/src/test/resources/json-ld.org/compact/0032-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0032-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0032-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0032-out.jsonld b/core/src/test/resources/json-ld.org/compact/0032-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0032-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0032-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0033-context.jsonld b/core/src/test/resources/json-ld.org/compact/0033-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0033-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0033-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0033-in.jsonld b/core/src/test/resources/json-ld.org/compact/0033-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0033-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0033-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0033-out.jsonld b/core/src/test/resources/json-ld.org/compact/0033-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0033-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0033-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0034-context.jsonld b/core/src/test/resources/json-ld.org/compact/0034-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0034-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0034-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0034-in.jsonld b/core/src/test/resources/json-ld.org/compact/0034-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0034-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0034-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0034-out.jsonld b/core/src/test/resources/json-ld.org/compact/0034-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0034-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0034-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0035-context.jsonld b/core/src/test/resources/json-ld.org/compact/0035-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0035-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0035-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0035-in.jsonld b/core/src/test/resources/json-ld.org/compact/0035-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0035-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0035-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0035-out.jsonld b/core/src/test/resources/json-ld.org/compact/0035-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0035-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0035-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0036-context.jsonld b/core/src/test/resources/json-ld.org/compact/0036-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0036-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0036-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0036-in.jsonld b/core/src/test/resources/json-ld.org/compact/0036-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0036-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0036-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0036-out.jsonld b/core/src/test/resources/json-ld.org/compact/0036-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0036-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0036-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0037-context.jsonld b/core/src/test/resources/json-ld.org/compact/0037-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0037-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0037-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0037-in.jsonld b/core/src/test/resources/json-ld.org/compact/0037-in.jsonld new file mode 100644 index 00000000..992fb6aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0037-in.jsonld @@ -0,0 +1,20 @@ +[ + { + "@id": "http://example.com/people/markus", + "@reverse": { + "http://xmlns.com/foaf/0.1/knows": [ + { + "@id": "http://example.com/people/dave", + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ] + } + ], + "http://example.com/vocab/noTerm": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/compact/relative-node", + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Compact keys using @vocab" } ] + } + ] + }, + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] + } +] diff --git a/core/src/test/resources/json-ld.org/compact-0037-out.jsonld b/core/src/test/resources/json-ld.org/compact/0037-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0037-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0037-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0038-context.jsonld b/core/src/test/resources/json-ld.org/compact/0038-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0038-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0038-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0038-in.jsonld b/core/src/test/resources/json-ld.org/compact/0038-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0038-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0038-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0038-out.jsonld b/core/src/test/resources/json-ld.org/compact/0038-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0038-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0038-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0038a-out.jsonld b/core/src/test/resources/json-ld.org/compact/0038a-out.jsonld new file mode 100644 index 00000000..a8f96589 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0038a-out.jsonld @@ -0,0 +1,57 @@ +{ + "@context": { + "site": "http://example.com/", + "site-cd": "site:site-schema/content-deployment/", + "title": { + "@id": "site-cd:node/article/title", + "@container": "@index" + }, + "body": { + "@id": "site-cd:node/article/body", + "@container": "@index" + }, + "field_tags": { + "@id": "site-cd:node/article/field_tags", + "@container": "@index" + } + }, + "@id": "site:node/1", + "@type": "site-cd:node/article", + "title": { + "en": { + "@type": "site-cd:field-types/title_field", + "site-cd:node/article/title/value": "This is the English title" + }, + "es": { + "@type": "site-cd:field-types/title_field", + "site-cd:node/article/title/value": "Este es el t’tulo espa–ol" + } + }, + "body": { + "en": { + "@type": "site-cd:field-types/text_with_summary", + "site-cd:node/article/body/value": "This is the English body. There is no Spanish body, so this will be displayed for both the English and Spanish versions.", + "site-cd:node/article/body/summary": "This is the teaser for the body.", + "site-cd:node/article/body/format": "full_html" + } + }, + "field_tags": { + "en": { + "@type": "site-cd:taxonomy/term", + "@id": "site:taxonomy/term/1", + "site-cd:taxonomy/term/uuid": "e34b982c-98ac-4862-9b00-fa771a388010" + }, + "es": [ + { + "@type": "site-cd:taxonomy/term", + "@id": "site:taxonomy/term/1", + "site-cd:taxonomy/term/uuid": "e34b982c-98ac-4862-9b00-fa771a388010" + }, + { + "@type": "site-cd:taxonomy/term", + "@id": "site:taxonomy/term/2", + "site-cd:taxonomy/term/uuid": "a55b982c-58ac-4862-9b00-aa221a388010" + } + ] + } +} diff --git a/core/src/test/resources/json-ld.org/compact-0039-context.jsonld b/core/src/test/resources/json-ld.org/compact/0039-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0039-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0039-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0039-in.jsonld b/core/src/test/resources/json-ld.org/compact/0039-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0039-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0039-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0039-out.jsonld b/core/src/test/resources/json-ld.org/compact/0039-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0039-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0039-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0040-context.jsonld b/core/src/test/resources/json-ld.org/compact/0040-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0040-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0040-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0040-in.jsonld b/core/src/test/resources/json-ld.org/compact/0040-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0040-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0040-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0040-out.jsonld b/core/src/test/resources/json-ld.org/compact/0040-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0040-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0040-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0041-context.jsonld b/core/src/test/resources/json-ld.org/compact/0041-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0041-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0041-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0041-in.jsonld b/core/src/test/resources/json-ld.org/compact/0041-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0041-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0041-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0041-out.jsonld b/core/src/test/resources/json-ld.org/compact/0041-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0041-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0041-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0042-context.jsonld b/core/src/test/resources/json-ld.org/compact/0042-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0042-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0042-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0042-in.jsonld b/core/src/test/resources/json-ld.org/compact/0042-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0042-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0042-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0042-out.jsonld b/core/src/test/resources/json-ld.org/compact/0042-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0042-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0042-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0043-context.jsonld b/core/src/test/resources/json-ld.org/compact/0043-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0043-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0043-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0043-in.jsonld b/core/src/test/resources/json-ld.org/compact/0043-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0043-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0043-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0043-out.jsonld b/core/src/test/resources/json-ld.org/compact/0043-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0043-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0043-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0044-context.jsonld b/core/src/test/resources/json-ld.org/compact/0044-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0044-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0044-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0044-in.jsonld b/core/src/test/resources/json-ld.org/compact/0044-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0044-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0044-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0044-out.jsonld b/core/src/test/resources/json-ld.org/compact/0044-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0044-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0044-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0045-context.jsonld b/core/src/test/resources/json-ld.org/compact/0045-context.jsonld new file mode 100644 index 00000000..5854b8a0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0045-context.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "term": "http://example.com/terms-are-not-considered-in-id", + "compact-iris": "http://example.com/compact-iris#", + "property": "http://example.com/property", + "@vocab": "http://example.org/vocab-is-not-considered-for-id" + }, + "@id": "term", + "property": [ + { + "@id": "compact-iris:are-considered", + "property": "@id supports the following values: relative, absolute, and compact IRIs" + }, + { + "@id": "../parent-node", + "property": "relative IRIs get resolved against the document's base IRI" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/compact/0045-in.jsonld b/core/src/test/resources/json-ld.org/compact/0045-in.jsonld new file mode 100644 index 00000000..5f974bd4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0045-in.jsonld @@ -0,0 +1,19 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/compact/term", + "http://example.com/property": [ + { + "@id": "http://example.com/compact-iris#are-considered", + "http://example.com/property": [ + { "@value": "@id supports the following values: relative, absolute, and compact IRIs" } + ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/parent-node", + "http://example.com/property": [ + { "@value": "relative IRIs get resolved against the document's base IRI" } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/compact/0045-out.jsonld b/core/src/test/resources/json-ld.org/compact/0045-out.jsonld new file mode 100644 index 00000000..5854b8a0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0045-out.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "term": "http://example.com/terms-are-not-considered-in-id", + "compact-iris": "http://example.com/compact-iris#", + "property": "http://example.com/property", + "@vocab": "http://example.org/vocab-is-not-considered-for-id" + }, + "@id": "term", + "property": [ + { + "@id": "compact-iris:are-considered", + "property": "@id supports the following values: relative, absolute, and compact IRIs" + }, + { + "@id": "../parent-node", + "property": "relative IRIs get resolved against the document's base IRI" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/compact-0046-context.jsonld b/core/src/test/resources/json-ld.org/compact/0046-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0046-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0046-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0046-in.jsonld b/core/src/test/resources/json-ld.org/compact/0046-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0046-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0046-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0046-out.jsonld b/core/src/test/resources/json-ld.org/compact/0046-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0046-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0046-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0047-context.jsonld b/core/src/test/resources/json-ld.org/compact/0047-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0047-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0047-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0047-in.jsonld b/core/src/test/resources/json-ld.org/compact/0047-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0047-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0047-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0047-out.jsonld b/core/src/test/resources/json-ld.org/compact/0047-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0047-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0047-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0048-context.jsonld b/core/src/test/resources/json-ld.org/compact/0048-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0048-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0048-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0048-in.jsonld b/core/src/test/resources/json-ld.org/compact/0048-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0048-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0048-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0048-out.jsonld b/core/src/test/resources/json-ld.org/compact/0048-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0048-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0048-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0049-context.jsonld b/core/src/test/resources/json-ld.org/compact/0049-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0049-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0049-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0049-in.jsonld b/core/src/test/resources/json-ld.org/compact/0049-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0049-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0049-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0049-out.jsonld b/core/src/test/resources/json-ld.org/compact/0049-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0049-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0049-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0050-context.jsonld b/core/src/test/resources/json-ld.org/compact/0050-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0050-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0050-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0050-in.jsonld b/core/src/test/resources/json-ld.org/compact/0050-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0050-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0050-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0050-out.jsonld b/core/src/test/resources/json-ld.org/compact/0050-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0050-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0050-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0051-context.jsonld b/core/src/test/resources/json-ld.org/compact/0051-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0051-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0051-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0051-in.jsonld b/core/src/test/resources/json-ld.org/compact/0051-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0051-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0051-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0051-out.jsonld b/core/src/test/resources/json-ld.org/compact/0051-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0051-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0051-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0052-context.jsonld b/core/src/test/resources/json-ld.org/compact/0052-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0052-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0052-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0052-in.jsonld b/core/src/test/resources/json-ld.org/compact/0052-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0052-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0052-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0052-out.jsonld b/core/src/test/resources/json-ld.org/compact/0052-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0052-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0052-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0053-context.jsonld b/core/src/test/resources/json-ld.org/compact/0053-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0053-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0053-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0053-in.jsonld b/core/src/test/resources/json-ld.org/compact/0053-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0053-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0053-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0053-out.jsonld b/core/src/test/resources/json-ld.org/compact/0053-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0053-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0053-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0054-context.jsonld b/core/src/test/resources/json-ld.org/compact/0054-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0054-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0054-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0054-in.jsonld b/core/src/test/resources/json-ld.org/compact/0054-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0054-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0054-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0054-out.jsonld b/core/src/test/resources/json-ld.org/compact/0054-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0054-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0054-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0055-context.jsonld b/core/src/test/resources/json-ld.org/compact/0055-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0055-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0055-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0055-in.jsonld b/core/src/test/resources/json-ld.org/compact/0055-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0055-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0055-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0055-out.jsonld b/core/src/test/resources/json-ld.org/compact/0055-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0055-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0055-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0056-context.jsonld b/core/src/test/resources/json-ld.org/compact/0056-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0056-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0056-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0056-in.jsonld b/core/src/test/resources/json-ld.org/compact/0056-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0056-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0056-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0056-out.jsonld b/core/src/test/resources/json-ld.org/compact/0056-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0056-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0056-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0057-context.jsonld b/core/src/test/resources/json-ld.org/compact/0057-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0057-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0057-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0057-in.jsonld b/core/src/test/resources/json-ld.org/compact/0057-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0057-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0057-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0057-out.jsonld b/core/src/test/resources/json-ld.org/compact/0057-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0057-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0057-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0058-context.jsonld b/core/src/test/resources/json-ld.org/compact/0058-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0058-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0058-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0058-in.jsonld b/core/src/test/resources/json-ld.org/compact/0058-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0058-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0058-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0058-out.jsonld b/core/src/test/resources/json-ld.org/compact/0058-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0058-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0058-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0059-context.jsonld b/core/src/test/resources/json-ld.org/compact/0059-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0059-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0059-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0059-in.jsonld b/core/src/test/resources/json-ld.org/compact/0059-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0059-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0059-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0059-out.jsonld b/core/src/test/resources/json-ld.org/compact/0059-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0059-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0059-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0060-context.jsonld b/core/src/test/resources/json-ld.org/compact/0060-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0060-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0060-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0060-in.jsonld b/core/src/test/resources/json-ld.org/compact/0060-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0060-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0060-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0060-out.jsonld b/core/src/test/resources/json-ld.org/compact/0060-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0060-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0060-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0061-context.jsonld b/core/src/test/resources/json-ld.org/compact/0061-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0061-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0061-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0061-in.jsonld b/core/src/test/resources/json-ld.org/compact/0061-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0061-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0061-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0061-out.jsonld b/core/src/test/resources/json-ld.org/compact/0061-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0061-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0061-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0062-context.jsonld b/core/src/test/resources/json-ld.org/compact/0062-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0062-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0062-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0062-in.jsonld b/core/src/test/resources/json-ld.org/compact/0062-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0062-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0062-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0062-out.jsonld b/core/src/test/resources/json-ld.org/compact/0062-out.jsonld new file mode 100644 index 00000000..7c9bfbf3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0062-out.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "term": { "@id": "http://example.org/term", "@type": "@vocab" } + }, + "term": "https://w3c.github.io/json-ld-api/tests/compact/not-a-term-thus-a-relative-IRI" +} diff --git a/core/src/test/resources/json-ld.org/compact-0063-context.jsonld b/core/src/test/resources/json-ld.org/compact/0063-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0063-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0063-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0063-in.jsonld b/core/src/test/resources/json-ld.org/compact/0063-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0063-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0063-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0063-out.jsonld b/core/src/test/resources/json-ld.org/compact/0063-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0063-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0063-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0064-context.jsonld b/core/src/test/resources/json-ld.org/compact/0064-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0064-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0064-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0064-in.jsonld b/core/src/test/resources/json-ld.org/compact/0064-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0064-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0064-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0064-out.jsonld b/core/src/test/resources/json-ld.org/compact/0064-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0064-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0064-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0065-context.jsonld b/core/src/test/resources/json-ld.org/compact/0065-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0065-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0065-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0065-in.jsonld b/core/src/test/resources/json-ld.org/compact/0065-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0065-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0065-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0065-out.jsonld b/core/src/test/resources/json-ld.org/compact/0065-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0065-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0065-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0066-context.jsonld b/core/src/test/resources/json-ld.org/compact/0066-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0066-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0066-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0066-in.jsonld b/core/src/test/resources/json-ld.org/compact/0066-in.jsonld new file mode 100644 index 00000000..8528714a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0066-in.jsonld @@ -0,0 +1,34 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/compact/relativeIris", + "@type": [ + "https://w3c.github.io/json-ld-api/tests/compact/link", + "https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld#fragment-works", + "https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld?query=works", + "https://w3c.github.io/json-ld-api/tests/", + "https://w3c.github.io/json-ld-api/", + "https://w3c.github.io/json-ld-api/parent", + "https://w3c.github.io/parent-parent-eq-root", + "https://w3c.github.io/still-root", + "https://w3c.github.io/too-many-dots", + "https://w3c.github.io/absolute", + "http://example.org/scheme-relative" + ], + "http://www.example.com/link": [ { + "@list": [ + { "@id": "https://w3c.github.io/json-ld-api/tests/compact/link" }, + { "@id": "https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld#fragment-works" }, + { "@id": "https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld?query=works" }, + { "@id": "https://w3c.github.io/json-ld-api/tests/" }, + { "@id": "https://w3c.github.io/json-ld-api/" }, + { "@id": "https://w3c.github.io/json-ld-api/parent" }, + { "@id": "https://w3c.github.io/json-ld-api/parent#fragment" }, + { "@id": "https://w3c.github.io/parent-parent-eq-root" }, + { "@id": "https://w3c.github.io/still-root" }, + { "@id": "https://w3c.github.io/too-many-dots" }, + { "@id": "https://w3c.github.io/absolute" }, + { "@id": "http://example.org/scheme-relative" } + ] + } ] + } +] diff --git a/core/src/test/resources/json-ld.org/compact/0066-out.jsonld b/core/src/test/resources/json-ld.org/compact/0066-out.jsonld new file mode 100644 index 00000000..ae1310d9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0066-out.jsonld @@ -0,0 +1,33 @@ +{ + "@context": { + "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } + }, + "@id": "relativeIris", + "@type": [ + "https://w3c.github.io/json-ld-api/tests/compact/link", + "https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld#fragment-works", + "https://w3c.github.io/json-ld-api/tests/compact/0066-in.jsonld?query=works", + "https://w3c.github.io/json-ld-api/tests/", + "https://w3c.github.io/json-ld-api/", + "https://w3c.github.io/json-ld-api/parent", + "https://w3c.github.io/parent-parent-eq-root", + "https://w3c.github.io/still-root", + "https://w3c.github.io/too-many-dots", + "https://w3c.github.io/absolute", + "http://example.org/scheme-relative" + ], + "links": [ + "link", + "#fragment-works", + "?query=works", + "../", + "../../", + "../../parent", + "../../parent#fragment", + "../../../parent-parent-eq-root", + "../../../still-root", + "../../../too-many-dots", + "../../../absolute", + "http://example.org/scheme-relative" + ] +} diff --git a/core/src/test/resources/json-ld.org/compact-0067-context.jsonld b/core/src/test/resources/json-ld.org/compact/0067-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0067-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0067-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0067-in.jsonld b/core/src/test/resources/json-ld.org/compact/0067-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0067-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0067-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0067-out.jsonld b/core/src/test/resources/json-ld.org/compact/0067-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0067-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0067-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0068-context.jsonld b/core/src/test/resources/json-ld.org/compact/0068-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0068-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0068-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0068-in.jsonld b/core/src/test/resources/json-ld.org/compact/0068-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0068-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0068-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0068-out.jsonld b/core/src/test/resources/json-ld.org/compact/0068-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0068-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0068-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0069-context.jsonld b/core/src/test/resources/json-ld.org/compact/0069-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0069-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0069-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0069-in.jsonld b/core/src/test/resources/json-ld.org/compact/0069-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0069-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0069-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0069-out.jsonld b/core/src/test/resources/json-ld.org/compact/0069-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0069-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0069-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0070-context.jsonld b/core/src/test/resources/json-ld.org/compact/0070-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0070-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0070-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0070-in.jsonld b/core/src/test/resources/json-ld.org/compact/0070-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0070-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0070-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0070-out.jsonld b/core/src/test/resources/json-ld.org/compact/0070-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0070-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0070-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0071-context.jsonld b/core/src/test/resources/json-ld.org/compact/0071-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0071-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0071-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0071-in.jsonld b/core/src/test/resources/json-ld.org/compact/0071-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0071-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0071-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0071-out.jsonld b/core/src/test/resources/json-ld.org/compact/0071-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0071-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0071-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0072-context.jsonld b/core/src/test/resources/json-ld.org/compact/0072-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0072-context.jsonld rename to core/src/test/resources/json-ld.org/compact/0072-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0072-in.jsonld b/core/src/test/resources/json-ld.org/compact/0072-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0072-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0072-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact-0072-out.jsonld b/core/src/test/resources/json-ld.org/compact/0072-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0072-out.jsonld rename to core/src/test/resources/json-ld.org/compact/0072-out.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0073-context.jsonld b/core/src/test/resources/json-ld.org/compact/0073-context.jsonld new file mode 100644 index 00000000..6ec724ad --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0073-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "id": {"@type": "@id", "@id": "@id"}, + "type": {"@type": "@id", "@id": "@type"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0073-in.jsonld b/core/src/test/resources/json-ld.org/compact/0073-in.jsonld new file mode 100644 index 00000000..6891f660 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0073-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "id": {"@type": "@id", "@id": "@id"}, + "type": {"@type": "@id", "@id": "@type"} + }, + "id": "http://example.org/anno9", + "type": "http://example.org/Annotation" +} diff --git a/core/src/test/resources/json-ld.org/compact/0073-out.jsonld b/core/src/test/resources/json-ld.org/compact/0073-out.jsonld new file mode 100644 index 00000000..55fd2404 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0073-out.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "id": { + "@type": "@id", + "@id": "@id" + }, + "type": { + "@type": "@id", + "@id": "@type" + } + }, + "id": "http://example.org/anno9", + "type": "http://example.org/Annotation" +} diff --git a/core/src/test/resources/json-ld.org/compact/0074-context.jsonld b/core/src/test/resources/json-ld.org/compact/0074-context.jsonld new file mode 100644 index 00000000..9109cf99 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0074-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "name": { + "@type": "@id", + "@container": "@list", + "@id": "https://schema.org/name" + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0074-in.jsonld b/core/src/test/resources/json-ld.org/compact/0074-in.jsonld new file mode 100644 index 00000000..a89d800b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0074-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "name": { + "@type": "@id", + "@container": "@list", + "@id": "https://schema.org/name" + } + }, + "name": [] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0074-out.jsonld b/core/src/test/resources/json-ld.org/compact/0074-out.jsonld new file mode 100644 index 00000000..a89d800b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0074-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "name": { + "@type": "@id", + "@container": "@list", + "@id": "https://schema.org/name" + } + }, + "name": [] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0075-context.jsonld b/core/src/test/resources/json-ld.org/compact/0075-context.jsonld new file mode 100644 index 00000000..fa920369 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0075-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "ns": "http://example.com/core#" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0075-in.jsonld b/core/src/test/resources/json-ld.org/compact/0075-in.jsonld new file mode 100644 index 00000000..593402c5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0075-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example.com/core#associated": { "@id": "#Light"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0075-out.jsonld b/core/src/test/resources/json-ld.org/compact/0075-out.jsonld new file mode 100644 index 00000000..2a0a7b89 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0075-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "ns": "http://example.com/core#" + }, + "ns:associated": { + "@id": "#Light" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0076-context.jsonld b/core/src/test/resources/json-ld.org/compact/0076-context.jsonld new file mode 100644 index 00000000..8be5b7aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0076-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"@base": "http://example.com/api/things/1"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0076-in.jsonld b/core/src/test/resources/json-ld.org/compact/0076-in.jsonld new file mode 100644 index 00000000..38c60371 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0076-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/api/things/1", + "http://example.com": "" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0076-out.jsonld b/core/src/test/resources/json-ld.org/compact/0076-out.jsonld new file mode 100644 index 00000000..039d4c48 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0076-out.jsonld @@ -0,0 +1,5 @@ +{ + "@context": {"@base": "http://example.com/api/things/1"}, + "@id": "1", + "http://example.com": "" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0077-context.jsonld b/core/src/test/resources/json-ld.org/compact/0077-context.jsonld new file mode 100644 index 00000000..f4475591 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0077-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0077-in.jsonld b/core/src/test/resources/json-ld.org/compact/0077-in.jsonld new file mode 100644 index 00000000..8514ced2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0077-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0077-out.jsonld b/core/src/test/resources/json-ld.org/compact/0077-out.jsonld new file mode 100644 index 00000000..3f44ffbb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0077-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "input": { + "@id": "foo:input", + "@container": "@graph" + }, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0078-context.jsonld b/core/src/test/resources/json-ld.org/compact/0078-context.jsonld new file mode 100644 index 00000000..6b66ae3e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0078-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0078-in.jsonld b/core/src/test/resources/json-ld.org/compact/0078-in.jsonld new file mode 100644 index 00000000..8514ced2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0078-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0078-out.jsonld b/core/src/test/resources/json-ld.org/compact/0078-out.jsonld new file mode 100644 index 00000000..b283b6fe --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0078-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "input": { + "@id": "foo:input", + "@container": ["@graph", "@set"] + }, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }] +} diff --git a/core/src/test/resources/json-ld.org/compact/0079-context.jsonld b/core/src/test/resources/json-ld.org/compact/0079-context.jsonld new file mode 100644 index 00000000..24bd0245 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0079-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0079-in.jsonld b/core/src/test/resources/json-ld.org/compact/0079-in.jsonld new file mode 100644 index 00000000..e34a943b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0079-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }], + "@index": "ndx" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0079-out.jsonld b/core/src/test/resources/json-ld.org/compact/0079-out.jsonld new file mode 100644 index 00000000..f7c67f80 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0079-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": { + "value": "x" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0080-context.jsonld b/core/src/test/resources/json-ld.org/compact/0080-context.jsonld new file mode 100644 index 00000000..24bd0245 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0080-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0080-in.jsonld b/core/src/test/resources/json-ld.org/compact/0080-in.jsonld new file mode 100644 index 00000000..369917c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0080-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.org/gid", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0080-out.jsonld b/core/src/test/resources/json-ld.org/compact/0080-out.jsonld new file mode 100644 index 00000000..53d524d3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0080-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": { + "@id": "http://example.org/gid", + "@graph": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0081-context.jsonld b/core/src/test/resources/json-ld.org/compact/0081-context.jsonld new file mode 100644 index 00000000..5db515f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0081-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0081-in.jsonld b/core/src/test/resources/json-ld.org/compact/0081-in.jsonld new file mode 100644 index 00000000..dfc5b0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0081-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0081-out.jsonld b/core/src/test/resources/json-ld.org/compact/0081-out.jsonld new file mode 100644 index 00000000..83d3182b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0081-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0082-context.jsonld b/core/src/test/resources/json-ld.org/compact/0082-context.jsonld new file mode 100644 index 00000000..f12919ce --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0082-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0082-in.jsonld b/core/src/test/resources/json-ld.org/compact/0082-in.jsonld new file mode 100644 index 00000000..dfc5b0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0082-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0082-out.jsonld b/core/src/test/resources/json-ld.org/compact/0082-out.jsonld new file mode 100644 index 00000000..02b54e3d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0082-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + }, + "input": { + "g1": [{"value": "x"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0083-context.jsonld b/core/src/test/resources/json-ld.org/compact/0083-context.jsonld new file mode 100644 index 00000000..5db515f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0083-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0083-in.jsonld b/core/src/test/resources/json-ld.org/compact/0083-in.jsonld new file mode 100644 index 00000000..d362e26a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0083-in.jsonld @@ -0,0 +1,9 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }], + "@index": "g1", + "@id": "http://example.org/id" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0083-out.jsonld b/core/src/test/resources/json-ld.org/compact/0083-out.jsonld new file mode 100644 index 00000000..d7d42dfb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0083-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "@id": "http://example.org/id", + "@index": "g1", + "@graph": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0084-context.jsonld b/core/src/test/resources/json-ld.org/compact/0084-context.jsonld new file mode 100644 index 00000000..2de136b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0084-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0084-in.jsonld b/core/src/test/resources/json-ld.org/compact/0084-in.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0084-in.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0084-out.jsonld b/core/src/test/resources/json-ld.org/compact/0084-out.jsonld new file mode 100644 index 00000000..6594c8d6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0084-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "@none": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0085-context.jsonld b/core/src/test/resources/json-ld.org/compact/0085-context.jsonld new file mode 100644 index 00000000..2de136b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0085-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0085-in.jsonld b/core/src/test/resources/json-ld.org/compact/0085-in.jsonld new file mode 100644 index 00000000..67441b87 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0085-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }], + "@id": "http://example.org/id" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0085-out.jsonld b/core/src/test/resources/json-ld.org/compact/0085-out.jsonld new file mode 100644 index 00000000..274777bf --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0085-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.org/id" : {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0086-context.jsonld b/core/src/test/resources/json-ld.org/compact/0086-context.jsonld new file mode 100644 index 00000000..5b7f1503 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0086-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0086-in.jsonld b/core/src/test/resources/json-ld.org/compact/0086-in.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0086-in.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0086-out.jsonld b/core/src/test/resources/json-ld.org/compact/0086-out.jsonld new file mode 100644 index 00000000..870273bd --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0086-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + }, + "input": {"@none": [{"value": "x"}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0087-context.jsonld b/core/src/test/resources/json-ld.org/compact/0087-context.jsonld new file mode 100644 index 00000000..5b7f1503 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0087-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0087-in.jsonld b/core/src/test/resources/json-ld.org/compact/0087-in.jsonld new file mode 100644 index 00000000..67441b87 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0087-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }], + "@id": "http://example.org/id" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0087-out.jsonld b/core/src/test/resources/json-ld.org/compact/0087-out.jsonld new file mode 100644 index 00000000..d8420e59 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0087-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + }, + "input": { + "http://example.org/id" : [{"value": "x"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0088-context.jsonld b/core/src/test/resources/json-ld.org/compact/0088-context.jsonld new file mode 100644 index 00000000..2de136b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0088-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0088-in.jsonld b/core/src/test/resources/json-ld.org/compact/0088-in.jsonld new file mode 100644 index 00000000..e34a943b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0088-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }], + "@index": "ndx" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0088-out.jsonld b/core/src/test/resources/json-ld.org/compact/0088-out.jsonld new file mode 100644 index 00000000..6594c8d6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0088-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "@none": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0089-context.jsonld b/core/src/test/resources/json-ld.org/compact/0089-context.jsonld new file mode 100644 index 00000000..c496190b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0089-context.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.com/vocab/", + "@language": "it", + "s": { "@id": "label", "@language": null }, + "label": { + "@container": "@language" + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0089-in.jsonld b/core/src/test/resources/json-ld.org/compact/0089-in.jsonld new file mode 100644 index 00000000..3224cac4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0089-in.jsonld @@ -0,0 +1,23 @@ +[{ + "@id": "http://example.com/queen", + "http://example.com/vocab/label": [ + { + "@value": "Il re", + "@language": "it" + }, { + "@value": "The king", + "@language": "en" + }, { + "@value": "The Queen", + "@language": "en" + }, { + "@value": "Die Königin", + "@language": "de" + }, { + "@value": "Ihre Majestät", + "@language": "de" + }, { + "@value": "No Language" + } + ] +}] diff --git a/core/src/test/resources/json-ld.org/compact/0089-out.jsonld b/core/src/test/resources/json-ld.org/compact/0089-out.jsonld new file mode 100644 index 00000000..0e018880 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0089-out.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@vocab": "http://example.com/vocab/", + "@language": "it", + "s": { "@id": "label", "@language": null }, + "label": { + "@container": "@language" + } + }, + "@id": "http://example.com/queen", + "label": { + "it": "Il re", + "en": [ "The king", "The Queen" ], + "de": [ "Die Königin", "Ihre Majestät" ] + }, + "s": "No Language" +} diff --git a/core/src/test/resources/json-ld.org/compact/0090-context.jsonld b/core/src/test/resources/json-ld.org/compact/0090-context.jsonld new file mode 100644 index 00000000..09a8981a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0090-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0090-in.jsonld b/core/src/test/resources/json-ld.org/compact/0090-in.jsonld new file mode 100644 index 00000000..8514ced2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0090-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0090-out.jsonld b/core/src/test/resources/json-ld.org/compact/0090-out.jsonld new file mode 100644 index 00000000..42e31005 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0090-out.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + }, + "input": { + "@graph": { + "value": "x" + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0091-context.jsonld b/core/src/test/resources/json-ld.org/compact/0091-context.jsonld new file mode 100644 index 00000000..d6538be3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0091-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0091-in.jsonld b/core/src/test/resources/json-ld.org/compact/0091-in.jsonld new file mode 100644 index 00000000..4d7ff511 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0091-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0091-out.jsonld b/core/src/test/resources/json-ld.org/compact/0091-out.jsonld new file mode 100644 index 00000000..21df3f71 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0091-out.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + }, + "@graph": [{ + "input": [{ + "@graph": [{ + "value": ["x"] + }] + }] + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0092-context.jsonld b/core/src/test/resources/json-ld.org/compact/0092-context.jsonld new file mode 100644 index 00000000..09a8981a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0092-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0092-in.jsonld b/core/src/test/resources/json-ld.org/compact/0092-in.jsonld new file mode 100644 index 00000000..f439807e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0092-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }, { + "value": "y" + }] +} diff --git a/core/src/test/resources/json-ld.org/compact/0092-out.jsonld b/core/src/test/resources/json-ld.org/compact/0092-out.jsonld new file mode 100644 index 00000000..21c06e9c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0092-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + }, + "input": [ + {"@graph": {"value": "x"}}, + {"@graph": {"value": "y"}} + ] +} diff --git a/core/src/test/resources/json-ld.org/compact/0093-context.jsonld b/core/src/test/resources/json-ld.org/compact/0093-context.jsonld new file mode 100644 index 00000000..09a8981a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0093-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0093-in.jsonld b/core/src/test/resources/json-ld.org/compact/0093-in.jsonld new file mode 100644 index 00000000..f439807e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0093-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }, { + "value": "y" + }] +} diff --git a/core/src/test/resources/json-ld.org/compact/0093-out.jsonld b/core/src/test/resources/json-ld.org/compact/0093-out.jsonld new file mode 100644 index 00000000..82135170 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0093-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + }, + "@graph": [{ + "input": [ + {"@graph": [{"value": ["x"]}]}, + {"@graph": [{"value": ["y"]}]} + ] + }] +} diff --git a/core/src/test/resources/json-ld.org/compact/0094-context.jsonld b/core/src/test/resources/json-ld.org/compact/0094-context.jsonld new file mode 100644 index 00000000..09a8981a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0094-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0094-in.jsonld b/core/src/test/resources/json-ld.org/compact/0094-in.jsonld new file mode 100644 index 00000000..8514ced2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0094-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0094-out.jsonld b/core/src/test/resources/json-ld.org/compact/0094-out.jsonld new file mode 100644 index 00000000..42e31005 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0094-out.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "input": "foo:input", + "value": "foo:value" + }, + "input": { + "@graph": { + "value": "x" + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0095-context.jsonld b/core/src/test/resources/json-ld.org/compact/0095-context.jsonld new file mode 100644 index 00000000..3eafcca0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0095-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@base": "http://example.com/some/", + "@vocab": "" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0095-in.jsonld b/core/src/test/resources/json-ld.org/compact/0095-in.jsonld new file mode 100644 index 00000000..7ebcdd70 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0095-in.jsonld @@ -0,0 +1,13 @@ +[ + { + "@id": "http://example.com/some/deep/directory/and/relativePropertyIris", + "http://example.com/absolute": [{"@value": "/absolute"}], + "http://example.com/some/deep/directory/": [{"@value": "deep/directory"}], + "http://example.com/some/deep/directory/and/": [{"@value": "deep/directory/and/"}], + "http://example.com/some/#fragment-works": [{"@value": "#fragment-works"}], + "http://example.com/some/?query=works": [{"@value": "?query=works"}], + "http://example.com/some/link": [{"@value": "link"}], + "http://example.com/some/../parent": [{"@value": "../parent"}], + "http://example.com/too-many-dots": [{"@value": "too-many-dots"}] + } +] diff --git a/core/src/test/resources/json-ld.org/compact/0095-out.jsonld b/core/src/test/resources/json-ld.org/compact/0095-out.jsonld new file mode 100644 index 00000000..1e72be2b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0095-out.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@base": "http://example.com/some/", + "@vocab": "" + }, + "#fragment-works": "#fragment-works", + "../parent": "../parent", + "?query=works": "?query=works", + "@id": "deep/directory/and/relativePropertyIris", + "deep/directory/": "deep/directory", + "deep/directory/and/": "deep/directory/and/", + "http://example.com/absolute": "/absolute", + "http://example.com/too-many-dots": "too-many-dots", + "link": "link" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0096-context.jsonld b/core/src/test/resources/json-ld.org/compact/0096-context.jsonld new file mode 100644 index 00000000..2af65c48 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0096-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0096-in.jsonld b/core/src/test/resources/json-ld.org/compact/0096-in.jsonld new file mode 100644 index 00000000..5e4e5bd9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0096-in.jsonld @@ -0,0 +1,15 @@ +[{ + "foo:input": [{ + "@graph": [{ + "foo:value": [{ + "@value": "x" + }] + }] + }, { + "@graph": [{ + "foo:value": [{ + "@value": "y" + }] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0096-out.jsonld b/core/src/test/resources/json-ld.org/compact/0096-out.jsonld new file mode 100644 index 00000000..5fdb9a7a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0096-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }, { + "value": "y" + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0097-context.jsonld b/core/src/test/resources/json-ld.org/compact/0097-context.jsonld new file mode 100644 index 00000000..c6cb8aa0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0097-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0097-in.jsonld b/core/src/test/resources/json-ld.org/compact/0097-in.jsonld new file mode 100644 index 00000000..5e4e5bd9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0097-in.jsonld @@ -0,0 +1,15 @@ +[{ + "foo:input": [{ + "@graph": [{ + "foo:value": [{ + "@value": "x" + }] + }] + }, { + "@graph": [{ + "foo:value": [{ + "@value": "y" + }] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0097-out.jsonld b/core/src/test/resources/json-ld.org/compact/0097-out.jsonld new file mode 100644 index 00000000..148d5722 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0097-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }, { + "value": "y" + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0098-context.jsonld b/core/src/test/resources/json-ld.org/compact/0098-context.jsonld new file mode 100644 index 00000000..5db515f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0098-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0098-in.jsonld b/core/src/test/resources/json-ld.org/compact/0098-in.jsonld new file mode 100644 index 00000000..6788bb49 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0098-in.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0098-out.jsonld b/core/src/test/resources/json-ld.org/compact/0098-out.jsonld new file mode 100644 index 00000000..4c7c6f45 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0098-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": {"value": "x"}, + "g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0099-context.jsonld b/core/src/test/resources/json-ld.org/compact/0099-context.jsonld new file mode 100644 index 00000000..dc5b9003 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0099-context.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + }, + "input": { + "g1": {"value": "x"}, + "g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0099-in.jsonld b/core/src/test/resources/json-ld.org/compact/0099-in.jsonld new file mode 100644 index 00000000..6788bb49 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0099-in.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0099-out.jsonld b/core/src/test/resources/json-ld.org/compact/0099-out.jsonld new file mode 100644 index 00000000..b7946f08 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0099-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + }, + "input": { + "g1": [{"value": "x"}], + "g2": [{"value": "y"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0100-context.jsonld b/core/src/test/resources/json-ld.org/compact/0100-context.jsonld new file mode 100644 index 00000000..2de136b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0100-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0100-in.jsonld b/core/src/test/resources/json-ld.org/compact/0100-in.jsonld new file mode 100644 index 00000000..45ce037e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0100-in.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0100-out.jsonld b/core/src/test/resources/json-ld.org/compact/0100-out.jsonld new file mode 100644 index 00000000..0010e0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0100-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": {"value": "x"}, + "http://example.com/g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0101-context.jsonld b/core/src/test/resources/json-ld.org/compact/0101-context.jsonld new file mode 100644 index 00000000..5b7f1503 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0101-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0101-in.jsonld b/core/src/test/resources/json-ld.org/compact/0101-in.jsonld new file mode 100644 index 00000000..45ce037e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0101-in.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0101-out.jsonld b/core/src/test/resources/json-ld.org/compact/0101-out.jsonld new file mode 100644 index 00000000..c20697c3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0101-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + }, + "input": { + "http://example.com/g1": [{"value": "x"}], + "http://example.com/g2": [{"value": "y"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0102-context.jsonld b/core/src/test/resources/json-ld.org/compact/0102-context.jsonld new file mode 100644 index 00000000..5db515f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0102-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0102-in.jsonld b/core/src/test/resources/json-ld.org/compact/0102-in.jsonld new file mode 100644 index 00000000..27d2cd88 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0102-in.jsonld @@ -0,0 +1,23 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "a"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "b"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0102-out.jsonld b/core/src/test/resources/json-ld.org/compact/0102-out.jsonld new file mode 100644 index 00000000..3e1c5afa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0102-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": [{"value": "x"}, {"value": "y"}], + "g2": [{"value": "a"}, {"value": "b"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0103-context.jsonld b/core/src/test/resources/json-ld.org/compact/0103-context.jsonld new file mode 100644 index 00000000..2de136b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0103-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0103-in.jsonld b/core/src/test/resources/json-ld.org/compact/0103-in.jsonld new file mode 100644 index 00000000..a11e1d72 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0103-in.jsonld @@ -0,0 +1,23 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "a"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "b"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0103-out.jsonld b/core/src/test/resources/json-ld.org/compact/0103-out.jsonld new file mode 100644 index 00000000..182c031d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0103-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": [{"value": "x"}, {"value": "y"}], + "http://example.com/g2": [{"value": "a"}, {"value": "b"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0104-context.jsonld b/core/src/test/resources/json-ld.org/compact/0104-context.jsonld new file mode 100644 index 00000000..36d7203c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0104-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "@type": {"@container": "@set"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0104-in.jsonld b/core/src/test/resources/json-ld.org/compact/0104-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0104-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0104-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0104-out.jsonld b/core/src/test/resources/json-ld.org/compact/0104-out.jsonld new file mode 100644 index 00000000..8699cfa7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0104-out.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@type": {"@container": "@set"} + }, + "@type": ["http://example.org/type"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0105-context.jsonld b/core/src/test/resources/json-ld.org/compact/0105-context.jsonld new file mode 100644 index 00000000..5031f856 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0105-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "type": {"@id": "@type", "@container": "@set"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0105-in.jsonld b/core/src/test/resources/json-ld.org/compact/0105-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0105-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0105-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0105-out.jsonld b/core/src/test/resources/json-ld.org/compact/0105-out.jsonld new file mode 100644 index 00000000..5595923a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0105-out.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "type": {"@id": "@type", "@container": "@set"} + }, + "type": ["http://example.org/type"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0106-context.jsonld b/core/src/test/resources/json-ld.org/compact/0106-context.jsonld new file mode 100644 index 00000000..5031f856 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0106-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "type": {"@id": "@type", "@container": "@set"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact-0106-in.jsonld b/core/src/test/resources/json-ld.org/compact/0106-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/compact-0106-in.jsonld rename to core/src/test/resources/json-ld.org/compact/0106-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/0106-out.jsonld b/core/src/test/resources/json-ld.org/compact/0106-out.jsonld new file mode 100644 index 00000000..84326c5c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0106-out.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "type": {"@id": "@type", "@container": "@set"} + }, + "type": "http://example.org/type" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0107-context.jsonld b/core/src/test/resources/json-ld.org/compact/0107-context.jsonld new file mode 100644 index 00000000..9a7115dd --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0107-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@base": "http://example.com/some/", + "@vocab": "other/" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0107-in.jsonld b/core/src/test/resources/json-ld.org/compact/0107-in.jsonld new file mode 100644 index 00000000..13505e4b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0107-in.jsonld @@ -0,0 +1,13 @@ +[ + { + "@id": "http://example.com/some/deep/directory/and/relativePropertyIris", + "http://example.com/absolute": [{"@value": "/absolute"}], + "http://example.com/some/other/deep/directory/": [{"@value": "deep/directory"}], + "http://example.com/some/other/deep/directory/and/": [{"@value": "deep/directory/and/"}], + "http://example.com/some/other/#fragment-works": [{"@value": "#fragment-works"}], + "http://example.com/some/other/?query=works": [{"@value": "?query=works"}], + "http://example.com/some/other/link": [{"@value": "link"}], + "http://example.com/some/other/../parent": [{"@value": "../parent"}], + "http://example.com/too-many-dots": [{"@value": "too-many-dots"}] + } +] diff --git a/core/src/test/resources/json-ld.org/compact/0107-out.jsonld b/core/src/test/resources/json-ld.org/compact/0107-out.jsonld new file mode 100644 index 00000000..7b9f8838 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0107-out.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@base": "http://example.com/some/", + "@vocab": "other/" + }, + "#fragment-works": "#fragment-works", + "../parent": "../parent", + "?query=works": "?query=works", + "@id": "deep/directory/and/relativePropertyIris", + "deep/directory/": "deep/directory", + "deep/directory/and/": "deep/directory/and/", + "http://example.com/absolute": "/absolute", + "http://example.com/too-many-dots": "too-many-dots", + "link": "link" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/0108-context.jsonld b/core/src/test/resources/json-ld.org/compact/0108-context.jsonld new file mode 100644 index 00000000..71bbb6eb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0108-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "valueOf": "http://example.org/valueOf", + "toString": "http://example.org/toString" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/0108-in.jsonld b/core/src/test/resources/json-ld.org/compact/0108-in.jsonld new file mode 100644 index 00000000..0e26a9df --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0108-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "valueOf": "http://example.org/valueOf", + "toString": "http://example.org/toString" + }, + "valueOf": "first", + "toString": "second" +} diff --git a/core/src/test/resources/json-ld.org/compact/0108-out.jsonld b/core/src/test/resources/json-ld.org/compact/0108-out.jsonld new file mode 100644 index 00000000..0e26a9df --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/0108-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "valueOf": "http://example.org/valueOf", + "toString": "http://example.org/toString" + }, + "valueOf": "first", + "toString": "second" +} diff --git a/core/src/test/resources/json-ld.org/compact/c001-context.jsonld b/core/src/test/resources/json-ld.org/compact/c001-context.jsonld new file mode 100644 index 00000000..d46e3f8a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c001-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"bar": "http://example.org/bar"}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c001-in.jsonld b/core/src/test/resources/json-ld.org/compact/c001-in.jsonld new file mode 100644 index 00000000..bc1e92b5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c001-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example/foo": [{"http://example.org/bar": [{"@value": "baz"}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c001-out.jsonld b/core/src/test/resources/json-ld.org/compact/c001-out.jsonld new file mode 100644 index 00000000..04c51209 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c001-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"bar": "http://example.org/bar"}} + }, + "foo": { + "bar": "baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c002-context.jsonld b/core/src/test/resources/json-ld.org/compact/c002-context.jsonld new file mode 100644 index 00000000..bd95c249 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c002-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"bar": {"@type": "@id"}}}, + "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c002-in.jsonld b/core/src/test/resources/json-ld.org/compact/c002-in.jsonld new file mode 100644 index 00000000..acd651e0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c002-in.jsonld @@ -0,0 +1,5 @@ +[ + { + "http://example/foo": [{"http://example/bar": [{"@id": "http://example/baz"}]}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c002-out.jsonld b/core/src/test/resources/json-ld.org/compact/c002-out.jsonld new file mode 100644 index 00000000..8121cf37 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c002-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"bar": {"@type": "@id"}}}, + "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} + }, + "foo": { + "bar": "http://example/baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c003-context.jsonld b/core/src/test/resources/json-ld.org/compact/c003-context.jsonld new file mode 100644 index 00000000..d8a30cf5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c003-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"Bar": {"@id": "bar"}}} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c003-in.jsonld b/core/src/test/resources/json-ld.org/compact/c003-in.jsonld new file mode 100644 index 00000000..020f7a7f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c003-in.jsonld @@ -0,0 +1,9 @@ +[ + { + "http://example/foo": [{ + "http://example/bar": [ + {"@value": "baz"} + ]} + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c003-out.jsonld b/core/src/test/resources/json-ld.org/compact/c003-out.jsonld new file mode 100644 index 00000000..447ded33 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c003-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"Bar": {"@id": "bar"}}} + }, + "foo": { + "Bar": "baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c004-context.jsonld b/core/src/test/resources/json-ld.org/compact/c004-context.jsonld new file mode 100644 index 00000000..fef92587 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c004-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"baz": {"@type": "@id"}}} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c004-in.jsonld b/core/src/test/resources/json-ld.org/compact/c004-in.jsonld new file mode 100644 index 00000000..118a214f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c004-in.jsonld @@ -0,0 +1,9 @@ +[ + { + "http://example/foo": [{ + "http://example/bar": [{ + "http://example/baz": [{"@id": "buzz"}] + }] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c004-out.jsonld b/core/src/test/resources/json-ld.org/compact/c004-out.jsonld new file mode 100644 index 00000000..26dbeb55 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c004-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"baz": {"@type": "@id"}}} + }, + "foo": { + "bar": { + "baz": "buzz" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c005-context.jsonld b/core/src/test/resources/json-ld.org/compact/c005-context.jsonld new file mode 100644 index 00000000..79c0921a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c005-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "b": {"@context": {"c": "http://example.org/c"}} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c005-in.jsonld b/core/src/test/resources/json-ld.org/compact/c005-in.jsonld new file mode 100644 index 00000000..b46a9280 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c005-in.jsonld @@ -0,0 +1,10 @@ +[{ + "http://example/a": [{ + "http://example.com/c": [{"@value": "C in example.com"}], + "http://example/b": [{ + "http://example.com/a": [{"@value": "A in example.com"}], + "http://example.org/c": [{"@value": "C in example.org"}] + }] + }], + "http://example/c": [{"@value": "C in example"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c005-out.jsonld b/core/src/test/resources/json-ld.org/compact/c005-out.jsonld new file mode 100644 index 00000000..d4f642c7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c005-out.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@vocab": "http://example/", + "b": {"@context": {"c": "http://example.org/c"}} + }, + "a": { + "b": { + "c": "C in example.org", + "http://example.com/a": "A in example.com" + }, + "http://example.com/c": "C in example.com" + }, + "c": "C in example" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c006-context.jsonld b/core/src/test/resources/json-ld.org/compact/c006-context.jsonld new file mode 100644 index 00000000..6007891a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c006-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"bar": "http://example.org/bar"}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c006-in.jsonld b/core/src/test/resources/json-ld.org/compact/c006-in.jsonld new file mode 100644 index 00000000..16baea77 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c006-in.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/a": [{ + "@type": ["http://example/Foo"], + "http://example.org/bar": [{"@value": "baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c006-out.jsonld b/core/src/test/resources/json-ld.org/compact/c006-out.jsonld new file mode 100644 index 00000000..757aeaa1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c006-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"bar": "http://example.org/bar"}} + }, + "a": {"@type": "Foo", "bar": "baz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c007-context.jsonld b/core/src/test/resources/json-ld.org/compact/c007-context.jsonld new file mode 100644 index 00000000..dcaf0666 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c007-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"bar": {"@type": "@id"}}}, + "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c007-in.jsonld b/core/src/test/resources/json-ld.org/compact/c007-in.jsonld new file mode 100644 index 00000000..c173b894 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c007-in.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/a": [{ + "@type": ["http://example/Foo"], + "http://example/bar": [{"@id": "http://example/baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c007-out.jsonld b/core/src/test/resources/json-ld.org/compact/c007-out.jsonld new file mode 100644 index 00000000..05c9f1d6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c007-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"bar": {"@type": "@id"}}}, + "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} + }, + "a": {"@type": "Foo", "bar": "http://example/baz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c008-context.jsonld b/core/src/test/resources/json-ld.org/compact/c008-context.jsonld new file mode 100644 index 00000000..99becb5a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c008-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "type": "@type", + "Foo": {"@context": {"bar": "http://example.org/bar"}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c008-in.jsonld b/core/src/test/resources/json-ld.org/compact/c008-in.jsonld new file mode 100644 index 00000000..16baea77 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c008-in.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/a": [{ + "@type": ["http://example/Foo"], + "http://example.org/bar": [{"@value": "baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c008-out.jsonld b/core/src/test/resources/json-ld.org/compact/c008-out.jsonld new file mode 100644 index 00000000..e0b472b1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c008-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "type": "@type", + "Foo": {"@context": {"bar": "http://example.org/bar"}} + }, + "a": {"type": "Foo", "bar": "baz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c009-context.jsonld b/core/src/test/resources/json-ld.org/compact/c009-context.jsonld new file mode 100644 index 00000000..cf932f7e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c009-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"baz": {"@type": "@vocab"}}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c009-in.jsonld b/core/src/test/resources/json-ld.org/compact/c009-in.jsonld new file mode 100644 index 00000000..59a1fb53 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c009-in.jsonld @@ -0,0 +1,8 @@ +[ + { + "@type": ["http://example/Foo"], + "http://example/bar": [{ + "http://example/baz": [{"@id": "http://example/buzz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c009-out.jsonld b/core/src/test/resources/json-ld.org/compact/c009-out.jsonld new file mode 100644 index 00000000..dbd90730 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c009-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"baz": {"@type": "@vocab"}}} + }, + "@type": "Foo", + "bar": {"baz": {"@id": "http://example/buzz"}} +} diff --git a/core/src/test/resources/json-ld.org/compact/c010-context.jsonld b/core/src/test/resources/json-ld.org/compact/c010-context.jsonld new file mode 100644 index 00000000..38c9c4e0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c010-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "B": {"@context": {"c": "http://example.org/c"}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c010-in.jsonld b/core/src/test/resources/json-ld.org/compact/c010-in.jsonld new file mode 100644 index 00000000..1057b0ad --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c010-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example/a": [{ + "@type": ["http://example/B"], + "http://example.com/a": [{"@value": "A in example.com"}], + "http://example.org/c": [{"@value": "C in example.org"}] + }], + "http://example/c": [{"@value": "C in example"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c010-out.jsonld b/core/src/test/resources/json-ld.org/compact/c010-out.jsonld new file mode 100644 index 00000000..b312d1a2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c010-out.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@vocab": "http://example/", + "B": {"@context": {"c": "http://example.org/c"}} + }, + "a": { + "@type": "B", + "c": "C in example.org", + "http://example.com/a": "A in example.com" + }, + "c": "C in example" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c011-context.jsonld b/core/src/test/resources/json-ld.org/compact/c011-context.jsonld new file mode 100644 index 00000000..ede2fd4f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c011-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "id": "@id", + "type": "@type", + "Foo": {"@context": {"id": null, "type": null}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c011-in.jsonld b/core/src/test/resources/json-ld.org/compact/c011-in.jsonld new file mode 100644 index 00000000..3798fae9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c011-in.jsonld @@ -0,0 +1,11 @@ +[ + { + "@id": "http://example.org/id", + "@type": ["http://example/type"], + "http://example/a": [{ + "@id": "http://example.org/Foo", + "@type": ["http://example/Foo"], + "http://example/bar": [{"@id": "http://example.org/baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c011-out.jsonld b/core/src/test/resources/json-ld.org/compact/c011-out.jsonld new file mode 100644 index 00000000..7b1902aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c011-out.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example/", + "id": "@id", + "type": "@type", + "Foo": {"@context": {"id": null, "type": null}} + }, + "id": "http://example.org/id", + "type": "http://example/type", + "a": { + "@id": "http://example.org/Foo", + "@type": "Foo", + "bar": {"@id": "http://example.org/baz"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c012-context.jsonld b/core/src/test/resources/json-ld.org/compact/c012-context.jsonld new file mode 100644 index 00000000..ba4308ce --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c012-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "t1": {"@context": {"foo": {"@id": "http://example.com/foo"}}}, + "t2": {"@context": {"foo": {"@id": "http://example.org/foo", "@type": "@id"}}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c012-in.jsonld b/core/src/test/resources/json-ld.org/compact/c012-in.jsonld new file mode 100644 index 00000000..a702942a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c012-in.jsonld @@ -0,0 +1,6 @@ +[{ + "@type": ["http://example/t2", "http://example/t1"], + "http://example.org/foo": [ + {"@id": "urn:bar"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c012-out.jsonld b/core/src/test/resources/json-ld.org/compact/c012-out.jsonld new file mode 100644 index 00000000..c57c55eb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c012-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "t1": {"@context": {"foo": {"@id": "http://example.com/foo"}}}, + "t2": {"@context": {"foo": {"@id": "http://example.org/foo", "@type": "@id"}}} + }, + "@type": ["t2", "t1"], + "foo": "urn:bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c013-context.jsonld b/core/src/test/resources/json-ld.org/compact/c013-context.jsonld new file mode 100644 index 00000000..4b62d50f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c013-context.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": { + "@context": { + "bar": { + "@context": { + "baz": {"@type": "@vocab"} + } + } + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c013-in.jsonld b/core/src/test/resources/json-ld.org/compact/c013-in.jsonld new file mode 100644 index 00000000..59a1fb53 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c013-in.jsonld @@ -0,0 +1,8 @@ +[ + { + "@type": ["http://example/Foo"], + "http://example/bar": [{ + "http://example/baz": [{"@id": "http://example/buzz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/c013-out.jsonld b/core/src/test/resources/json-ld.org/compact/c013-out.jsonld new file mode 100644 index 00000000..bba1c9bf --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c013-out.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": { + "@context": { + "bar": { + "@context": { + "baz": {"@type": "@vocab"} + } + } + } + } + }, + "@type": "Foo", + "bar": {"baz": "buzz"} +} diff --git a/core/src/test/resources/json-ld.org/compact/c014-context.jsonld b/core/src/test/resources/json-ld.org/compact/c014-context.jsonld new file mode 100644 index 00000000..2d48593a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c014-context.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": "http://example/foo", + "Type": { + "@context": [ + null + ] + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c014-in.jsonld b/core/src/test/resources/json-ld.org/compact/c014-in.jsonld new file mode 100644 index 00000000..5a68fc26 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c014-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example/foo": [{ + "@value": "will-exist" + }], + "http://example/p": [{ + "@type": ["http://example/Type"] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c014-out.jsonld b/core/src/test/resources/json-ld.org/compact/c014-out.jsonld new file mode 100644 index 00000000..79138aed --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c014-out.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": "http://example/foo", + "Type": { + "@context": [ + null + ] + } + }, + "foo": "will-exist", + "p": { + "@type": "Type" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c015-context.jsonld b/core/src/test/resources/json-ld.org/compact/c015-context.jsonld new file mode 100644 index 00000000..aea86625 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c015-context.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@base": "http://example/base-base", + "@vocab": "http://example/", + "foo": "http://example/foo", + "Type": { + "@context": { + "@base": "http://example/typed-base" + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c015-in.jsonld b/core/src/test/resources/json-ld.org/compact/c015-in.jsonld new file mode 100644 index 00000000..2f3427a5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c015-in.jsonld @@ -0,0 +1,16 @@ +[{ + "@id": "http://example/base-base#base-id", + "http://example/p": [{ + "@id": "http://example/typed-base#typed-id", + "@type": ["http://example/Type"], + "http://example/subjectReference": [{ + "@id": "http://example/typed-base#subject-reference-id" + }], + "http://example/nestedNode": [{ + "@id": "http://example/base-base#nested-id", + "http://example/foo": [{ + "@value": "bar" + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c015-out.jsonld b/core/src/test/resources/json-ld.org/compact/c015-out.jsonld new file mode 100644 index 00000000..83bb63d5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c015-out.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@base": "http://example/base-base", + "@vocab": "http://example/", + "foo": "http://example/foo", + "Type": { + "@context": { + "@base": "http://example/typed-base" + } + } + }, + "@id": "#base-id", + "p": { + "@id": "#typed-id", + "@type": "Type", + "subjectReference": { + "@id": "#subject-reference-id" + }, + "nestedNode": { + "@id": "#nested-id", + "foo": "bar" + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c016-context.jsonld b/core/src/test/resources/json-ld.org/compact/c016-context.jsonld new file mode 100644 index 00000000..45296bef --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c016-context.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "Type": { + "@context": { + "@vocab": "http://example.com/" + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c016-in.jsonld b/core/src/test/resources/json-ld.org/compact/c016-in.jsonld new file mode 100644 index 00000000..37bc728a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c016-in.jsonld @@ -0,0 +1,16 @@ +[{ + "http://example.org/foo": [{ + "@value": "org" + }], + "http://example.org/p": [{ + "@type": ["http://example.org/Type"], + "http://example.com/foo": [{ + "@value": "com" + }], + "http://example.com/nested": [{ + "http://example.org/nested-prop": [{ + "@value": "org" + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c016-out.jsonld b/core/src/test/resources/json-ld.org/compact/c016-out.jsonld new file mode 100644 index 00000000..2f1186ff --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c016-out.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "Type": { + "@context": { + "@vocab": "http://example.com/" + } + } + }, + "foo": "org", + "p": { + "@type": "Type", + "foo": "com", + "nested": { + "nested-prop": "org" + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c017-context.jsonld b/core/src/test/resources/json-ld.org/compact/c017-context.jsonld new file mode 100644 index 00000000..d1cca3ac --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c017-context.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "@vocab": "http://example/", + "Bar": { + "@context": [ + { + "prop": "http://example/bar-prop" + } + ] + }, + "Foo": { + "@context": [ + { + "prop": "http://example/foo-prop" + } + ] + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c017-in.jsonld b/core/src/test/resources/json-ld.org/compact/c017-in.jsonld new file mode 100644 index 00000000..7e7e49d9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c017-in.jsonld @@ -0,0 +1,14 @@ +[{ + "@type": [ + "http://example/Foo", + "http://example/Bar" + ], + "http://example/foo-prop": [{ + "@value": "foo" + }], + "http://example/nested": [{ + "http://example/prop": [{ + "@value": "vocab" + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c017-out.jsonld b/core/src/test/resources/json-ld.org/compact/c017-out.jsonld new file mode 100644 index 00000000..be32133c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c017-out.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@vocab": "http://example/", + "Bar": { + "@context": [ + { + "prop": "http://example/bar-prop" + } + ] + }, + "Foo": { + "@context": [ + { + "prop": "http://example/foo-prop" + } + ] + } + }, + "@type": ["Foo", "Bar"], + "prop": "foo", + "nested": { + "prop": "vocab" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c018-context.jsonld b/core/src/test/resources/json-ld.org/compact/c018-context.jsonld new file mode 100644 index 00000000..d0033bbe --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c018-context.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "@vocab": "http://example/", + "Bar": { + "@context": [ + null, + { + "prop": "http://example/bar-prop" + } + ] + }, + "Foo": { + "@context": [ + null, + { + "prop": "http://example/foo-prop" + } + ] + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c018-in.jsonld b/core/src/test/resources/json-ld.org/compact/c018-in.jsonld new file mode 100644 index 00000000..ee0c79e1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c018-in.jsonld @@ -0,0 +1,11 @@ +[{ + "@type": [ + "http://example/Foo", + "http://example/Bar" + ], + "http://example/foo-prop": [ + { + "@value": "foo" + } + ] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c018-out.jsonld b/core/src/test/resources/json-ld.org/compact/c018-out.jsonld new file mode 100644 index 00000000..f702f56d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c018-out.jsonld @@ -0,0 +1,24 @@ + +{ + "@context": { + "@vocab": "http://example/", + "Bar": { + "@context": [ + null, + { + "prop": "http://example/bar-prop" + } + ] + }, + "Foo": { + "@context": [ + null, + { + "prop": "http://example/foo-prop" + } + ] + } + }, + "@type": ["Foo", "Bar"], + "prop": "foo" +} diff --git a/core/src/test/resources/json-ld.org/compact/c019-context.jsonld b/core/src/test/resources/json-ld.org/compact/c019-context.jsonld new file mode 100644 index 00000000..a7b6543f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c019-context.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "@vocab": "http://example/", + "prop": "http://example/base-prop", + "Type": { + "@context": { + "foo": { + "@context": { + "prop": "http://example/foo-prop" + } + }, + "bar": { + "@context": { + "prop": "http://example/bar-prop" + } + } + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c019-in.jsonld b/core/src/test/resources/json-ld.org/compact/c019-in.jsonld new file mode 100644 index 00000000..3d25ead3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c019-in.jsonld @@ -0,0 +1,26 @@ +[{ + "@type": [ + "http://example/Type" + ], + "http://example/foo": [{ + "http://example/foo-prop": [ + { + "@value": "foo" + } + ] + }], + "http://example/bar": [{ + "http://example/bar-prop": [ + { + "@value": "bar" + } + ] + }], + "http://example/baz": [{ + "http://example/base-prop": [ + { + "@value": "baz" + } + ] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c019-out.jsonld b/core/src/test/resources/json-ld.org/compact/c019-out.jsonld new file mode 100644 index 00000000..418c9cbe --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c019-out.jsonld @@ -0,0 +1,30 @@ +{ + "@context": { + "@vocab": "http://example/", + "prop": "http://example/base-prop", + "Type": { + "@context": { + "foo": { + "@context": { + "prop": "http://example/foo-prop" + } + }, + "bar": { + "@context": { + "prop": "http://example/bar-prop" + } + } + } + } + }, + "@type": "Type", + "foo": { + "prop": "foo" + }, + "bar": { + "prop": "bar" + }, + "baz": { + "prop": "baz" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c020-context.jsonld b/core/src/test/resources/json-ld.org/compact/c020-context.jsonld new file mode 100644 index 00000000..216723fc --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c020-context.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "type": "@type", + "Type": { + "@context": { + "value": "@value" + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c020-in.jsonld b/core/src/test/resources/json-ld.org/compact/c020-in.jsonld new file mode 100644 index 00000000..483b9ef0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c020-in.jsonld @@ -0,0 +1,7 @@ +[{ + "@type": ["http://example/Type"], + "http://example/v": [{ + "@type": "http://example/value-type", + "@value": "value" + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c020-out.jsonld b/core/src/test/resources/json-ld.org/compact/c020-out.jsonld new file mode 100644 index 00000000..e504c397 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c020-out.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@vocab": "http://example/", + "type": "@type", + "Type": { + "@context": { + "value": "@value" + } + } + }, + "type": "Type", + "v": { + "value": "value", + "type": "value-type" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c021-context.jsonld b/core/src/test/resources/json-ld.org/compact/c021-context.jsonld new file mode 100644 index 00000000..2826733c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c021-context.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "ex:", + "type": "@type", + "prop": "ex:untyped", + "Type": { + "@context": { + "prop": "ex:typed", + "value": "@value" + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c021-in.jsonld b/core/src/test/resources/json-ld.org/compact/c021-in.jsonld new file mode 100644 index 00000000..c3f097e8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c021-in.jsonld @@ -0,0 +1,19 @@ +[{ + "ex:untyped": [{ + "@type": ["ex:Type"], + "ex:typed": [{ + "@value": "v1" + }, { + "@value": "v2" + }, { + "@value": "v3" + }, { + "ex:untyped": [{ + "@value": "v4" + }, { + "@type": ["ex:Type"], + "ex:typed": [{"@value": "v5"}] + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c021-out.jsonld b/core/src/test/resources/json-ld.org/compact/c021-out.jsonld new file mode 100644 index 00000000..738dbfa5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c021-out.jsonld @@ -0,0 +1,30 @@ +{ + "@context": { + "@vocab": "ex:", + "type": "@type", + "prop": "ex:untyped", + "Type": { + "@context": { + "prop": "ex:typed", + "value": "@value" + } + } + }, + "prop": { + "type": "Type", + "prop": [ + "v1", + "v2", + "v3", + { + "prop": [ + "v4", + { + "type": "Type", + "prop": "v5" + } + ] + } + ] + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c022-context.jsonld b/core/src/test/resources/json-ld.org/compact/c022-context.jsonld new file mode 100644 index 00000000..1d1fb201 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c022-context.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@vocab": "ex:", + "Type": { + "@context": { + "foo": { + "@id": "ex:foo", + "@type": "@vocab", + "@context": { + "@version": 1.1, + "Foo": "ex:Foo", + "Bar": "ex:Bar" + } + } + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c022-in.jsonld b/core/src/test/resources/json-ld.org/compact/c022-in.jsonld new file mode 100644 index 00000000..d77a5f5a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c022-in.jsonld @@ -0,0 +1,4 @@ +[{ + "@type": ["ex:Type"], + "ex:foo": [{"@id": "ex:Bar"}] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c022-out.jsonld b/core/src/test/resources/json-ld.org/compact/c022-out.jsonld new file mode 100644 index 00000000..c5ef4a2e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c022-out.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "@vocab": "ex:", + "Type": { + "@context": { + "foo": { + "@id": "ex:foo", + "@type": "@vocab", + "@context": { + "@version": 1.1, + "Foo": "ex:Foo", + "Bar": "ex:Bar" + } + } + } + } + }, + "@type": "Type", + "foo": "Bar" +} diff --git a/core/src/test/resources/json-ld.org/compact/c023-context.jsonld b/core/src/test/resources/json-ld.org/compact/c023-context.jsonld new file mode 100644 index 00000000..5d69acb7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c023-context.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@version": 1.1, + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": "ex:nested" + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "@version": 1.1, + "foo": { + "@id": "ex:foo", + "@type": "@vocab", + "@context": { + "Foo": "ex:Foo" + } + } + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c023-in.jsonld b/core/src/test/resources/json-ld.org/compact/c023-in.jsonld new file mode 100644 index 00000000..3e47445a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c023-in.jsonld @@ -0,0 +1,7 @@ +[{ + "@type": ["ex:Outer"], + "ex:nested": [{ + "@type": ["ex:Inner"], + "ex:foo": [{"@id": "ex:Foo"}] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c023-out.jsonld b/core/src/test/resources/json-ld.org/compact/c023-out.jsonld new file mode 100644 index 00000000..94272f95 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c023-out.jsonld @@ -0,0 +1,29 @@ +{ + "@context": { + "@version": 1.1, + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": "ex:nested" + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "@version": 1.1, + "foo": { + "@id": "ex:foo", + "@type": "@vocab", + "@context": { + "Foo": "ex:Foo" + } + } + } + } + }, + "@type": "Outer", + "nested": { + "@type": "Inner", + "foo": "Foo" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c024-context.jsonld b/core/src/test/resources/json-ld.org/compact/c024-context.jsonld new file mode 100644 index 00000000..474de9db --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c024-context.jsonld @@ -0,0 +1,34 @@ +{ + "@context": { + "@version": 1.1, + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": "ex:nested" + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "@version": 1.1, + "val": "@value", + "foo": { + "@id": "ex:foo", + "@container": "@set", + "@type": "ex:Number", + "@context": { + "value": "@value" + } + }, + "bar": { + "@id": "ex:bar", + "@container": "@set", + "@type": "@id", + "@context": { + "@base": "http://example/" + } + } + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c024-in.jsonld b/core/src/test/resources/json-ld.org/compact/c024-in.jsonld new file mode 100644 index 00000000..d2b0b669 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c024-in.jsonld @@ -0,0 +1,11 @@ +[{ + "@type": ["ex:Outer"], + "ex:nested": [{ + "@type": ["ex:Inner"], + "ex:foo": {"@type": "ex:Number", "@value": "1"}, + "ex:bar": [ + {"@id": "http://example/a"}, + {"@id": "http://example/b"} + ] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c024-out.jsonld b/core/src/test/resources/json-ld.org/compact/c024-out.jsonld new file mode 100644 index 00000000..3f2b5434 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c024-out.jsonld @@ -0,0 +1,40 @@ +{ + "@context": { + "@version": 1.1, + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": "ex:nested" + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "@version": 1.1, + "val": "@value", + "foo": { + "@id": "ex:foo", + "@container": "@set", + "@type": "ex:Number", + "@context": { + "value": "@value" + } + }, + "bar": { + "@id": "ex:bar", + "@container": "@set", + "@type": "@id", + "@context": { + "@base": "http://example/" + } + } + } + } + }, + "@type": "Outer", + "nested": { + "@type": "Inner", + "foo": ["1"], + "bar": ["a", "b"] + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c025-context.jsonld b/core/src/test/resources/json-ld.org/compact/c025-context.jsonld new file mode 100644 index 00000000..cd868d35 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c025-context.jsonld @@ -0,0 +1,22 @@ +{ + "@context": { + "@version": 1.1, + "type": "@type", + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": { + "@id": "ex:nested", + "@type": "@id", + "@container": "@graph" + } + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "foo": "ex:foo" + } + } + } +} diff --git a/core/src/test/resources/json-ld.org/compact/c025-in.jsonld b/core/src/test/resources/json-ld.org/compact/c025-in.jsonld new file mode 100644 index 00000000..d8246465 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c025-in.jsonld @@ -0,0 +1,9 @@ +[{ + "@type": ["ex:Outer"], + "ex:nested": [{ + "@graph": [{ + "@type": ["ex:Inner"], + "ex:foo": [{"@value": "bar"}] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/c025-out.jsonld b/core/src/test/resources/json-ld.org/compact/c025-out.jsonld new file mode 100644 index 00000000..aa9b1fc7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/c025-out.jsonld @@ -0,0 +1,27 @@ +{ + "@context": { + "@version": 1.1, + "type": "@type", + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": { + "@id": "ex:nested", + "@type": "@id", + "@container": "@graph" + } + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "foo": "ex:foo" + } + } + }, + "type": "Outer", + "nested": { + "type": "Inner", + "foo": "bar" + } +} diff --git a/core/src/test/resources/json-ld.org/error-0042-context.jsonld b/core/src/test/resources/json-ld.org/compact/e001-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0042-context.jsonld rename to core/src/test/resources/json-ld.org/compact/e001-context.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/e001-in.jsonld b/core/src/test/resources/json-ld.org/compact/e001-in.jsonld new file mode 100644 index 00000000..344eadb2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/e001-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/list": {"@list": [{"@list": ["foo"]}, {"@list": ["bar"]}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/e002-context.jsonld b/core/src/test/resources/json-ld.org/compact/e002-context.jsonld new file mode 100644 index 00000000..10ed9c17 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/e002-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "tag": "http://example.org/ns/tag/" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/e002-in.jsonld b/core/src/test/resources/json-ld.org/compact/e002-in.jsonld new file mode 100644 index 00000000..6d4b8011 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/e002-in.jsonld @@ -0,0 +1,3 @@ +[{ + "tag:champin.net,2019:prop": {"@value": "hello world"} +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/en01-context.jsonld b/core/src/test/resources/json-ld.org/compact/en01-context.jsonld new file mode 100644 index 00000000..d9cec5a1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/en01-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "term": {"@id": "http://example/foo", "@nest": "unknown"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/en01-in.jsonld b/core/src/test/resources/json-ld.org/compact/en01-in.jsonld new file mode 100644 index 00000000..ffc25a6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/en01-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep04-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep04-context.jsonld new file mode 100644 index 00000000..c699d930 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep04-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/ep04-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep04-in.jsonld new file mode 100644 index 00000000..fe15d637 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep04-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with @id "}], "@id": "http://example.org/foo"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep05-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep05-context.jsonld new file mode 100644 index 00000000..4caa4695 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep05-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "@version": 1.1 + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0020-frame.jsonld b/core/src/test/resources/json-ld.org/compact/ep05-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/frame-0020-frame.jsonld rename to core/src/test/resources/json-ld.org/compact/ep05-in.jsonld diff --git a/core/src/test/resources/json-ld.org/compact/ep06-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep06-context.jsonld new file mode 100644 index 00000000..63c70f63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep06-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "@version": 1.0 + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep06-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep06-in.jsonld new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep06-in.jsonld @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep07-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep07-context.jsonld new file mode 100644 index 00000000..f2829c07 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep07-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@prefix": true} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep07-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep07-in.jsonld new file mode 100644 index 00000000..ffc25a6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep07-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep08-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep08-context.jsonld new file mode 100644 index 00000000..1fde76ae --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep08-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@prefix": "string"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep08-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep08-in.jsonld new file mode 100644 index 00000000..ffc25a6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep08-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep09-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep09-context.jsonld new file mode 100644 index 00000000..15b0baca --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep09-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "foo": "http://example/foo/", + "foo:bar": {"@id": "http://example/foo/bar", "@prefix": true} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep09-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep09-in.jsonld new file mode 100644 index 00000000..6a50fcaa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep09-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo/bar/": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep10-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep10-context.jsonld new file mode 100644 index 00000000..c379d53d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep10-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@nest": "@nest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep10-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep10-in.jsonld new file mode 100644 index 00000000..ffc25a6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep10-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep11-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep11-context.jsonld new file mode 100644 index 00000000..c7498052 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep11-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@context": {}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep11-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep11-in.jsonld new file mode 100644 index 00000000..ffc25a6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep11-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep12-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep12-context.jsonld new file mode 100644 index 00000000..0acc2d81 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep12-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@container": ["@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep12-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep12-in.jsonld new file mode 100644 index 00000000..ffc25a6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep12-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep13-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep13-context.jsonld new file mode 100644 index 00000000..20cd3cd2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep13-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@container": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep13-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep13-in.jsonld new file mode 100644 index 00000000..d79e470b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep13-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": {"@id": "http://example/foo", "http://example/bar": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep14-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep14-context.jsonld new file mode 100644 index 00000000..8b1f72cb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep14-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@container": "@type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep14-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep14-in.jsonld new file mode 100644 index 00000000..286bc559 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep14-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": {"@type": "http://example/foo", "http://example/bar": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep15-context.jsonld b/core/src/test/resources/json-ld.org/compact/ep15-context.jsonld new file mode 100644 index 00000000..d3f8c2a9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep15-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example/foo", "@container": "@graph"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/ep15-in.jsonld b/core/src/test/resources/json-ld.org/compact/ep15-in.jsonld new file mode 100644 index 00000000..69e84921 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/ep15-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example/foo": {"@graph": {"http://example/bar": "bar"}} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h001-context.jsonld b/core/src/test/resources/json-ld.org/compact/h001-context.jsonld new file mode 100644 index 00000000..c9ee5d89 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h001-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h001-in.html b/core/src/test/resources/json-ld.org/compact/h001-in.html new file mode 100644 index 00000000..57328e38 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h001-in.html @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h001-out.jsonld b/core/src/test/resources/json-ld.org/compact/h001-out.jsonld new file mode 100644 index 00000000..fa6a4cf0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h001-out.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + }, + "foo": ["bar"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h002-context.jsonld b/core/src/test/resources/json-ld.org/compact/h002-context.jsonld new file mode 100644 index 00000000..c9ee5d89 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h002-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h002-in.html b/core/src/test/resources/json-ld.org/compact/h002-in.html new file mode 100644 index 00000000..b287ab50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h002-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h002-out.jsonld b/core/src/test/resources/json-ld.org/compact/h002-out.jsonld new file mode 100644 index 00000000..fa6a4cf0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h002-out.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + }, + "foo": ["bar"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h003-context.jsonld b/core/src/test/resources/json-ld.org/compact/h003-context.jsonld new file mode 100644 index 00000000..bd58ee54 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h003-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"ex": "http://example.com/"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h003-in.html b/core/src/test/resources/json-ld.org/compact/h003-in.html new file mode 100644 index 00000000..f18c1dae --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h003-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h003-out.jsonld b/core/src/test/resources/json-ld.org/compact/h003-out.jsonld new file mode 100644 index 00000000..f68d33ae --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h003-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": {"ex": "http://example.com/"}, + "@graph": [ + {"ex:foo": "foo"}, + {"ex:bar": "bar"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h004-context.jsonld b/core/src/test/resources/json-ld.org/compact/h004-context.jsonld new file mode 100644 index 00000000..c68c329c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h004-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "ex": "http://example.com/", + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h004-in.html b/core/src/test/resources/json-ld.org/compact/h004-in.html new file mode 100644 index 00000000..b287ab50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h004-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/h004-out.jsonld b/core/src/test/resources/json-ld.org/compact/h004-out.jsonld new file mode 100644 index 00000000..deede214 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/h004-out.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "ex": "http://example.com/", + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + }, + "@graph": [ + {"foo": ["bar"]}, + { + "@graph": [ + {"ex:foo": "foo"}, + {"ex:bar": "bar"} + ] + } + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js01-context.jsonld b/core/src/test/resources/json-ld.org/compact/js01-context.jsonld new file mode 100644 index 00000000..946ab91a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js01-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js01-in.jsonld b/core/src/test/resources/json-ld.org/compact/js01-in.jsonld new file mode 100644 index 00000000..642709fd --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js01-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#bool": [{"@value": true, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js01-out.jsonld b/core/src/test/resources/json-ld.org/compact/js01-out.jsonld new file mode 100644 index 00000000..ace09383 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js01-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + }, + "e": true +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js02-context.jsonld b/core/src/test/resources/json-ld.org/compact/js02-context.jsonld new file mode 100644 index 00000000..946ab91a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js02-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js02-in.jsonld b/core/src/test/resources/json-ld.org/compact/js02-in.jsonld new file mode 100644 index 00000000..640d3d29 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js02-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#bool": [{"@value": false, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js02-out.jsonld b/core/src/test/resources/json-ld.org/compact/js02-out.jsonld new file mode 100644 index 00000000..65f32bf2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js02-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + }, + "e": false +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js03-context.jsonld b/core/src/test/resources/json-ld.org/compact/js03-context.jsonld new file mode 100644 index 00000000..e933a8f1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js03-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js03-in.jsonld b/core/src/test/resources/json-ld.org/compact/js03-in.jsonld new file mode 100644 index 00000000..060691ac --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js03-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#double": [{"@value": 1.23, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js03-out.jsonld b/core/src/test/resources/json-ld.org/compact/js03-out.jsonld new file mode 100644 index 00000000..3f98c4fc --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js03-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + }, + "e": 1.23 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js04-context.jsonld b/core/src/test/resources/json-ld.org/compact/js04-context.jsonld new file mode 100644 index 00000000..e933a8f1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js04-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js04-in.jsonld b/core/src/test/resources/json-ld.org/compact/js04-in.jsonld new file mode 100644 index 00000000..278b08f0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js04-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#double": [{"@value": 0.0e0, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js04-out.jsonld b/core/src/test/resources/json-ld.org/compact/js04-out.jsonld new file mode 100644 index 00000000..dfd129c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js04-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + }, + "e": 0.0e0 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js05-context.jsonld b/core/src/test/resources/json-ld.org/compact/js05-context.jsonld new file mode 100644 index 00000000..8185ea17 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js05-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#integer", "@type": "@json"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js05-in.jsonld b/core/src/test/resources/json-ld.org/compact/js05-in.jsonld new file mode 100644 index 00000000..364fc8ff --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js05-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#integer": [{"@value": 123, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js05-out.jsonld b/core/src/test/resources/json-ld.org/compact/js05-out.jsonld new file mode 100644 index 00000000..22702493 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js05-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#integer", "@type": "@json"} + }, + "e": 123 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js06-context.jsonld b/core/src/test/resources/json-ld.org/compact/js06-context.jsonld new file mode 100644 index 00000000..98422103 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js06-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#object", "@type": "@json"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js06-in.jsonld b/core/src/test/resources/json-ld.org/compact/js06-in.jsonld new file mode 100644 index 00000000..c9df2866 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js06-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js06-out.jsonld b/core/src/test/resources/json-ld.org/compact/js06-out.jsonld new file mode 100644 index 00000000..b0c57352 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js06-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#object", "@type": "@json"} + }, + "e": {"foo": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js07-context.jsonld b/core/src/test/resources/json-ld.org/compact/js07-context.jsonld new file mode 100644 index 00000000..c037c68d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js07-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#array", "@type": "@json", "@container": "@set"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js07-in.jsonld b/core/src/test/resources/json-ld.org/compact/js07-in.jsonld new file mode 100644 index 00000000..d0b1b28e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js07-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#array": [{"@value": [{"foo": "bar"}], "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js07-out.jsonld b/core/src/test/resources/json-ld.org/compact/js07-out.jsonld new file mode 100644 index 00000000..d4e7c2cb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js07-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#array", "@type": "@json", "@container": "@set"} + }, + "e": [{"foo": "bar"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js08-context.jsonld b/core/src/test/resources/json-ld.org/compact/js08-context.jsonld new file mode 100644 index 00000000..91f0f103 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js08-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"@version": 1.1} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js08-in.jsonld b/core/src/test/resources/json-ld.org/compact/js08-in.jsonld new file mode 100644 index 00000000..c9df2866 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js08-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js08-out.jsonld b/core/src/test/resources/json-ld.org/compact/js08-out.jsonld new file mode 100644 index 00000000..2b136f3f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js08-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@version": 1.1}, + "http://example.org/vocab#object": {"@value": {"foo": "bar"}, "@type": "@json"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js09-context.jsonld b/core/src/test/resources/json-ld.org/compact/js09-context.jsonld new file mode 100644 index 00000000..724029d9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js09-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"@version": 1.1, "value": "@value", "type": "@type", "json": "@json"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js09-in.jsonld b/core/src/test/resources/json-ld.org/compact/js09-in.jsonld new file mode 100644 index 00000000..c9df2866 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js09-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/js09-out.jsonld b/core/src/test/resources/json-ld.org/compact/js09-out.jsonld new file mode 100644 index 00000000..71bb1b5f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/js09-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@version": 1.1, "value": "@value", "type": "@type", "json": "@json"}, + "http://example.org/vocab#object": {"value": {"foo": "bar"}, "type": "json"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li01-context.jsonld b/core/src/test/resources/json-ld.org/compact/li01-context.jsonld new file mode 100644 index 00000000..d244b912 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li01-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li01-in.jsonld b/core/src/test/resources/json-ld.org/compact/li01-in.jsonld new file mode 100644 index 00000000..e7737504 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li01-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": []}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li01-out.jsonld b/core/src/test/resources/json-ld.org/compact/li01-out.jsonld new file mode 100644 index 00000000..81c8b23e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li01-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [[]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li02-context.jsonld b/core/src/test/resources/json-ld.org/compact/li02-context.jsonld new file mode 100644 index 00000000..d244b912 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li02-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li02-in.jsonld b/core/src/test/resources/json-ld.org/compact/li02-in.jsonld new file mode 100644 index 00000000..998c20a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li02-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@value": "baz"}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li02-out.jsonld b/core/src/test/resources/json-ld.org/compact/li02-out.jsonld new file mode 100644 index 00000000..e38ec8ce --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li02-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [["baz"]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li03-context.jsonld b/core/src/test/resources/json-ld.org/compact/li03-context.jsonld new file mode 100644 index 00000000..d244b912 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li03-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li03-in.jsonld b/core/src/test/resources/json-ld.org/compact/li03-in.jsonld new file mode 100644 index 00000000..329a79c9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li03-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@list": [{"@value": "baz"}]}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li03-out.jsonld b/core/src/test/resources/json-ld.org/compact/li03-out.jsonld new file mode 100644 index 00000000..e01353af --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li03-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [[["baz"]]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li04-context.jsonld b/core/src/test/resources/json-ld.org/compact/li04-context.jsonld new file mode 100644 index 00000000..d244b912 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li04-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li04-in.jsonld b/core/src/test/resources/json-ld.org/compact/li04-in.jsonld new file mode 100644 index 00000000..bb6227d1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li04-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.com/foo": [{"@list": [ + {"@list": [{"@value": "a"}]}, + {"@list": [{"@value": "b"}]} + ]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li04-out.jsonld b/core/src/test/resources/json-ld.org/compact/li04-out.jsonld new file mode 100644 index 00000000..58aea4aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li04-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [["a"], ["b"]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li05-context.jsonld b/core/src/test/resources/json-ld.org/compact/li05-context.jsonld new file mode 100644 index 00000000..d244b912 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li05-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li05-in.jsonld b/core/src/test/resources/json-ld.org/compact/li05-in.jsonld new file mode 100644 index 00000000..3c0dd9bc --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li05-in.jsonld @@ -0,0 +1,6 @@ +{ + "http://example.com/foo": [{"@list": [ + {"@list": [{"@value": "a"}]}, + {"@value": "b"} + ]}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/li05-out.jsonld b/core/src/test/resources/json-ld.org/compact/li05-out.jsonld new file mode 100644 index 00000000..b1db13b1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/li05-out.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [["a"], "b"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m001-context.jsonld b/core/src/test/resources/json-ld.org/compact/m001-context.jsonld new file mode 100644 index 00000000..e78b6899 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m001-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m001-in.jsonld b/core/src/test/resources/json-ld.org/compact/m001-in.jsonld new file mode 100644 index 00000000..c44d5e63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m001-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with @id _:bar"}], "@id": "_:bar"}, + {"http://example/label": [{"@value": "Object with @id "}], "@id": "http://example.org/foo"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m001-out.jsonld b/core/src/test/resources/json-ld.org/compact/m001-out.jsonld new file mode 100644 index 00000000..81a736c7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m001-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "http://example.org/foo": {"label": "Object with @id "}, + "_:bar": {"label": "Object with @id _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m002-context.jsonld b/core/src/test/resources/json-ld.org/compact/m002-context.jsonld new file mode 100644 index 00000000..e78b6899 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m002-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m002-in.jsonld b/core/src/test/resources/json-ld.org/compact/m002-in.jsonld new file mode 100644 index 00000000..274bb8c7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m002-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/idmap": [ + {"@id": "_:foo", "http://example/label": [{"@value": "Object with @id _:bar"}]}, + {"@id": "http://example.org/bar", "http://example/label": [{"@value": "Object with @id "}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m002-out.jsonld b/core/src/test/resources/json-ld.org/compact/m002-out.jsonld new file mode 100644 index 00000000..c11c0bdd --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m002-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "_:foo": {"label": "Object with @id _:bar"}, + "http://example.org/bar": {"label": "Object with @id "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m003-context.jsonld b/core/src/test/resources/json-ld.org/compact/m003-context.jsonld new file mode 100644 index 00000000..6540eb51 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m003-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m003-in.jsonld b/core/src/test/resources/json-ld.org/compact/m003-in.jsonld new file mode 100644 index 00000000..ecdfc449 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m003-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with @type _:bar"}], "@type": ["_:bar"]}, + {"http://example/label": [{"@value": "Object with @type "}], "@type": ["http://example.org/foo"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m003-out.jsonld b/core/src/test/resources/json-ld.org/compact/m003-out.jsonld new file mode 100644 index 00000000..f79d87a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m003-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "http://example.org/foo": {"label": "Object with @type "}, + "_:bar": {"label": "Object with @type _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m004-context.jsonld b/core/src/test/resources/json-ld.org/compact/m004-context.jsonld new file mode 100644 index 00000000..6540eb51 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m004-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m004-in.jsonld b/core/src/test/resources/json-ld.org/compact/m004-in.jsonld new file mode 100644 index 00000000..f35a9a88 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m004-in.jsonld @@ -0,0 +1,12 @@ +[{ + "http://example/typemap": [ + { + "@type": ["_:bar", "_:foo"], + "http://example/label": [{"@value": "Object with @type _:bar"}] + }, + { + "@type": ["http://example.org/foo", "http://example.org/bar"], + "http://example/label": [{"@value": "Object with @type "}] + } + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m004-out.jsonld b/core/src/test/resources/json-ld.org/compact/m004-out.jsonld new file mode 100644 index 00000000..b75a0ff8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m004-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "http://example.org/foo": {"@type": "http://example.org/bar", "label": "Object with @type "}, + "_:bar": {"@type": "_:foo", "label": "Object with @type _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m005-context.jsonld b/core/src/test/resources/json-ld.org/compact/m005-context.jsonld new file mode 100644 index 00000000..5ebfbc69 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m005-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m005-in.jsonld b/core/src/test/resources/json-ld.org/compact/m005-in.jsonld new file mode 100644 index 00000000..fe15d637 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m005-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with @id "}], "@id": "http://example.org/foo"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m005-out.jsonld b/core/src/test/resources/json-ld.org/compact/m005-out.jsonld new file mode 100644 index 00000000..68c15c47 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m005-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "ex:foo": {"label": "Object with @id "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m006-context.jsonld b/core/src/test/resources/json-ld.org/compact/m006-context.jsonld new file mode 100644 index 00000000..6540eb51 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m006-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m006-in.jsonld b/core/src/test/resources/json-ld.org/compact/m006-in.jsonld new file mode 100644 index 00000000..a6cfccfe --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m006-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with @type "}], "@type": ["http://example/Foo"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m006-out.jsonld b/core/src/test/resources/json-ld.org/compact/m006-out.jsonld new file mode 100644 index 00000000..ce359b45 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m006-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "Foo": {"label": "Object with @type "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m007-context.jsonld b/core/src/test/resources/json-ld.org/compact/m007-context.jsonld new file mode 100644 index 00000000..16ee43db --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m007-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"}, + "Type": {"@context": {"a": "http://example.org/a"}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m007-in.jsonld b/core/src/test/resources/json-ld.org/compact/m007-in.jsonld new file mode 100644 index 00000000..e1da44ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m007-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example.org/a": [{"@value": "Object with @type "}], "@type": ["http://example/Type"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m007-out.jsonld b/core/src/test/resources/json-ld.org/compact/m007-out.jsonld new file mode 100644 index 00000000..3e48d6e6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m007-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"}, + "Type": {"@context": {"a": "http://example.org/a"}} + }, + "typemap": { + "Type": {"a": "Object with @type "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m008-context.jsonld b/core/src/test/resources/json-ld.org/compact/m008-context.jsonld new file mode 100644 index 00000000..722af08d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m008-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "author": { + "@id": "http://example.com/vocab/author", + "@container": "@index" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m008-in.jsonld b/core/src/test/resources/json-ld.org/compact/m008-in.jsonld new file mode 100644 index 00000000..a2e1e396 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m008-in.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/vocab/author": [{ + "@id": "http://example.org/person/1", + "@index": "regular" + }, { + "@id": "http://example.org/guest/cd24f329aa" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m008-out.jsonld b/core/src/test/resources/json-ld.org/compact/m008-out.jsonld new file mode 100644 index 00000000..9d752eee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m008-out.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "author": { + "@id": "http://example.com/vocab/author", + "@container": "@index" + } + }, + "@id": "http://example.com/article", + "author": { + "regular": { + "@id": "http://example.org/person/1" + }, + "@none": { + "@id": "http://example.org/guest/cd24f329aa" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m009-context.jsonld b/core/src/test/resources/json-ld.org/compact/m009-context.jsonld new file mode 100644 index 00000000..722af08d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m009-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "author": { + "@id": "http://example.com/vocab/author", + "@container": "@index" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m009-in.jsonld b/core/src/test/resources/json-ld.org/compact/m009-in.jsonld new file mode 100644 index 00000000..8ed51acb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m009-in.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/vocab/author": [{ + "@value": "Gregg", + "@index": "regular" + }, { + "@value": "Manu" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m009-out.jsonld b/core/src/test/resources/json-ld.org/compact/m009-out.jsonld new file mode 100644 index 00000000..42b29d4d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m009-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "author": { + "@id": "http://example.com/vocab/author", + "@container": "@index" + } + }, + "@id": "http://example.com/article", + "author": { + "regular": "Gregg", + "@none": "Manu" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m010-context.jsonld b/core/src/test/resources/json-ld.org/compact/m010-context.jsonld new file mode 100644 index 00000000..f39d1c79 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m010-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "author": { + "@id": "http://example.com/vocab/author", + "@container": "@index" + }, + "none": "@none" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m010-in.jsonld b/core/src/test/resources/json-ld.org/compact/m010-in.jsonld new file mode 100644 index 00000000..8ed51acb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m010-in.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/vocab/author": [{ + "@value": "Gregg", + "@index": "regular" + }, { + "@value": "Manu" + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m010-out.jsonld b/core/src/test/resources/json-ld.org/compact/m010-out.jsonld new file mode 100644 index 00000000..ebcf4c7b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m010-out.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "author": { + "@id": "http://example.com/vocab/author", + "@container": "@index" + }, + "none": "@none" + }, + "@id": "http://example.com/article", + "author": { + "regular": "Gregg", + "none": "Manu" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m011-context.jsonld b/core/src/test/resources/json-ld.org/compact/m011-context.jsonld new file mode 100644 index 00000000..374aa5b2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m011-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": {"@id": "vocab:label", "@container": "@language"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m011-in.jsonld b/core/src/test/resources/json-ld.org/compact/m011-in.jsonld new file mode 100644 index 00000000..f2f1c9ea --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m011-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/label": [ + {"@value": "The Queen", "@language": "en"}, + {"@value": "Die Königin", "@language": "de"}, + {"@value": "Ihre Majestät"} + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m011-out.jsonld b/core/src/test/resources/json-ld.org/compact/m011-out.jsonld new file mode 100644 index 00000000..eabfa785 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m011-out.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": {"@id": "vocab:label", "@container": "@language"} + }, + "@id": "http://example.com/queen", + "label": { + "en": "The Queen", + "de": "Die Königin", + "@none": "Ihre Majestät" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m012-context.jsonld b/core/src/test/resources/json-ld.org/compact/m012-context.jsonld new file mode 100644 index 00000000..93b531ea --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m012-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": {"@id": "vocab:label", "@container": "@language"}, + "none": "@none" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m012-in.jsonld b/core/src/test/resources/json-ld.org/compact/m012-in.jsonld new file mode 100644 index 00000000..f2f1c9ea --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m012-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/label": [ + {"@value": "The Queen", "@language": "en"}, + {"@value": "Die Königin", "@language": "de"}, + {"@value": "Ihre Majestät"} + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m012-out.jsonld b/core/src/test/resources/json-ld.org/compact/m012-out.jsonld new file mode 100644 index 00000000..14fc6ac9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m012-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": {"@id": "vocab:label", "@container": "@language"}, + "none": "@none" + }, + "@id": "http://example.com/queen", + "label": { + "en": "The Queen", + "de": "Die Königin", + "none": "Ihre Majestät" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m013-context.jsonld b/core/src/test/resources/json-ld.org/compact/m013-context.jsonld new file mode 100644 index 00000000..5ebfbc69 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m013-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m013-in.jsonld b/core/src/test/resources/json-ld.org/compact/m013-in.jsonld new file mode 100644 index 00000000..0beca7ed --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m013-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with no @id"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m013-out.jsonld b/core/src/test/resources/json-ld.org/compact/m013-out.jsonld new file mode 100644 index 00000000..baf3a656 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m013-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "@none": {"label": "Object with no @id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m014-context.jsonld b/core/src/test/resources/json-ld.org/compact/m014-context.jsonld new file mode 100644 index 00000000..92135644 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m014-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"}, + "none": "@none" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m014-in.jsonld b/core/src/test/resources/json-ld.org/compact/m014-in.jsonld new file mode 100644 index 00000000..0beca7ed --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m014-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with no @id"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m014-out.jsonld b/core/src/test/resources/json-ld.org/compact/m014-out.jsonld new file mode 100644 index 00000000..55bab565 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m014-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "idmap": {"@container": "@id"}, + "none": "@none" + }, + "idmap": { + "none": {"label": "Object with no @id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m015-context.jsonld b/core/src/test/resources/json-ld.org/compact/m015-context.jsonld new file mode 100644 index 00000000..5978667b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m015-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "typemap": {"@container": "@type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m015-in.jsonld b/core/src/test/resources/json-ld.org/compact/m015-in.jsonld new file mode 100644 index 00000000..e14b54c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m015-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with no @type"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m015-out.jsonld b/core/src/test/resources/json-ld.org/compact/m015-out.jsonld new file mode 100644 index 00000000..270b9319 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m015-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "@none": {"label": "Object with no @type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m016-context.jsonld b/core/src/test/resources/json-ld.org/compact/m016-context.jsonld new file mode 100644 index 00000000..b517bc35 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m016-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "typemap": {"@container": "@type"}, + "none": "@none" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m016-in.jsonld b/core/src/test/resources/json-ld.org/compact/m016-in.jsonld new file mode 100644 index 00000000..2a7defe9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m016-in.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with no @id"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m016-out.jsonld b/core/src/test/resources/json-ld.org/compact/m016-out.jsonld new file mode 100644 index 00000000..5d115f19 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m016-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "ex": "http://example.org/", + "typemap": {"@container": "@type"}, + "none": "@none" + }, + "typemap": { + "none": {"label": "Object with no @id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m017-context.jsonld b/core/src/test/resources/json-ld.org/compact/m017-context.jsonld new file mode 100644 index 00000000..f12919ce --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m017-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m017-in.jsonld b/core/src/test/resources/json-ld.org/compact/m017-in.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m017-in.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m017-out.jsonld b/core/src/test/resources/json-ld.org/compact/m017-out.jsonld new file mode 100644 index 00000000..ce09bd9e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m017-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + }, + "input": { + "@none": [{"value": "x"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m018-context.jsonld b/core/src/test/resources/json-ld.org/compact/m018-context.jsonld new file mode 100644 index 00000000..2de136b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m018-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m018-in.jsonld b/core/src/test/resources/json-ld.org/compact/m018-in.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m018-in.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m018-out.jsonld b/core/src/test/resources/json-ld.org/compact/m018-out.jsonld new file mode 100644 index 00000000..67ff9241 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m018-out.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "@none" : {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m019-context.jsonld b/core/src/test/resources/json-ld.org/compact/m019-context.jsonld new file mode 100644 index 00000000..5160a126 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m019-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]}, + "none": "@none" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m019-in.jsonld b/core/src/test/resources/json-ld.org/compact/m019-in.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m019-in.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/m019-out.jsonld b/core/src/test/resources/json-ld.org/compact/m019-out.jsonld new file mode 100644 index 00000000..bba709a7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/m019-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]}, + "none": "@none" + }, + "input": { + "none" : {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n001-context.jsonld b/core/src/test/resources/json-ld.org/compact/n001-context.jsonld new file mode 100644 index 00000000..18017f10 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n001-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "p2": {"@nest": "@nest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n001-in.jsonld b/core/src/test/resources/json-ld.org/compact/n001-in.jsonld new file mode 100644 index 00000000..c0373456 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n001-in.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [{"@value": "v2"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n001-out.jsonld b/core/src/test/resources/json-ld.org/compact/n001-out.jsonld new file mode 100644 index 00000000..15819870 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n001-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "p2": {"@nest": "@nest"} + }, + "p1": "v1", + "@nest": { + "p2": "v2" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n002-context.jsonld b/core/src/test/resources/json-ld.org/compact/n002-context.jsonld new file mode 100644 index 00000000..557c93ac --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n002-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "p1": {"@nest": "@nest"}, + "p2": {"@nest": "@nest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n002-in.jsonld b/core/src/test/resources/json-ld.org/compact/n002-in.jsonld new file mode 100644 index 00000000..c0373456 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n002-in.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [{"@value": "v2"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n002-out.jsonld b/core/src/test/resources/json-ld.org/compact/n002-out.jsonld new file mode 100644 index 00000000..e9ff8d7c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n002-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "p1": {"@nest": "@nest"}, + "p2": {"@nest": "@nest"} + }, + "@nest": { + "p1": "v1", + "p2": "v2" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n003-context.jsonld b/core/src/test/resources/json-ld.org/compact/n003-context.jsonld new file mode 100644 index 00000000..421621b3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n003-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest": "@nest", + "p2": {"@nest": "nest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n003-in.jsonld b/core/src/test/resources/json-ld.org/compact/n003-in.jsonld new file mode 100644 index 00000000..c0373456 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n003-in.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [{"@value": "v2"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n003-out.jsonld b/core/src/test/resources/json-ld.org/compact/n003-out.jsonld new file mode 100644 index 00000000..a2415a83 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n003-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest": "@nest", + "p2": {"@nest": "nest"} + }, + "p1": "v1", + "nest": { + "p2": "v2" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n004-context.jsonld b/core/src/test/resources/json-ld.org/compact/n004-context.jsonld new file mode 100644 index 00000000..18017f10 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n004-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "p2": {"@nest": "@nest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n004-in.jsonld b/core/src/test/resources/json-ld.org/compact/n004-in.jsonld new file mode 100644 index 00000000..5b70771a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n004-in.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [{"@value": "v2"}, {"@value": "v3"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n004-out.jsonld b/core/src/test/resources/json-ld.org/compact/n004-out.jsonld new file mode 100644 index 00000000..66705e9b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n004-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "p2": {"@nest": "@nest"} + }, + "p1": "v1", + "@nest": { + "p2": ["v2", "v3"] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n005-context.jsonld b/core/src/test/resources/json-ld.org/compact/n005-context.jsonld new file mode 100644 index 00000000..5a712da1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n005-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "list": {"@container": "@list", "@nest": "nestedlist"}, + "nestedlist": "@nest" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n005-in.jsonld b/core/src/test/resources/json-ld.org/compact/n005-in.jsonld new file mode 100644 index 00000000..ad985e83 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n005-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.org/list": [{"@list": [ + {"@value": "a"}, + {"@value": "b"} + ]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n005-out.jsonld b/core/src/test/resources/json-ld.org/compact/n005-out.jsonld new file mode 100644 index 00000000..5e0035ab --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n005-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "list": {"@container": "@list", "@nest": "nestedlist"}, + "nestedlist": "@nest" + }, + "nestedlist": { + "list": ["a", "b"] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n006-context.jsonld b/core/src/test/resources/json-ld.org/compact/n006-context.jsonld new file mode 100644 index 00000000..281100fc --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n006-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "index": {"@container": "@index", "@nest": "nestedindex"}, + "nestedindex": "@nest" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n006-in.jsonld b/core/src/test/resources/json-ld.org/compact/n006-in.jsonld new file mode 100644 index 00000000..2682faf3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n006-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.org/index": [ + {"@value": "a", "@index": "A"}, + {"@value": "b", "@index": "B"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n006-out.jsonld b/core/src/test/resources/json-ld.org/compact/n006-out.jsonld new file mode 100644 index 00000000..49f2172d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n006-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "index": {"@container": "@index", "@nest": "nestedindex"}, + "nestedindex": "@nest" + }, + "nestedindex": { + "index": { + "A": "a", + "B": "b" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n007-context.jsonld b/core/src/test/resources/json-ld.org/compact/n007-context.jsonld new file mode 100644 index 00000000..02492cee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n007-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "container": {"@container": "@language", "@nest": "nestedlanguage"}, + "nestedlanguage": "@nest" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n007-in.jsonld b/core/src/test/resources/json-ld.org/compact/n007-in.jsonld new file mode 100644 index 00000000..f32329ab --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n007-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.org/container": [ + {"@value": "Die Königin", "@language": "de"}, + {"@value": "The Queen", "@language": "en"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n007-out.jsonld b/core/src/test/resources/json-ld.org/compact/n007-out.jsonld new file mode 100644 index 00000000..659788d4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n007-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "container": {"@container": "@language", "@nest": "nestedlanguage"}, + "nestedlanguage": "@nest" + }, + "nestedlanguage": { + "container": { + "en": "The Queen", + "de": "Die Königin" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n008-context.jsonld b/core/src/test/resources/json-ld.org/compact/n008-context.jsonld new file mode 100644 index 00000000..0eeff316 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n008-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type", "@nest": "nestedtypemap"}, + "nestedtypemap": "@nest" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n008-in.jsonld b/core/src/test/resources/json-ld.org/compact/n008-in.jsonld new file mode 100644 index 00000000..ecdfc449 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n008-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with @type _:bar"}], "@type": ["_:bar"]}, + {"http://example/label": [{"@value": "Object with @type "}], "@type": ["http://example.org/foo"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n008-out.jsonld b/core/src/test/resources/json-ld.org/compact/n008-out.jsonld new file mode 100644 index 00000000..d1e44c63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n008-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type", "@nest": "nestedtypemap"}, + "nestedtypemap": "@nest" + }, + "nestedtypemap": { + "typemap": { + "_:bar": {"label": "Object with @type _:bar"}, + "http://example.org/foo": {"label": "Object with @type "} + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n009-context.jsonld b/core/src/test/resources/json-ld.org/compact/n009-context.jsonld new file mode 100644 index 00000000..2d491418 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n009-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id", "@nest": "nestedidmap"}, + "nestedidmap": "@nest" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n009-in.jsonld b/core/src/test/resources/json-ld.org/compact/n009-in.jsonld new file mode 100644 index 00000000..c44d5e63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n009-in.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with @id _:bar"}], "@id": "_:bar"}, + {"http://example/label": [{"@value": "Object with @id "}], "@id": "http://example.org/foo"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n009-out.jsonld b/core/src/test/resources/json-ld.org/compact/n009-out.jsonld new file mode 100644 index 00000000..a251580c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n009-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id", "@nest": "nestedidmap"}, + "nestedidmap": "@nest" + }, + "nestedidmap": { + "idmap": { + "http://example.org/foo": {"label": "Object with @id "}, + "_:bar": {"label": "Object with @id _:bar"} + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n010-context.jsonld b/core/src/test/resources/json-ld.org/compact/n010-context.jsonld new file mode 100644 index 00000000..c3f0c9df --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n010-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "foonest": "@nest", + "barnest": "@nest", + "foo": {"@nest": "foonest"}, + "bar": {"@nest": "barnest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n010-in.jsonld b/core/src/test/resources/json-ld.org/compact/n010-in.jsonld new file mode 100644 index 00000000..5a47bb39 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n010-in.jsonld @@ -0,0 +1,4 @@ +{ + "http://example.org/foo": "bar", + "http://example.org/bar": "foo" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/n010-out.jsonld b/core/src/test/resources/json-ld.org/compact/n010-out.jsonld new file mode 100644 index 00000000..c53a3d76 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/n010-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "foonest": "@nest", + "barnest": "@nest", + "foo": {"@nest": "foonest"}, + "bar": {"@nest": "barnest"} + }, + "barnest": {"bar": "foo"}, + "foonest": {"foo": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/p001-context.jsonld b/core/src/test/resources/json-ld.org/compact/p001-context.jsonld new file mode 100644 index 00000000..2d72ed66 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p001-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "ex": {"@id": "http://example.org/"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p001-in.jsonld b/core/src/test/resources/json-ld.org/compact/p001-in.jsonld new file mode 100644 index 00000000..19beb0f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p001-in.jsonld @@ -0,0 +1,5 @@ +{ + "@id": "http://example.org/id1", + "@type": ["http://example.org/Type1", "http://example.org/Type2"], + "http://example.org/term": {"@id": "http://example.org/id2"} +} diff --git a/core/src/test/resources/json-ld.org/compact/p001-out.jsonld b/core/src/test/resources/json-ld.org/compact/p001-out.jsonld new file mode 100644 index 00000000..5dfd781a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p001-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "ex": {"@id": "http://example.org/"} + }, + "@id": "http://example.org/id1", + "@type": ["http://example.org/Type1", "http://example.org/Type2"], + "http://example.org/term": {"@id": "http://example.org/id2"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/p002-context.jsonld b/core/src/test/resources/json-ld.org/compact/p002-context.jsonld new file mode 100644 index 00000000..2d72ed66 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p002-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "ex": {"@id": "http://example.org/"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p002-in.jsonld b/core/src/test/resources/json-ld.org/compact/p002-in.jsonld new file mode 100644 index 00000000..19beb0f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p002-in.jsonld @@ -0,0 +1,5 @@ +{ + "@id": "http://example.org/id1", + "@type": ["http://example.org/Type1", "http://example.org/Type2"], + "http://example.org/term": {"@id": "http://example.org/id2"} +} diff --git a/core/src/test/resources/json-ld.org/compact/p002-out.jsonld b/core/src/test/resources/json-ld.org/compact/p002-out.jsonld new file mode 100644 index 00000000..5dfd781a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p002-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "ex": {"@id": "http://example.org/"} + }, + "@id": "http://example.org/id1", + "@type": ["http://example.org/Type1", "http://example.org/Type2"], + "http://example.org/term": {"@id": "http://example.org/id2"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/p003-context.jsonld b/core/src/test/resources/json-ld.org/compact/p003-context.jsonld new file mode 100644 index 00000000..58907444 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p003-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "compact-iris:": "http://example.com/compact-iris-", + "property": "http://example.com/property" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p003-in.jsonld b/core/src/test/resources/json-ld.org/compact/p003-in.jsonld new file mode 100644 index 00000000..948a5d52 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p003-in.jsonld @@ -0,0 +1,6 @@ +{ + "http://example.com/property": { + "@id": "http://example.com/compact-iris-are-considered", + "http://example.com/property": "Prefix terms must end in a gen-delim" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p003-out.jsonld b/core/src/test/resources/json-ld.org/compact/p003-out.jsonld new file mode 100644 index 00000000..be552f3b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p003-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "compact-iris:": "http://example.com/compact-iris-", + "property": "http://example.com/property" + }, + "property": { + "@id": "http://example.com/compact-iris-are-considered", + "property": "Prefix terms must end in a gen-delim" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p004-context.jsonld b/core/src/test/resources/json-ld.org/compact/p004-context.jsonld new file mode 100644 index 00000000..f4348ae1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p004-context.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "ex": "http://example.com/", + "colon": "http://example.org/:", + "question": "http://example.org/?", + "hash": "http://example.org/#", + "lbracket": "http://example.org/[", + "rbracket": "http://example.org/]", + "at": "http://example.org/@" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/p004-in.jsonld b/core/src/test/resources/json-ld.org/compact/p004-in.jsonld new file mode 100644 index 00000000..4f9847f9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p004-in.jsonld @@ -0,0 +1,9 @@ +{ + "http://example.com/foo": "Use term with IRI ending in '/'", + "http://example.org/:foo": "Use term with IRI ending in ':'", + "http://example.org/?foo": "Use term with IRI ending in '?'", + "http://example.org/#foo": "Use term with IRI ending in '#'", + "http://example.org/[foo": "Use term with IRI ending in '['", + "http://example.org/]foo": "Use term with IRI ending in ']'", + "http://example.org/@foo": "Use term with IRI ending in '@'" +} diff --git a/core/src/test/resources/json-ld.org/compact/p004-out.jsonld b/core/src/test/resources/json-ld.org/compact/p004-out.jsonld new file mode 100644 index 00000000..20de3721 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p004-out.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "ex": "http://example.com/", + "colon": "http://example.org/:", + "question": "http://example.org/?", + "hash": "http://example.org/#", + "lbracket": "http://example.org/[", + "rbracket": "http://example.org/]", + "at": "http://example.org/@" + }, + "ex:foo": "Use term with IRI ending in '/'", + "colon:foo": "Use term with IRI ending in ':'", + "question:foo": "Use term with IRI ending in '?'", + "hash:foo": "Use term with IRI ending in '#'", + "lbracket:foo": "Use term with IRI ending in '['", + "rbracket:foo": "Use term with IRI ending in ']'", + "at:foo": "Use term with IRI ending in '@'" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/p005-context.jsonld b/core/src/test/resources/json-ld.org/compact/p005-context.jsonld new file mode 100644 index 00000000..daa9107d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p005-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true}, + "property": "http://example.com/property" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p005-in.jsonld b/core/src/test/resources/json-ld.org/compact/p005-in.jsonld new file mode 100644 index 00000000..cef01fc8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p005-in.jsonld @@ -0,0 +1,6 @@ +{ + "http://example.com/property": { + "@id": "http://example.com/compact-iris-are-considered", + "http://example.com/property": "@prefix does not require a gen-delim" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p005-out.jsonld b/core/src/test/resources/json-ld.org/compact/p005-out.jsonld new file mode 100644 index 00000000..6920c193 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p005-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true}, + "property": "http://example.com/property" + }, + "property": { + "@id": "compact-iris:are-considered", + "property": "@prefix does not require a gen-delim" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p006-context.jsonld b/core/src/test/resources/json-ld.org/compact/p006-context.jsonld new file mode 100644 index 00000000..daa9107d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p006-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true}, + "property": "http://example.com/property" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p006-in.jsonld b/core/src/test/resources/json-ld.org/compact/p006-in.jsonld new file mode 100644 index 00000000..cef01fc8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p006-in.jsonld @@ -0,0 +1,6 @@ +{ + "http://example.com/property": { + "@id": "http://example.com/compact-iris-are-considered", + "http://example.com/property": "@prefix does not require a gen-delim" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p006-out.jsonld b/core/src/test/resources/json-ld.org/compact/p006-out.jsonld new file mode 100644 index 00000000..6920c193 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p006-out.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true}, + "property": "http://example.com/property" + }, + "property": { + "@id": "compact-iris:are-considered", + "property": "@prefix does not require a gen-delim" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p007-context.jsonld b/core/src/test/resources/json-ld.org/compact/p007-context.jsonld new file mode 100644 index 00000000..8d06da6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p007-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "foo": "http://example.org/", + "foo:bar": {"@type": "@id"} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p007-in.jsonld b/core/src/test/resources/json-ld.org/compact/p007-in.jsonld new file mode 100644 index 00000000..47e98a8a --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p007-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.org/bar/a", + "http://example.org/bar/b": "c" +} diff --git a/core/src/test/resources/json-ld.org/compact/p007-out.jsonld b/core/src/test/resources/json-ld.org/compact/p007-out.jsonld new file mode 100644 index 00000000..b82492a8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p007-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "foo": "http://example.org/", + "foo:bar": {"@type": "@id"} + }, + "@id": "foo:bar/a", + "foo:bar/b": "c" +} diff --git a/core/src/test/resources/json-ld.org/compact/p008-context.jsonld b/core/src/test/resources/json-ld.org/compact/p008-context.jsonld new file mode 100644 index 00000000..9c7f2363 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p008-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "compact-iris": {"@id": "http://example.com/compact-iris#", "@prefix": false}, + "property": "http://example.com/property" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p008-in.jsonld b/core/src/test/resources/json-ld.org/compact/p008-in.jsonld new file mode 100644 index 00000000..55a50021 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p008-in.jsonld @@ -0,0 +1,6 @@ +{ + "http://example.com/property": { + "@id": "http://example.com/compact-iris#are-considered", + "http://example.com/property": "@prefix false not really necessary, but doubly prevents term from being used as a prefix" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/p008-out.jsonld b/core/src/test/resources/json-ld.org/compact/p008-out.jsonld new file mode 100644 index 00000000..3ad60694 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/p008-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "compact-iris": { + "@id": "http://example.com/compact-iris#", + "@prefix": false + }, + "property": "http://example.com/property" + }, + "property": { + "@id": "http://example.com/compact-iris#are-considered", + "property": "@prefix false not really necessary, but doubly prevents term from being used as a prefix" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi01-context.jsonld b/core/src/test/resources/json-ld.org/compact/pi01-context.jsonld new file mode 100644 index 00000000..f2a62b3e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi01-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi01-in.jsonld b/core/src/test/resources/json-ld.org/compact/pi01-in.jsonld new file mode 100644 index 00000000..391db54d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi01-in.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@value": "regular"}]}, + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@value": "guest"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@value": "guest"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi01-out.jsonld b/core/src/test/resources/json-ld.org/compact/pi01-out.jsonld new file mode 100644 index 00000000..7a92c136 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi01-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + }, + "@id": "article", + "author": { + "regular": {"@id": "person/1"}, + "guest": [{"@id": "person/2"}, {"@id": "person/3"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi02-context.jsonld b/core/src/test/resources/json-ld.org/compact/pi02-context.jsonld new file mode 100644 index 00000000..f2a62b3e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi02-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi02-in.jsonld b/core/src/test/resources/json-ld.org/compact/pi02-in.jsonld new file mode 100644 index 00000000..6068c779 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi02-in.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@value": "regular"}, {"@value": "foo"}]}, + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@value": "guest"}, {"@value": "foo"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@value": "guest"}, {"@value": "foo"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi02-out.jsonld b/core/src/test/resources/json-ld.org/compact/pi02-out.jsonld new file mode 100644 index 00000000..850558eb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi02-out.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + }, + "@id": "article", + "author": { + "regular": {"@id": "person/1", "prop": "foo"}, + "guest": [ + {"@id": "person/2", "prop": "foo"}, + {"@id": "person/3", "prop": "foo"} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi03-context.jsonld b/core/src/test/resources/json-ld.org/compact/pi03-context.jsonld new file mode 100644 index 00000000..cb0fd5dd --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi03-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@vocab", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi03-in.jsonld b/core/src/test/resources/json-ld.org/compact/pi03-in.jsonld new file mode 100644 index 00000000..165092dc --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi03-in.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@id": "http://example.com/regular"}]}, + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@id": "http://example.com/guest"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@id": "http://example.com/guest"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi03-out.jsonld b/core/src/test/resources/json-ld.org/compact/pi03-out.jsonld new file mode 100644 index 00000000..2e9e5780 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi03-out.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@vocab", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@id"} + }, + "@id": "article", + "author": { + "regular": {"@id": "person/1"}, + "guest": [ + {"@id": "person/2"}, + {"@id": "person/3"} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi04-context.jsonld b/core/src/test/resources/json-ld.org/compact/pi04-context.jsonld new file mode 100644 index 00000000..cb0fd5dd --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi04-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@vocab", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi04-in.jsonld b/core/src/test/resources/json-ld.org/compact/pi04-in.jsonld new file mode 100644 index 00000000..3b4ffdeb --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi04-in.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@id": "http://example.com/regular"}, {"@id": "http://example.com/foo"}]}, + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@id": "http://example.com/guest"}, {"@id": "http://example.com/foo"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@id": "http://example.com/guest"}, {"@id": "http://example.com/foo"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi04-out.jsonld b/core/src/test/resources/json-ld.org/compact/pi04-out.jsonld new file mode 100644 index 00000000..11dd58c2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi04-out.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@vocab", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@id"} + }, + "@id": "article", + "author": { + "regular": {"@id": "person/1", "prop": "foo"}, + "guest": [ + {"@id": "person/2", "prop": "foo"}, + {"@id": "person/3", "prop": "foo"} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi05-context.jsonld b/core/src/test/resources/json-ld.org/compact/pi05-context.jsonld new file mode 100644 index 00000000..f2a62b3e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi05-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi05-in.jsonld b/core/src/test/resources/json-ld.org/compact/pi05-in.jsonld new file mode 100644 index 00000000..4f8d91d2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi05-in.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1"}, + {"@id": "http://example.com/person/2"}, + {"@id": "http://example.com/person/3"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi05-out.jsonld b/core/src/test/resources/json-ld.org/compact/pi05-out.jsonld new file mode 100644 index 00000000..c0d89078 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi05-out.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + }, + "@id": "article", + "author": { + "@none": ["person/1", "person/2", "person/3"] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi06-context.jsonld b/core/src/test/resources/json-ld.org/compact/pi06-context.jsonld new file mode 100644 index 00000000..f2a62b3e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi06-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi06-in.jsonld b/core/src/test/resources/json-ld.org/compact/pi06-in.jsonld new file mode 100644 index 00000000..165092dc --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi06-in.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@id": "http://example.com/regular"}]}, + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@id": "http://example.com/guest"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@id": "http://example.com/guest"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pi06-out.jsonld b/core/src/test/resources/json-ld.org/compact/pi06-out.jsonld new file mode 100644 index 00000000..146f10fe --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pi06-out.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + }, + "@id": "article", + "author": { + "@none": [ + {"@id": "person/1", "prop": {"@id": "regular"}}, + {"@id": "person/2", "prop": {"@id": "guest"}}, + {"@id": "person/3", "prop": {"@id": "guest"}} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pr01-context.jsonld b/core/src/test/resources/json-ld.org/compact/pr01-context.jsonld new file mode 100644 index 00000000..a6875709 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr01-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": [{ + "@vocab": "http://example.com/", + "@version": 1.1, + "protected": {"@protected": true} + }, null] +} diff --git a/core/src/test/resources/json-ld.org/compact/pr01-in.jsonld b/core/src/test/resources/json-ld.org/compact/pr01-in.jsonld new file mode 100644 index 00000000..d6a85b74 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr01-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example/a": [{"@id": "http://example.org/foo"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pr02-context.jsonld b/core/src/test/resources/json-ld.org/compact/pr02-context.jsonld new file mode 100644 index 00000000..90e03cea --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr02-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": [{ + "@vocab": "http://example.com/", + "@version": 1.1, + "protected": {"@protected": true} + }, { + "protected": "http://example.com/protected" + }] +} diff --git a/core/src/test/resources/json-ld.org/compact/pr02-in.jsonld b/core/src/test/resources/json-ld.org/compact/pr02-in.jsonld new file mode 100644 index 00000000..d6a85b74 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr02-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example/a": [{"@id": "http://example.org/foo"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pr03-context.jsonld b/core/src/test/resources/json-ld.org/compact/pr03-context.jsonld new file mode 100644 index 00000000..0863ce0d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr03-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "protected": {"@protected": true}, + "Type": {"@context": {"protected": {"@type": "@id"}}} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/pr03-in.jsonld b/core/src/test/resources/json-ld.org/compact/pr03-in.jsonld new file mode 100644 index 00000000..0b780438 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr03-in.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.com/protected": [{"@value": "p === http://example.com/protected"}], + "http://example.com/unprotected": [{ + "@type": "http://example.com/Type", + "http://example.com/protected": [{"@value": "p === http://example.com/protected"}] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/pr04-context.jsonld b/core/src/test/resources/json-ld.org/compact/pr04-context.jsonld new file mode 100644 index 00000000..1d351903 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr04-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "protected": {"@protected": true}, + "unprotected": {"@context": {"protected": {"@language": "en"}}} + } +} diff --git a/core/src/test/resources/json-ld.org/compact/pr04-in.jsonld b/core/src/test/resources/json-ld.org/compact/pr04-in.jsonld new file mode 100644 index 00000000..e108683c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr04-in.jsonld @@ -0,0 +1,9 @@ +[{ + "http://example.com/protected": [{"@value": "p === http://example.com/protected"}], + "http://example.com/unprotected": [{ + "http://example.com/protected": [{ + "@value": "p === http://example.com/protected", + "@language": "en" + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/compact/pr04-out.jsonld b/core/src/test/resources/json-ld.org/compact/pr04-out.jsonld new file mode 100644 index 00000000..41eaedee --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr04-out.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "protected": {"@protected": true}, + "unprotected": { + "@context": {"protected": {"@language": "en"}} + } + }, + "protected": "p === http://example.com/protected", + "unprotected": { + "protected": "p === http://example.com/protected" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/pr05-context.jsonld b/core/src/test/resources/json-ld.org/compact/pr05-context.jsonld new file mode 100644 index 00000000..a066af95 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr05-context.jsonld @@ -0,0 +1,12 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "@vocab": "http://example.com/", + "Parent": {"@context": {"@protected": true, "foo": {"@type": "@id"}}} + }, { + "@version": 1.1, + "@protected": true, + "Child": {"@context": {"@protected": true, "foo": {"@type": "@id"}}} + }] +} diff --git a/core/src/test/resources/json-ld.org/compact/pr05-in.jsonld b/core/src/test/resources/json-ld.org/compact/pr05-in.jsonld new file mode 100644 index 00000000..4e97b905 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr05-in.jsonld @@ -0,0 +1,20 @@ +[ + { + "@type": [ + "http://example.com/Parent" + ], + "http://example.com/foo": [ + { + "@type": [ + "http://example.com/Child" + ], + "http://example.com/foo": [ + { + "@id": "http://example.com/test" + } + ] + } + ] + } +] + diff --git a/core/src/test/resources/json-ld.org/compact/pr05-out.jsonld b/core/src/test/resources/json-ld.org/compact/pr05-out.jsonld new file mode 100644 index 00000000..7cd17cb8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/pr05-out.jsonld @@ -0,0 +1,17 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "@vocab": "http://example.com/", + "Parent": {"@context": {"@protected": true, "foo": {"@type": "@id"}}} + }, { + "@version": 1.1, + "@protected": true, + "Child": {"@context": {"@protected": true, "foo": {"@type": "@id"}}} + }], + "@type": "Parent", + "foo": { + "@type": "Child", + "foo": "http://example.com/test" + } +} diff --git a/core/src/test/resources/json-ld.org/compact/r001-context.jsonld b/core/src/test/resources/json-ld.org/compact/r001-context.jsonld new file mode 100644 index 00000000..304ef521 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/r001-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"b": "http://example.com/b"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/r001-in.jsonld b/core/src/test/resources/json-ld.org/compact/r001-in.jsonld new file mode 100644 index 00000000..543c3609 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/r001-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "a", + "http://example.com/b": {"@id": "c"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/r001-out.jsonld b/core/src/test/resources/json-ld.org/compact/r001-out.jsonld new file mode 100644 index 00000000..89a6b556 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/r001-out.jsonld @@ -0,0 +1,5 @@ +{ + "@context": {"b": "http://example.com/b"}, + "@id": "a", + "b": {"@id": "c"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/r002-context.jsonld b/core/src/test/resources/json-ld.org/compact/r002-context.jsonld new file mode 100644 index 00000000..304ef521 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/r002-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"b": "http://example.com/b"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/r002-in.jsonld b/core/src/test/resources/json-ld.org/compact/r002-in.jsonld new file mode 100644 index 00000000..765625c3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/r002-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.org/a", + "http://example.com/b": {"@id": "http://example.org/c"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/r002-out.jsonld b/core/src/test/resources/json-ld.org/compact/r002-out.jsonld new file mode 100644 index 00000000..b8786539 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/r002-out.jsonld @@ -0,0 +1,5 @@ +{ + "@context": {"b": "http://example.com/b"}, + "@id": "http://example.org/a", + "b": {"@id": "http://example.org/c"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/s001-context.jsonld b/core/src/test/resources/json-ld.org/compact/s001-context.jsonld new file mode 100644 index 00000000..41a0cf97 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/s001-context.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "mylist": {"@id": "http://example.com/mylist", "@container": ["@list"]}, + "myset": {"@id": "http://example.com/myset", "@container": ["@set"]}, + "myid": {"@id": "http://example.com/myid", "@container": ["@id"]}, + "mytype": {"@id": "http://example.com/mytype", "@container": ["@type"]}, + "mylanguage": {"@id": "http://example.com/mylanguage", "@container": ["@language"]}, + "myindex": {"@id": "http://example.com/myindex", "@container": ["@index"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/s001-in.jsonld b/core/src/test/resources/json-ld.org/compact/s001-in.jsonld new file mode 100644 index 00000000..459a2978 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/s001-in.jsonld @@ -0,0 +1,9 @@ +{ + "@id": "http://example.org/id", + "http://example.com/mylist": {"@list": ["foo"]}, + "http://example.com/myset": "foo", + "http://example.com/myid": {"@id": "http://example/id", "@type": "http://example/type"}, + "http://example.com/mytype": {"@id": "http://example/id", "@type": "http://example/type"}, + "http://example.com/mylanguage": {"@value": "foo", "@language": "en"}, + "http://example.com/myindex": {"@value": "foo", "@index": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/s001-out.jsonld b/core/src/test/resources/json-ld.org/compact/s001-out.jsonld new file mode 100644 index 00000000..07b41459 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/s001-out.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "mylist": {"@id": "http://example.com/mylist", "@container": ["@list"]}, + "myset": {"@id": "http://example.com/myset", "@container": ["@set"]}, + "myid": {"@id": "http://example.com/myid", "@container": ["@id"]}, + "mytype": {"@id": "http://example.com/mytype", "@container": ["@type"]}, + "mylanguage": {"@id": "http://example.com/mylanguage", "@container": ["@language"]}, + "myindex": {"@id": "http://example.com/myindex", "@container": ["@index"]} + }, + "@id": "http://example.org/id", + "mylist": ["foo"], + "myset": ["foo"], + "myid": {"http://example/id": {"@type": "http://example/type"}}, + "mytype": {"http://example/type": {"@id": "http://example/id"}}, + "mylanguage": {"en": "foo"}, + "myindex": {"bar": "foo"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/s002-context.jsonld b/core/src/test/resources/json-ld.org/compact/s002-context.jsonld new file mode 100644 index 00000000..b63af60d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/s002-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "myid": {"@id": "http://example.com/myid", "@container": ["@id", "@set"]}, + "mytype": {"@id": "http://example.com/mytype", "@container": ["@type", "@set"]}, + "mylanguage": {"@id": "http://example.com/mylanguage", "@container": ["@language", "@set"]}, + "myindex": {"@id": "http://example.com/myindex", "@container": ["@index", "@set"]} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/s002-in.jsonld b/core/src/test/resources/json-ld.org/compact/s002-in.jsonld new file mode 100644 index 00000000..6b1e951e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/s002-in.jsonld @@ -0,0 +1,7 @@ +{ + "@id": "http://example.org/id", + "http://example.com/myid": {"@id": "http://example/id", "@type": "http://example/type"}, + "http://example.com/mytype": {"@id": "http://example/id", "@type": "http://example/type"}, + "http://example.com/mylanguage": {"@value": "foo", "@language": "en"}, + "http://example.com/myindex": {"@value": "foo", "@index": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/s002-out.jsonld b/core/src/test/resources/json-ld.org/compact/s002-out.jsonld new file mode 100644 index 00000000..aeef6d6d --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/s002-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "myid": {"@id": "http://example.com/myid", "@container": ["@id", "@set"]}, + "mytype": {"@id": "http://example.com/mytype", "@container": ["@type", "@set"]}, + "mylanguage": {"@id": "http://example.com/mylanguage", "@container": ["@language", "@set"]}, + "myindex": {"@id": "http://example.com/myindex", "@container": ["@index", "@set"]} + }, + "@id": "http://example.org/id", + "myid": {"http://example/id": [{"@type": "http://example/type"}]}, + "mytype": {"http://example/type": [{"@id": "http://example/id"}]}, + "mylanguage": {"en": ["foo"]}, + "myindex": {"bar": ["foo"]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn01-context.jsonld b/core/src/test/resources/json-ld.org/compact/tn01-context.jsonld new file mode 100644 index 00000000..4850765e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn01-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn01-in.jsonld b/core/src/test/resources/json-ld.org/compact/tn01-in.jsonld new file mode 100644 index 00000000..2398cf62 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn01-in.jsonld @@ -0,0 +1,14 @@ +[{ + "http://example.com/notype": [ + {"@value": "string"}, + {"@value": true}, + {"@value": false}, + {"@value": 1}, + {"@value": 10.0}, + {"@value": "plain"}, + {"@value": true, "@type": "http://www.w3.org/2001/XMLSchema#boolean"}, + {"@value": "english", "@language": "en"}, + {"@value": "2018-02-17", "@type": "http://www.w3.org/2001/XMLSchema#date"}, + {"@id": "http://example.com/iri"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn01-out.jsonld b/core/src/test/resources/json-ld.org/compact/tn01-out.jsonld new file mode 100644 index 00000000..bf6b641f --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn01-out.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none"} + }, + "notype": [ + {"@value": "string"}, + {"@value": true}, + {"@value": false}, + {"@value": 1}, + {"@value": 10.0}, + {"@value": "plain"}, + {"@value": true, "@type": "xsd:boolean"}, + {"@value": "english", "@language": "en"}, + {"@value": "2018-02-17", "@type": "xsd:date"}, + {"@id": "http://example.com/iri"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn02-context.jsonld b/core/src/test/resources/json-ld.org/compact/tn02-context.jsonld new file mode 100644 index 00000000..4850765e --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn02-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn02-in.jsonld b/core/src/test/resources/json-ld.org/compact/tn02-in.jsonld new file mode 100644 index 00000000..4d2ca634 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn02-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/notype": [{"@value": "string"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn02-out.jsonld b/core/src/test/resources/json-ld.org/compact/tn02-out.jsonld new file mode 100644 index 00000000..cada2038 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn02-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none"} + }, + "notype": {"@value": "string"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn03-context.jsonld b/core/src/test/resources/json-ld.org/compact/tn03-context.jsonld new file mode 100644 index 00000000..39d1f8e9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn03-context.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none", "@container": "@set"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn03-in.jsonld b/core/src/test/resources/json-ld.org/compact/tn03-in.jsonld new file mode 100644 index 00000000..4d2ca634 --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn03-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/notype": [{"@value": "string"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/compact/tn03-out.jsonld b/core/src/test/resources/json-ld.org/compact/tn03-out.jsonld new file mode 100644 index 00000000..bfbf9f7c --- /dev/null +++ b/core/src/test/resources/json-ld.org/compact/tn03-out.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none", "@container": "@set"} + }, + "notype": [{"@value": "string"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/composer.json b/core/src/test/resources/json-ld.org/composer.json deleted file mode 100644 index 04907952..00000000 --- a/core/src/test/resources/json-ld.org/composer.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "json-ld/tests", - "type": "library", - "description": "The offical JSON-LD test suite", - "keywords": [ "JSON-LD", "jsonld" ], - "homepage": "http://json-ld.org/test-suite/", - "license": "CC0-1.0", - "authors": [ - { - "name": "JSON-LD Community Group", - "homepage": "http://json-ld.org/" - } - ], - "support": { - "email": "public-linked-json@w3.org", - "irc": "irc://irc.freenode.org/json-ld", - "source": "https://github.com/json-ld/json-ld.org/", - "issues": "https://github.com/json-ld/json-ld.org/issues" - } -} diff --git a/core/src/test/resources/json-ld.org/context.jsonld b/core/src/test/resources/json-ld.org/context.jsonld new file mode 100644 index 00000000..e465bbf1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/context.jsonld @@ -0,0 +1,33 @@ +{ + "@context": { + "@vocab": "https://w3c.github.io/json-ld-api/tests/vocab#", + "dcterms": "http://purl.org/dc/terms/", + "jld": "https://w3c.github.io/json-ld-api/tests/vocab#", + "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + + "context": { "@type": "@id" }, + "expect": { "@id": "mf:result", "@type": "@id" }, + "frame": { "@type": "@id" }, + "input": { "@id": "mf:action", "@type": "@id" }, + "option": { "@type": "@id"}, + "sequence": { "@id": "mf:entries", "@type": "@id", "@container": "@list" }, + "redirectTo": { "@type": "@id"}, + + "name": "mf:name", + "purpose": "rdfs:comment", + "description": "rdfs:comment", + "base": { "@type": "@id" }, + "compactArrays": { "@type": "xsd:boolean" }, + "compactToRelative": { "@type": "xsd:boolean" }, + "contentType": { "@type": "xsd:boolean" }, + "expandContext": { "@type": "xsd:string" }, + "httpLink": { "@type": "xsd:string", "@container": "@set" }, + "httpStatus": { "@type": "xsd:integer" }, + "processingMode": { "@type": "xsd:string" }, + "produceGeneralizedRdf":{ "@type": "xsd:boolean" }, + "specVersion": { "@type": "xsd:string" }, + "useNativeTypes": { "@type": "xsd:boolean" } + } +} diff --git a/core/src/test/resources/json-ld.org/error-0002-in.jsonld b/core/src/test/resources/json-ld.org/error-0002-in.jsonld deleted file mode 100644 index 627ade3b..00000000 --- a/core/src/test/resources/json-ld.org/error-0002-in.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -{ - "@context": "error-0002-in.jsonld", - "@id": "http://example/test#example" -} diff --git a/core/src/test/resources/json-ld.org/error-0003-ctx.jsonld b/core/src/test/resources/json-ld.org/error-0003-ctx.jsonld deleted file mode 100644 index e51c53d0..00000000 --- a/core/src/test/resources/json-ld.org/error-0003-ctx.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - "@context": "error-0003-in.jsonld" -} diff --git a/core/src/test/resources/json-ld.org/error-0003-in.jsonld b/core/src/test/resources/json-ld.org/error-0003-in.jsonld deleted file mode 100644 index 976b42e0..00000000 --- a/core/src/test/resources/json-ld.org/error-0003-in.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -{ - "@context": "error-0003-ctx.jsonld", - "@id": "http://example/test#example" -} diff --git a/core/src/test/resources/json-ld.org/error-0005-in.jsonld b/core/src/test/resources/json-ld.org/error-0005-in.jsonld deleted file mode 100644 index 78e6430b..00000000 --- a/core/src/test/resources/json-ld.org/error-0005-in.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@context": "error-0005-in.jsonld", - "@id": "http://example/test#example" -}] diff --git a/core/src/test/resources/json-ld.org/error-0042-in.jsonld b/core/src/test/resources/json-ld.org/error-0042-in.jsonld deleted file mode 100644 index e68a327a..00000000 --- a/core/src/test/resources/json-ld.org/error-0042-in.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - "http://example/list": [{"@list": ["foo"]}, {"@list": ["bar"]}] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/error-manifest.jsonld b/core/src/test/resources/json-ld.org/error-manifest.jsonld deleted file mode 100644 index 4b9b5c56..00000000 --- a/core/src/test/resources/json-ld.org/error-manifest.jsonld +++ /dev/null @@ -1,321 +0,0 @@ -{ - "@context": "http://json-ld.org/test-suite/context.jsonld", - "@id": "", - "@type": "mf:Manifest", - "description": "JSON-LD to Expansion tests use object compare", - "name": "Error handling", - "baseIri": "http://json-ld.org/test-suite/tests/", - "sequence": [ - { - "@id": "#t0001", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Keywords cannot be aliased to other keywords", - "purpose": "Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword", - "input": "error-0001-in.jsonld", - "expect": "keyword redefinition" - }, { - "@id": "#t0002", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "A context may not include itself recursively (direct)", - "purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself", - "input": "error-0002-in.jsonld", - "expect": "recursive context inclusion" - }, { - "@id": "#t0003", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "A context may not include itself recursively (indirect)", - "purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself indirectly", - "input": "error-0003-in.jsonld", - "expect": "recursive context inclusion" - }, { - "@id": "#t0004", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Error dereferencing a remote context", - "purpose": "Verifies that an exception is raised on expansion when a context dereference results in an error", - "input": "error-0004-in.jsonld", - "expect": "loading remote context failed" - }, { - "@id": "#t0005", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid remote context", - "purpose": "Verifies that an exception is raised on expansion when a remote context is not an object containing @context", - "input": "error-0005-in.jsonld", - "expect": "invalid remote context" - }, { - "@id": "#t0006", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid local context", - "purpose": "Verifies that an exception is raised on expansion when a context is not a string or object", - "input": "error-0006-in.jsonld", - "expect": "invalid local context" - }, { - "@id": "#t0007", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid base IRI", - "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @base", - "input": "error-0007-in.jsonld", - "expect": "invalid base IRI" - }, { - "@id": "#t0008", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid vocab mapping", - "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping", - "input": "error-0008-in.jsonld", - "expect": "invalid vocab mapping" - }, { - "@id": "#t0009", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid default language", - "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @language", - "input": "error-0009-in.jsonld", - "expect": "invalid default language" - }, { - "@id": "#t0010", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Cyclic IRI mapping", - "purpose": "Verifies that an exception is raised on expansion when a cyclic IRI mapping is found", - "input": "error-0010-in.jsonld", - "expect": "cyclic IRI mapping" - }, { - "@id": "#t0011", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid term definition", - "purpose": "Verifies that an exception is raised on expansion when a invalid term definition is found", - "input": "error-0011-in.jsonld", - "expect": "invalid term definition" - }, { - "@id": "#t0012", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid type mapping (not a string)", - "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found", - "input": "error-0012-in.jsonld", - "expect": "invalid type mapping" - }, { - "@id": "#t0013", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid type mapping (not absolute IRI)", - "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found", - "input": "error-0013-in.jsonld", - "expect": "invalid type mapping" - }, { - "@id": "#t0014", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid reverse property (contains @id)", - "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found", - "input": "error-0014-in.jsonld", - "expect": "invalid reverse property" - }, { - "@id": "#t0015", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid IRI mapping (@reverse not a string)", - "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", - "input": "error-0015-in.jsonld", - "expect": "invalid IRI mapping" - }, { - "@id": "#t0016", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid IRI mapping (not an absolute IRI)", - "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", - "input": "error-0016-in.jsonld", - "expect": "invalid IRI mapping" - }, { - "@id": "#t0017", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid reverse property (invalid @container)", - "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found", - "input": "error-0017-in.jsonld", - "expect": "invalid reverse property" - }, { - "@id": "#t0018", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid IRI mapping (@id not a string)", - "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", - "input": "error-0018-in.jsonld", - "expect": "invalid IRI mapping" - }, { - "@id": "#t0019", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid keyword alias", - "purpose": "Verifies that an exception is raised on expansion when a invalid keyword alias is found", - "input": "error-0019-in.jsonld", - "expect": "invalid keyword alias" - }, { - "@id": "#t0020", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid IRI mapping (no vocab mapping)", - "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", - "input": "error-0020-in.jsonld", - "expect": "invalid IRI mapping" - }, { - "@id": "#t0021", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid container mapping", - "purpose": "Verifies that an exception is raised on expansion when a invalid container mapping is found", - "input": "error-0021-in.jsonld", - "expect": "invalid container mapping" - }, { - "@id": "#t0022", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid language mapping", - "purpose": "Verifies that an exception is raised on expansion when a invalid language mapping is found", - "input": "error-0022-in.jsonld", - "expect": "invalid language mapping" - }, { - "@id": "#t0023", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid IRI mapping (relative IRI in @type)", - "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found", - "input": "error-0023-in.jsonld", - "expect": "invalid type mapping" - }, { - "@id": "#t0024", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "List of lists (from array)", - "purpose": "Verifies that an exception is raised in Expansion when a list of lists is found", - "input": "error-0024-in.jsonld", - "expect": "list of lists" - }, { - "@id": "#t0025", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid reverse property map", - "purpose": "Verifies that an exception is raised in Expansion when a invalid reverse property map is found", - "input": "error-0025-in.jsonld", - "expect": "invalid reverse property map" - }, { - "@id": "#t0026", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Colliding keywords", - "purpose": "Verifies that an exception is raised in Expansion when colliding keywords are found", - "input": "error-0026-in.jsonld", - "expect": "colliding keywords" - }, { - "@id": "#t0027", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid @id value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid @id value is found", - "input": "error-0027-in.jsonld", - "expect": "invalid @id value" - }, { - "@id": "#t0028", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid type value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid type value is found", - "input": "error-0028-in.jsonld", - "expect": "invalid type value" - }, { - "@id": "#t0029", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid value object value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid value object value is found", - "input": "error-0029-in.jsonld", - "expect": "invalid value object value" - }, { - "@id": "#t0030", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid language-tagged string", - "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found", - "input": "error-0030-in.jsonld", - "expect": "invalid language-tagged string" - }, { - "@id": "#t0031", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid @index value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid @index value value is found", - "input": "error-0031-in.jsonld", - "expect": "invalid @index value" - }, { - "@id": "#t0032", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "List of lists (from array)", - "purpose": "Verifies that an exception is raised in Expansion when a list of lists is found", - "input": "error-0032-in.jsonld", - "expect": "list of lists" - }, { - "@id": "#t0033", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid @reverse value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid @reverse value is found", - "input": "error-0033-in.jsonld", - "expect": "invalid @reverse value" - }, { - "@id": "#t0034", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid reverse property value (in @reverse)", - "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found", - "input": "error-0034-in.jsonld", - "expect": "invalid reverse property value" - }, { - "@id": "#t0035", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid language map value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid language map value is found", - "input": "error-0035-in.jsonld", - "expect": "invalid language map value" - }, { - "@id": "#t0036", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid reverse property value (through coercion)", - "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found", - "input": "error-0036-in.jsonld", - "expect": "invalid reverse property value" - }, { - "@id": "#t0037", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid value object (unexpected keyword)", - "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found", - "input": "error-0037-in.jsonld", - "expect": "invalid value object" - }, { - "@id": "#t0038", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid value object (@type and @language)", - "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found", - "input": "error-0038-in.jsonld", - "expect": "invalid value object" - }, { - "@id": "#t0039", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid language-tagged value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged value is found", - "input": "error-0039-in.jsonld", - "expect": "invalid language-tagged value" - }, { - "@id": "#t0040", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid typed value", - "purpose": "Verifies that an exception is raised in Expansion when an invalid typed value is found", - "input": "error-0040-in.jsonld", - "expect": "invalid typed value" - }, { - "@id": "#t0041", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Invalid set or list object", - "purpose": "Verifies that an exception is raised in Expansion when an invalid set or list object is found", - "input": "error-0041-in.jsonld", - "expect": "invalid set or list object" - }, { - "@id": "#t0042", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Compaction to list of lists", - "purpose": "Verifies that an exception is raised in Compaction when attempting to compact a list of lists", - "input": "error-0042-in.jsonld", - "context": "error-0042-context.jsonld", - "expect": "compaction to list of lists" - }, { - "@id": "#t0043", - "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], - "name": "Conflicting indexes", - "purpose": "Verifies that an exception is raised in Flattening when conflicting indexes are found", - "input": "error-0043-in.jsonld", - "expect": "conflicting indexes" - }, - { - "@id": "#te042", - "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], - "name": "Keywords may not be redefined", - "purpose": "Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword", - "input": "expand-e042-in.jsonld", - "expect": "keyword redefinition" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/expand-0004-in.jsonld b/core/src/test/resources/json-ld.org/expand-0004-in.jsonld deleted file mode 100644 index 5768520b..00000000 --- a/core/src/test/resources/json-ld.org/expand-0004-in.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, - "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"}, - "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, - "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} - }, - "@id": "http://example.org/id", - "mylist1": { "@list": [ ] }, - "mylist2": "one item", - "myset2": { "@set": [ ] }, - "myset3": [ "v1" ], - "http://example.org/list1": { "@list": [ null ] }, - "http://example.org/list2": { "@list": [ {"@value": null} ] }, - "http://example.org/set1": { "@set": [ ] }, - "http://example.org/set1": { "@set": [ null ] }, - "http://example.org/set3": [ ], - "http://example.org/set4": [ null ], - "http://example.org/set5": "one item", - "http://example.org/property": { "@list": "one item" } -} diff --git a/core/src/test/resources/json-ld.org/expand-0004-out.jsonld b/core/src/test/resources/json-ld.org/expand-0004-out.jsonld deleted file mode 100644 index e5df965d..00000000 --- a/core/src/test/resources/json-ld.org/expand-0004-out.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -[{ - "@id": "http://example.org/id", - "http://example.com/mylist1": [ { "@list": [ ] } ], - "http://example.com/mylist2": [ { "@list": [ {"@value": "one item"} ] } ], - "http://example.com/myset2": [ ], - "http://example.com/myset3": [ {"@value": "v1"} ], - "http://example.org/list1": [ { "@list": [ ] } ], - "http://example.org/list2": [ { "@list": [ ] } ], - "http://example.org/set1": [ ], - "http://example.org/set1": [ ], - "http://example.org/set3": [ ], - "http://example.org/set4": [ ], - "http://example.org/set5": [ {"@value": "one item"} ], - "http://example.org/property": [ { "@list": [ {"@value": "one item"} ] } ] -}] diff --git a/core/src/test/resources/json-ld.org/expand-0005-out.jsonld b/core/src/test/resources/json-ld.org/expand-0005-out.jsonld deleted file mode 100644 index c5db2a24..00000000 --- a/core/src/test/resources/json-ld.org/expand-0005-out.jsonld +++ /dev/null @@ -1,18 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/expand-0005-in.jsonld#me", - "http://xmlns.com/foaf/0.1/knows": [ - { - "@id": "http://example.com/bob#me", - "http://xmlns.com/foaf/0.1/name": [{"@value": "Bob"}], - "http://xmlns.com/foaf/0.1/homepage": [{ - "@id": "http://example.com/bob" - }] - }, { - "@id": "http://example.com/alice#me", - "http://xmlns.com/foaf/0.1/name": [{"@value": "Alice"}], - "http://xmlns.com/foaf/0.1/homepage": [{ - "@id": "http://example.com/alice" - }] - } - ] -}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0011-in.jsonld b/core/src/test/resources/json-ld.org/expand-0011-in.jsonld deleted file mode 100644 index 15815597..00000000 --- a/core/src/test/resources/json-ld.org/expand-0011-in.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#book", - "dc:title": "Title", - "ex:contains": "http://example.org/test#chapter" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0012-in.jsonld b/core/src/test/resources/json-ld.org/expand-0012-in.jsonld deleted file mode 100644 index d081e7fb..00000000 --- a/core/src/test/resources/json-ld.org/expand-0012-in.jsonld +++ /dev/null @@ -1,39 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:authored": { - "@type": "@id" - }, - "ex:contains": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@graph": [ - { - "@id": "http://example.org/test#chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - }, - { - "@id": "http://example.org/test#jane", - "ex:authored": "http://example.org/test#chapter", - "foaf:name": "Jane" - }, - { - "@id": "http://example.org/test#john", - "foaf:name": "John" - }, - { - "@id": "http://example.org/test#library", - "ex:contains": { - "@id": "http://example.org/test#book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - } - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0025-in.jsonld b/core/src/test/resources/json-ld.org/expand-0025-in.jsonld deleted file mode 100644 index 426de362..00000000 --- a/core/src/test/resources/json-ld.org/expand-0025-in.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "foo": "http://example.com/foo/", - "foo:bar": "http://example.com/bar", - "bar": {"@id": "foo:bar", "@type": "@id"}, - "_": "http://example.com/underscore/" - }, - "@type": [ "foo", "foo:bar", "_" ] -} diff --git a/core/src/test/resources/json-ld.org/expand-0025-out.jsonld b/core/src/test/resources/json-ld.org/expand-0025-out.jsonld deleted file mode 100644 index 61e1278a..00000000 --- a/core/src/test/resources/json-ld.org/expand-0025-out.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -[{ - "@type": [ - "http://example.com/foo/", - "http://example.com/bar", - "http://example.com/underscore/" - ] -}] diff --git a/core/src/test/resources/json-ld.org/expand-0028-out.jsonld b/core/src/test/resources/json-ld.org/expand-0028-out.jsonld deleted file mode 100644 index e030e443..00000000 --- a/core/src/test/resources/json-ld.org/expand-0028-out.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/example1", - "@type": [ "http://example.org/vocab#test" ], - "http://example.org/vocab#date": [ - { - "@value": "2011-01-25T00:00:00Z", - "@type": "http://example.org/vocab#dateTime" - } - ], - "http://example.org/vocab#embed": [ - { - "@id": "http://json-ld.org/test-suite/tests/example2", - "http://example.org/vocab#expandedDate": [ - { - "@value": "2012-08-01T00:00:00Z", - "@type": "http://example.org/vocab#dateTime" - } - ] - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0029-in.jsonld b/core/src/test/resources/json-ld.org/expand-0029-in.jsonld deleted file mode 100644 index 08cdde33..00000000 --- a/core/src/test/resources/json-ld.org/expand-0029-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } - }, - "@id": "relativeIris", - "@type": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../../parent-parent-eq-root", - "../../../../../still-root", - "../.././.././../../too-many-dots", - "/absolute", - "//example.org/scheme-relative" - ], - "links": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../../parent-parent-eq-root", - "./../../../useless/../../../still-root", - "../.././.././../../too-many-dots", - "/absolute", - "//example.org/scheme-relative" - ] -} diff --git a/core/src/test/resources/json-ld.org/expand-0029-out.jsonld b/core/src/test/resources/json-ld.org/expand-0029-out.jsonld deleted file mode 100644 index f437a67e..00000000 --- a/core/src/test/resources/json-ld.org/expand-0029-out.jsonld +++ /dev/null @@ -1,33 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/relativeIris", - "@type": [ - "http://json-ld.org/test-suite/tests/link", - "http://json-ld.org/test-suite/tests/expand-0029-in.jsonld#fragment-works", - "http://json-ld.org/test-suite/tests/expand-0029-in.jsonld?query=works", - "http://json-ld.org/test-suite/tests/", - "http://json-ld.org/test-suite/", - "http://json-ld.org/test-suite/parent", - "http://json-ld.org/parent-parent-eq-root", - "http://json-ld.org/still-root", - "http://json-ld.org/too-many-dots", - "http://json-ld.org/absolute", - "http://example.org/scheme-relative" - ], - "http://www.example.com/link": [ { - "@list": [ - { "@id": "http://json-ld.org/test-suite/tests/link" }, - { "@id": "http://json-ld.org/test-suite/tests/expand-0029-in.jsonld#fragment-works" }, - { "@id": "http://json-ld.org/test-suite/tests/expand-0029-in.jsonld?query=works" }, - { "@id": "http://json-ld.org/test-suite/tests/" }, - { "@id": "http://json-ld.org/test-suite/" }, - { "@id": "http://json-ld.org/test-suite/parent" }, - { "@id": "http://json-ld.org/parent-parent-eq-root" }, - { "@id": "http://json-ld.org/still-root" }, - { "@id": "http://json-ld.org/too-many-dots" }, - { "@id": "http://json-ld.org/absolute" }, - { "@id": "http://example.org/scheme-relative" } - ] - } ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0038-out.jsonld b/core/src/test/resources/json-ld.org/expand-0038-out.jsonld deleted file mode 100644 index c09d2a11..00000000 --- a/core/src/test/resources/json-ld.org/expand-0038-out.jsonld +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "@id": "_:term", - "@type": [ - "_:term" - ], - "_:term": [ - { - "@id": "_:term", - "@type": [ - "_:term" - ] - }, - { - "@id": "_:Bx", - "_:term": [ - { - "@value": "term" - } - ] - }, - { - "@value": "plain value" - }, - { - "@id": "_:term" - }, - { - "@id": "_:term", - "@type": [ - "_:term" - ] - }, - { - "@id": "_:Cx", - "_:term": [ - { - "@value": "termId" - } - ] - }, - { - "@id": "_:termAppendedToBlankNode" - }, - { - "@id": "_:termAppendedToBlankNode" - }, - { - "@id": "http://json-ld.org/test-suite/tests/relativeIri" - }, - { - "@id": "_:term" - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0040-out.jsonld b/core/src/test/resources/json-ld.org/expand-0040-out.jsonld deleted file mode 100644 index 1b990b23..00000000 --- a/core/src/test/resources/json-ld.org/expand-0040-out.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "@id": "http://example.com/queen", - "http://example.com/vocab/label": - [ - { - "@value": "The Queen" - } - ], - "http://example.com/vocab/index": - [ - { - "@value": "No" - }, - { - "@value": "indexes" - }, - { - "@id": "http://json-ld.org/test-suite/tests/asTheValueIsntAnObject" - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0048-in.jsonld b/core/src/test/resources/json-ld.org/expand-0048-in.jsonld deleted file mode 100644 index 005f5e16..00000000 --- a/core/src/test/resources/json-ld.org/expand-0048-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "term": "http://example.com/terms-are-not-considered-in-id", - "compact-iris": "http://example.com/compact-iris-", - "property": "http://example.com/property", - "@vocab": "http://example.org/vocab-is-not-considered-for-id" - }, - "@id": "term", - "property": [ - { - "@id": "compact-iris:are-considered", - "property": "@id supports the following values: relative, absolute, and compact IRIs" - }, - { - "@id": "../parent-node", - "property": "relative IRIs get resolved against the document's base IRI" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/expand-0048-out.jsonld b/core/src/test/resources/json-ld.org/expand-0048-out.jsonld deleted file mode 100644 index 990d67b3..00000000 --- a/core/src/test/resources/json-ld.org/expand-0048-out.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/term", - "http://example.com/property": [ - { - "@id": "http://example.com/compact-iris-are-considered", - "http://example.com/property": [ - { "@value": "@id supports the following values: relative, absolute, and compact IRIs" } - ] - }, - { - "@id": "http://json-ld.org/test-suite/parent-node", - "http://example.com/property": [ - { "@value": "relative IRIs get resolved against the document's base IRI" } - ] - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0050-out.jsonld b/core/src/test/resources/json-ld.org/expand-0050-out.jsonld deleted file mode 100644 index 1bd1b95c..00000000 --- a/core/src/test/resources/json-ld.org/expand-0050-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "http://example.com/issue/": [ { "@id": "http://json-ld.org/issue/1" } ], - "http://example.com/issue/raisedBy": [ { "@value": "Markus" } ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0051-out.jsonld b/core/src/test/resources/json-ld.org/expand-0051-out.jsonld deleted file mode 100644 index 04ea07e9..00000000 --- a/core/src/test/resources/json-ld.org/expand-0051-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -[{ - "http://example.com/property": [{ - "@value": "ok" - }], - "@id": "http://json-ld.org/issue/1" -}] diff --git a/core/src/test/resources/json-ld.org/expand-0056-out.jsonld b/core/src/test/resources/json-ld.org/expand-0056-out.jsonld deleted file mode 100644 index 2b81bbb6..00000000 --- a/core/src/test/resources/json-ld.org/expand-0056-out.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[ - { - "@id": "http://me.markus-lanthaler.com/", - "http://xmlns.com/foaf/0.1/homepage": [ { "@id": "http://www.markus-lanthaler.com/" } ], - "http://example.com/link": [ { "@id": "http://json-ld.org/test-suite/tests/relative-iri" } ], - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0057-out.jsonld b/core/src/test/resources/json-ld.org/expand-0057-out.jsonld deleted file mode 100644 index ac6d6170..00000000 --- a/core/src/test/resources/json-ld.org/expand-0057-out.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[ - { - "http://example.org/term": [ { "@id": "http://json-ld.org/test-suite/tests/not-a-term-thus-a-relative-IRI" } ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0059-out.jsonld b/core/src/test/resources/json-ld.org/expand-0059-out.jsonld deleted file mode 100644 index 9f90fb5a..00000000 --- a/core/src/test/resources/json-ld.org/expand-0059-out.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/example-with-vocab", - "@type": [ "http://example.org/vocab#vocab-prefixed" ], - "http://example.org/vocab#embed": [ - { - "@id": "http://json-ld.org/test-suite/tests/example-vocab-reset", - "@type": [ "http://json-ld.org/test-suite/tests/document-relative" ] - } - ], - "http://example.org/vocab#property": [ { "@value": "property expanded using @vocab" } ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0060-out.jsonld b/core/src/test/resources/json-ld.org/expand-0060-out.jsonld deleted file mode 100644 index 4cac4e38..00000000 --- a/core/src/test/resources/json-ld.org/expand-0060-out.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/document-relative", - "@type": [ "http://json-ld.org/test-suite/tests/expand-0060-in.jsonld#document-relative" ], - "http://example.com/vocab#property": [ - { - "@id": "http://example.org/document-base-overwritten", - "@type": [ "http://example.org/test/#document-base-overwritten" ], - "http://example.com/vocab#property": [ - { - "@id": "http://json-ld.org/test-suite/document-relative", - "@type": [ "http://json-ld.org/test-suite/tests/expand-0060-in.jsonld#document-relative" ] - }, - { - "@id": "../document-relative", - "@type": [ "#document-relative" ], - "http://example.com/vocab#property": [ { "@value": "only @base is cleared" } ] - } - ] - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-0066-out.jsonld b/core/src/test/resources/json-ld.org/expand-0066-out.jsonld deleted file mode 100644 index ca350a2e..00000000 --- a/core/src/test/resources/json-ld.org/expand-0066-out.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "@id": "http://example.com/people/markus", - "@reverse": { - "http://xmlns.com/foaf/0.1/knows": [ - { - "@id": "http://example.com/people/dave", - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ] - } - ], - "http://example.com/vocab/noTerm": [ - { - "@id": "http://json-ld.org/test-suite/tests/relative-node", - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Compact keys using @vocab" } ] - } - ] - }, - "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] - } -] diff --git a/core/src/test/resources/json-ld.org/expand-manifest.jsonld b/core/src/test/resources/json-ld.org/expand-manifest.jsonld index 49a200c9..a34b5649 100644 --- a/core/src/test/resources/json-ld.org/expand-manifest.jsonld +++ b/core/src/test/resources/json-ld.org/expand-manifest.jsonld @@ -1,536 +1,539 @@ { - "@context": "http://json-ld.org/test-suite/context.jsonld", + "@context": "context.jsonld", "@id": "", "@type": "mf:Manifest", - "description": "JSON-LD to Expansion tests use object compare", "name": "Expansion", - "baseIri": "http://json-ld.org/test-suite/tests/", + "description": "JSON-LD Expansion tests use object compare", + "baseIri": "https://w3c.github.io/json-ld-api/tests/", "sequence": [ { "@id": "#t0001", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "drop free-floating nodes", "purpose": "Expand drops unreferenced nodes having only @id", - "input": "expand-0001-in.jsonld", - "expect": "expand-0001-out.jsonld" + "input": "expand/0001-in.jsonld", + "expect": "expand/0001-out.jsonld" }, { "@id": "#t0002", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "basic", "purpose": "Expanding terms with different types of values", - "input": "expand-0002-in.jsonld", - "expect": "expand-0002-out.jsonld" + "input": "expand/0002-in.jsonld", + "expect": "expand/0002-out.jsonld" }, { "@id": "#t0003", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "drop null and unmapped properties", "purpose": "Verifies that null values and unmapped properties are removed from expanded output", - "input": "expand-0003-in.jsonld", - "expect": "expand-0003-out.jsonld" + "input": "expand/0003-in.jsonld", + "expect": "expand/0003-out.jsonld" }, { "@id": "#t0004", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "optimize @set, keep empty arrays", "purpose": "Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained", - "input": "expand-0004-in.jsonld", - "expect": "expand-0004-out.jsonld" + "input": "expand/0004-in.jsonld", + "expect": "expand/0004-out.jsonld" }, { "@id": "#t0005", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "do not expand aliased @id/@type", "purpose": "If a keyword is aliased, it is not used when expanding", - "input": "expand-0005-in.jsonld", - "expect": "expand-0005-out.jsonld" + "input": "expand/0005-in.jsonld", + "expect": "expand/0005-out.jsonld" }, { "@id": "#t0006", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "alias keywords", "purpose": "Aliased keywords expand in resulting document", - "input": "expand-0006-in.jsonld", - "expect": "expand-0006-out.jsonld" + "input": "expand/0006-in.jsonld", + "expect": "expand/0006-out.jsonld" }, { "@id": "#t0007", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "date type-coercion", "purpose": "Expand strings to expanded value with @type: xsd:dateTime", - "input": "expand-0007-in.jsonld", - "expect": "expand-0007-out.jsonld" + "input": "expand/0007-in.jsonld", + "expect": "expand/0007-out.jsonld" }, { "@id": "#t0008", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@value with @language", "purpose": "Keep expanded values with @language, drop non-conforming value objects containing just @language", - "input": "expand-0008-in.jsonld", - "expect": "expand-0008-out.jsonld" + "input": "expand/0008-in.jsonld", + "expect": "expand/0008-out.jsonld" }, { "@id": "#t0009", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@graph with terms", "purpose": "Use of @graph to contain multiple nodes within array", - "input": "expand-0009-in.jsonld", - "expect": "expand-0009-out.jsonld" + "input": "expand/0009-in.jsonld", + "expect": "expand/0009-out.jsonld" }, { "@id": "#t0010", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "native types", "purpose": "Expanding native scalar retains native scalar within expanded value", - "input": "expand-0010-in.jsonld", - "expect": "expand-0010-out.jsonld" + "input": "expand/0010-in.jsonld", + "expect": "expand/0010-out.jsonld" }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "coerced @id", "purpose": "A value of a property with @type: @id coercion expands to a node reference", - "input": "expand-0011-in.jsonld", - "expect": "expand-0011-out.jsonld" + "input": "expand/0011-in.jsonld", + "expect": "expand/0011-out.jsonld" }, { "@id": "#t0012", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@graph with embed", "purpose": "Use of @graph to contain multiple nodes within array", - "input": "expand-0012-in.jsonld", - "expect": "expand-0012-out.jsonld" + "input": "expand/0012-in.jsonld", + "expect": "expand/0012-out.jsonld" }, { "@id": "#t0013", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "expand already expanded", "purpose": "Expand does not mess up already expanded document", - "input": "expand-0013-in.jsonld", - "expect": "expand-0013-out.jsonld" + "input": "expand/0013-in.jsonld", + "expect": "expand/0013-out.jsonld" }, { "@id": "#t0014", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@set of @value objects with keyword aliases", "purpose": "Expanding aliased @set and @value", - "input": "expand-0014-in.jsonld", - "expect": "expand-0014-out.jsonld" + "input": "expand/0014-in.jsonld", + "expect": "expand/0014-out.jsonld" }, { "@id": "#t0015", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "collapse set of sets, keep empty lists", "purpose": "An array of multiple @set nodes are collapsed into a single array", - "input": "expand-0015-in.jsonld", - "expect": "expand-0015-out.jsonld" + "input": "expand/0015-in.jsonld", + "expect": "expand/0015-out.jsonld" }, { "@id": "#t0016", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "context reset", "purpose": "Setting @context to null within an embedded object resets back to initial context state", - "input": "expand-0016-in.jsonld", - "expect": "expand-0016-out.jsonld" + "input": "expand/0016-in.jsonld", + "expect": "expand/0016-out.jsonld" }, { "@id": "#t0017", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@graph and @id aliased", "purpose": "Expanding with @graph and @id aliases", - "input": "expand-0017-in.jsonld", - "expect": "expand-0017-out.jsonld" + "input": "expand/0017-in.jsonld", + "expect": "expand/0017-out.jsonld" }, { "@id": "#t0018", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "override default @language", "purpose": "override default @language in terms; only language-tag strings", - "input": "expand-0018-in.jsonld", - "expect": "expand-0018-out.jsonld" + "input": "expand/0018-in.jsonld", + "expect": "expand/0018-out.jsonld" }, { "@id": "#t0019", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "remove @value = null", "purpose": "Expanding a value of null removes the value", - "input": "expand-0019-in.jsonld", - "expect": "expand-0019-out.jsonld" + "input": "expand/0019-in.jsonld", + "expect": "expand/0019-out.jsonld" }, { "@id": "#t0020", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "do not remove @graph if not at top-level", "purpose": "@graph used under a node is retained", - "input": "expand-0020-in.jsonld", - "expect": "expand-0020-out.jsonld" + "input": "expand/0020-in.jsonld", + "expect": "expand/0020-out.jsonld" }, { "@id": "#t0021", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "do not remove @graph at top-level if not only property", "purpose": "@graph used at the top level is retained if there are other properties", - "input": "expand-0021-in.jsonld", - "expect": "expand-0021-out.jsonld" + "input": "expand/0021-in.jsonld", + "expect": "expand/0021-out.jsonld" }, { "@id": "#t0022", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "expand value with default language", "purpose": "Expanding with a default language applies that language to string values", - "input": "expand-0022-in.jsonld", - "expect": "expand-0022-out.jsonld" + "input": "expand/0022-in.jsonld", + "expect": "expand/0022-out.jsonld" }, { "@id": "#t0023", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expanding list/set with coercion", "purpose": "Expanding lists and sets with properties having coercion coerces list/set values", - "input": "expand-0023-in.jsonld", - "expect": "expand-0023-out.jsonld" + "input": "expand/0023-in.jsonld", + "expect": "expand/0023-out.jsonld" }, { "@id": "#t0024", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Multiple contexts", "purpose": "Tests that contexts in an array are merged", - "input": "expand-0024-in.jsonld", - "expect": "expand-0024-out.jsonld" + "input": "expand/0024-in.jsonld", + "expect": "expand/0024-out.jsonld" }, { "@id": "#t0025", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Problematic IRI expansion tests", "purpose": "Expanding different kinds of terms and Compact IRIs", - "input": "expand-0025-in.jsonld", - "expect": "expand-0025-out.jsonld" + "input": "expand/0025-in.jsonld", + "expect": "expand/0025-out.jsonld" }, { "@id": "#t0026", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Term definition with @id: @type", "purpose": "Expanding term mapping to @type uses @type syntax", - "input": "expand-0026-in.jsonld", - "expect": "expand-0026-out.jsonld" + "input": "expand/0026-in.jsonld", + "expect": "expand/0026-out.jsonld", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0027", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Duplicate values in @list and @set", "purpose": "Duplicate values in @list and @set are not merged", - "input": "expand-0027-in.jsonld", - "expect": "expand-0027-out.jsonld" + "input": "expand/0027-in.jsonld", + "expect": "expand/0027-out.jsonld" }, { "@id": "#t0028", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Use @vocab in properties and @type but not in @id", "purpose": "@vocab is used to compact properties and @type, but is not used for @id", - "input": "expand-0028-in.jsonld", - "expect": "expand-0028-out.jsonld" + "input": "expand/0028-in.jsonld", + "expect": "expand/0028-out.jsonld" }, { "@id": "#t0029", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Relative IRIs", "purpose": "@base is used to compact @id; test with different relative IRIs", - "input": "expand-0029-in.jsonld", - "expect": "expand-0029-out.jsonld" + "input": "expand/0029-in.jsonld", + "expect": "expand/0029-out.jsonld" }, { "@id": "#t0030", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Language maps", "purpose": "Language Maps expand values to include @language", - "input": "expand-0030-in.jsonld", - "expect": "expand-0030-out.jsonld" + "input": "expand/0030-in.jsonld", + "expect": "expand/0030-out.jsonld" }, { "@id": "#t0031", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "type-coercion of native types", "purpose": "Expanding native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation", - "input": "expand-0031-in.jsonld", - "expect": "expand-0031-out.jsonld" + "input": "expand/0031-in.jsonld", + "expect": "expand/0031-out.jsonld" }, { "@id": "#t0032", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Null term and @vocab", "purpose": "Mapping a term to null decouples it from @vocab", - "input": "expand-0032-in.jsonld", - "expect": "expand-0032-out.jsonld" + "input": "expand/0032-in.jsonld", + "expect": "expand/0032-out.jsonld" }, { "@id": "#t0033", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Using @vocab with with type-coercion", "purpose": "Verifies that terms can be defined using @vocab", - "input": "expand-0033-in.jsonld", - "expect": "expand-0033-out.jsonld" + "input": "expand/0033-in.jsonld", + "expect": "expand/0033-out.jsonld" }, { "@id": "#t0034", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Multiple properties expanding to the same IRI", "purpose": "Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms", - "input": "expand-0034-in.jsonld", - "expect": "expand-0034-out.jsonld" + "input": "expand/0034-in.jsonld", + "expect": "expand/0034-out.jsonld" }, { "@id": "#t0035", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Language maps with @vocab, default language, and colliding property", "purpose": "Pathological tests of language maps", - "input": "expand-0035-in.jsonld", - "expect": "expand-0035-out.jsonld" + "input": "expand/0035-in.jsonld", + "expect": "expand/0035-out.jsonld" }, { "@id": "#t0036", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expanding @index", "purpose": "Expanding index maps for terms defined with @container: @index", - "input": "expand-0036-in.jsonld", - "expect": "expand-0036-out.jsonld" + "input": "expand/0036-in.jsonld", + "expect": "expand/0036-out.jsonld" }, { "@id": "#t0037", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expanding @reverse", "purpose": "Expanding @reverse keeps @reverse", - "input": "expand-0037-in.jsonld", - "expect": "expand-0037-out.jsonld" + "input": "expand/0037-in.jsonld", + "expect": "expand/0037-out.jsonld" }, { "@id": "#t0038", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expanding blank node labels", "purpose": "Blank nodes are not relabeled during expansion", - "input": "expand-0038-in.jsonld", - "expect": "expand-0038-out.jsonld" + "option": {"specVersion": "json-ld-1.0"}, + "input": "expand/0038-in.jsonld", + "expect": "expand/0038-out.jsonld" }, { "@id": "#t0039", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Using terms in a reverse-maps", "purpose": "Terms within @reverse are expanded", - "input": "expand-0039-in.jsonld", - "expect": "expand-0039-out.jsonld" + "input": "expand/0039-in.jsonld", + "expect": "expand/0039-out.jsonld" }, { "@id": "#t0040", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "language and index expansion on non-objects", "purpose": "Only invoke language and index map expansion if the value is a JSON object", - "input": "expand-0040-in.jsonld", - "expect": "expand-0040-out.jsonld" + "input": "expand/0040-in.jsonld", + "expect": "expand/0040-out.jsonld" }, { "@id": "#t0041", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], - "name": "@language: null", "name": "@language: null resets the default language", - "input": "expand-0041-in.jsonld", - "expect": "expand-0041-out.jsonld" + "input": "expand/0041-in.jsonld", + "expect": "expand/0041-out.jsonld" }, { "@id": "#t0042", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Reverse properties", "purpose": "Expanding terms defined as reverse properties uses @reverse in expanded document", - "input": "expand-0042-in.jsonld", - "expect": "expand-0042-out.jsonld" + "input": "expand/0042-in.jsonld", + "expect": "expand/0042-out.jsonld" }, { "@id": "#t0043", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Using reverse properties inside a @reverse-container", "purpose": "Expanding a reverse property within a @reverse undoes both reversals", - "input": "expand-0043-in.jsonld", - "expect": "expand-0043-out.jsonld" + "input": "expand/0043-in.jsonld", + "expect": "expand/0043-out.jsonld" }, { "@id": "#t0044", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Index maps with language mappings", "purpose": "Ensure index maps use language mapping", - "input": "expand-0044-in.jsonld", - "expect": "expand-0044-out.jsonld" + "input": "expand/0044-in.jsonld", + "expect": "expand/0044-out.jsonld" }, { "@id": "#t0045", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Top-level value objects", "purpose": "Expanding top-level value objects causes them to be removed", - "input": "expand-0045-in.jsonld", - "expect": "expand-0045-out.jsonld" + "input": "expand/0045-in.jsonld", + "expect": "expand/0045-out.jsonld" }, { "@id": "#t0046", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Free-floating nodes", "purpose": "Expanding free-floating nodes causes them to be removed", - "input": "expand-0046-in.jsonld", - "expect": "expand-0046-out.jsonld" + "input": "expand/0046-in.jsonld", + "expect": "expand/0046-out.jsonld" }, { "@id": "#t0047", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Free-floating values in sets and free-floating lists", "purpose": "Free-floating values in sets are removed, free-floating lists are removed completely", - "input": "expand-0047-in.jsonld", - "expect": "expand-0047-out.jsonld" + "input": "expand/0047-in.jsonld", + "expect": "expand/0047-out.jsonld" }, { "@id": "#t0048", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Terms are ignored in @id", "purpose": "Values of @id are not expanded as terms", - "input": "expand-0048-in.jsonld", - "expect": "expand-0048-out.jsonld" + "input": "expand/0048-in.jsonld", + "expect": "expand/0048-out.jsonld" }, { "@id": "#t0049", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "String values of reverse properties", "purpose": "String values of a reverse property with @type: @id are treated as IRIs", - "input": "expand-0049-in.jsonld", - "expect": "expand-0049-out.jsonld" + "input": "expand/0049-in.jsonld", + "expect": "expand/0049-out.jsonld" }, { "@id": "#t0050", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Term definitions with prefix separate from prefix definitions", "purpose": "Term definitions using compact IRIs don't inherit the definitions of the prefix", - "input": "expand-0050-in.jsonld", - "expect": "expand-0050-out.jsonld" + "input": "expand/0050-in.jsonld", + "expect": "expand/0050-out.jsonld" }, { "@id": "#t0051", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expansion of keyword aliases in term definitions", "purpose": "Expanding terms which are keyword aliases", - "input": "expand-0051-in.jsonld", - "expect": "expand-0051-out.jsonld" + "input": "expand/0051-in.jsonld", + "expect": "expand/0051-out.jsonld" }, { "@id": "#t0052", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@vocab-relative IRIs in term definitions", "purpose": "If @vocab is defined, term definitions are expanded relative to @vocab", - "input": "expand-0052-in.jsonld", - "expect": "expand-0052-out.jsonld" + "input": "expand/0052-in.jsonld", + "expect": "expand/0052-out.jsonld" }, { "@id": "#t0053", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expand absolute IRI with @type: @vocab", "purpose": "Expanding values of properties of @type: @vocab does not further expand absolute IRIs", - "input": "expand-0053-in.jsonld", - "expect": "expand-0053-out.jsonld" + "input": "expand/0053-in.jsonld", + "expect": "expand/0053-out.jsonld" }, { "@id": "#t0054", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expand term with @type: @vocab", "purpose": "Expanding values of properties of @type: @vocab does not expand term values", - "input": "expand-0054-in.jsonld", - "expect": "expand-0054-out.jsonld" + "input": "expand/0054-in.jsonld", + "expect": "expand/0054-out.jsonld" }, { "@id": "#t0055", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expand @vocab-relative term with @type: @vocab", "purpose": "Expanding values of properties of @type: @vocab expands relative IRIs using @vocab", - "input": "expand-0055-in.jsonld", - "expect": "expand-0055-out.jsonld" + "input": "expand/0055-in.jsonld", + "expect": "expand/0055-out.jsonld" }, { "@id": "#t0056", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Use terms with @type: @vocab but not with @type: @id", "purpose": "Checks that expansion uses appropriate base depending on term definition having @type @id or @vocab", - "input": "expand-0056-in.jsonld", - "expect": "expand-0056-out.jsonld" + "input": "expand/0056-in.jsonld", + "expect": "expand/0056-out.jsonld" }, { "@id": "#t0057", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expand relative IRI with @type: @vocab", "purpose": "Relative values of terms with @type: @vocab expand relative to @vocab", - "input": "expand-0057-in.jsonld", - "expect": "expand-0057-out.jsonld" + "input": "expand/0057-in.jsonld", + "expect": "expand/0057-out.jsonld" }, { "@id": "#t0058", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Expand compact IRI with @type: @vocab", "purpose": "Compact IRIs are expanded normally even if term has @type: @vocab", - "input": "expand-0058-in.jsonld", - "expect": "expand-0058-out.jsonld" + "input": "expand/0058-in.jsonld", + "expect": "expand/0058-out.jsonld" }, { "@id": "#t0059", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Reset @vocab by setting it to null", "purpose": "Setting @vocab to null removes a previous definition", - "input": "expand-0059-in.jsonld", - "expect": "expand-0059-out.jsonld" + "input": "expand/0059-in.jsonld", + "expect": "expand/0059-out.jsonld" }, { "@id": "#t0060", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Overwrite document base with @base and reset it again", "purpose": "Setting @base to an IRI and then resetting it to nil", - "input": "expand-0060-in.jsonld", - "expect": "expand-0060-out.jsonld" + "input": "expand/0060-in.jsonld", + "expect": "expand/0060-out.jsonld" }, { "@id": "#t0061", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Coercing native types to arbitrary datatypes", "purpose": "Expanding native types when coercing to arbitrary datatypes", - "input": "expand-0061-in.jsonld", - "expect": "expand-0061-out.jsonld" + "input": "expand/0061-in.jsonld", + "expect": "expand/0061-out.jsonld" }, { "@id": "#t0062", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Various relative IRIs with with @base", "purpose": "Pathological relative IRIs", - "input": "expand-0062-in.jsonld", - "expect": "expand-0062-out.jsonld" + "input": "expand/0062-in.jsonld", + "expect": "expand/0062-out.jsonld" }, { "@id": "#t0063", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Reverse property and index container", "purpose": "Expaning reverse properties with an index-container", - "input": "expand-0063-in.jsonld", - "expect": "expand-0063-out.jsonld" + "input": "expand/0063-in.jsonld", + "expect": "expand/0063-out.jsonld" }, { "@id": "#t0064", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "bnode values of reverse properties", "purpose": "Expand reverse property whose values are unlabeled blank nodes", - "input": "expand-0064-in.jsonld", - "expect": "expand-0064-out.jsonld" + "input": "expand/0064-in.jsonld", + "expect": "expand/0064-out.jsonld" }, { "@id": "#t0065", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Drop unmapped keys in reverse map", "purpose": "Keys that are not mapped to an IRI in a reverse-map are dropped", - "input": "expand-0065-in.jsonld", - "expect": "expand-0065-out.jsonld" + "input": "expand/0065-in.jsonld", + "expect": "expand/0065-out.jsonld" }, { "@id": "#t0066", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Reverse-map keys with @vocab", "purpose": "Expand uses @vocab to expand keys in reverse-maps", - "input": "expand-0066-in.jsonld", - "expect": "expand-0066-out.jsonld" + "input": "expand/0066-in.jsonld", + "expect": "expand/0066-out.jsonld" }, { "@id": "#t0067", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "prefix://suffix not a compact IRI", "purpose": "prefix:suffix values are not interpreted as compact IRIs if suffix begins with two slashes", - "input": "expand-0067-in.jsonld", - "expect": "expand-0067-out.jsonld" + "input": "expand/0067-in.jsonld", + "expect": "expand/0067-out.jsonld" }, { "@id": "#t0068", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "_:suffix values are not a compact IRI", "purpose": "prefix:suffix values are not interpreted as compact IRIs if prefix is an underscore", - "input": "expand-0068-in.jsonld", - "expect": "expand-0068-out.jsonld" + "input": "expand/0068-in.jsonld", + "expect": "expand/0068-out.jsonld" }, { "@id": "#t0069", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Compact IRI as term with type mapping", "purpose": "Redefine compact IRI to define type mapping using the compact IRI itself as value of @id", - "input": "expand-0069-in.jsonld", - "expect": "expand-0069-out.jsonld" + "input": "expand/0069-in.jsonld", + "expect": "expand/0069-out.jsonld" }, { "@id": "#t0070", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Compact IRI as term defined using equivalent compact IRI", "purpose": "Redefine compact IRI to define type mapping using the compact IRI itself as string value", - "input": "expand-0070-in.jsonld", - "expect": "expand-0070-out.jsonld" + "input": "expand/0070-in.jsonld", + "expect": "expand/0070-out.jsonld" }, { "@id": "#t0071", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Redefine terms looking like compact IRIs", "purpose": "Term definitions may look like compact IRIs", - "input": "expand-0071-in.jsonld", - "expect": "expand-0071-out.jsonld" + "input": "expand/0071-in.jsonld", + "expect": "expand/0071-out.jsonld", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0072", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Redefine term using @vocab, not itself", "purpose": "Redefining a term as itself when @vocab is defined uses @vocab, not previous term definition", - "input": "expand-0072-in.jsonld", - "expect": "expand-0072-out.jsonld" + "input": "expand/0072-in.jsonld", + "expect": "expand/0072-out.jsonld" }, { "@id": "#t0073", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@context not first property", "purpose": "Objects are unordered, so serialized node definition containing @context may have @context at the end of the node definition", - "input": "expand-0073-in.jsonld", - "expect": "expand-0073-out.jsonld" + "input": "expand/0073-in.jsonld", + "expect": "expand/0073-out.jsonld" }, { "@id": "#t0074", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@id not first property", "purpose": "Objects are unordered, so serialized node definition containing @id may have @id at the end of the node definition", - "input": "expand-0074-in.jsonld", - "expect": "expand-0074-out.jsonld" + "input": "expand/0074-in.jsonld", + "expect": "expand/0074-out.jsonld" }, { "@id": "#t0075", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "@vocab as blank node identifier", "purpose": "Use @vocab to map all properties to blank node identifiers", - "input": "expand-0075-in.jsonld", - "expect": "expand-0075-out.jsonld" + "option": {"processingMode": "json-ld-1.0"}, + "input": "expand/0075-in.jsonld", + "expect": "expand/0075-out.jsonld" }, { "@id": "#t0076", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], @@ -539,18 +542,1835 @@ "option": { "base": "http://example/base/" }, - "input": "expand-0076-in.jsonld", - "expect": "expand-0076-out.jsonld" + "input": "expand/0076-in.jsonld", + "expect": "expand/0076-out.jsonld" }, { "@id": "#t0077", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "expandContext option", "purpose": "Use of the expandContext option to expand the input document", "option": { - "expandContext": "expand-0077-context.jsonld" + "expandContext": "0077-context.jsonld" }, - "input": "expand-0077-in.jsonld", - "expect": "expand-0077-out.jsonld" + "input": "expand/0077-in.jsonld", + "expect": "expand/0077-out.jsonld" + }, { + "@id": "#t0078", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "multiple reverse properties", + "purpose": "Use of multiple reverse properties", + "input": "expand/0078-in.jsonld", + "expect": "expand/0078-out.jsonld" + }, { + "@id": "#t0079", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand @graph container", + "purpose": "Use of @graph containers", + "input": "expand/0079-in.jsonld", + "expect": "expand/0079-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0080", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @set] container", + "purpose": "Use of [@graph, @set] containers", + "input": "expand/0080-in.jsonld", + "expect": "expand/0080-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0081", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Does not create an @graph container if value is a graph", + "purpose": "Don't double-expand an already expanded graph", + "input": "expand/0081-in.jsonld", + "expect": "expand/0081-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0082", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @index] container", + "purpose": "Use of @graph containers with @index", + "input": "expand/0082-in.jsonld", + "expect": "expand/0082-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0083", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @index, @set] container", + "purpose": "Use of @graph containers with @index and @set", + "input": "expand/0083-in.jsonld", + "expect": "expand/0083-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0084", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand [@graph, @index] container if value is a graph", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0084-in.jsonld", + "expect": "expand/0084-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0085", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @id] container", + "purpose": "Use of @graph containers with @id", + "input": "expand/0085-in.jsonld", + "expect": "expand/0085-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0086", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @id, @set] container", + "purpose": "Use of @graph containers with @id and @set", + "input": "expand/0086-in.jsonld", + "expect": "expand/0086-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0087", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand [@graph, @id] container if value is a graph", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0087-in.jsonld", + "expect": "expand/0087-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0088", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand native values to IRIs", + "purpose": "Value Expansion does not expand native values, such as booleans, to a node object", + "input": "expand/0088-in.jsonld", + "expect": "expand/0088-out.jsonld" + }, { + "@id": "#t0089", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "empty @base applied to the base option", + "purpose": "Use of an empty @base is applied to the base option", + "option": { + "base": "http://example/base/" + }, + "input": "expand/0089-in.jsonld", + "expect": "expand/0089-out.jsonld" + }, { + "@id": "#t0090", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "relative @base overrides base option and document location", + "purpose": "Use of a relative @base overrides base option and document location", + "option": { + "base": "http://example/base/" + }, + "input": "expand/0090-in.jsonld", + "expect": "expand/0090-out.jsonld" + }, { + "@id": "#t0091", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "relative and absolute @base overrides base option and document location", + "purpose": "Use of a relative and absolute @base overrides base option and document location", + "option": { + "base": "http://example/base/" + }, + "input": "expand/0091-in.jsonld", + "expect": "expand/0091-out.jsonld" + }, { + "@id": "#t0092", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Various relative IRIs as properties with with @vocab: ''", + "purpose": "Pathological relative property IRIs", + "input": "expand/0092-in.jsonld", + "expect": "expand/0092-out.jsonld" + }, { + "@id": "#t0093", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand @graph container (multiple objects)", + "purpose": "Use of @graph containers", + "input": "expand/0093-in.jsonld", + "expect": "expand/0093-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0094", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @set] container (multiple objects)", + "purpose": "Use of [@graph, @set] containers", + "input": "expand/0094-in.jsonld", + "expect": "expand/0094-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0095", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Does not create an @graph container if value is a graph (multiple objects)", + "purpose": "Don't double-expand an already expanded graph", + "input": "expand/0095-in.jsonld", + "expect": "expand/0095-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0096", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @index] container (multiple indexed objects)", + "purpose": "Use of @graph containers with @index", + "input": "expand/0096-in.jsonld", + "expect": "expand/0096-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0097", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @index, @set] container (multiple objects)", + "purpose": "Use of @graph containers with @index and @set", + "input": "expand/0097-in.jsonld", + "expect": "expand/0097-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0098", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand [@graph, @index] container if value is a graph (multiple objects)", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0098-in.jsonld", + "expect": "expand/0098-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0099", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @id] container (multiple objects)", + "purpose": "Use of @graph containers with @id", + "input": "expand/0099-in.jsonld", + "expect": "expand/0099-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0100", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @id, @set] container (multiple objects)", + "purpose": "Use of @graph containers with @id and @set", + "input": "expand/0100-in.jsonld", + "expect": "expand/0100-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0101", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand [@graph, @id] container if value is a graph (multiple objects)", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0101-in.jsonld", + "expect": "expand/0101-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0102", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand @graph container if value is a graph (multiple objects)", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0102-in.jsonld", + "expect": "expand/0102-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0103", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand @graph container if value is a graph (multiple graphs)", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0103-in.jsonld", + "expect": "expand/0103-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0104", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Does not create an @graph container if value is a graph (mixed graph and object)", + "purpose": "Don't double-expand an already expanded graph", + "input": "expand/0104-in.jsonld", + "expect": "expand/0104-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0105", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand [@graph, @index] container if value is a graph (mixed graph and object)", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0105-in.jsonld", + "expect": "expand/0105-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0106", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Do not expand [@graph, @id] container if value is a graph (mixed graph and object)", + "purpose": "Does not create a new graph object if indexed value is already a graph object", + "input": "expand/0106-in.jsonld", + "expect": "expand/0106-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0107", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @index] container (indexes with multiple objects)", + "purpose": "Use of @graph containers with @index", + "input": "expand/0107-in.jsonld", + "expect": "expand/0107-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0108", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "expand [@graph, @id] container (multiple ids and objects)", + "purpose": "Use of @graph containers with @id", + "input": "expand/0108-in.jsonld", + "expect": "expand/0108-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#t0109", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "IRI expansion of fragments including ':'", + "purpose": "Do not treat as absolute IRIs values that look like compact IRIs if they're not absolute", + "input": "expand/0109-in.jsonld", + "expect": "expand/0109-out.jsonld" + }, { + "@id": "#t0110", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Various relative IRIs as properties with with relative @vocab", + "purpose": "Pathological relative property IRIs", + "input": "expand/0110-in.jsonld", + "expect": "expand/0110-out.jsonld" + }, { + "@id": "#t0111", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Various relative IRIs as properties with with relative @vocab itself relative to an existing vocabulary base", + "purpose": "Pathological relative property IRIs", + "input": "expand/0111-in.jsonld", + "expect": "expand/0111-out.jsonld" + }, { + "@id": "#t0112", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Various relative IRIs as properties with with relative @vocab relative to another relative vocabulary base", + "purpose": "Pathological relative property IRIs", + "input": "expand/0112-in.jsonld", + "expect": "expand/0112-out.jsonld" + }, { + "@id": "#t0113", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "context with JavaScript Object property names", + "purpose": "Expand with context including JavaScript Object property names", + "input": "expand/0113-in.jsonld", + "expect": "expand/0113-out.jsonld" + }, { + "@id": "#tc001", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "adding new term", + "purpose": "Expansion using a scoped context uses term scope for selecting proper term", + "input": "expand/c001-in.jsonld", + "expect": "expand/c001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc002", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "overriding a term", + "purpose": "Expansion using a scoped context uses term scope for selecting proper term", + "input": "expand/c002-in.jsonld", + "expect": "expand/c002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc003", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property and value with different terms mapping to the same expanded property", + "purpose": "Expansion using a scoped context uses term scope for selecting proper term", + "input": "expand/c003-in.jsonld", + "expect": "expand/c003-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc004", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "deep @context affects nested nodes", + "purpose": "Expansion using a scoped context uses term scope for selecting proper term", + "input": "expand/c004-in.jsonld", + "expect": "expand/c004-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc005", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "scoped context layers on intemediate contexts", + "purpose": "Expansion using a scoped context uses term scope for selecting proper term", + "input": "expand/c005-in.jsonld", + "expect": "expand/c005-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc006", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "adding new term", + "purpose": "scoped context on @type", + "input": "expand/c006-in.jsonld", + "expect": "expand/c006-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc007", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "overriding a term", + "purpose": "scoped context on @type", + "input": "expand/c007-in.jsonld", + "expect": "expand/c007-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc008", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "alias of @type", + "purpose": "scoped context on @type", + "input": "expand/c008-in.jsonld", + "expect": "expand/c008-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc009", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "deep @type-scoped @context does NOT affect nested nodes", + "purpose": "scoped context on @type", + "input": "expand/c009-in.jsonld", + "expect": "expand/c009-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc010", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "scoped context layers on intemediate contexts", + "purpose": "scoped context on @type", + "input": "expand/c010-in.jsonld", + "expect": "expand/c010-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc011", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "orders @type terms when applying scoped contexts", + "purpose": "scoped context on @type", + "input": "expand/c011-in.jsonld", + "expect": "expand/c011-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc012", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "deep property-term scoped @context in @type-scoped @context affects nested nodes", + "purpose": "scoped context on @type", + "input": "expand/c012-in.jsonld", + "expect": "expand/c012-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc013", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type maps use scoped context from type index and not scoped context from containing", + "purpose": "scoped context on @type", + "input": "expand/c013-in.jsonld", + "expect": "expand/c013-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc014", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped context nullification", + "purpose": "type-scoped context nullification", + "input": "expand/c014-in.jsonld", + "expect": "expand/c014-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc015", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped base", + "purpose": "type-scoped base", + "input": "expand/c015-in.jsonld", + "expect": "expand/c015-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc016", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped vocab", + "purpose": "type-scoped vocab", + "input": "expand/c016-in.jsonld", + "expect": "expand/c016-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc017", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "multiple type-scoped contexts are properly reverted", + "purpose": "multiple type-scoped contexts are property reverted", + "input": "expand/c017-in.jsonld", + "expect": "expand/c017-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc018", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "multiple type-scoped types resolved against previous context", + "purpose": "multiple type-scoped types resolved against previous context", + "input": "expand/c018-in.jsonld", + "expect": "expand/c018-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc019", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped context with multiple property scoped terms", + "purpose": "type-scoped context with multiple property scoped terms", + "input": "expand/c019-in.jsonld", + "expect": "expand/c019-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc020", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped value", + "purpose": "type-scoped value", + "input": "expand/c020-in.jsonld", + "expect": "expand/c020-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc021", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped value mix", + "purpose": "type-scoped value mix", + "input": "expand/c021-in.jsonld", + "expect": "expand/c021-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc022", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped property-scoped contexts including @type:@vocab", + "purpose": "type-scoped property-scoped contexts including @type:@vocab", + "input": "expand/c022-in.jsonld", + "expect": "expand/c022-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc023", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "composed type-scoped property-scoped contexts including @type:@vocab", + "purpose": "composed type-scoped property-scoped contexts including @type:@vocab", + "input": "expand/c023-in.jsonld", + "expect": "expand/c023-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc024", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped + property-scoped + values evaluates against previous context", + "purpose": "type-scoped + property-scoped + values evaluates against previous context", + "input": "expand/c024-in.jsonld", + "expect": "expand/c024-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tc025", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type-scoped + graph container", + "purpose": "type-scoped + graph container", + "input": "expand/c025-in.jsonld", + "expect": "expand/c025-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#te001", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Keywords cannot be aliased to other keywords", + "purpose": "Verifies that an exception is raised on expansion when processing an invalid context aliasing a keyword to another keyword", + "input": "expand/e001-in.jsonld", + "expect": "keyword redefinition" + }, { + "@id": "#te002", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "A context may not include itself recursively (direct)", + "purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself", + "input": "expand/e002-in.jsonld", + "expect": "recursive context inclusion", + "option": {"specVersion": "json-ld-1.0"} + }, { + "@id": "#te003", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "A context may not include itself recursively (indirect)", + "purpose": "Verifies that an exception is raised on expansion when processing a context referencing itself indirectly", + "input": "expand/e003-in.jsonld", + "expect": "recursive context inclusion", + "option": {"specVersion": "json-ld-1.0"} + }, { + "@id": "#te004", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Error dereferencing a remote context", + "purpose": "Verifies that an exception is raised on expansion when a context dereference results in an error", + "input": "expand/e004-in.jsonld", + "expect": "loading remote context failed" + }, { + "@id": "#te005", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid remote context", + "purpose": "Verifies that an exception is raised on expansion when a remote context is not an object containing @context", + "input": "expand/e005-in.jsonld", + "expect": "invalid remote context", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#te006", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid local context", + "purpose": "Verifies that an exception is raised on expansion when a context is not a string or object", + "input": "expand/e006-in.jsonld", + "expect": "invalid local context" + }, { + "@id": "#te007", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid base IRI", + "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @base", + "input": "expand/e007-in.jsonld", + "expect": "invalid base IRI" + }, { + "@id": "#te008", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid vocab mapping", + "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @vocab mapping", + "input": "expand/e008-in.jsonld", + "expect": "invalid vocab mapping" + }, { + "@id": "#te009", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid default language", + "purpose": "Verifies that an exception is raised on expansion when a context contains an invalid @language", + "input": "expand/e009-in.jsonld", + "expect": "invalid default language" + }, { + "@id": "#te010", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Cyclic IRI mapping", + "purpose": "Verifies that an exception is raised on expansion when a cyclic IRI mapping is found", + "input": "expand/e010-in.jsonld", + "expect": "cyclic IRI mapping" + }, { + "@id": "#te011", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid term definition", + "purpose": "Verifies that an exception is raised on expansion when a invalid term definition is found", + "input": "expand/e011-in.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#te012", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid type mapping (not a string)", + "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found", + "input": "expand/e012-in.jsonld", + "expect": "invalid type mapping" + }, { + "@id": "#te013", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid type mapping (not absolute IRI)", + "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found", + "input": "expand/e013-in.jsonld", + "expect": "invalid type mapping" + }, { + "@id": "#te014", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid reverse property (contains @id)", + "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found", + "input": "expand/e014-in.jsonld", + "expect": "invalid reverse property" + }, { + "@id": "#te015", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid IRI mapping (@reverse not a string)", + "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", + "input": "expand/e015-in.jsonld", + "expect": "invalid IRI mapping" + }, { + "@id": "#te016", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid IRI mapping (not an absolute IRI)", + "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", + "input": "expand/e016-in.jsonld", + "expect": "invalid IRI mapping" + }, { + "@id": "#te017", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid reverse property (invalid @container)", + "purpose": "Verifies that an exception is raised on expansion when a invalid reverse property is found", + "input": "expand/e017-in.jsonld", + "expect": "invalid reverse property" + }, { + "@id": "#te018", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid IRI mapping (@id not a string)", + "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", + "input": "expand/e018-in.jsonld", + "expect": "invalid IRI mapping" + }, { + "@id": "#te019", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid keyword alias", + "purpose": "Verifies that an exception is raised on expansion when a invalid keyword alias is found", + "input": "expand/e019-in.jsonld", + "expect": "invalid keyword alias" + }, { + "@id": "#te020", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid IRI mapping (no vocab mapping)", + "purpose": "Verifies that an exception is raised on expansion when a invalid IRI mapping is found", + "input": "expand/e020-in.jsonld", + "expect": "invalid IRI mapping" + }, { + "@id": "#te021", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid container mapping", + "purpose": "Verifies that an exception is raised on expansion when a invalid container mapping is found", + "input": "expand/e021-in.jsonld", + "expect": "invalid container mapping", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"} + }, { + "@id": "#te022", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid language mapping", + "purpose": "Verifies that an exception is raised on expansion when a invalid language mapping is found", + "input": "expand/e022-in.jsonld", + "expect": "invalid language mapping" + }, { + "@id": "#te023", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid IRI mapping (relative IRI in @type)", + "purpose": "Verifies that an exception is raised on expansion when a invalid type mapping is found", + "input": "expand/e023-in.jsonld", + "expect": "invalid type mapping" + }, { + "@id": "#te024", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "List of lists (from array)", + "purpose": "Verifies that an exception is raised in Expansion when a list of lists is found", + "input": "expand/e024-in.jsonld", + "expect": "list of lists", + "option": {"specVersion": "json-ld-1.0"} + }, { + "@id": "#te025", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid reverse property map", + "purpose": "Verifies that an exception is raised in Expansion when a invalid reverse property map is found", + "input": "expand/e025-in.jsonld", + "expect": "invalid reverse property map" + }, { + "@id": "#te026", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Colliding keywords", + "purpose": "Verifies that an exception is raised in Expansion when colliding keywords are found", + "input": "expand/e026-in.jsonld", + "expect": "colliding keywords" + }, { + "@id": "#te027", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid @id value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid @id value is found", + "input": "expand/e027-in.jsonld", + "expect": "invalid @id value" + }, { + "@id": "#te028", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid type value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid type value is found", + "input": "expand/e028-in.jsonld", + "expect": "invalid type value" + }, { + "@id": "#te029", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid value object value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid value object value is found", + "input": "expand/e029-in.jsonld", + "expect": "invalid value object value" + }, { + "@id": "#te030", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid language-tagged string", + "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged string value is found", + "input": "expand/e030-in.jsonld", + "expect": "invalid language-tagged string" + }, { + "@id": "#te031", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid @index value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid @index value value is found", + "input": "expand/e031-in.jsonld", + "expect": "invalid @index value" + }, { + "@id": "#te032", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "List of lists (from array)", + "purpose": "Verifies that an exception is raised in Expansion when a list of lists is found", + "input": "expand/e032-in.jsonld", + "expect": "list of lists", + "option": {"specVersion": "json-ld-1.0"} + }, { + "@id": "#te033", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid @reverse value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid @reverse value is found", + "input": "expand/e033-in.jsonld", + "expect": "invalid @reverse value" + }, { + "@id": "#te034", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid reverse property value (in @reverse)", + "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found", + "input": "expand/e034-in.jsonld", + "expect": "invalid reverse property value" + }, { + "@id": "#te035", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid language map value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid language map value is found", + "input": "expand/e035-in.jsonld", + "expect": "invalid language map value" + }, { + "@id": "#te036", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid reverse property value (through coercion)", + "purpose": "Verifies that an exception is raised in Expansion when an invalid reverse property value is found", + "input": "expand/e036-in.jsonld", + "expect": "invalid reverse property value" + }, { + "@id": "#te037", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid value object (unexpected keyword)", + "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found", + "input": "expand/e037-in.jsonld", + "expect": "invalid value object" + }, { + "@id": "#te038", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid value object (@type and @language)", + "purpose": "Verifies that an exception is raised in Expansion when an invalid value object is found", + "input": "expand/e038-in.jsonld", + "expect": "invalid value object" + }, { + "@id": "#te039", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid language-tagged value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid language-tagged value is found", + "input": "expand/e039-in.jsonld", + "expect": "invalid language-tagged value" + }, { + "@id": "#te040", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid typed value", + "purpose": "Verifies that an exception is raised in Expansion when an invalid typed value is found", + "input": "expand/e040-in.jsonld", + "expect": "invalid typed value" + }, { + "@id": "#te041", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid set or list object", + "purpose": "Verifies that an exception is raised in Expansion when an invalid set or list object is found", + "input": "expand/e041-in.jsonld", + "expect": "invalid set or list object" + }, { + "@id": "#te042", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Keywords may not be redefined", + "purpose": "Verifies that an exception is raised on expansion when processing an invalid context attempting to define @container on a keyword", + "input": "expand/e042-in.jsonld", + "expect": "keyword redefinition" + }, { + "@id": "#te043", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Term definition with @id: @type", + "purpose": "Expanding term mapping to @type uses @type syntax now illegal", + "input": "expand/e043-in.jsonld", + "expect": "invalid IRI mapping", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#te044", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Redefine terms looking like compact IRIs", + "purpose": "Term definitions may look like compact IRIs, but must be consistent.", + "input": "expand/e044-in.jsonld", + "expect": "invalid IRI mapping", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tec01", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid keyword in term definition", + "purpose": "Verifies that an exception is raised on expansion when a invalid term definition is found", + "input": "expand/ec01-in.jsonld", + "expect": "invalid term definition", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tem01", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Invalid container mapping", + "purpose": "Verifies that an exception is raised on expansion when a invalid container mapping is found", + "input": "expand/em01-in.jsonld", + "expect": "invalid container mapping", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ten01", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "@nest MUST NOT have a string value", + "purpose": "container: @nest", + "input": "expand/en01-in.jsonld", + "expect": "invalid @nest value", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ten02", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "@nest MUST NOT have a boolen value", + "purpose": "Transparent Nesting", + "input": "expand/en02-in.jsonld", + "expect": "invalid @nest value", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ten03", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "@nest MUST NOT have a numeric value", + "purpose": "Transparent Nesting", + "input": "expand/en03-in.jsonld", + "expect": "invalid @nest value", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ten04", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "@nest MUST NOT have a value object value", + "purpose": "Transparent Nesting", + "input": "expand/en04-in.jsonld", + "expect": "invalid @nest value", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ten05", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "does not allow a keyword other than @nest for the value of @nest", + "purpose": "Transparent Nesting", + "input": "expand/en05-in.jsonld", + "expect": "invalid @nest value", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#ten06", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "does not allow @nest with @reverse", + "purpose": "Transparent Nesting", + "input": "expand/en06-in.jsonld", + "expect": "invalid reverse property", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tep01", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Processing mode is implicitly json-ld-1.0", + "purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/ep01-in.jsonld", + "expect": "invalid container mapping" + }, { + "@id": "#tep02", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "processingMode json-ld-1.0 conflicts with @version: 1.1", + "purpose": "If not specified using processingMode, processing mode is taken as json-ld-1.0", + "input": "expand/ep02-in.jsonld", + "expect": "processing mode conflict", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tep03", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "@version must be 1.1", + "purpose": "If @version is specified, it must be 1.1", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/ep03-in.jsonld", + "expect": "invalid @version value" + }, { + "@id": "#tes01", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Using an array value for @context is illegal in JSON-LD 1.0", + "purpose": "Verifies that an exception is raised on expansion when a invalid container mapping is found", + "input": "expand/es01-in.jsonld", + "expect": "invalid container mapping", + "option": {"processingMode": "json-ld-1.0", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tes02", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Mapping @container: [@list, @set] is invalid", + "purpose": "Testing legal combinations of @set with other container values", + "input": "expand/es02-in.jsonld", + "expect": "invalid container mapping", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#th001", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "expand/h001-in.html", + "expect": "expand/h001-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th002", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands first embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "expand/h002-in.html", + "expect": "expand/h002-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th003", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands targeted JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier", + "input": "expand/h003-in.html#second", + "expect": "expand/h003-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th004", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands all embedded JSON-LD script elements with extractAllScripts option", + "purpose": "Tests embedded JSON-LD in HTML extracting all elements", + "input": "expand/h004-in.html", + "expect": "expand/h004-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "extractAllScripts": true} + }, { + "@id": "#th005", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands multiple embedded JSON-LD script elements where one is an array", + "purpose": "Tests embedded JSON-LD in HTML extracting all elements with array", + "input": "expand/h005-in.html", + "expect": "expand/h005-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "extractAllScripts": true} + }, { + "@id": "#th006", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands as empty with no embedded JSON-LD script elements", + "purpose": "Tests embedded JSON-LD in HTML when none exist", + "input": "expand/h006-in.html", + "expect": "expand/h006-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th007", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands as empty with no embedded JSON-LD script elements and extractAllScripts", + "purpose": "Tests embedded JSON-LD in HTML when none exist extracting all elements", + "input": "expand/h007-in.html", + "expect": "expand/h007-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "extractAllScripts": true} + }, { + "@id": "#th010", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands embedded JSON-LD script element with HTML character references", + "purpose": "Tests embedded JSON-LD in HTML with character references", + "input": "expand/h010-in.html", + "expect": "expand/h010-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th011", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if no element found at target", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier that doesn't exist", + "input": "expand/h011-in.html#third", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th012", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if targeted element is not a script element", + "purpose": "Tests embedded JSON-LD in HTML which isn't a script element", + "input": "expand/h012-in.html#first", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th013", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if targeted element does not have type application/ld+json", + "purpose": "Tests embedded JSON-LD in HTML with wrong type", + "input": "expand/h013-in.html#first", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th014", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if uncommented script text contains comment", + "purpose": "Tests embedded JSON-LD in HTML with comments leftover", + "input": "expand/h014-in.html", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th015", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if end comment missing", + "purpose": "Tests embedded JSON-LD in HTML with unballanced comments", + "input": "expand/h015-in.html", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th016", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if start comment missing", + "purpose": "Tests embedded JSON-LD in HTML with unballanced comments", + "input": "expand/h016-in.html", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th017", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Errors if uncommented script is not valid JSON", + "purpose": "Tests embedded JSON-LD in HTML which is invalid JSON", + "input": "expand/h017-in.html", + "expect": "invalid script element", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th018", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands embedded JSON-LD script element relative to document base", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "expand/h018-in.html", + "expect": "expand/h018-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th019", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands embedded JSON-LD script element relative to base option", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "expand/h019-in.html", + "expect": "expand/h019-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "base": "http://a.example.com/doc"} + }, { + "@id": "#th020", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands embedded JSON-LD script element relative to HTML base", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "expand/h020-in.html", + "expect": "expand/h020-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "base": "http://a.example.com/doc"} + }, { + "@id": "#th021", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands embedded JSON-LD script element relative to relative HTML base", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "expand/h021-in.html", + "expect": "expand/h021-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "base": "http://a.example.com/doc"} + }, { + "@id": "#th022", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands targeted JSON-LD script element with fragment and HTML base", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier", + "input": "expand/h022-in.html#second", + "expect": "expand/h022-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#thc01", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands document using an HTML context", + "purpose": "Tests extracting a context from an HTML document.", + "input": "expand/hc01-in.jsonld", + "expect": "expand/hc01-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#thc02", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands document using an HTML context with a fragment identifier", + "purpose": "Tests extracting a context from an HTML document with script identified by fragment identifier.", + "input": "expand/hc02-in.jsonld", + "expect": "expand/hc02-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#thc03", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands document using an HTML context with preference to context profile", + "purpose": "Tests extracting a context from an HTML document, skipping other contexts.", + "input": "expand/hc03-in.jsonld", + "expect": "expand/hc03-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#thc04", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands document using an HTML context with expandContext", + "purpose": "Tests extracting a context from an HTML document, using expandContext API option.", + "input": "expand/hc04-in.jsonld", + "expect": "expand/hc04-out.jsonld", + "option": {"expandContext": "hc04-context.html", "specVersion": "json-ld-1.1"} + }, { + "@id": "#thc05", + "@type": [ "jld:NegativeEvaluationTest", "jld:ExpandTest" ], + "name": "Errors if given an HTML file for a context where no context script element is found", + "purpose": "Verifies that an exception is raised on expansion when a remote context is an HTML file but does not contain a script element which is an object containing @context", + "input": "expand/hc05-in.jsonld", + "expect": "invalid remote context" + }, { + "@id": "#tjs01", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (boolean true)", + "purpose": "Tests expanding property with @type @json to a JSON literal (boolean true).", + "input": "expand/js01-in.jsonld", + "expect": "expand/js01-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs02", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (boolean false)", + "purpose": "Tests expanding property with @type @json to a JSON literal (boolean false).", + "input": "expand/js02-in.jsonld", + "expect": "expand/js02-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs03", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (double)", + "purpose": "Tests expanding property with @type @json to a JSON literal (double).", + "input": "expand/js03-in.jsonld", + "expect": "expand/js03-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs04", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (double-zero)", + "purpose": "Tests expanding property with @type @json to a JSON literal (double-zero).", + "input": "expand/js04-in.jsonld", + "expect": "expand/js04-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs05", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (integer)", + "purpose": "Tests expanding property with @type @json to a JSON literal (integer).", + "input": "expand/js05-in.jsonld", + "expect": "expand/js05-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs06", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (object)", + "purpose": "Tests expanding property with @type @json to a JSON literal (object).", + "input": "expand/js06-in.jsonld", + "expect": "expand/js06-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs07", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal (array)", + "purpose": "Tests expanding property with @type @json to a JSON literal (array).", + "input": "expand/js07-in.jsonld", + "expect": "expand/js07-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs08", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal without expanding contents", + "purpose": "Tests expanding JSON literal does not expand terms inside json.", + "input": "expand/js08-in.jsonld", + "expect": "expand/js08-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs09", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal aleady in expanded form", + "purpose": "Tests expanding JSON literal in expanded form.", + "input": "expand/js09-in.jsonld", + "expect": "expand/js09-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs10", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expand JSON literal aleady in expanded form with aliased keys", + "purpose": "Tests expanding JSON literal in expanded form with aliased keys in value object.", + "input": "expand/js10-in.jsonld", + "expect": "expand/js10-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tm001", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Adds @id to object not having an @id", + "purpose": "Expansion using @container: @id", + "input": "expand/m001-in.jsonld", + "expect": "expand/m001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm002", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Retains @id in object already having an @id", + "purpose": "Expansion using @container: @id", + "input": "expand/m002-in.jsonld", + "expect": "expand/m002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm003", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Adds @type to object not having an @type", + "purpose": "Expansion using @container: @type", + "input": "expand/m003-in.jsonld", + "expect": "expand/m003-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm004", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Prepends @type in object already having an @type", + "purpose": "Expansion using @container: @type", + "input": "expand/m004-in.jsonld", + "expect": "expand/m004-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm005", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Adds expanded @id to object", + "purpose": "Expansion using @container: @id", + "input": "expand/m005-in.jsonld", + "expect": "expand/m005-out.jsonld", + "option": {"base": "http://example.org/", "processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm006", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Adds vocabulary expanded @type to object", + "purpose": "Expansion using @container: @type", + "input": "expand/m006-in.jsonld", + "expect": "expand/m006-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm007", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Adds document expanded @type to object", + "purpose": "Expansion using @container: @type", + "input": "expand/m007-in.jsonld", + "expect": "expand/m007-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm008", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "When type is in a type map", + "purpose": "scoped context on @type", + "input": "expand/m008-in.jsonld", + "expect": "expand/m008-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm009", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "language map with @none", + "purpose": "index on @language", + "input": "expand/m009-in.jsonld", + "expect": "expand/m009-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm010", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "language map with alias of @none", + "purpose": "index on @language", + "input": "expand/m010-in.jsonld", + "expect": "expand/m010-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm011", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "id map with @none", + "purpose": "index on @id", + "input": "expand/m011-in.jsonld", + "expect": "expand/m011-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm012", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "type map with alias of @none", + "purpose": "index on @type", + "input": "expand/m012-in.jsonld", + "expect": "expand/m012-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm013", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "index map with @none", + "purpose": "index on @graph and @index", + "input": "expand/m013-in.jsonld", + "expect": "expand/m013-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm014", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "index map with alias @none", + "purpose": "index on @graph and @index", + "input": "expand/m014-in.jsonld", + "expect": "expand/m014-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm015", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "index map with alias @none", + "purpose": "index on @graph and @index", + "input": "expand/m015-in.jsonld", + "expect": "expand/m015-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tm016", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "index map with alias @none", + "purpose": "index on @graph and @index", + "input": "expand/m016-in.jsonld", + "expect": "expand/m016-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn001", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands input using @nest", + "purpose": "Expansion using @nest", + "input": "expand/n001-in.jsonld", + "expect": "expand/n001-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn002", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Expands input using aliased @nest", + "purpose": "Expansion using @nest", + "input": "expand/n002-in.jsonld", + "expect": "expand/n002-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn003", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Appends nested values when property at base and nested", + "purpose": "Expansion using @nest", + "input": "expand/n003-in.jsonld", + "expect": "expand/n003-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn004", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Appends nested values from all @nest aliases in term order", + "purpose": "Expansion using @nest", + "input": "expand/n004-in.jsonld", + "expect": "expand/n004-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn005", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Nested nested containers", + "purpose": "Expansion using @nest", + "input": "expand/n005-in.jsonld", + "expect": "expand/n005-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn006", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Arrays of nested values", + "purpose": "Expansion using @nest", + "input": "expand/n006-in.jsonld", + "expect": "expand/n006-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tn007", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "A nest of arrays", + "purpose": "Expansion using @nest", + "input": "expand/n007-in.jsonld", + "expect": "expand/n007-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tp001", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@version may be specified after first context", + "purpose": "If processing mode is not set through API, it is set by the first context containing @version.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/p001-in.jsonld", + "expect": "expand/p001-out.jsonld" + }, { + "@id": "#tp002", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@version setting [1.0, 1.1, 1.0]", + "purpose": "If processing mode is not set through API, it is set by the first context containing @version.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/p002-in.jsonld", + "expect": "expand/p002-out.jsonld" + }, { + "@id": "#tp003", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@version setting [1.1, 1.0]", + "purpose": "If processing mode is not set through API, it is set by the first context containing @version.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/p003-in.jsonld", + "expect": "expand/p003-out.jsonld" + }, { + "@id": "#tp004", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@version setting [1.1, 1.0, 1.1]", + "purpose": "If processing mode is not set through API, it is set by the first context containing @version.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/p004-in.jsonld", + "expect": "expand/p004-out.jsonld" + }, { + "@id": "#tpi01", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "error if @version is not json-ld-1.1 for property-valued index", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi01-in.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tpi02", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "error if @container does not include @index for property-valued index", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi02-in.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tpi03", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "error if @index is a keyword for property-valued index", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi03-in.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tpi04", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "error if @index is not a string for property-valued index", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi04-in.jsonld", + "expect": "invalid term definition" + }, { + "@id": "#tpi05", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "error if attempting to add property to value object for property-valued index", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi05-in.jsonld", + "expect": "invalid value object" + }, { + "@id": "#tpi06", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property-valued index expands to property value, instead of @index (value)", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi06-in.jsonld", + "expect": "expand/pi06-out.jsonld" + }, { + "@id": "#tpi07", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property-valued index appends to property value, instead of @index (value)", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi07-in.jsonld", + "expect": "expand/pi07-out.jsonld" + }, { + "@id": "#tpi08", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property-valued index expands to property value, instead of @index (node)", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi08-in.jsonld", + "expect": "expand/pi08-out.jsonld" + }, { + "@id": "#tpi09", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property-valued index appends to property value, instead of @index (node)", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi09-in.jsonld", + "expect": "expand/pi09-out.jsonld" + }, { + "@id": "#tpi10", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property-valued index does not output property for @none", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi10-in.jsonld", + "expect": "expand/pi10-out.jsonld" + }, { + "@id": "#tpi11", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "property-valued index adds property to graph object", + "purpose": "Expanding index maps where index is a property.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pi11-in.jsonld", + "expect": "expand/pi11-out.jsonld" + }, { + "@id": "#tl001", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Language map with null value", + "purpose": "A language map may have a null value, which is ignored", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/l001-in.jsonld", + "expect": "expand/l001-out.jsonld" + }, { + "@id": "#tli01", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@list containing @list", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li01-in.jsonld", + "expect": "expand/li01-out.jsonld" + }, { + "@id": "#tli02", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@list containing empty @list", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li02-in.jsonld", + "expect": "expand/li02-out.jsonld" + }, { + "@id": "#tli03", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@list containing @list (with coercion)", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li03-in.jsonld", + "expect": "expand/li03-out.jsonld" + }, { + "@id": "#tli04", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@list containing empty @list (with coercion)", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li04-in.jsonld", + "expect": "expand/li04-out.jsonld" + }, { + "@id": "#tli05", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "coerced @list containing an array", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li05-in.jsonld", + "expect": "expand/li05-out.jsonld" + }, { + "@id": "#tli06", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "coerced @list containing an empty array", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li06-in.jsonld", + "expect": "expand/li06-out.jsonld" + }, { + "@id": "#tli07", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "coerced @list containing deep arrays", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li07-in.jsonld", + "expect": "expand/li07-out.jsonld" + }, { + "@id": "#tli08", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "coerced @list containing deep empty arrays", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li08-in.jsonld", + "expect": "expand/li08-out.jsonld" + }, { + "@id": "#tli09", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "coerced @list containing multiple lists", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li09-in.jsonld", + "expect": "expand/li09-out.jsonld" + }, { + "@id": "#tli10", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "coerced @list containing mixed list values", + "purpose": "List of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/li10-in.jsonld", + "expect": "expand/li10-out.jsonld" + }, { + "@id": "#tpr01", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Protect a term", + "purpose": "Check error when overriding a protected term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr01-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr02", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Set a term to not be protected", + "purpose": "A term with @protected: false is not protected.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr02-in.jsonld", + "expect": "expand/pr02-out.jsonld" + }, { + "@id": "#tpr03", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Protect all terms in context", + "purpose": "A protected context protects all term definitions.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr03-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr04", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Do not protect term with @protected: false", + "purpose": "A protected context does not protect terms with @protected: false.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr04-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr05", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Clear active context with protected terms from an embedded context", + "purpose": "The Active context be set to null from an embedded context.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr05-in.jsonld", + "expect": "invalid context nullification" + }, { + "@id": "#tpr06", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Clear active context of protected terms from a term.", + "purpose": "The Active context may be set to null from a scoped context of a term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr06-in.jsonld", + "expect": "expand/pr06-out.jsonld" + }, { + "@id": "#tpr08", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Term with protected scoped context.", + "purpose": "A scoped context can protect terms.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr08-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr09", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Attempt to redefine term in other protected context.", + "purpose": "A protected term cannot redefine another protected term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr09-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr10", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Simple protected and unprotected terms.", + "purpose": "Simple protected and unprotected terms.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr10-in.jsonld", + "expect": "expand/pr10-out.jsonld" + }, { + "@id": "#tpr11", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fail to override protected term.", + "purpose": "Fail to override protected term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr11-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr12", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Scoped context fail to override protected term.", + "purpose": "Scoped context fail to override protected term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr12-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr13", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Override unprotected term.", + "purpose": "Override unprotected term.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr13-in.jsonld", + "expect": "expand/pr13-out.jsonld" + }, { + "@id": "#tpr14", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Clear protection with null context.", + "purpose": "Clear protection with null context.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr14-in.jsonld", + "expect": "expand/pr14-out.jsonld" + }, { + "@id": "#tpr15", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Clear protection with array with null context", + "purpose": "Clear protection with array with null context", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr15-in.jsonld", + "expect": "expand/pr15-out.jsonld" + }, { + "@id": "#tpr16", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Override protected terms after null.", + "purpose": "Override protected terms after null.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr16-in.jsonld", + "expect": "expand/pr16-out.jsonld" + }, { + "@id": "#tpr17", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fail to override protected terms with type.", + "purpose": "Fail to override protected terms with type.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr17-in.jsonld", + "expect": "invalid context nullification" + }, { + "@id": "#tpr18", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fail to override protected terms with type+null+ctx.", + "purpose": "Fail to override protected terms with type+null+ctx.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr18-in.jsonld", + "expect": "invalid context nullification" + }, { + "@id": "#tpr19", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Mix of protected and unprotected terms.", + "purpose": "Mix of protected and unprotected terms.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr19-in.jsonld", + "expect": "expand/pr19-out.jsonld" + }, { + "@id": "#tpr20", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fail with mix of protected and unprotected terms with type+null+ctx.", + "purpose": "Fail with mix of protected and unprotected terms with type+null+ctx.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr20-in.jsonld", + "expect": "invalid context nullification" + }, { + "@id": "#tpr21", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fail with mix of protected and unprotected terms with type+null.", + "purpose": "Fail with mix of protected and unprotected terms with type+null.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr21-in.jsonld", + "expect": "invalid context nullification" + }, { + "@id": "#tpr22", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Check legal overriding of type-scoped protected term from nested node.", + "purpose": "Check legal overriding of type-scoped protected term from nested node.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr22-in.jsonld", + "expect": "expand/pr22-out.jsonld" + }, { + "@id": "#tpr23", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Allows redefinition of protected alias term with same definition.", + "purpose": "Allows redefinition of protected alias term with same definition.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr23-in.jsonld", + "expect": "expand/pr23-out.jsonld" + }, { + "@id": "#tpr24", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Allows redefinition of protected prefix term with same definition.", + "purpose": "Allows redefinition of protected prefix term with same definition.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr24-in.jsonld", + "expect": "expand/pr24-out.jsonld" + }, { + "@id": "#tpr25", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Allows redefinition of terms with scoped contexts using same definitions.", + "purpose": "Allows redefinition of terms with scoped contexts using same definitions.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr25-in.jsonld", + "expect": "expand/pr25-out.jsonld" + }, { + "@id": "#tpr26", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fails on redefinition of terms with scoped contexts using different definitions.", + "purpose": "Fails on redefinition of terms with scoped contexts using different definitions.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr26-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr27", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Allows redefinition of protected alias term with same definition modulo protected flag.", + "purpose": "Allows redefinition of protected alias term with same definition modulo protected flag.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr27-in.jsonld", + "expect": "expand/pr27-out.jsonld" + }, { + "@id": "#tpr28", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "Fails if trying to redefine a protected null term.", + "purpose": "A protected term with a null IRI mapping cannot be redefined.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr28-in.jsonld", + "expect": "protected term redefinition" + }, { + "@id": "#tpr29", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "Does not expand a Compact IRI using a non-prefix term.", + "purpose": "Expansion of Compact IRIs considers if the term can be used as a prefix.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/pr29-in.jsonld", + "expect": "expand/pr29-out.jsonld" + }, { + "@id": "#ttn01", + "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], + "name": "@type: @none is illegal in 1.0.", + "purpose": "@type: @none is illegal in json-ld-1.0.", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/tn01-in.jsonld", + "expect": "invalid type mapping" + }, { + "@id": "#ttn02", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "@type: @none expands strings as value objects", + "purpose": "@type: @none leaves inputs other than strings alone", + "option": {"specVersion": "json-ld-1.1"}, + "input": "expand/tn02-in.jsonld", + "expect": "expand/tn02-out.jsonld" } ] } diff --git a/core/src/test/resources/json-ld.org/expand-0001-in.jsonld b/core/src/test/resources/json-ld.org/expand/0001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0001-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0001-out.jsonld b/core/src/test/resources/json-ld.org/expand/0001-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0001-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0001-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0002-in.jsonld b/core/src/test/resources/json-ld.org/expand/0002-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0002-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0002-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0002-out.jsonld b/core/src/test/resources/json-ld.org/expand/0002-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0002-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0002-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0003-in.jsonld b/core/src/test/resources/json-ld.org/expand/0003-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0003-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0003-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0003-out.jsonld b/core/src/test/resources/json-ld.org/expand/0003-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0003-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0003-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0004-in.jsonld b/core/src/test/resources/json-ld.org/expand/0004-in.jsonld new file mode 100644 index 00000000..8499bfa0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0004-in.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, + "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"}, + "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, + "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} + }, + "@id": "http://example.org/id", + "mylist1": { "@list": [ ] }, + "mylist2": "one item", + "myset2": { "@set": [ ] }, + "myset3": [ "v1" ], + "http://example.org/list1": { "@list": [ null ] }, + "http://example.org/list2": { "@list": [ {"@value": null} ] }, + "http://example.org/set1": { "@set": [ ] }, + "http://example.org/set2": { "@set": [ null ] }, + "http://example.org/set3": [ ], + "http://example.org/set4": [ null ], + "http://example.org/set5": "one item", + "http://example.org/property": { "@list": "one item" } +} diff --git a/core/src/test/resources/json-ld.org/expand/0004-out.jsonld b/core/src/test/resources/json-ld.org/expand/0004-out.jsonld new file mode 100644 index 00000000..2911bd4a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0004-out.jsonld @@ -0,0 +1,15 @@ +[{ + "@id": "http://example.org/id", + "http://example.com/mylist1": [ { "@list": [ ] } ], + "http://example.com/mylist2": [ { "@list": [ {"@value": "one item"} ] } ], + "http://example.com/myset2": [ ], + "http://example.com/myset3": [ {"@value": "v1"} ], + "http://example.org/list1": [ { "@list": [ ] } ], + "http://example.org/list2": [ { "@list": [ ] } ], + "http://example.org/set1": [ ], + "http://example.org/set2": [ ], + "http://example.org/set3": [ ], + "http://example.org/set4": [ ], + "http://example.org/set5": [ {"@value": "one item"} ], + "http://example.org/property": [ { "@list": [ {"@value": "one item"} ] } ] +}] diff --git a/core/src/test/resources/json-ld.org/expand-0005-in.jsonld b/core/src/test/resources/json-ld.org/expand/0005-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0005-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0005-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0005-out.jsonld b/core/src/test/resources/json-ld.org/expand/0005-out.jsonld new file mode 100644 index 00000000..a273f90f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0005-out.jsonld @@ -0,0 +1,18 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/expand/0005-in.jsonld#me", + "http://xmlns.com/foaf/0.1/knows": [ + { + "@id": "http://example.com/bob#me", + "http://xmlns.com/foaf/0.1/name": [{"@value": "Bob"}], + "http://xmlns.com/foaf/0.1/homepage": [{ + "@id": "http://example.com/bob" + }] + }, { + "@id": "http://example.com/alice#me", + "http://xmlns.com/foaf/0.1/name": [{"@value": "Alice"}], + "http://xmlns.com/foaf/0.1/homepage": [{ + "@id": "http://example.com/alice" + }] + } + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0006-in.jsonld b/core/src/test/resources/json-ld.org/expand/0006-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0006-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0006-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0006-out.jsonld b/core/src/test/resources/json-ld.org/expand/0006-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0006-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0006-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0007-in.jsonld b/core/src/test/resources/json-ld.org/expand/0007-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0007-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0007-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0007-out.jsonld b/core/src/test/resources/json-ld.org/expand/0007-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0007-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0007-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0008-in.jsonld b/core/src/test/resources/json-ld.org/expand/0008-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0008-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0008-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0008-out.jsonld b/core/src/test/resources/json-ld.org/expand/0008-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0008-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0008-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0009-in.jsonld b/core/src/test/resources/json-ld.org/expand/0009-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0009-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0009-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0009-out.jsonld b/core/src/test/resources/json-ld.org/expand/0009-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0009-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0009-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0010-in.jsonld b/core/src/test/resources/json-ld.org/expand/0010-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0010-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0010-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0010-out.jsonld b/core/src/test/resources/json-ld.org/expand/0010-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0010-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0010-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0011-in.jsonld b/core/src/test/resources/json-ld.org/expand/0011-in.jsonld new file mode 100644 index 00000000..fa90d97d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0011-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:contains": { + "@type": "@id" + }, + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "@id": "http://example.org/test#book", + "dc11:title": "Title", + "ex:contains": "http://example.org/test#chapter" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0011-out.jsonld b/core/src/test/resources/json-ld.org/expand/0011-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0011-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0011-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0012-in.jsonld b/core/src/test/resources/json-ld.org/expand/0012-in.jsonld new file mode 100644 index 00000000..ebda5732 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0012-in.jsonld @@ -0,0 +1,39 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:authored": { + "@type": "@id" + }, + "ex:contains": { + "@type": "@id" + }, + "foaf": "http://xmlns.com/foaf/0.1/", + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "@graph": [ + { + "@id": "http://example.org/test#chapter", + "dc11:description": "Fun", + "dc11:title": "Chapter One" + }, + { + "@id": "http://example.org/test#jane", + "ex:authored": "http://example.org/test#chapter", + "foaf:name": "Jane" + }, + { + "@id": "http://example.org/test#john", + "foaf:name": "John" + }, + { + "@id": "http://example.org/test#library", + "ex:contains": { + "@id": "http://example.org/test#book", + "dc11:contributor": "Writer", + "dc11:title": "My Book", + "ex:contains": "http://example.org/test#chapter" + } + } + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0012-out.jsonld b/core/src/test/resources/json-ld.org/expand/0012-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0012-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0012-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0013-in.jsonld b/core/src/test/resources/json-ld.org/expand/0013-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0013-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0013-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0013-out.jsonld b/core/src/test/resources/json-ld.org/expand/0013-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0013-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0013-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0014-in.jsonld b/core/src/test/resources/json-ld.org/expand/0014-in.jsonld new file mode 100644 index 00000000..f10b39a5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0014-in.jsonld @@ -0,0 +1,50 @@ +{ + "@context": { + "ex": "http://example.org/test#", + "property1": { + "@id": "http://example.org/test#property1", + "@type": "@id" + }, + "property2": { + "@id": "ex:property2", + "@type": "@id" + }, + "uri": "@id", + "set": "@set", + "value": "@value", + "type": "@type", + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "property1": { + "uri": "ex:example2", + "http://example.org/test#property4": "foo" + }, + "property2": "http://example.org/test#example3", + "http://example.org/test#property3": { + "uri": "http://example.org/test#example4" + }, + "ex:property4": { + "uri": "ex:example4", + "ex:property5": [ + { + "set": [ + { + "value": "2012-03-31", + "type": "xsd:date" + } + ] + } + ] + }, + "ex:property6": [ + { + "set": [ + { + "value": null, + "type": "xsd:date" + } + ] + } + ], + "uri": "http://example.org/test#example1" +} diff --git a/core/src/test/resources/json-ld.org/expand-0014-out.jsonld b/core/src/test/resources/json-ld.org/expand/0014-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0014-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0014-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0015-in.jsonld b/core/src/test/resources/json-ld.org/expand/0015-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0015-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0015-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0015-out.jsonld b/core/src/test/resources/json-ld.org/expand/0015-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0015-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0015-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0016-in.jsonld b/core/src/test/resources/json-ld.org/expand/0016-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0016-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0016-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0016-out.jsonld b/core/src/test/resources/json-ld.org/expand/0016-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0016-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0016-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0017-in.jsonld b/core/src/test/resources/json-ld.org/expand/0017-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0017-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0017-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0017-out.jsonld b/core/src/test/resources/json-ld.org/expand/0017-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0017-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0017-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0018-in.jsonld b/core/src/test/resources/json-ld.org/expand/0018-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0018-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0018-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0018-out.jsonld b/core/src/test/resources/json-ld.org/expand/0018-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0018-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0018-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0019-in.jsonld b/core/src/test/resources/json-ld.org/expand/0019-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0019-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0019-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0019-out.jsonld b/core/src/test/resources/json-ld.org/expand/0019-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0019-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0019-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0020-in.jsonld b/core/src/test/resources/json-ld.org/expand/0020-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0020-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0020-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0020-out.jsonld b/core/src/test/resources/json-ld.org/expand/0020-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0020-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0020-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0021-in.jsonld b/core/src/test/resources/json-ld.org/expand/0021-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0021-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0021-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0021-out.jsonld b/core/src/test/resources/json-ld.org/expand/0021-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0021-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0021-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0022-in.jsonld b/core/src/test/resources/json-ld.org/expand/0022-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0022-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0022-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0022-out.jsonld b/core/src/test/resources/json-ld.org/expand/0022-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0022-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0022-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0023-in.jsonld b/core/src/test/resources/json-ld.org/expand/0023-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0023-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0023-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0023-out.jsonld b/core/src/test/resources/json-ld.org/expand/0023-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0023-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0023-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0024-in.jsonld b/core/src/test/resources/json-ld.org/expand/0024-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0024-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0024-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0024-out.jsonld b/core/src/test/resources/json-ld.org/expand/0024-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0024-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0024-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0025-in.jsonld b/core/src/test/resources/json-ld.org/expand/0025-in.jsonld new file mode 100644 index 00000000..2cd0d48e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0025-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "foo": "http://example.com/foo/", + "foo:bar": "http://example.com/foo/bar", + "bar": {"@id": "foo:bar", "@type": "@id"}, + "_": "http://example.com/underscore/" + }, + "@type": [ "foo", "foo:bar", "_" ] +} diff --git a/core/src/test/resources/json-ld.org/expand/0025-out.jsonld b/core/src/test/resources/json-ld.org/expand/0025-out.jsonld new file mode 100644 index 00000000..eea75af1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0025-out.jsonld @@ -0,0 +1,7 @@ +[{ + "@type": [ + "http://example.com/foo/", + "http://example.com/foo/bar", + "http://example.com/underscore/" + ] +}] diff --git a/core/src/test/resources/json-ld.org/expand-0026-in.jsonld b/core/src/test/resources/json-ld.org/expand/0026-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0026-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0026-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0026-out.jsonld b/core/src/test/resources/json-ld.org/expand/0026-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0026-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0026-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0027-in.jsonld b/core/src/test/resources/json-ld.org/expand/0027-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0027-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0027-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0027-out.jsonld b/core/src/test/resources/json-ld.org/expand/0027-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0027-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0027-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0028-in.jsonld b/core/src/test/resources/json-ld.org/expand/0028-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0028-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0028-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0028-out.jsonld b/core/src/test/resources/json-ld.org/expand/0028-out.jsonld new file mode 100644 index 00000000..bd4e612f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0028-out.jsonld @@ -0,0 +1,23 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/example1", + "@type": [ "http://example.org/vocab#test" ], + "http://example.org/vocab#date": [ + { + "@value": "2011-01-25T00:00:00Z", + "@type": "http://example.org/vocab#dateTime" + } + ], + "http://example.org/vocab#embed": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/example2", + "http://example.org/vocab#expandedDate": [ + { + "@value": "2012-08-01T00:00:00Z", + "@type": "http://example.org/vocab#dateTime" + } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/0029-in.jsonld b/core/src/test/resources/json-ld.org/expand/0029-in.jsonld new file mode 100644 index 00000000..dd425bda --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0029-in.jsonld @@ -0,0 +1,32 @@ +{ + "@context": { + "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } + }, + "@id": "relativeIris", + "@type": [ + "link", + "#fragment-works", + "?query=works", + "./", + "../", + "../parent", + "../../../parent-parent-eq-root", + "../../../../../still-root", + "../.././.././../../too-many-dots", + "/absolute", + "//example.org/scheme-relative" + ], + "links": [ + "link", + "#fragment-works", + "?query=works", + "./", + "../", + "../parent", + "../../../parent-parent-eq-root", + "./../../../useless/../../../still-root", + "../.././.././../../too-many-dots", + "/absolute", + "//example.org/scheme-relative" + ] +} diff --git a/core/src/test/resources/json-ld.org/expand/0029-out.jsonld b/core/src/test/resources/json-ld.org/expand/0029-out.jsonld new file mode 100644 index 00000000..641cc79f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0029-out.jsonld @@ -0,0 +1,35 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/relativeIris", + "@type": [ + "https://w3c.github.io/json-ld-api/tests/expand/link", + "https://w3c.github.io/json-ld-api/tests/expand/0029-in.jsonld#fragment-works", + "https://w3c.github.io/json-ld-api/tests/expand/0029-in.jsonld?query=works", + "https://w3c.github.io/json-ld-api/tests/expand/", + "https://w3c.github.io/json-ld-api/tests/", + "https://w3c.github.io/json-ld-api/tests/parent", + "https://w3c.github.io/parent-parent-eq-root", + "https://w3c.github.io/still-root", + "https://w3c.github.io/too-many-dots", + "https://w3c.github.io/absolute", + "https://example.org/scheme-relative" + ], + "http://www.example.com/link": [ + { + "@list": [ + {"@id": "https://w3c.github.io/json-ld-api/tests/expand/link"}, + {"@id": "https://w3c.github.io/json-ld-api/tests/expand/0029-in.jsonld#fragment-works"}, + {"@id": "https://w3c.github.io/json-ld-api/tests/expand/0029-in.jsonld?query=works"}, + {"@id": "https://w3c.github.io/json-ld-api/tests/expand/"}, + {"@id": "https://w3c.github.io/json-ld-api/tests/"}, + {"@id": "https://w3c.github.io/json-ld-api/tests/parent"}, + {"@id": "https://w3c.github.io/parent-parent-eq-root"}, + {"@id": "https://w3c.github.io/still-root"}, + {"@id": "https://w3c.github.io/too-many-dots"}, + {"@id": "https://w3c.github.io/absolute"}, + {"@id": "https://example.org/scheme-relative"} + ] + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand-0030-in.jsonld b/core/src/test/resources/json-ld.org/expand/0030-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0030-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0030-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0030-out.jsonld b/core/src/test/resources/json-ld.org/expand/0030-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0030-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0030-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0031-in.jsonld b/core/src/test/resources/json-ld.org/expand/0031-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0031-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0031-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0031-out.jsonld b/core/src/test/resources/json-ld.org/expand/0031-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0031-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0031-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0032-in.jsonld b/core/src/test/resources/json-ld.org/expand/0032-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0032-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0032-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0032-out.jsonld b/core/src/test/resources/json-ld.org/expand/0032-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0032-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0032-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0033-in.jsonld b/core/src/test/resources/json-ld.org/expand/0033-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0033-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0033-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0033-out.jsonld b/core/src/test/resources/json-ld.org/expand/0033-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0033-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0033-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0034-in.jsonld b/core/src/test/resources/json-ld.org/expand/0034-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0034-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0034-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0034-out.jsonld b/core/src/test/resources/json-ld.org/expand/0034-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0034-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0034-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0035-in.jsonld b/core/src/test/resources/json-ld.org/expand/0035-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0035-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0035-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0035-out.jsonld b/core/src/test/resources/json-ld.org/expand/0035-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0035-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0035-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0036-in.jsonld b/core/src/test/resources/json-ld.org/expand/0036-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0036-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0036-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0036-out.jsonld b/core/src/test/resources/json-ld.org/expand/0036-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0036-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0036-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0037-in.jsonld b/core/src/test/resources/json-ld.org/expand/0037-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0037-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0037-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0037-out.jsonld b/core/src/test/resources/json-ld.org/expand/0037-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0037-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0037-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0038-in.jsonld b/core/src/test/resources/json-ld.org/expand/0038-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0038-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0038-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0038-out.jsonld b/core/src/test/resources/json-ld.org/expand/0038-out.jsonld new file mode 100644 index 00000000..328591b9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0038-out.jsonld @@ -0,0 +1,56 @@ +[ + { + "@id": "_:term", + "@type": [ + "_:term" + ], + "_:term": [ + { + "@id": "_:term", + "@type": [ + "_:term" + ] + }, + { + "@id": "_:Bx", + "_:term": [ + { + "@value": "term" + } + ] + }, + { + "@value": "plain value" + }, + { + "@id": "_:term" + }, + { + "@id": "_:term", + "@type": [ + "_:term" + ] + }, + { + "@id": "_:Cx", + "_:term": [ + { + "@value": "termId" + } + ] + }, + { + "@id": "_:termAppendedToBlankNode" + }, + { + "@id": "_:termAppendedToBlankNode" + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/relativeIri" + }, + { + "@id": "_:term" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0039-in.jsonld b/core/src/test/resources/json-ld.org/expand/0039-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0039-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0039-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0039-out.jsonld b/core/src/test/resources/json-ld.org/expand/0039-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0039-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0039-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0040-in.jsonld b/core/src/test/resources/json-ld.org/expand/0040-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0040-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0040-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0040-out.jsonld b/core/src/test/resources/json-ld.org/expand/0040-out.jsonld new file mode 100644 index 00000000..ce40ea19 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0040-out.jsonld @@ -0,0 +1,23 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/label": + [ + { + "@value": "The Queen" + } + ], + "http://example.com/vocab/index": + [ + { + "@value": "No" + }, + { + "@value": "indexes" + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/asTheValueIsntAnObject" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0041-in.jsonld b/core/src/test/resources/json-ld.org/expand/0041-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0041-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0041-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0041-out.jsonld b/core/src/test/resources/json-ld.org/expand/0041-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0041-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0041-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0042-in.jsonld b/core/src/test/resources/json-ld.org/expand/0042-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0042-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0042-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0042-out.jsonld b/core/src/test/resources/json-ld.org/expand/0042-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0042-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0042-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0043-in.jsonld b/core/src/test/resources/json-ld.org/expand/0043-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0043-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0043-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0043-out.jsonld b/core/src/test/resources/json-ld.org/expand/0043-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0043-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0043-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0044-in.jsonld b/core/src/test/resources/json-ld.org/expand/0044-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0044-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0044-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0044-out.jsonld b/core/src/test/resources/json-ld.org/expand/0044-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0044-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0044-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0045-in.jsonld b/core/src/test/resources/json-ld.org/expand/0045-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0045-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0045-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0045-out.jsonld b/core/src/test/resources/json-ld.org/expand/0045-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0045-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0045-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0046-in.jsonld b/core/src/test/resources/json-ld.org/expand/0046-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0046-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0046-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0046-out.jsonld b/core/src/test/resources/json-ld.org/expand/0046-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0046-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0046-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0047-in.jsonld b/core/src/test/resources/json-ld.org/expand/0047-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0047-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0047-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0047-out.jsonld b/core/src/test/resources/json-ld.org/expand/0047-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0047-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0047-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0048-in.jsonld b/core/src/test/resources/json-ld.org/expand/0048-in.jsonld new file mode 100644 index 00000000..5854b8a0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0048-in.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "term": "http://example.com/terms-are-not-considered-in-id", + "compact-iris": "http://example.com/compact-iris#", + "property": "http://example.com/property", + "@vocab": "http://example.org/vocab-is-not-considered-for-id" + }, + "@id": "term", + "property": [ + { + "@id": "compact-iris:are-considered", + "property": "@id supports the following values: relative, absolute, and compact IRIs" + }, + { + "@id": "../parent-node", + "property": "relative IRIs get resolved against the document's base IRI" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/expand/0048-out.jsonld b/core/src/test/resources/json-ld.org/expand/0048-out.jsonld new file mode 100644 index 00000000..da0a5bac --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0048-out.jsonld @@ -0,0 +1,19 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/term", + "http://example.com/property": [ + { + "@id": "http://example.com/compact-iris#are-considered", + "http://example.com/property": [ + { "@value": "@id supports the following values: relative, absolute, and compact IRIs" } + ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/parent-node", + "http://example.com/property": [ + { "@value": "relative IRIs get resolved against the document's base IRI" } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0049-in.jsonld b/core/src/test/resources/json-ld.org/expand/0049-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0049-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0049-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0049-out.jsonld b/core/src/test/resources/json-ld.org/expand/0049-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0049-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0049-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0050-in.jsonld b/core/src/test/resources/json-ld.org/expand/0050-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0050-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0050-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0050-out.jsonld b/core/src/test/resources/json-ld.org/expand/0050-out.jsonld new file mode 100644 index 00000000..adc001e3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0050-out.jsonld @@ -0,0 +1,6 @@ +[ + { + "http://example.com/issue/": [ { "@id": "https://w3c.github.io/issue/1" } ], + "http://example.com/issue/raisedBy": [ { "@value": "Markus" } ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0051-in.jsonld b/core/src/test/resources/json-ld.org/expand/0051-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0051-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0051-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0051-out.jsonld b/core/src/test/resources/json-ld.org/expand/0051-out.jsonld new file mode 100644 index 00000000..c0a226fe --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0051-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.com/property": [{ + "@value": "ok" + }], + "@id": "https://w3c.github.io/issue/1" +}] diff --git a/core/src/test/resources/json-ld.org/expand-0052-in.jsonld b/core/src/test/resources/json-ld.org/expand/0052-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0052-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0052-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0052-out.jsonld b/core/src/test/resources/json-ld.org/expand/0052-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0052-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0052-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0053-in.jsonld b/core/src/test/resources/json-ld.org/expand/0053-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0053-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0053-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0053-out.jsonld b/core/src/test/resources/json-ld.org/expand/0053-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0053-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0053-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0054-in.jsonld b/core/src/test/resources/json-ld.org/expand/0054-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0054-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0054-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0054-out.jsonld b/core/src/test/resources/json-ld.org/expand/0054-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0054-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0054-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0055-in.jsonld b/core/src/test/resources/json-ld.org/expand/0055-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0055-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0055-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0055-out.jsonld b/core/src/test/resources/json-ld.org/expand/0055-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0055-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0055-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0056-in.jsonld b/core/src/test/resources/json-ld.org/expand/0056-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0056-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0056-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0056-out.jsonld b/core/src/test/resources/json-ld.org/expand/0056-out.jsonld new file mode 100644 index 00000000..d7e7a6d5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0056-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "@id": "http://me.markus-lanthaler.com/", + "http://xmlns.com/foaf/0.1/homepage": [ { "@id": "http://www.markus-lanthaler.com/" } ], + "http://example.com/link": [ { "@id": "https://w3c.github.io/json-ld-api/tests/expand/relative-iri" } ], + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0057-in.jsonld b/core/src/test/resources/json-ld.org/expand/0057-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0057-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0057-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0057-out.jsonld b/core/src/test/resources/json-ld.org/expand/0057-out.jsonld new file mode 100644 index 00000000..71ab8336 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0057-out.jsonld @@ -0,0 +1,5 @@ +[ + { + "http://example.org/term": [ { "@id": "https://w3c.github.io/json-ld-api/tests/expand/not-a-term-thus-a-relative-IRI" } ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0058-in.jsonld b/core/src/test/resources/json-ld.org/expand/0058-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0058-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0058-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0058-out.jsonld b/core/src/test/resources/json-ld.org/expand/0058-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0058-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0058-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0059-in.jsonld b/core/src/test/resources/json-ld.org/expand/0059-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0059-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0059-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0059-out.jsonld b/core/src/test/resources/json-ld.org/expand/0059-out.jsonld new file mode 100644 index 00000000..a0365cde --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0059-out.jsonld @@ -0,0 +1,13 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/example-with-vocab", + "@type": [ "http://example.org/vocab#vocab-prefixed" ], + "http://example.org/vocab#embed": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/example-vocab-reset", + "@type": [ "https://w3c.github.io/json-ld-api/tests/expand/document-relative" ] + } + ], + "http://example.org/vocab#property": [ { "@value": "property expanded using @vocab" } ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0060-in.jsonld b/core/src/test/resources/json-ld.org/expand/0060-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0060-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0060-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0060-out.jsonld b/core/src/test/resources/json-ld.org/expand/0060-out.jsonld new file mode 100644 index 00000000..4b387d3e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0060-out.jsonld @@ -0,0 +1,23 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/document-relative", + "@type": [ "https://w3c.github.io/json-ld-api/tests/expand/0060-in.jsonld#document-relative" ], + "http://example.com/vocab#property": [ + { + "@id": "http://example.org/document-base-overwritten", + "@type": [ "http://example.org/test/#document-base-overwritten" ], + "http://example.com/vocab#property": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/document-relative", + "@type": [ "https://w3c.github.io/json-ld-api/tests/expand/0060-in.jsonld#document-relative" ] + }, + { + "@id": "../document-relative", + "@type": [ "#document-relative" ], + "http://example.com/vocab#property": [ { "@value": "only @base is cleared" } ] + } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0061-in.jsonld b/core/src/test/resources/json-ld.org/expand/0061-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0061-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0061-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0061-out.jsonld b/core/src/test/resources/json-ld.org/expand/0061-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0061-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0061-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0062-in.jsonld b/core/src/test/resources/json-ld.org/expand/0062-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0062-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0062-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0062-out.jsonld b/core/src/test/resources/json-ld.org/expand/0062-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0062-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0062-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0063-in.jsonld b/core/src/test/resources/json-ld.org/expand/0063-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0063-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0063-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0063-out.jsonld b/core/src/test/resources/json-ld.org/expand/0063-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0063-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0063-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0064-in.jsonld b/core/src/test/resources/json-ld.org/expand/0064-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0064-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0064-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0064-out.jsonld b/core/src/test/resources/json-ld.org/expand/0064-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0064-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0064-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0065-in.jsonld b/core/src/test/resources/json-ld.org/expand/0065-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0065-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0065-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0065-out.jsonld b/core/src/test/resources/json-ld.org/expand/0065-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0065-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0065-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0066-in.jsonld b/core/src/test/resources/json-ld.org/expand/0066-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0066-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0066-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0066-out.jsonld b/core/src/test/resources/json-ld.org/expand/0066-out.jsonld new file mode 100644 index 00000000..4db1a0e8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0066-out.jsonld @@ -0,0 +1,20 @@ +[ + { + "@id": "http://example.com/people/markus", + "@reverse": { + "http://xmlns.com/foaf/0.1/knows": [ + { + "@id": "http://example.com/people/dave", + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ] + } + ], + "http://example.com/vocab/noTerm": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/relative-node", + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Compact keys using @vocab" } ] + } + ] + }, + "http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand-0067-in.jsonld b/core/src/test/resources/json-ld.org/expand/0067-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0067-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0067-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0067-out.jsonld b/core/src/test/resources/json-ld.org/expand/0067-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0067-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0067-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0068-in.jsonld b/core/src/test/resources/json-ld.org/expand/0068-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0068-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0068-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0068-out.jsonld b/core/src/test/resources/json-ld.org/expand/0068-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0068-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0068-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0069-in.jsonld b/core/src/test/resources/json-ld.org/expand/0069-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0069-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0069-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0069-out.jsonld b/core/src/test/resources/json-ld.org/expand/0069-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0069-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0069-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0070-in.jsonld b/core/src/test/resources/json-ld.org/expand/0070-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0070-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0070-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0070-out.jsonld b/core/src/test/resources/json-ld.org/expand/0070-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0070-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0070-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0071-in.jsonld b/core/src/test/resources/json-ld.org/expand/0071-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0071-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0071-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0071-out.jsonld b/core/src/test/resources/json-ld.org/expand/0071-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0071-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0071-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0072-in.jsonld b/core/src/test/resources/json-ld.org/expand/0072-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0072-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0072-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0072-out.jsonld b/core/src/test/resources/json-ld.org/expand/0072-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0072-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0072-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0073-in.jsonld b/core/src/test/resources/json-ld.org/expand/0073-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0073-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0073-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0073-out.jsonld b/core/src/test/resources/json-ld.org/expand/0073-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0073-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0073-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0074-in.jsonld b/core/src/test/resources/json-ld.org/expand/0074-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0074-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0074-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0074-out.jsonld b/core/src/test/resources/json-ld.org/expand/0074-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0074-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0074-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0075-in.jsonld b/core/src/test/resources/json-ld.org/expand/0075-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0075-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0075-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0075-out.jsonld b/core/src/test/resources/json-ld.org/expand/0075-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0075-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0075-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0076-in.jsonld b/core/src/test/resources/json-ld.org/expand/0076-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0076-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0076-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0076-out.jsonld b/core/src/test/resources/json-ld.org/expand/0076-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0076-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0076-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0077-context.jsonld b/core/src/test/resources/json-ld.org/expand/0077-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0077-context.jsonld rename to core/src/test/resources/json-ld.org/expand/0077-context.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0077-in.jsonld b/core/src/test/resources/json-ld.org/expand/0077-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0077-in.jsonld rename to core/src/test/resources/json-ld.org/expand/0077-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0077-out.jsonld b/core/src/test/resources/json-ld.org/expand/0077-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0077-out.jsonld rename to core/src/test/resources/json-ld.org/expand/0077-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/0078-in.jsonld b/core/src/test/resources/json-ld.org/expand/0078-in.jsonld new file mode 100644 index 00000000..0a0cf729 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0078-in.jsonld @@ -0,0 +1,29 @@ +{ + "@context": { + "name": "http://example.com/vocab#name", + "children": { "@reverse": "http://example.com/vocab#parent" }, + "pets": { "@reverse": "http://example.com/vocab#owner" } + }, + "@id": "#homer", + "name": "Homer", + "children": [ + { + "@id": "#bart", + "name": "Bart" + }, + { + "@id": "#lisa", + "name": "Lisa" + } + ], + "pets": [ + { + "@id": "#snowball-ii", + "name": "Snowball II" + }, + { + "@id": "#santas-little-helper", + "name": "Santa's Little Helper" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/expand/0078-out.jsonld b/core/src/test/resources/json-ld.org/expand/0078-out.jsonld new file mode 100644 index 00000000..0c3a9e6b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0078-out.jsonld @@ -0,0 +1,26 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#homer", + "@reverse": { + "http://example.com/vocab#parent": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#bart", + "http://example.com/vocab#name": [ { "@value": "Bart" } ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#lisa", + "http://example.com/vocab#name": [ { "@value": "Lisa" } ] + } + ], + "http://example.com/vocab#owner": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#snowball-ii", + "http://example.com/vocab#name": [ { "@value": "Snowball II" } ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/expand/0078-in.jsonld#santas-little-helper", + "http://example.com/vocab#name": [ { "@value": "Santa's Little Helper" } ] + } + ] + }, + "http://example.com/vocab#name": [ { "@value": "Homer" } ] +}] diff --git a/core/src/test/resources/json-ld.org/expand/0079-in.jsonld b/core/src/test/resources/json-ld.org/expand/0079-in.jsonld new file mode 100644 index 00000000..8514ced2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0079-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": { + "value": "x" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/0079-out.jsonld b/core/src/test/resources/json-ld.org/expand/0079-out.jsonld new file mode 100644 index 00000000..37166247 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0079-out.jsonld @@ -0,0 +1,9 @@ +[{ + "foo:input": [{ + "@graph": [{ + "foo:value": [{ + "@value": "x" + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/0080-in.jsonld b/core/src/test/resources/json-ld.org/expand/0080-in.jsonld new file mode 100644 index 00000000..098f8684 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0080-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }] +} diff --git a/core/src/test/resources/json-ld.org/expand/0080-out.jsonld b/core/src/test/resources/json-ld.org/expand/0080-out.jsonld new file mode 100644 index 00000000..37166247 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0080-out.jsonld @@ -0,0 +1,9 @@ +[{ + "foo:input": [{ + "@graph": [{ + "foo:value": [{ + "@value": "x" + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/0081-in.jsonld b/core/src/test/resources/json-ld.org/expand/0081-in.jsonld new file mode 100644 index 00000000..d1742979 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0081-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": { + "@graph": { + "value": "x" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0081-out.jsonld b/core/src/test/resources/json-ld.org/expand/0081-out.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0081-out.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0082-in.jsonld b/core/src/test/resources/json-ld.org/expand/0082-in.jsonld new file mode 100644 index 00000000..83d3182b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0082-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0082-out.jsonld b/core/src/test/resources/json-ld.org/expand/0082-out.jsonld new file mode 100644 index 00000000..dfc5b0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0082-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0083-in.jsonld b/core/src/test/resources/json-ld.org/expand/0083-in.jsonld new file mode 100644 index 00000000..71f8a50f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0083-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + }, + "input": { + "g1": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0083-out.jsonld b/core/src/test/resources/json-ld.org/expand/0083-out.jsonld new file mode 100644 index 00000000..dfc5b0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0083-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0084-in.jsonld b/core/src/test/resources/json-ld.org/expand/0084-in.jsonld new file mode 100644 index 00000000..0026a778 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0084-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": { + "@graph": { + "value": "x" + } + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0084-out.jsonld b/core/src/test/resources/json-ld.org/expand/0084-out.jsonld new file mode 100644 index 00000000..dfc5b0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0084-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0085-in.jsonld b/core/src/test/resources/json-ld.org/expand/0085-in.jsonld new file mode 100644 index 00000000..3cd17bc2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0085-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0085-out.jsonld b/core/src/test/resources/json-ld.org/expand/0085-out.jsonld new file mode 100644 index 00000000..7cb99fca --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0085-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0086-in.jsonld b/core/src/test/resources/json-ld.org/expand/0086-in.jsonld new file mode 100644 index 00000000..27ea6de7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0086-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + }, + "input": { + "http://example.com/g1": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0086-out.jsonld b/core/src/test/resources/json-ld.org/expand/0086-out.jsonld new file mode 100644 index 00000000..7cb99fca --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0086-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0087-in.jsonld b/core/src/test/resources/json-ld.org/expand/0087-in.jsonld new file mode 100644 index 00000000..aa994f30 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0087-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": { + "@graph": { + "value": "x" + } + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0087-out.jsonld b/core/src/test/resources/json-ld.org/expand/0087-out.jsonld new file mode 100644 index 00000000..7cb99fca --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0087-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0088-in.jsonld b/core/src/test/resources/json-ld.org/expand/0088-in.jsonld new file mode 100644 index 00000000..c0c20a1a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0088-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "@base": "http://example.com/", + "coerceId": {"@type": "@id"}, + "coerceVocab": {"@type": "@vocab"} + }, + "coerceDefault": ["string", true, false, 0, 1], + "coerceId": ["string", true, false, 0, 1], + "coerceVocab": ["string", true, false, 0, 1] +} diff --git a/core/src/test/resources/json-ld.org/expand/0088-out.jsonld b/core/src/test/resources/json-ld.org/expand/0088-out.jsonld new file mode 100644 index 00000000..650d292d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0088-out.jsonld @@ -0,0 +1,25 @@ +[ + { + "http://example.org/coerceDefault": [ + {"@value": "string"}, + {"@value": true}, + {"@value": false}, + {"@value": 0}, + {"@value": 1} + ], + "http://example.org/coerceId": [ + {"@id": "http://example.com/string"}, + {"@value": true}, + {"@value": false}, + {"@value": 0}, + {"@value": 1} + ], + "http://example.org/coerceVocab": [ + {"@id": "http://example.org/string"}, + {"@value": true}, + {"@value": false}, + {"@value": 0}, + {"@value": 1} + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/0089-in.jsonld b/core/src/test/resources/json-ld.org/expand/0089-in.jsonld new file mode 100644 index 00000000..7a6dcd8d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0089-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@base": "" + }, + "@id": "relative-iri", + "http://prop": "value" +} diff --git a/core/src/test/resources/json-ld.org/expand/0089-out.jsonld b/core/src/test/resources/json-ld.org/expand/0089-out.jsonld new file mode 100644 index 00000000..9e0896bc --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0089-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example/base/relative-iri", + "http://prop": [{"@value": "value"}] +}] diff --git a/core/src/test/resources/json-ld.org/expand/0090-in.jsonld b/core/src/test/resources/json-ld.org/expand/0090-in.jsonld new file mode 100644 index 00000000..0853f89e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0090-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@base": ".." + }, + "@id": "relative-iri", + "http://prop": "value" +} diff --git a/core/src/test/resources/json-ld.org/expand/0090-out.jsonld b/core/src/test/resources/json-ld.org/expand/0090-out.jsonld new file mode 100644 index 00000000..29938598 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0090-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example/relative-iri", + "http://prop": [{"@value": "value"}] +}] diff --git a/core/src/test/resources/json-ld.org/expand/0091-in.jsonld b/core/src/test/resources/json-ld.org/expand/0091-in.jsonld new file mode 100644 index 00000000..bad0f06b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0091-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": [{ + "@base": "http://foo.bar/./baz/" + }, { + "@base": "example/" + }], + "@id": "relative-iri", + "http://prop": "value" +} diff --git a/core/src/test/resources/json-ld.org/expand/0091-out.jsonld b/core/src/test/resources/json-ld.org/expand/0091-out.jsonld new file mode 100644 index 00000000..638d6ee7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0091-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://foo.bar/baz/example/relative-iri", + "http://prop": [{"@value": "value"}] +}] diff --git a/core/src/test/resources/json-ld.org/expand/0092-in.jsonld b/core/src/test/resources/json-ld.org/expand/0092-in.jsonld new file mode 100644 index 00000000..d7ed55e1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0092-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@base": "http://example.com/some/deep/directory/and/file/", + "@vocab": "" + }, + "@id": "relativePropertyIris", + "link": "link", + "#fragment-works": "#fragment-works", + "?query=works": "?query=works", + "./": "./", + "../": "../", + "../parent": "../parent", + "../../parent-parent-eq-root": "../../parent-parent-eq-root", + "../../../../../still-root": "../../../../../still-root", + "../.././.././../../too-many-dots": "../.././.././../../too-many-dots", + "/absolute": "/absolute", + "//example.org/scheme-relative": "//example.org/scheme-relative" +} diff --git a/core/src/test/resources/json-ld.org/expand/0092-out.jsonld b/core/src/test/resources/json-ld.org/expand/0092-out.jsonld new file mode 100644 index 00000000..a8540122 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0092-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "@id": "http://example.com/some/deep/directory/and/file/relativePropertyIris", + "http://example.com/some/deep/directory/and/file/#fragment-works": [{"@value": "#fragment-works"}], + "http://example.com/some/deep/directory/and/file/../": [{"@value": "../"}], + "http://example.com/some/deep/directory/and/file/../../../../../still-root": [{"@value": "../../../../../still-root"}], + "http://example.com/some/deep/directory/and/file/../.././.././../../too-many-dots": [{"@value": "../.././.././../../too-many-dots"}], + "http://example.com/some/deep/directory/and/file/../../parent-parent-eq-root": [{"@value": "../../parent-parent-eq-root"}], + "http://example.com/some/deep/directory/and/file/../parent": [{"@value": "../parent"}], + "http://example.com/some/deep/directory/and/file/./": [{"@value": "./"}], + "http://example.com/some/deep/directory/and/file///example.org/scheme-relative": [{"@value": "//example.org/scheme-relative"}], + "http://example.com/some/deep/directory/and/file//absolute": [{"@value": "/absolute"}], + "http://example.com/some/deep/directory/and/file/?query=works": [{"@value": "?query=works"}], + "http://example.com/some/deep/directory/and/file/link": [{"@value": "link"}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0093-in.jsonld b/core/src/test/resources/json-ld.org/expand/0093-in.jsonld new file mode 100644 index 00000000..b32c0949 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0093-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": "@graph"}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }, { + "value": "y" + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0093-out.jsonld b/core/src/test/resources/json-ld.org/expand/0093-out.jsonld new file mode 100644 index 00000000..5e4e5bd9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0093-out.jsonld @@ -0,0 +1,15 @@ +[{ + "foo:input": [{ + "@graph": [{ + "foo:value": [{ + "@value": "x" + }] + }] + }, { + "@graph": [{ + "foo:value": [{ + "@value": "y" + }] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0094-in.jsonld b/core/src/test/resources/json-ld.org/expand/0094-in.jsonld new file mode 100644 index 00000000..2e0dc624 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0094-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "input": {"@id": "foo:input", "@container": ["@graph", "@set"]}, + "value": "foo:value" + }, + "input": [{ + "value": "x" + }, { + "value": "y" + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0094-out.jsonld b/core/src/test/resources/json-ld.org/expand/0094-out.jsonld new file mode 100644 index 00000000..5e4e5bd9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0094-out.jsonld @@ -0,0 +1,15 @@ +[{ + "foo:input": [{ + "@graph": [{ + "foo:value": [{ + "@value": "x" + }] + }] + }, { + "@graph": [{ + "foo:value": [{ + "@value": "y" + }] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0095-in.jsonld b/core/src/test/resources/json-ld.org/expand/0095-in.jsonld new file mode 100644 index 00000000..bf1c0824 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0095-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": [{ + "@graph": { + "value": "x" + } + }, { + "@graph": { + "value": "y" + } + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0095-out.jsonld b/core/src/test/resources/json-ld.org/expand/0095-out.jsonld new file mode 100644 index 00000000..96f34845 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0095-out.jsonld @@ -0,0 +1,11 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0096-in.jsonld b/core/src/test/resources/json-ld.org/expand/0096-in.jsonld new file mode 100644 index 00000000..4c7c6f45 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0096-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": {"value": "x"}, + "g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0096-out.jsonld b/core/src/test/resources/json-ld.org/expand/0096-out.jsonld new file mode 100644 index 00000000..6788bb49 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0096-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0097-in.jsonld b/core/src/test/resources/json-ld.org/expand/0097-in.jsonld new file mode 100644 index 00000000..dc5b9003 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0097-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index", "@set"]} + }, + "input": { + "g1": {"value": "x"}, + "g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0097-out.jsonld b/core/src/test/resources/json-ld.org/expand/0097-out.jsonld new file mode 100644 index 00000000..6788bb49 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0097-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0098-in.jsonld b/core/src/test/resources/json-ld.org/expand/0098-in.jsonld new file mode 100644 index 00000000..27ae04b7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0098-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": {"@graph": {"value": "x"}}, + "g2": {"@graph": {"value": "y"}} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0098-out.jsonld b/core/src/test/resources/json-ld.org/expand/0098-out.jsonld new file mode 100644 index 00000000..6788bb49 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0098-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0099-in.jsonld b/core/src/test/resources/json-ld.org/expand/0099-in.jsonld new file mode 100644 index 00000000..0010e0aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0099-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": {"value": "x"}, + "http://example.com/g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0099-out.jsonld b/core/src/test/resources/json-ld.org/expand/0099-out.jsonld new file mode 100644 index 00000000..45ce037e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0099-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0100-in.jsonld b/core/src/test/resources/json-ld.org/expand/0100-in.jsonld new file mode 100644 index 00000000..43d3528f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0100-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id", "@set"]} + }, + "input": { + "http://example.com/g1": {"value": "x"}, + "http://example.com/g2": {"value": "y"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0100-out.jsonld b/core/src/test/resources/json-ld.org/expand/0100-out.jsonld new file mode 100644 index 00000000..45ce037e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0100-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0101-in.jsonld b/core/src/test/resources/json-ld.org/expand/0101-in.jsonld new file mode 100644 index 00000000..cf605565 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0101-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": { + "@graph": { + "value": "x" + } + }, + "http://example.com/g2": { + "@graph": { + "value": "y" + } + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0101-out.jsonld b/core/src/test/resources/json-ld.org/expand/0101-out.jsonld new file mode 100644 index 00000000..45ce037e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0101-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0102-in.jsonld b/core/src/test/resources/json-ld.org/expand/0102-in.jsonld new file mode 100644 index 00000000..cac7b7f6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0102-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": { + "@graph": [{ + "value": "x" + }, { + "value": "y" + }] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0102-out.jsonld b/core/src/test/resources/json-ld.org/expand/0102-out.jsonld new file mode 100644 index 00000000..ebd80838 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0102-out.jsonld @@ -0,0 +1,9 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }, { + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0103-in.jsonld b/core/src/test/resources/json-ld.org/expand/0103-in.jsonld new file mode 100644 index 00000000..bf1c0824 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0103-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": [{ + "@graph": { + "value": "x" + } + }, { + "@graph": { + "value": "y" + } + }] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0103-out.jsonld b/core/src/test/resources/json-ld.org/expand/0103-out.jsonld new file mode 100644 index 00000000..96f34845 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0103-out.jsonld @@ -0,0 +1,11 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0104-in.jsonld b/core/src/test/resources/json-ld.org/expand/0104-in.jsonld new file mode 100644 index 00000000..7e8d19c3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0104-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": "@graph"} + }, + "input": [ + {"@graph": {"value": "x"}}, + {"value": "y"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0104-out.jsonld b/core/src/test/resources/json-ld.org/expand/0104-out.jsonld new file mode 100644 index 00000000..96f34845 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0104-out.jsonld @@ -0,0 +1,11 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0105-in.jsonld b/core/src/test/resources/json-ld.org/expand/0105-in.jsonld new file mode 100644 index 00000000..bcad0c63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0105-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": [{"@graph": {"value": "x"}}, {"value": "y"}], + "g2": [{"@graph": {"value": "a"}}, {"value": "b"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0105-out.jsonld b/core/src/test/resources/json-ld.org/expand/0105-out.jsonld new file mode 100644 index 00000000..27d2cd88 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0105-out.jsonld @@ -0,0 +1,23 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "a"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "b"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0106-in.jsonld b/core/src/test/resources/json-ld.org/expand/0106-in.jsonld new file mode 100644 index 00000000..cf605565 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0106-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": { + "@graph": { + "value": "x" + } + }, + "http://example.com/g2": { + "@graph": { + "value": "y" + } + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0106-out.jsonld b/core/src/test/resources/json-ld.org/expand/0106-out.jsonld new file mode 100644 index 00000000..45ce037e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0106-out.jsonld @@ -0,0 +1,13 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0107-in.jsonld b/core/src/test/resources/json-ld.org/expand/0107-in.jsonld new file mode 100644 index 00000000..3e1c5afa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0107-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "g1": [{"value": "x"}, {"value": "y"}], + "g2": [{"value": "a"}, {"value": "b"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0107-out.jsonld b/core/src/test/resources/json-ld.org/expand/0107-out.jsonld new file mode 100644 index 00000000..27d2cd88 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0107-out.jsonld @@ -0,0 +1,23 @@ +[{ + "http://example.org/input": [{ + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@index": "g1", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "a"}] + }] + }, { + "@index": "g2", + "@graph": [{ + "http://example.org/value": [{"@value": "b"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0108-in.jsonld b/core/src/test/resources/json-ld.org/expand/0108-in.jsonld new file mode 100644 index 00000000..182c031d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0108-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "http://example.com/g1": [{"value": "x"}, {"value": "y"}], + "http://example.com/g2": [{"value": "a"}, {"value": "b"}] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0108-out.jsonld b/core/src/test/resources/json-ld.org/expand/0108-out.jsonld new file mode 100644 index 00000000..a11e1d72 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0108-out.jsonld @@ -0,0 +1,23 @@ +[{ + "http://example.org/input": [{ + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }, { + "@id": "http://example.com/g1", + "@graph": [{ + "http://example.org/value": [{"@value": "y"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "a"}] + }] + }, { + "@id": "http://example.com/g2", + "@graph": [{ + "http://example.org/value": [{"@value": "b"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0109-in.jsonld b/core/src/test/resources/json-ld.org/expand/0109-in.jsonld new file mode 100644 index 00000000..7fa22658 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0109-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@base": "https://ex.org/", + "u": {"@id": "urn:u:", "@type": "@id"} + }, + "u": ["#Test", "#Test:2"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0109-out.jsonld b/core/src/test/resources/json-ld.org/expand/0109-out.jsonld new file mode 100644 index 00000000..3a632e05 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0109-out.jsonld @@ -0,0 +1,6 @@ +[{ + "urn:u:": [ + {"@id": "https://ex.org/#Test"}, + {"@id": "https://ex.org/#Test:2"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0110-in.jsonld b/core/src/test/resources/json-ld.org/expand/0110-in.jsonld new file mode 100644 index 00000000..a6f1e676 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0110-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@base": "http://example.com/some/deep/directory/and/file/", + "@vocab": "/relative" + }, + "@id": "relativePropertyIris", + "link": "link", + "#fragment-works": "#fragment-works", + "?query=works": "?query=works", + "./": "./", + "../": "../", + "../parent": "../parent", + "../../parent-parent-eq-root": "../../parent-parent-eq-root", + "../../../../../still-root": "../../../../../still-root", + "../.././.././../../too-many-dots": "../.././.././../../too-many-dots", + "/absolute": "/absolute", + "//example.org/scheme-relative": "//example.org/scheme-relative" +} diff --git a/core/src/test/resources/json-ld.org/expand/0110-out.jsonld b/core/src/test/resources/json-ld.org/expand/0110-out.jsonld new file mode 100644 index 00000000..c93ab5ea --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0110-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "@id": "http://example.com/some/deep/directory/and/file/relativePropertyIris", + "http://example.com/relative#fragment-works": [{"@value": "#fragment-works"}], + "http://example.com/relative../": [{"@value": "../"}], + "http://example.com/relative../../../../../still-root": [{"@value": "../../../../../still-root"}], + "http://example.com/relative../.././.././../../too-many-dots": [{"@value": "../.././.././../../too-many-dots"}], + "http://example.com/relative../../parent-parent-eq-root": [{"@value": "../../parent-parent-eq-root"}], + "http://example.com/relative../parent": [{"@value": "../parent"}], + "http://example.com/relative./": [{"@value": "./"}], + "http://example.com/relative//example.org/scheme-relative": [{"@value": "//example.org/scheme-relative"}], + "http://example.com/relative/absolute": [{"@value": "/absolute"}], + "http://example.com/relative?query=works": [{"@value": "?query=works"}], + "http://example.com/relativelink": [{"@value": "link"}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0111-in.jsonld b/core/src/test/resources/json-ld.org/expand/0111-in.jsonld new file mode 100644 index 00000000..5a0a1178 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0111-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": [{ + "@base": "http://example.com/some/deep/directory/and/file/", + "@vocab": "http://example.com/vocabulary/" + }, { + "@vocab": "./rel2#" + }], + "@id": "relativePropertyIris", + "link": "link", + "#fragment-works": "#fragment-works", + "?query=works": "?query=works", + "./": "./", + "../": "../", + "../parent": "../parent", + "../../parent-parent-eq-root": "../../parent-parent-eq-root", + "../../../../../still-root": "../../../../../still-root", + "../.././.././../../too-many-dots": "../.././.././../../too-many-dots", + "/absolute": "/absolute", + "//example.org/scheme-relative": "//example.org/scheme-relative" +} diff --git a/core/src/test/resources/json-ld.org/expand/0111-out.jsonld b/core/src/test/resources/json-ld.org/expand/0111-out.jsonld new file mode 100644 index 00000000..8febce3b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0111-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "@id": "http://example.com/some/deep/directory/and/file/relativePropertyIris", + "http://example.com/vocabulary/./rel2##fragment-works": [{"@value": "#fragment-works"}], + "http://example.com/vocabulary/./rel2#../": [{"@value": "../"}], + "http://example.com/vocabulary/./rel2#../../../../../still-root": [{"@value": "../../../../../still-root"}], + "http://example.com/vocabulary/./rel2#../.././.././../../too-many-dots": [{"@value": "../.././.././../../too-many-dots"}], + "http://example.com/vocabulary/./rel2#../../parent-parent-eq-root": [{"@value": "../../parent-parent-eq-root"}], + "http://example.com/vocabulary/./rel2#../parent": [{"@value": "../parent"}], + "http://example.com/vocabulary/./rel2#./": [{"@value": "./"}], + "http://example.com/vocabulary/./rel2#//example.org/scheme-relative": [{"@value": "//example.org/scheme-relative"}], + "http://example.com/vocabulary/./rel2#/absolute": [{"@value": "/absolute"}], + "http://example.com/vocabulary/./rel2#?query=works": [{"@value": "?query=works"}], + "http://example.com/vocabulary/./rel2#link": [{"@value": "link"}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0112-in.jsonld b/core/src/test/resources/json-ld.org/expand/0112-in.jsonld new file mode 100644 index 00000000..273eebdd --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0112-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": [{ + "@base": "http://example.com/some/deep/directory/and/file/", + "@vocab": "/rel1" + }, { + "@vocab": "./rel2#" + }], + "@id": "relativePropertyIris", + "link": "link", + "#fragment-works": "#fragment-works", + "?query=works": "?query=works", + "./": "./", + "../": "../", + "../parent": "../parent", + "../../parent-parent-eq-root": "../../parent-parent-eq-root", + "../../../../../still-root": "../../../../../still-root", + "../.././.././../../too-many-dots": "../.././.././../../too-many-dots", + "/absolute": "/absolute", + "//example.org/scheme-relative": "//example.org/scheme-relative" +} diff --git a/core/src/test/resources/json-ld.org/expand/0112-out.jsonld b/core/src/test/resources/json-ld.org/expand/0112-out.jsonld new file mode 100644 index 00000000..07fe15c4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0112-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "@id": "http://example.com/some/deep/directory/and/file/relativePropertyIris", + "http://example.com/rel1./rel2##fragment-works": [{"@value": "#fragment-works"}], + "http://example.com/rel1./rel2#../": [{"@value": "../"}], + "http://example.com/rel1./rel2#../../../../../still-root": [{"@value": "../../../../../still-root"}], + "http://example.com/rel1./rel2#../.././.././../../too-many-dots": [{"@value": "../.././.././../../too-many-dots"}], + "http://example.com/rel1./rel2#../../parent-parent-eq-root": [{"@value": "../../parent-parent-eq-root"}], + "http://example.com/rel1./rel2#../parent": [{"@value": "../parent"}], + "http://example.com/rel1./rel2#./": [{"@value": "./"}], + "http://example.com/rel1./rel2#//example.org/scheme-relative": [{"@value": "//example.org/scheme-relative"}], + "http://example.com/rel1./rel2#/absolute": [{"@value": "/absolute"}], + "http://example.com/rel1./rel2#?query=works": [{"@value": "?query=works"}], + "http://example.com/rel1./rel2#link": [{"@value": "link"}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/0113-in.jsonld b/core/src/test/resources/json-ld.org/expand/0113-in.jsonld new file mode 100644 index 00000000..0e26a9df --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0113-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "valueOf": "http://example.org/valueOf", + "toString": "http://example.org/toString" + }, + "valueOf": "first", + "toString": "second" +} diff --git a/core/src/test/resources/json-ld.org/expand/0113-out.jsonld b/core/src/test/resources/json-ld.org/expand/0113-out.jsonld new file mode 100644 index 00000000..7f7af084 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/0113-out.jsonld @@ -0,0 +1,14 @@ +[ + { + "http://example.org/toString": [ + { + "@value": "second" + } + ], + "http://example.org/valueOf": [ + { + "@value": "first" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/c001-in.jsonld b/core/src/test/resources/json-ld.org/expand/c001-in.jsonld new file mode 100644 index 00000000..04c51209 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c001-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"bar": "http://example.org/bar"}} + }, + "foo": { + "bar": "baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c001-out.jsonld b/core/src/test/resources/json-ld.org/expand/c001-out.jsonld new file mode 100644 index 00000000..122c864a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c001-out.jsonld @@ -0,0 +1,5 @@ +[ + { + "http://example/foo": [{"http://example.org/bar": [{"@value": "baz"}]}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c002-in.jsonld b/core/src/test/resources/json-ld.org/expand/c002-in.jsonld new file mode 100644 index 00000000..8121cf37 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c002-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"bar": {"@type": "@id"}}}, + "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} + }, + "foo": { + "bar": "http://example/baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c002-out.jsonld b/core/src/test/resources/json-ld.org/expand/c002-out.jsonld new file mode 100644 index 00000000..acd651e0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c002-out.jsonld @@ -0,0 +1,5 @@ +[ + { + "http://example/foo": [{"http://example/bar": [{"@id": "http://example/baz"}]}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c003-in.jsonld b/core/src/test/resources/json-ld.org/expand/c003-in.jsonld new file mode 100644 index 00000000..447ded33 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c003-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"Bar": {"@id": "bar"}}} + }, + "foo": { + "Bar": "baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c003-out.jsonld b/core/src/test/resources/json-ld.org/expand/c003-out.jsonld new file mode 100644 index 00000000..020f7a7f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c003-out.jsonld @@ -0,0 +1,9 @@ +[ + { + "http://example/foo": [{ + "http://example/bar": [ + {"@value": "baz"} + ]} + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c004-in.jsonld b/core/src/test/resources/json-ld.org/expand/c004-in.jsonld new file mode 100644 index 00000000..c9e450bf --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c004-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": {"@context": {"baz": {"@type": "@vocab"}}} + }, + "foo": { + "bar": { + "baz": "buzz" + } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c004-out.jsonld b/core/src/test/resources/json-ld.org/expand/c004-out.jsonld new file mode 100644 index 00000000..c5ae41df --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c004-out.jsonld @@ -0,0 +1,9 @@ +[ + { + "http://example/foo": [{ + "http://example/bar": [{ + "http://example/baz": [{"@id": "http://example/buzz"}] + }] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c005-in.jsonld b/core/src/test/resources/json-ld.org/expand/c005-in.jsonld new file mode 100644 index 00000000..faab3202 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c005-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example/", + "b": {"@context": {"c": "http://example.org/c"}} + }, + "a": { + "@context": {"@vocab": "http://example.com/"}, + "b": { + "a": "A in example.com", + "c": "C in example.org" + }, + "c": "C in example.com" + }, + "c": "C in example" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c005-out.jsonld b/core/src/test/resources/json-ld.org/expand/c005-out.jsonld new file mode 100644 index 00000000..b46a9280 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c005-out.jsonld @@ -0,0 +1,10 @@ +[{ + "http://example/a": [{ + "http://example.com/c": [{"@value": "C in example.com"}], + "http://example/b": [{ + "http://example.com/a": [{"@value": "A in example.com"}], + "http://example.org/c": [{"@value": "C in example.org"}] + }] + }], + "http://example/c": [{"@value": "C in example"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c006-in.jsonld b/core/src/test/resources/json-ld.org/expand/c006-in.jsonld new file mode 100644 index 00000000..757aeaa1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c006-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"bar": "http://example.org/bar"}} + }, + "a": {"@type": "Foo", "bar": "baz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c006-out.jsonld b/core/src/test/resources/json-ld.org/expand/c006-out.jsonld new file mode 100644 index 00000000..16baea77 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c006-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/a": [{ + "@type": ["http://example/Foo"], + "http://example.org/bar": [{"@value": "baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c007-in.jsonld b/core/src/test/resources/json-ld.org/expand/c007-in.jsonld new file mode 100644 index 00000000..05c9f1d6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c007-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"bar": {"@type": "@id"}}}, + "bar": {"@type": "http://www.w3.org/2001/XMLSchema#string"} + }, + "a": {"@type": "Foo", "bar": "http://example/baz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c007-out.jsonld b/core/src/test/resources/json-ld.org/expand/c007-out.jsonld new file mode 100644 index 00000000..c173b894 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c007-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/a": [{ + "@type": ["http://example/Foo"], + "http://example/bar": [{"@id": "http://example/baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c008-in.jsonld b/core/src/test/resources/json-ld.org/expand/c008-in.jsonld new file mode 100644 index 00000000..e0b472b1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c008-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "type": "@type", + "Foo": {"@context": {"bar": "http://example.org/bar"}} + }, + "a": {"type": "Foo", "bar": "baz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c008-out.jsonld b/core/src/test/resources/json-ld.org/expand/c008-out.jsonld new file mode 100644 index 00000000..16baea77 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c008-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/a": [{ + "@type": ["http://example/Foo"], + "http://example.org/bar": [{"@value": "baz"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c009-in.jsonld b/core/src/test/resources/json-ld.org/expand/c009-in.jsonld new file mode 100644 index 00000000..c2b6d110 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c009-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": {"@context": {"baz": {"@type": "@vocab"}}} + }, + "@type": "Foo", + "bar": {"baz": "buzz"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c009-out.jsonld b/core/src/test/resources/json-ld.org/expand/c009-out.jsonld new file mode 100644 index 00000000..457f891c --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c009-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "@type": ["http://example/Foo"], + "http://example/bar": [{ + "http://example/baz": [{"@value": "buzz"}] + }] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/c010-in.jsonld b/core/src/test/resources/json-ld.org/expand/c010-in.jsonld new file mode 100644 index 00000000..809997b5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c010-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example/", + "B": {"@context": {"c": "http://example.org/c"}} + }, + "a": { + "@context": {"@vocab": "http://example.com/"}, + "@type": "B", + "a": "A in example.com", + "c": "C in example.org" + }, + "c": "C in example" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c010-out.jsonld b/core/src/test/resources/json-ld.org/expand/c010-out.jsonld new file mode 100644 index 00000000..1057b0ad --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c010-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example/a": [{ + "@type": ["http://example/B"], + "http://example.com/a": [{"@value": "A in example.com"}], + "http://example.org/c": [{"@value": "C in example.org"}] + }], + "http://example/c": [{"@value": "C in example"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c011-in.jsonld b/core/src/test/resources/json-ld.org/expand/c011-in.jsonld new file mode 100644 index 00000000..c57c55eb --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c011-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "t1": {"@context": {"foo": {"@id": "http://example.com/foo"}}}, + "t2": {"@context": {"foo": {"@id": "http://example.org/foo", "@type": "@id"}}} + }, + "@type": ["t2", "t1"], + "foo": "urn:bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c011-out.jsonld b/core/src/test/resources/json-ld.org/expand/c011-out.jsonld new file mode 100644 index 00000000..a702942a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c011-out.jsonld @@ -0,0 +1,6 @@ +[{ + "@type": ["http://example/t2", "http://example/t1"], + "http://example.org/foo": [ + {"@id": "urn:bar"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c012-in.jsonld b/core/src/test/resources/json-ld.org/expand/c012-in.jsonld new file mode 100644 index 00000000..bba1c9bf --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c012-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@vocab": "http://example/", + "Foo": { + "@context": { + "bar": { + "@context": { + "baz": {"@type": "@vocab"} + } + } + } + } + }, + "@type": "Foo", + "bar": {"baz": "buzz"} +} diff --git a/core/src/test/resources/json-ld.org/expand/c012-out.jsonld b/core/src/test/resources/json-ld.org/expand/c012-out.jsonld new file mode 100644 index 00000000..8ff196e6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c012-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "@type": ["http://example/Foo"], + "http://example/bar": [{ + "http://example/baz": [{"@id": "http://example/buzz"}] + }] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/c013-in.jsonld b/core/src/test/resources/json-ld.org/expand/c013-in.jsonld new file mode 100644 index 00000000..63c4a0c5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c013-in.jsonld @@ -0,0 +1,28 @@ +{ + "@context": { + "@vocab": "http://example/", + "prop": {"@container": "@index"}, + "foo": "http://example/base-foo", + "Outer": { + "@context": { + "prop": { + "@id": "http://example/outer-prop", + "@container": "@type" + } + } + }, + "Inner": {"@context": {"foo": "http://example/inner-foo"}} + }, + "@type": "Outer", + "prop": { + "Inner": { + "prop": { + "index": { + "@id": "http://example/inner-with-index", + "foo": "inner-foo" + } + } + } + }, + "foo": "base-foo" +} diff --git a/core/src/test/resources/json-ld.org/expand/c013-out.jsonld b/core/src/test/resources/json-ld.org/expand/c013-out.jsonld new file mode 100644 index 00000000..a57f9394 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c013-out.jsonld @@ -0,0 +1,12 @@ +[{ + "@type": ["http://example/Outer"], + "http://example/base-foo": [{"@value": "base-foo"}], + "http://example/outer-prop": [{ + "@type": ["http://example/Inner"], + "http://example/prop": [{ + "@id": "http://example/inner-with-index", + "@index": "index", + "http://example/inner-foo": [{"@value": "inner-foo"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/c014-in.jsonld b/core/src/test/resources/json-ld.org/expand/c014-in.jsonld new file mode 100644 index 00000000..d89e3012 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c014-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@vocab": "http://example/", + "foo": "http://example/foo", + "Type": { + "@context": [ + null + ] + } + }, + "foo": "will-exist", + "p": { + "@type": "Type", + "foo": "will-not-exist" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c014-out.jsonld b/core/src/test/resources/json-ld.org/expand/c014-out.jsonld new file mode 100644 index 00000000..5a68fc26 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c014-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example/foo": [{ + "@value": "will-exist" + }], + "http://example/p": [{ + "@type": ["http://example/Type"] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c015-in.jsonld b/core/src/test/resources/json-ld.org/expand/c015-in.jsonld new file mode 100644 index 00000000..83bb63d5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c015-in.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@base": "http://example/base-base", + "@vocab": "http://example/", + "foo": "http://example/foo", + "Type": { + "@context": { + "@base": "http://example/typed-base" + } + } + }, + "@id": "#base-id", + "p": { + "@id": "#typed-id", + "@type": "Type", + "subjectReference": { + "@id": "#subject-reference-id" + }, + "nestedNode": { + "@id": "#nested-id", + "foo": "bar" + } + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c015-out.jsonld b/core/src/test/resources/json-ld.org/expand/c015-out.jsonld new file mode 100644 index 00000000..2f3427a5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c015-out.jsonld @@ -0,0 +1,16 @@ +[{ + "@id": "http://example/base-base#base-id", + "http://example/p": [{ + "@id": "http://example/typed-base#typed-id", + "@type": ["http://example/Type"], + "http://example/subjectReference": [{ + "@id": "http://example/typed-base#subject-reference-id" + }], + "http://example/nestedNode": [{ + "@id": "http://example/base-base#nested-id", + "http://example/foo": [{ + "@value": "bar" + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c016-in.jsonld b/core/src/test/resources/json-ld.org/expand/c016-in.jsonld new file mode 100644 index 00000000..2f1186ff --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c016-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "Type": { + "@context": { + "@vocab": "http://example.com/" + } + } + }, + "foo": "org", + "p": { + "@type": "Type", + "foo": "com", + "nested": { + "nested-prop": "org" + } + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c016-out.jsonld b/core/src/test/resources/json-ld.org/expand/c016-out.jsonld new file mode 100644 index 00000000..37bc728a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c016-out.jsonld @@ -0,0 +1,16 @@ +[{ + "http://example.org/foo": [{ + "@value": "org" + }], + "http://example.org/p": [{ + "@type": ["http://example.org/Type"], + "http://example.com/foo": [{ + "@value": "com" + }], + "http://example.com/nested": [{ + "http://example.org/nested-prop": [{ + "@value": "org" + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c017-in.jsonld b/core/src/test/resources/json-ld.org/expand/c017-in.jsonld new file mode 100644 index 00000000..be32133c --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c017-in.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@vocab": "http://example/", + "Bar": { + "@context": [ + { + "prop": "http://example/bar-prop" + } + ] + }, + "Foo": { + "@context": [ + { + "prop": "http://example/foo-prop" + } + ] + } + }, + "@type": ["Foo", "Bar"], + "prop": "foo", + "nested": { + "prop": "vocab" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c017-out.jsonld b/core/src/test/resources/json-ld.org/expand/c017-out.jsonld new file mode 100644 index 00000000..7e7e49d9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c017-out.jsonld @@ -0,0 +1,14 @@ +[{ + "@type": [ + "http://example/Foo", + "http://example/Bar" + ], + "http://example/foo-prop": [{ + "@value": "foo" + }], + "http://example/nested": [{ + "http://example/prop": [{ + "@value": "vocab" + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c018-in.jsonld b/core/src/test/resources/json-ld.org/expand/c018-in.jsonld new file mode 100644 index 00000000..b8fbd43d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c018-in.jsonld @@ -0,0 +1,26 @@ +{ + "@context": { + "@vocab": "http://example/", + "Bar": { + "@context": [ + null, + { + "prop": "http://example/bar-prop" + } + ] + }, + "Foo": { + "@context": [ + null, + { + "prop": "http://example/foo-prop" + } + ] + } + }, + "@type": ["Foo", "Bar"], + "prop": "foo", + "nested": { + "prop": "will-not-exist" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c018-out.jsonld b/core/src/test/resources/json-ld.org/expand/c018-out.jsonld new file mode 100644 index 00000000..ee0c79e1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c018-out.jsonld @@ -0,0 +1,11 @@ +[{ + "@type": [ + "http://example/Foo", + "http://example/Bar" + ], + "http://example/foo-prop": [ + { + "@value": "foo" + } + ] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c019-in.jsonld b/core/src/test/resources/json-ld.org/expand/c019-in.jsonld new file mode 100644 index 00000000..418c9cbe --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c019-in.jsonld @@ -0,0 +1,30 @@ +{ + "@context": { + "@vocab": "http://example/", + "prop": "http://example/base-prop", + "Type": { + "@context": { + "foo": { + "@context": { + "prop": "http://example/foo-prop" + } + }, + "bar": { + "@context": { + "prop": "http://example/bar-prop" + } + } + } + } + }, + "@type": "Type", + "foo": { + "prop": "foo" + }, + "bar": { + "prop": "bar" + }, + "baz": { + "prop": "baz" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c019-out.jsonld b/core/src/test/resources/json-ld.org/expand/c019-out.jsonld new file mode 100644 index 00000000..3d25ead3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c019-out.jsonld @@ -0,0 +1,26 @@ +[{ + "@type": [ + "http://example/Type" + ], + "http://example/foo": [{ + "http://example/foo-prop": [ + { + "@value": "foo" + } + ] + }], + "http://example/bar": [{ + "http://example/bar-prop": [ + { + "@value": "bar" + } + ] + }], + "http://example/baz": [{ + "http://example/base-prop": [ + { + "@value": "baz" + } + ] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c020-in.jsonld b/core/src/test/resources/json-ld.org/expand/c020-in.jsonld new file mode 100644 index 00000000..e504c397 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c020-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@vocab": "http://example/", + "type": "@type", + "Type": { + "@context": { + "value": "@value" + } + } + }, + "type": "Type", + "v": { + "value": "value", + "type": "value-type" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c020-out.jsonld b/core/src/test/resources/json-ld.org/expand/c020-out.jsonld new file mode 100644 index 00000000..483b9ef0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c020-out.jsonld @@ -0,0 +1,7 @@ +[{ + "@type": ["http://example/Type"], + "http://example/v": [{ + "@type": "http://example/value-type", + "@value": "value" + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c021-in.jsonld b/core/src/test/resources/json-ld.org/expand/c021-in.jsonld new file mode 100644 index 00000000..99d78bee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c021-in.jsonld @@ -0,0 +1,34 @@ +{ + "@context": { + "@vocab": "ex:", + "type": "@type", + "prop": "ex:untyped", + "Type": { + "@context": { + "prop": "ex:typed", + "value": "@value" + } + } + }, + "prop": { + "type": "Type", + "prop": [ + "v1", + { + "value": "v2" + }, + { + "@value": "v3" + }, + { + "prop": [ + "v4", + { + "type": "Type", + "prop": "v5" + } + ] + } + ] + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c021-out.jsonld b/core/src/test/resources/json-ld.org/expand/c021-out.jsonld new file mode 100644 index 00000000..c3f097e8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c021-out.jsonld @@ -0,0 +1,19 @@ +[{ + "ex:untyped": [{ + "@type": ["ex:Type"], + "ex:typed": [{ + "@value": "v1" + }, { + "@value": "v2" + }, { + "@value": "v3" + }, { + "ex:untyped": [{ + "@value": "v4" + }, { + "@type": ["ex:Type"], + "ex:typed": [{"@value": "v5"}] + }] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c022-in.jsonld b/core/src/test/resources/json-ld.org/expand/c022-in.jsonld new file mode 100644 index 00000000..c5ef4a2e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c022-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "@vocab": "ex:", + "Type": { + "@context": { + "foo": { + "@id": "ex:foo", + "@type": "@vocab", + "@context": { + "@version": 1.1, + "Foo": "ex:Foo", + "Bar": "ex:Bar" + } + } + } + } + }, + "@type": "Type", + "foo": "Bar" +} diff --git a/core/src/test/resources/json-ld.org/expand/c022-out.jsonld b/core/src/test/resources/json-ld.org/expand/c022-out.jsonld new file mode 100644 index 00000000..d77a5f5a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c022-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@type": ["ex:Type"], + "ex:foo": [{"@id": "ex:Bar"}] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c023-in.jsonld b/core/src/test/resources/json-ld.org/expand/c023-in.jsonld new file mode 100644 index 00000000..94272f95 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c023-in.jsonld @@ -0,0 +1,29 @@ +{ + "@context": { + "@version": 1.1, + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": "ex:nested" + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "@version": 1.1, + "foo": { + "@id": "ex:foo", + "@type": "@vocab", + "@context": { + "Foo": "ex:Foo" + } + } + } + } + }, + "@type": "Outer", + "nested": { + "@type": "Inner", + "foo": "Foo" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c023-out.jsonld b/core/src/test/resources/json-ld.org/expand/c023-out.jsonld new file mode 100644 index 00000000..3e47445a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c023-out.jsonld @@ -0,0 +1,7 @@ +[{ + "@type": ["ex:Outer"], + "ex:nested": [{ + "@type": ["ex:Inner"], + "ex:foo": [{"@id": "ex:Foo"}] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c024-in.jsonld b/core/src/test/resources/json-ld.org/expand/c024-in.jsonld new file mode 100644 index 00000000..9fe803fa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c024-in.jsonld @@ -0,0 +1,40 @@ +{ + "@context": { + "@version": 1.1, + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": "ex:nested" + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "@version": 1.1, + "val": "@value", + "foo": { + "@id": "ex:foo", + "@container": "@set", + "@type": "ex:Number", + "@context": { + "value": "@value" + } + }, + "bar": { + "@id": "ex:bar", + "@container": "@set", + "@type": "@id", + "@context": { + "@base": "http://example/" + } + } + } + } + }, + "@type": "Outer", + "nested": { + "@type": "Inner", + "foo": [{"value": "1"}, "2"], + "bar": [{"@id": "a"}, "b"] + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c024-out.jsonld b/core/src/test/resources/json-ld.org/expand/c024-out.jsonld new file mode 100644 index 00000000..ef901dbd --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c024-out.jsonld @@ -0,0 +1,14 @@ +[{ + "@type": ["ex:Outer"], + "ex:nested": [{ + "@type": ["ex:Inner"], + "ex:foo": [ + {"@value": "1"}, + {"@type": "ex:Number", "@value": "2"} + ], + "ex:bar": [ + {"@id": "http://example/a"}, + {"@id": "http://example/b"} + ] + }] +}] diff --git a/core/src/test/resources/json-ld.org/expand/c025-in.jsonld b/core/src/test/resources/json-ld.org/expand/c025-in.jsonld new file mode 100644 index 00000000..aa9b1fc7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c025-in.jsonld @@ -0,0 +1,27 @@ +{ + "@context": { + "@version": 1.1, + "type": "@type", + "Outer": { + "@id": "ex:Outer", + "@context": { + "nested": { + "@id": "ex:nested", + "@type": "@id", + "@container": "@graph" + } + } + }, + "Inner": { + "@id": "ex:Inner", + "@context": { + "foo": "ex:foo" + } + } + }, + "type": "Outer", + "nested": { + "type": "Inner", + "foo": "bar" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/c025-out.jsonld b/core/src/test/resources/json-ld.org/expand/c025-out.jsonld new file mode 100644 index 00000000..d8246465 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/c025-out.jsonld @@ -0,0 +1,9 @@ +[{ + "@type": ["ex:Outer"], + "ex:nested": [{ + "@graph": [{ + "@type": ["ex:Inner"], + "ex:foo": [{"@value": "bar"}] + }] + }] +}] diff --git a/core/src/test/resources/json-ld.org/error-0001-in.jsonld b/core/src/test/resources/json-ld.org/expand/e001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0001-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/e002-in.jsonld b/core/src/test/resources/json-ld.org/expand/e002-in.jsonld new file mode 100644 index 00000000..0cc72d0a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/e002-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": "e002-in.jsonld", + "@id": "http://example/test#example" +} diff --git a/core/src/test/resources/json-ld.org/expand/e003-in.jsonld b/core/src/test/resources/json-ld.org/expand/e003-in.jsonld new file mode 100644 index 00000000..fb3fbb3a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/e003-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": "e003-in.jsonld", + "@id": "http://example/test#example" +} diff --git a/core/src/test/resources/json-ld.org/error-0004-in.jsonld b/core/src/test/resources/json-ld.org/expand/e004-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0004-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e004-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/e005-in.jsonld b/core/src/test/resources/json-ld.org/expand/e005-in.jsonld new file mode 100644 index 00000000..0ff70012 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/e005-in.jsonld @@ -0,0 +1,4 @@ +[{ + "@context": "e005-in.jsonld", + "@id": "http://example/test#example" +}] diff --git a/core/src/test/resources/json-ld.org/error-0006-in.jsonld b/core/src/test/resources/json-ld.org/expand/e006-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0006-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e006-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0007-in.jsonld b/core/src/test/resources/json-ld.org/expand/e007-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0007-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e007-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0008-in.jsonld b/core/src/test/resources/json-ld.org/expand/e008-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0008-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e008-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0009-in.jsonld b/core/src/test/resources/json-ld.org/expand/e009-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0009-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e009-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0010-in.jsonld b/core/src/test/resources/json-ld.org/expand/e010-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0010-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e010-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0011-in.jsonld b/core/src/test/resources/json-ld.org/expand/e011-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0011-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e011-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0012-in.jsonld b/core/src/test/resources/json-ld.org/expand/e012-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0012-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e012-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0013-in.jsonld b/core/src/test/resources/json-ld.org/expand/e013-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0013-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e013-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0014-in.jsonld b/core/src/test/resources/json-ld.org/expand/e014-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0014-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e014-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0015-in.jsonld b/core/src/test/resources/json-ld.org/expand/e015-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0015-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e015-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0016-in.jsonld b/core/src/test/resources/json-ld.org/expand/e016-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0016-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e016-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0017-in.jsonld b/core/src/test/resources/json-ld.org/expand/e017-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0017-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e017-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0018-in.jsonld b/core/src/test/resources/json-ld.org/expand/e018-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0018-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e018-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0019-in.jsonld b/core/src/test/resources/json-ld.org/expand/e019-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0019-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e019-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0020-in.jsonld b/core/src/test/resources/json-ld.org/expand/e020-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0020-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e020-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0021-in.jsonld b/core/src/test/resources/json-ld.org/expand/e021-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0021-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e021-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0022-in.jsonld b/core/src/test/resources/json-ld.org/expand/e022-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0022-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e022-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0023-in.jsonld b/core/src/test/resources/json-ld.org/expand/e023-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0023-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e023-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0024-in.jsonld b/core/src/test/resources/json-ld.org/expand/e024-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0024-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e024-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0025-in.jsonld b/core/src/test/resources/json-ld.org/expand/e025-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0025-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e025-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0026-in.jsonld b/core/src/test/resources/json-ld.org/expand/e026-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0026-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e026-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0027-in.jsonld b/core/src/test/resources/json-ld.org/expand/e027-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0027-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e027-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0028-in.jsonld b/core/src/test/resources/json-ld.org/expand/e028-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0028-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e028-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0029-in.jsonld b/core/src/test/resources/json-ld.org/expand/e029-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0029-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e029-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0030-in.jsonld b/core/src/test/resources/json-ld.org/expand/e030-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0030-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e030-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0031-in.jsonld b/core/src/test/resources/json-ld.org/expand/e031-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0031-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e031-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0032-in.jsonld b/core/src/test/resources/json-ld.org/expand/e032-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0032-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e032-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0033-in.jsonld b/core/src/test/resources/json-ld.org/expand/e033-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0033-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e033-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0034-in.jsonld b/core/src/test/resources/json-ld.org/expand/e034-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0034-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e034-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0035-in.jsonld b/core/src/test/resources/json-ld.org/expand/e035-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0035-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e035-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0036-in.jsonld b/core/src/test/resources/json-ld.org/expand/e036-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0036-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e036-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0037-in.jsonld b/core/src/test/resources/json-ld.org/expand/e037-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0037-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e037-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0038-in.jsonld b/core/src/test/resources/json-ld.org/expand/e038-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0038-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e038-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0039-in.jsonld b/core/src/test/resources/json-ld.org/expand/e039-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0039-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e039-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0040-in.jsonld b/core/src/test/resources/json-ld.org/expand/e040-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0040-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e040-in.jsonld diff --git a/core/src/test/resources/json-ld.org/error-0041-in.jsonld b/core/src/test/resources/json-ld.org/expand/e041-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0041-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e041-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-e042-in.jsonld b/core/src/test/resources/json-ld.org/expand/e042-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-e042-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e042-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0026-in.jsonld b/core/src/test/resources/json-ld.org/expand/e043-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0026-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e043-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/e044-in.jsonld b/core/src/test/resources/json-ld.org/expand/e044-in.jsonld new file mode 100644 index 00000000..257bd312 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/e044-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": [ + { + "v": "http://example.com/vocab#", + "v:term": "v:somethingElse", + "v:termId": { "@id": "v:somethingElseId" } + } + ], + "v:term": "value of v:term", + "v:termId": "value of v:termId" +} diff --git a/core/src/test/resources/json-ld.org/toRdf-0111-in.jsonld b/core/src/test/resources/json-ld.org/expand/e045-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0111-in.jsonld rename to core/src/test/resources/json-ld.org/expand/e045-in.jsonld diff --git a/core/src/test/resources/json-ld.org/expand/ec01-in.jsonld b/core/src/test/resources/json-ld.org/expand/ec01-in.jsonld new file mode 100644 index 00000000..6ea8d9a1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/ec01-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "term": {"@id": "http://example/", "@index": true} + }, + "@id": "http://example/test#example" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/em01-in.jsonld b/core/src/test/resources/json-ld.org/expand/em01-in.jsonld new file mode 100644 index 00000000..ea465394 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/em01-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "term": {"@id": "http://example/term", "@container": "@context"} + }, + "@id": "http://example/test#example" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/en01-in.jsonld b/core/src/test/resources/json-ld.org/expand/en01-in.jsonld new file mode 100644 index 00000000..81408e66 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/en01-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@vocab": "http://example.org/"}, + "@nest": "This should generate an error" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/en02-in.jsonld b/core/src/test/resources/json-ld.org/expand/en02-in.jsonld new file mode 100644 index 00000000..7af5e3b4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/en02-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@vocab": "http://example.org/"}, + "@nest": true +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/en03-in.jsonld b/core/src/test/resources/json-ld.org/expand/en03-in.jsonld new file mode 100644 index 00000000..91d33886 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/en03-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@vocab": "http://example.org/"}, + "@nest": 1 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/en04-in.jsonld b/core/src/test/resources/json-ld.org/expand/en04-in.jsonld new file mode 100644 index 00000000..11e246a3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/en04-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@vocab": "http://example.org/"}, + "@nest": {"@value": "This should generate an error"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/en05-in.jsonld b/core/src/test/resources/json-ld.org/expand/en05-in.jsonld new file mode 100644 index 00000000..a33791ca --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/en05-in.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "term": {"@id": "http://example/term", "@nest": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/en06-in.jsonld b/core/src/test/resources/json-ld.org/expand/en06-in.jsonld new file mode 100644 index 00000000..3015c7af --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/en06-in.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "term": {"@reverse": "http://example/term", "@nest": "@nest"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/ep01-in.jsonld b/core/src/test/resources/json-ld.org/expand/ep01-in.jsonld new file mode 100644 index 00000000..81a736c7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/ep01-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "http://example.org/foo": {"label": "Object with @id "}, + "_:bar": {"label": "Object with @id _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/ep02-in.jsonld b/core/src/test/resources/json-ld.org/expand/ep02-in.jsonld new file mode 100644 index 00000000..4caa4695 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/ep02-in.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "@version": 1.1 + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/ep03-in.jsonld b/core/src/test/resources/json-ld.org/expand/ep03-in.jsonld new file mode 100644 index 00000000..63c70f63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/ep03-in.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "@version": 1.0 + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/es01-in.jsonld b/core/src/test/resources/json-ld.org/expand/es01-in.jsonld new file mode 100644 index 00000000..d014b483 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/es01-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "term": {"@id": "http://example/term", "@container": ["@set"]} + }, + "@id": "http://example/test#example", + "term": "foo" +} diff --git a/core/src/test/resources/json-ld.org/expand/es02-in.jsonld b/core/src/test/resources/json-ld.org/expand/es02-in.jsonld new file mode 100644 index 00000000..d71e3eb6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/es02-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "term": {"@id": "http://example/term", "@container": ["@list", "@set"]} + }, + "@id": "http://example/test#example", + "term": "foo" +} diff --git a/core/src/test/resources/json-ld.org/expand/h001-in.html b/core/src/test/resources/json-ld.org/expand/h001-in.html new file mode 100644 index 00000000..57328e38 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h001-in.html @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h001-out.jsonld b/core/src/test/resources/json-ld.org/expand/h001-out.jsonld new file mode 100644 index 00000000..e793da70 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h001-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@value": "bar"}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h002-in.html b/core/src/test/resources/json-ld.org/expand/h002-in.html new file mode 100644 index 00000000..b287ab50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h002-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h002-out.jsonld b/core/src/test/resources/json-ld.org/expand/h002-out.jsonld new file mode 100644 index 00000000..e793da70 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h002-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@value": "bar"}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h003-in.html b/core/src/test/resources/json-ld.org/expand/h003-in.html new file mode 100644 index 00000000..f18c1dae --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h003-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h003-out.jsonld b/core/src/test/resources/json-ld.org/expand/h003-out.jsonld new file mode 100644 index 00000000..83d36929 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h003-out.jsonld @@ -0,0 +1,4 @@ +[ + {"http://example.com/foo": [{"@value": "foo"}]}, + {"http://example.com/bar": [{"@value": "bar"}]} +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h004-in.html b/core/src/test/resources/json-ld.org/expand/h004-in.html new file mode 100644 index 00000000..b287ab50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h004-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h004-out.jsonld b/core/src/test/resources/json-ld.org/expand/h004-out.jsonld new file mode 100644 index 00000000..58be8a87 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h004-out.jsonld @@ -0,0 +1,10 @@ +[ + {"http://example.com/foo": [{"@list": [{"@value": "bar"}]}]}, + { + "@graph": [{ + "http://example.com/foo": [{"@value": "foo"}] + }, { + "http://example.com/bar": [{"@value": "bar"}] + }] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h005-in.html b/core/src/test/resources/json-ld.org/expand/h005-in.html new file mode 100644 index 00000000..1c07a03f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h005-in.html @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h005-out.jsonld b/core/src/test/resources/json-ld.org/expand/h005-out.jsonld new file mode 100644 index 00000000..602ce014 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h005-out.jsonld @@ -0,0 +1,5 @@ +[ + {"http://example.com/foo": [{"@list": [{"@value": "bar"}]}]}, + {"http://example.com/foo": [{"@value": "foo"}]}, + {"http://example.com/bar": [{"@value": "bar"}]} +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h006-in.html b/core/src/test/resources/json-ld.org/expand/h006-in.html new file mode 100644 index 00000000..4301ea4d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h006-in.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h006-out.jsonld b/core/src/test/resources/json-ld.org/expand/h006-out.jsonld new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h006-out.jsonld @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h007-in.html b/core/src/test/resources/json-ld.org/expand/h007-in.html new file mode 100644 index 00000000..4301ea4d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h007-in.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h007-out.jsonld b/core/src/test/resources/json-ld.org/expand/h007-out.jsonld new file mode 100644 index 00000000..0637a088 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h007-out.jsonld @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h008-in.html b/core/src/test/resources/json-ld.org/expand/h008-in.html new file mode 100644 index 00000000..178034ab --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h008-in.html @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h008-out.jsonld b/core/src/test/resources/json-ld.org/expand/h008-out.jsonld new file mode 100644 index 00000000..e793da70 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h008-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@value": "bar"}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h009-in.html b/core/src/test/resources/json-ld.org/expand/h009-in.html new file mode 100644 index 00000000..1a85b642 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h009-in.html @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h009-out.jsonld b/core/src/test/resources/json-ld.org/expand/h009-out.jsonld new file mode 100644 index 00000000..44cc49c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h009-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/comment-start": [{"@value": ""}], + "http://example/script-start": [{"@value": ""}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h010-in.html b/core/src/test/resources/json-ld.org/expand/h010-in.html new file mode 100644 index 00000000..384ea36e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h010-in.html @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h010-out.jsonld b/core/src/test/resources/json-ld.org/expand/h010-out.jsonld new file mode 100644 index 00000000..f7b5a0ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h010-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example/foo": [{"@value": "<&>"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h011-in.html b/core/src/test/resources/json-ld.org/expand/h011-in.html new file mode 100644 index 00000000..f18c1dae --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h011-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h012-in.html b/core/src/test/resources/json-ld.org/expand/h012-in.html new file mode 100644 index 00000000..7700c932 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h012-in.html @@ -0,0 +1,12 @@ + + +
+    {
+      "@context": {
+        "foo": {"@id": "http://example.com/foo", "@container": "@list"}
+      },
+      "foo": [{"@value": "bar"}]
+    }
+    
+ + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h013-in.html b/core/src/test/resources/json-ld.org/expand/h013-in.html new file mode 100644 index 00000000..4e0d64a4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h013-in.html @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h014-in.html b/core/src/test/resources/json-ld.org/expand/h014-in.html new file mode 100644 index 00000000..ceeeff8b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h014-in.html @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h015-in.html b/core/src/test/resources/json-ld.org/expand/h015-in.html new file mode 100644 index 00000000..eb0e188a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h015-in.html @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h016-in.html b/core/src/test/resources/json-ld.org/expand/h016-in.html new file mode 100644 index 00000000..1bc35a18 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h016-in.html @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h017-in.html b/core/src/test/resources/json-ld.org/expand/h017-in.html new file mode 100644 index 00000000..90a0e2f6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h017-in.html @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h018-in.html b/core/src/test/resources/json-ld.org/expand/h018-in.html new file mode 100644 index 00000000..8a644238 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h018-in.html @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h018-out.jsonld b/core/src/test/resources/json-ld.org/expand/h018-out.jsonld new file mode 100644 index 00000000..7bf2e224 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h018-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/expand/h018-in.html", + "http://example.com/foo": [{"@value": "bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h019-in.html b/core/src/test/resources/json-ld.org/expand/h019-in.html new file mode 100644 index 00000000..8a644238 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h019-in.html @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h019-out.jsonld b/core/src/test/resources/json-ld.org/expand/h019-out.jsonld new file mode 100644 index 00000000..1617d64f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h019-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://a.example.com/doc", + "http://example.com/foo": [{"@value": "bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h020-in.html b/core/src/test/resources/json-ld.org/expand/h020-in.html new file mode 100644 index 00000000..c7fdfb1b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h020-in.html @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h020-out.jsonld b/core/src/test/resources/json-ld.org/expand/h020-out.jsonld new file mode 100644 index 00000000..f309cd84 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h020-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://a.example.com/base", + "http://example.com/foo": [{"@value": "bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h021-in.html b/core/src/test/resources/json-ld.org/expand/h021-in.html new file mode 100644 index 00000000..25b5e3cf --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h021-in.html @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h021-out.jsonld b/core/src/test/resources/json-ld.org/expand/h021-out.jsonld new file mode 100644 index 00000000..f309cd84 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h021-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://a.example.com/base", + "http://example.com/foo": [{"@value": "bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h022-in.html b/core/src/test/resources/json-ld.org/expand/h022-in.html new file mode 100644 index 00000000..0d18ab9d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h022-in.html @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/h022-out.jsonld b/core/src/test/resources/json-ld.org/expand/h022-out.jsonld new file mode 100644 index 00000000..bbfd82eb --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/h022-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://a.example.com/base", + "http://example.com/bar": [{"@value": "foo"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc01-context.html b/core/src/test/resources/json-ld.org/expand/hc01-context.html new file mode 100644 index 00000000..dbce5571 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc01-context.html @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc01-in.jsonld b/core/src/test/resources/json-ld.org/expand/hc01-in.jsonld new file mode 100644 index 00000000..5cc87215 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc01-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": "hc01-context.html", + "@id": "http://example.com/id1", + "@type": "t1", + "term1": "v1", + "term2": {"@value": "v2", "@type": "t2"}, + "term3": {"@value": "v3", "@language": "en"}, + "term4": 4, + "term5": [50, 51] +} diff --git a/core/src/test/resources/json-ld.org/expand/hc01-out.jsonld b/core/src/test/resources/json-ld.org/expand/hc01-out.jsonld new file mode 100644 index 00000000..cc8e658e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc01-out.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/id1", + "@type": ["http://example.com/t1"], + "http://example.com/term1": [{"@value": "v1"}], + "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], + "http://example.com/term3": [{"@value": "v3", "@language": "en"}], + "http://example.com/term4": [{"@value": 4}], + "http://example.com/term5": [{"@value": 50}, {"@value": 51}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc02-context.html b/core/src/test/resources/json-ld.org/expand/hc02-context.html new file mode 100644 index 00000000..a17483b7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc02-context.html @@ -0,0 +1,25 @@ + + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc02-in.jsonld b/core/src/test/resources/json-ld.org/expand/hc02-in.jsonld new file mode 100644 index 00000000..2eb65be9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc02-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": "hc02-context.html#context", + "@id": "http://example.com/id1", + "@type": "t1", + "term1": "v1", + "term2": {"@value": "v2", "@type": "t2"}, + "term3": {"@value": "v3", "@language": "en"}, + "term4": 4, + "term5": [50, 51] +} diff --git a/core/src/test/resources/json-ld.org/expand/hc02-out.jsonld b/core/src/test/resources/json-ld.org/expand/hc02-out.jsonld new file mode 100644 index 00000000..cc8e658e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc02-out.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/id1", + "@type": ["http://example.com/t1"], + "http://example.com/term1": [{"@value": "v1"}], + "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], + "http://example.com/term3": [{"@value": "v3", "@language": "en"}], + "http://example.com/term4": [{"@value": 4}], + "http://example.com/term5": [{"@value": 50}, {"@value": 51}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc03-context.html b/core/src/test/resources/json-ld.org/expand/hc03-context.html new file mode 100644 index 00000000..58c70b17 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc03-context.html @@ -0,0 +1,25 @@ + + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc03-in.jsonld b/core/src/test/resources/json-ld.org/expand/hc03-in.jsonld new file mode 100644 index 00000000..c3dc5f26 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc03-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": "hc03-context.html#context", + "@id": "http://example.com/id1", + "@type": "t1", + "term1": "v1", + "term2": {"@value": "v2", "@type": "t2"}, + "term3": {"@value": "v3", "@language": "en"}, + "term4": 4, + "term5": [50, 51] +} diff --git a/core/src/test/resources/json-ld.org/expand/hc03-out.jsonld b/core/src/test/resources/json-ld.org/expand/hc03-out.jsonld new file mode 100644 index 00000000..cc8e658e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc03-out.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/id1", + "@type": ["http://example.com/t1"], + "http://example.com/term1": [{"@value": "v1"}], + "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], + "http://example.com/term3": [{"@value": "v3", "@language": "en"}], + "http://example.com/term4": [{"@value": 4}], + "http://example.com/term5": [{"@value": 50}, {"@value": 51}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc04-context.html b/core/src/test/resources/json-ld.org/expand/hc04-context.html new file mode 100644 index 00000000..58c70b17 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc04-context.html @@ -0,0 +1,25 @@ + + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc04-in.jsonld b/core/src/test/resources/json-ld.org/expand/hc04-in.jsonld new file mode 100644 index 00000000..5c5741fd --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc04-in.jsonld @@ -0,0 +1,9 @@ +{ + "@id": "http://example.com/id1", + "@type": "t1", + "term1": "v1", + "term2": {"@value": "v2", "@type": "t2"}, + "term3": {"@value": "v3", "@language": "en"}, + "term4": 4, + "term5": [50, 51] +} diff --git a/core/src/test/resources/json-ld.org/expand/hc04-out.jsonld b/core/src/test/resources/json-ld.org/expand/hc04-out.jsonld new file mode 100644 index 00000000..cc8e658e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc04-out.jsonld @@ -0,0 +1,9 @@ +[{ + "@id": "http://example.com/id1", + "@type": ["http://example.com/t1"], + "http://example.com/term1": [{"@value": "v1"}], + "http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}], + "http://example.com/term3": [{"@value": "v3", "@language": "en"}], + "http://example.com/term4": [{"@value": 4}], + "http://example.com/term5": [{"@value": 50}, {"@value": 51}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc05-context.html b/core/src/test/resources/json-ld.org/expand/hc05-context.html new file mode 100644 index 00000000..695ba830 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc05-context.html @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/hc05-in.jsonld b/core/src/test/resources/json-ld.org/expand/hc05-in.jsonld new file mode 100644 index 00000000..74838954 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/hc05-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": "hc05-context.html", + "@id": "http://example.com/id1", + "@type": "t1", + "term1": "v1", + "term2": {"@value": "v2", "@type": "t2"}, + "term3": {"@value": "v3", "@language": "en"}, + "term4": 4, + "term5": [50, 51] +} diff --git a/core/src/test/resources/json-ld.org/expand/js01-in.jsonld b/core/src/test/resources/json-ld.org/expand/js01-in.jsonld new file mode 100644 index 00000000..ace09383 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js01-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + }, + "e": true +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js01-out.jsonld b/core/src/test/resources/json-ld.org/expand/js01-out.jsonld new file mode 100644 index 00000000..642709fd --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js01-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#bool": [{"@value": true, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js02-in.jsonld b/core/src/test/resources/json-ld.org/expand/js02-in.jsonld new file mode 100644 index 00000000..65f32bf2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js02-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + }, + "e": false +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js02-out.jsonld b/core/src/test/resources/json-ld.org/expand/js02-out.jsonld new file mode 100644 index 00000000..640d3d29 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js02-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#bool": [{"@value": false, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js03-in.jsonld b/core/src/test/resources/json-ld.org/expand/js03-in.jsonld new file mode 100644 index 00000000..3f98c4fc --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js03-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + }, + "e": 1.23 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js03-out.jsonld b/core/src/test/resources/json-ld.org/expand/js03-out.jsonld new file mode 100644 index 00000000..060691ac --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js03-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#double": [{"@value": 1.23, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js04-in.jsonld b/core/src/test/resources/json-ld.org/expand/js04-in.jsonld new file mode 100644 index 00000000..dfd129c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js04-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + }, + "e": 0.0e0 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js04-out.jsonld b/core/src/test/resources/json-ld.org/expand/js04-out.jsonld new file mode 100644 index 00000000..278b08f0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js04-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#double": [{"@value": 0.0e0, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js05-in.jsonld b/core/src/test/resources/json-ld.org/expand/js05-in.jsonld new file mode 100644 index 00000000..22702493 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js05-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#integer", "@type": "@json"} + }, + "e": 123 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js05-out.jsonld b/core/src/test/resources/json-ld.org/expand/js05-out.jsonld new file mode 100644 index 00000000..364fc8ff --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js05-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#integer": [{"@value": 123, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js06-in.jsonld b/core/src/test/resources/json-ld.org/expand/js06-in.jsonld new file mode 100644 index 00000000..b0c57352 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js06-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#object", "@type": "@json"} + }, + "e": {"foo": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js06-out.jsonld b/core/src/test/resources/json-ld.org/expand/js06-out.jsonld new file mode 100644 index 00000000..c9df2866 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js06-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js07-in.jsonld b/core/src/test/resources/json-ld.org/expand/js07-in.jsonld new file mode 100644 index 00000000..8caa6c9f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js07-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#array", "@type": "@json"} + }, + "e": [{"foo": "bar"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js07-out.jsonld b/core/src/test/resources/json-ld.org/expand/js07-out.jsonld new file mode 100644 index 00000000..d0b1b28e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js07-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#array": [{"@value": [{"foo": "bar"}], "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js08-in.jsonld b/core/src/test/resources/json-ld.org/expand/js08-in.jsonld new file mode 100644 index 00000000..837a69a4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js08-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#array", "@type": "@json"} + }, + "e": [{"e": "bar"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js08-out.jsonld b/core/src/test/resources/json-ld.org/expand/js08-out.jsonld new file mode 100644 index 00000000..a20f5d8e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js08-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#array": [{"@value": [{"e": "bar"}], "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js09-in.jsonld b/core/src/test/resources/json-ld.org/expand/js09-in.jsonld new file mode 100644 index 00000000..cc9820a5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js09-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js09-out.jsonld b/core/src/test/resources/json-ld.org/expand/js09-out.jsonld new file mode 100644 index 00000000..c9df2866 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js09-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js10-in.jsonld b/core/src/test/resources/json-ld.org/expand/js10-in.jsonld new file mode 100644 index 00000000..e40669f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js10-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"@version": 1.1, "value": "@value", "type": "@type", "json": "@json"}, + "http://example.org/vocab#object": [{"value": {"foo": "bar"}, "type": "json"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/js10-out.jsonld b/core/src/test/resources/json-ld.org/expand/js10-out.jsonld new file mode 100644 index 00000000..c9df2866 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/js10-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/l001-in.jsonld b/core/src/test/resources/json-ld.org/expand/l001-in.jsonld new file mode 100644 index 00000000..6f4bd00b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/l001-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": { + "@id": "vocab:label", + "@container": "@language" + } + }, + "@id": "http://example.com/queen", + "label": { + "en": null, + "de": [ "Die Königin", null ] + } +} diff --git a/core/src/test/resources/json-ld.org/expand/l001-out.jsonld b/core/src/test/resources/json-ld.org/expand/l001-out.jsonld new file mode 100644 index 00000000..09860adc --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/l001-out.jsonld @@ -0,0 +1,12 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/label": + [ + { + "@value": "Die Königin", + "@language": "de" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/li01-in.jsonld b/core/src/test/resources/json-ld.org/expand/li01-in.jsonld new file mode 100644 index 00000000..75ec1a87 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li01-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example.com/foo": {"@list": [{"@list": ["baz"]}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li01-out.jsonld b/core/src/test/resources/json-ld.org/expand/li01-out.jsonld new file mode 100644 index 00000000..998c20a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li01-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@value": "baz"}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li02-in.jsonld b/core/src/test/resources/json-ld.org/expand/li02-in.jsonld new file mode 100644 index 00000000..4be9f2e8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li02-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example.com/foo": {"@list": [{"@list": []}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li02-out.jsonld b/core/src/test/resources/json-ld.org/expand/li02-out.jsonld new file mode 100644 index 00000000..e7737504 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li02-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": []}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li03-in.jsonld b/core/src/test/resources/json-ld.org/expand/li03-in.jsonld new file mode 100644 index 00000000..f5e78e4d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li03-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [{"@list": ["baz"]}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li03-out.jsonld b/core/src/test/resources/json-ld.org/expand/li03-out.jsonld new file mode 100644 index 00000000..998c20a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li03-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@value": "baz"}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li04-in.jsonld b/core/src/test/resources/json-ld.org/expand/li04-in.jsonld new file mode 100644 index 00000000..437398a9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li04-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [{"@list": []}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li04-out.jsonld b/core/src/test/resources/json-ld.org/expand/li04-out.jsonld new file mode 100644 index 00000000..e7737504 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li04-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": []}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li05-in.jsonld b/core/src/test/resources/json-ld.org/expand/li05-in.jsonld new file mode 100644 index 00000000..e38ec8ce --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li05-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [["baz"]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li05-out.jsonld b/core/src/test/resources/json-ld.org/expand/li05-out.jsonld new file mode 100644 index 00000000..998c20a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li05-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@value": "baz"}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li06-in.jsonld b/core/src/test/resources/json-ld.org/expand/li06-in.jsonld new file mode 100644 index 00000000..81c8b23e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li06-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [[]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li06-out.jsonld b/core/src/test/resources/json-ld.org/expand/li06-out.jsonld new file mode 100644 index 00000000..e7737504 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li06-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": []}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li07-in.jsonld b/core/src/test/resources/json-ld.org/expand/li07-in.jsonld new file mode 100644 index 00000000..e01353af --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li07-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [[["baz"]]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li07-out.jsonld b/core/src/test/resources/json-ld.org/expand/li07-out.jsonld new file mode 100644 index 00000000..329a79c9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li07-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@list": [{"@value": "baz"}]}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li08-in.jsonld b/core/src/test/resources/json-ld.org/expand/li08-in.jsonld new file mode 100644 index 00000000..b14f5623 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li08-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [[[]]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li08-out.jsonld b/core/src/test/resources/json-ld.org/expand/li08-out.jsonld new file mode 100644 index 00000000..0b125baf --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li08-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@list": []}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li09-in.jsonld b/core/src/test/resources/json-ld.org/expand/li09-in.jsonld new file mode 100644 index 00000000..58aea4aa --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li09-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [["a"], ["b"]] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li09-out.jsonld b/core/src/test/resources/json-ld.org/expand/li09-out.jsonld new file mode 100644 index 00000000..bb6227d1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li09-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.com/foo": [{"@list": [ + {"@list": [{"@value": "a"}]}, + {"@list": [{"@value": "b"}]} + ]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li10-in.jsonld b/core/src/test/resources/json-ld.org/expand/li10-in.jsonld new file mode 100644 index 00000000..b1db13b1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li10-in.jsonld @@ -0,0 +1,4 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [["a"], "b"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/li10-out.jsonld b/core/src/test/resources/json-ld.org/expand/li10-out.jsonld new file mode 100644 index 00000000..1d5c3bed --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/li10-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example.com/foo": [{"@list": [ + {"@list": [{"@value": "a"}]}, + {"@value": "b"} + ]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m001-in.jsonld b/core/src/test/resources/json-ld.org/expand/m001-in.jsonld new file mode 100644 index 00000000..81a736c7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m001-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "http://example.org/foo": {"label": "Object with @id "}, + "_:bar": {"label": "Object with @id _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m001-out.jsonld b/core/src/test/resources/json-ld.org/expand/m001-out.jsonld new file mode 100644 index 00000000..c44d5e63 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m001-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with @id _:bar"}], "@id": "_:bar"}, + {"http://example/label": [{"@value": "Object with @id "}], "@id": "http://example.org/foo"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m002-in.jsonld b/core/src/test/resources/json-ld.org/expand/m002-in.jsonld new file mode 100644 index 00000000..1134f16b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m002-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "http://example.org/foo": {"@id": "http://example.org/bar", "label": "Object with @id "}, + "_:bar": {"@id": "_:foo", "label": "Object with @id _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m002-out.jsonld b/core/src/test/resources/json-ld.org/expand/m002-out.jsonld new file mode 100644 index 00000000..274bb8c7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m002-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/idmap": [ + {"@id": "_:foo", "http://example/label": [{"@value": "Object with @id _:bar"}]}, + {"@id": "http://example.org/bar", "http://example/label": [{"@value": "Object with @id "}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m003-in.jsonld b/core/src/test/resources/json-ld.org/expand/m003-in.jsonld new file mode 100644 index 00000000..f79d87a6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m003-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "http://example.org/foo": {"label": "Object with @type "}, + "_:bar": {"label": "Object with @type _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m003-out.jsonld b/core/src/test/resources/json-ld.org/expand/m003-out.jsonld new file mode 100644 index 00000000..ecdfc449 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m003-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with @type _:bar"}], "@type": ["_:bar"]}, + {"http://example/label": [{"@value": "Object with @type "}], "@type": ["http://example.org/foo"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m004-in.jsonld b/core/src/test/resources/json-ld.org/expand/m004-in.jsonld new file mode 100644 index 00000000..b75a0ff8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m004-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "http://example.org/foo": {"@type": "http://example.org/bar", "label": "Object with @type "}, + "_:bar": {"@type": "_:foo", "label": "Object with @type _:bar"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m004-out.jsonld b/core/src/test/resources/json-ld.org/expand/m004-out.jsonld new file mode 100644 index 00000000..f35a9a88 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m004-out.jsonld @@ -0,0 +1,12 @@ +[{ + "http://example/typemap": [ + { + "@type": ["_:bar", "_:foo"], + "http://example/label": [{"@value": "Object with @type _:bar"}] + }, + { + "@type": ["http://example.org/foo", "http://example.org/bar"], + "http://example/label": [{"@value": "Object with @type "}] + } + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m005-in.jsonld b/core/src/test/resources/json-ld.org/expand/m005-in.jsonld new file mode 100644 index 00000000..e7de76b9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m005-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"} + }, + "idmap": { + "foo": {"label": "Object with @id "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m005-out.jsonld b/core/src/test/resources/json-ld.org/expand/m005-out.jsonld new file mode 100644 index 00000000..fe15d637 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m005-out.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with @id "}], "@id": "http://example.org/foo"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m006-in.jsonld b/core/src/test/resources/json-ld.org/expand/m006-in.jsonld new file mode 100644 index 00000000..ce359b45 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m006-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"} + }, + "typemap": { + "Foo": {"label": "Object with @type "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m006-out.jsonld b/core/src/test/resources/json-ld.org/expand/m006-out.jsonld new file mode 100644 index 00000000..a6cfccfe --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m006-out.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with @type "}], "@type": ["http://example/Foo"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m007-in.jsonld b/core/src/test/resources/json-ld.org/expand/m007-in.jsonld new file mode 100644 index 00000000..a660b729 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m007-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"}, + "label": "http://example/label" + }, + "typemap": { + "Foo": {"label": "Object with @type "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m007-out.jsonld b/core/src/test/resources/json-ld.org/expand/m007-out.jsonld new file mode 100644 index 00000000..a6cfccfe --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m007-out.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with @type "}], "@type": ["http://example/Foo"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m008-in.jsonld b/core/src/test/resources/json-ld.org/expand/m008-in.jsonld new file mode 100644 index 00000000..3e48d6e6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m008-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"}, + "Type": {"@context": {"a": "http://example.org/a"}} + }, + "typemap": { + "Type": {"a": "Object with @type "} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m008-out.jsonld b/core/src/test/resources/json-ld.org/expand/m008-out.jsonld new file mode 100644 index 00000000..e1da44ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m008-out.jsonld @@ -0,0 +1,5 @@ +[{ + "http://example/typemap": [ + {"http://example.org/a": [{"@value": "Object with @type "}], "@type": ["http://example/Type"]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m009-in.jsonld b/core/src/test/resources/json-ld.org/expand/m009-in.jsonld new file mode 100644 index 00000000..510a5700 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m009-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": { + "@id": "vocab:label", + "@container": "@language" + } + }, + "@id": "http://example.com/queen", + "label": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ], + "@none": "The Queen" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m009-out.jsonld b/core/src/test/resources/json-ld.org/expand/m009-out.jsonld new file mode 100644 index 00000000..94293f57 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m009-out.jsonld @@ -0,0 +1,11 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/label": [ + {"@value": "The Queen"}, + {"@value": "Die Königin", "@language": "de"}, + {"@value": "Ihre Majestät", "@language": "de"}, + {"@value": "The Queen", "@language": "en"} + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m010-in.jsonld b/core/src/test/resources/json-ld.org/expand/m010-in.jsonld new file mode 100644 index 00000000..adc8cac3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m010-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "vocab": "http://example.com/vocab/", + "label": { + "@id": "vocab:label", + "@container": "@language" + }, + "none": "@none" + }, + "@id": "http://example.com/queen", + "label": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ], + "none": "The Queen" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m010-out.jsonld b/core/src/test/resources/json-ld.org/expand/m010-out.jsonld new file mode 100644 index 00000000..9295bdb4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m010-out.jsonld @@ -0,0 +1,11 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/label": [ + {"@value": "Die Königin", "@language": "de"}, + {"@value": "Ihre Majestät", "@language": "de"}, + {"@value": "The Queen", "@language": "en"}, + {"@value": "The Queen"} + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m011-in.jsonld b/core/src/test/resources/json-ld.org/expand/m011-in.jsonld new file mode 100644 index 00000000..a8ba3723 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m011-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "idmap": {"@container": "@id"}, + "none": "@none" + }, + "idmap": { + "@none": {"label": "Object with no @id"}, + "none": {"label": "Another object with no @id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m011-out.jsonld b/core/src/test/resources/json-ld.org/expand/m011-out.jsonld new file mode 100644 index 00000000..1e0160ea --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m011-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/idmap": [ + {"http://example/label": [{"@value": "Object with no @id"}]}, + {"http://example/label": [{"@value": "Another object with no @id"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m012-in.jsonld b/core/src/test/resources/json-ld.org/expand/m012-in.jsonld new file mode 100644 index 00000000..c8bbe0f7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m012-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example/", + "typemap": {"@container": "@type"}, + "none": "@none" + }, + "typemap": { + "@none": {"label": "Object with no @type"}, + "none": {"label": "Another object with no @type"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m012-out.jsonld b/core/src/test/resources/json-ld.org/expand/m012-out.jsonld new file mode 100644 index 00000000..2c62979f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m012-out.jsonld @@ -0,0 +1,6 @@ +[{ + "http://example/typemap": [ + {"http://example/label": [{"@value": "Object with no @type"}]}, + {"http://example/label": [{"@value": "Another object with no @type"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m013-in.jsonld b/core/src/test/resources/json-ld.org/expand/m013-in.jsonld new file mode 100644 index 00000000..545c8c30 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m013-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]} + }, + "input": { + "@none": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m013-out.jsonld b/core/src/test/resources/json-ld.org/expand/m013-out.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m013-out.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m014-in.jsonld b/core/src/test/resources/json-ld.org/expand/m014-in.jsonld new file mode 100644 index 00000000..a1e454b2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m014-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"]}, + "none": "@none" + }, + "input": { + "none": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m014-out.jsonld b/core/src/test/resources/json-ld.org/expand/m014-out.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m014-out.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m015-in.jsonld b/core/src/test/resources/json-ld.org/expand/m015-in.jsonld new file mode 100644 index 00000000..6594c8d6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m015-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]} + }, + "input": { + "@none": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m015-out.jsonld b/core/src/test/resources/json-ld.org/expand/m015-out.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m015-out.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m016-in.jsonld b/core/src/test/resources/json-ld.org/expand/m016-in.jsonld new file mode 100644 index 00000000..13234db1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m016-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@id"]}, + "none": "@none" + }, + "input": { + "none": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/m016-out.jsonld b/core/src/test/resources/json-ld.org/expand/m016-out.jsonld new file mode 100644 index 00000000..e01c12ee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/m016-out.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/input": [{ + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n001-in.jsonld b/core/src/test/resources/json-ld.org/expand/n001-in.jsonld new file mode 100644 index 00000000..f0743058 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n001-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": {"@vocab": "http://example.org/"}, + "p1": "v1", + "@nest": { + "p2": "v2" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n001-out.jsonld b/core/src/test/resources/json-ld.org/expand/n001-out.jsonld new file mode 100644 index 00000000..c0373456 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n001-out.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [{"@value": "v2"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n002-in.jsonld b/core/src/test/resources/json-ld.org/expand/n002-in.jsonld new file mode 100644 index 00000000..36e57b95 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n002-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest": "@nest" + }, + "p1": "v1", + "nest": { + "p2": "v2" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n002-out.jsonld b/core/src/test/resources/json-ld.org/expand/n002-out.jsonld new file mode 100644 index 00000000..c0373456 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n002-out.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [{"@value": "v2"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n003-in.jsonld b/core/src/test/resources/json-ld.org/expand/n003-in.jsonld new file mode 100644 index 00000000..c1ec9022 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n003-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest": "@nest" + }, + "p1": "v1", + "nest": { + "p2": "v3" + }, + "p2": "v2" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n003-out.jsonld b/core/src/test/resources/json-ld.org/expand/n003-out.jsonld new file mode 100644 index 00000000..c8fc8de2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n003-out.jsonld @@ -0,0 +1,7 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [ + {"@value": "v2"}, + {"@value": "v3"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n004-in.jsonld b/core/src/test/resources/json-ld.org/expand/n004-in.jsonld new file mode 100644 index 00000000..eeffff0a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n004-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest1": "@nest", + "nest2": "@nest" + }, + "p1": "v1", + "nest2": { + "p2": "v4" + }, + "p2": "v2", + "nest1": { + "p2": "v3" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n004-out.jsonld b/core/src/test/resources/json-ld.org/expand/n004-out.jsonld new file mode 100644 index 00000000..90e1950b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n004-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [ + {"@value": "v2"}, + {"@value": "v3"}, + {"@value": "v4"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n005-in.jsonld b/core/src/test/resources/json-ld.org/expand/n005-in.jsonld new file mode 100644 index 00000000..a9f39497 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n005-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "p1": "v1", + "@nest": { + "p2": "v3", + "@nest": { + "p2": "v4" + } + }, + "p2": "v2" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n005-out.jsonld b/core/src/test/resources/json-ld.org/expand/n005-out.jsonld new file mode 100644 index 00000000..90e1950b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n005-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [ + {"@value": "v2"}, + {"@value": "v3"}, + {"@value": "v4"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n006-in.jsonld b/core/src/test/resources/json-ld.org/expand/n006-in.jsonld new file mode 100644 index 00000000..9b02d605 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n006-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest": "@nest" + }, + "p1": "v1", + "nest": { + "p2": ["v4", "v5"] + }, + "p2": ["v2", "v3"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n006-out.jsonld b/core/src/test/resources/json-ld.org/expand/n006-out.jsonld new file mode 100644 index 00000000..d5c10407 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n006-out.jsonld @@ -0,0 +1,9 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [ + {"@value": "v2"}, + {"@value": "v3"}, + {"@value": "v4"}, + {"@value": "v5"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n007-in.jsonld b/core/src/test/resources/json-ld.org/expand/n007-in.jsonld new file mode 100644 index 00000000..aa9e8468 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n007-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "nest": "@nest" + }, + "p1": "v1", + "nest": [{ + "p2": "v4" + }, { + "p2": "v5" + }], + "p2": ["v2", "v3"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/n007-out.jsonld b/core/src/test/resources/json-ld.org/expand/n007-out.jsonld new file mode 100644 index 00000000..d5c10407 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/n007-out.jsonld @@ -0,0 +1,9 @@ +[{ + "http://example.org/p1": [{"@value": "v1"}], + "http://example.org/p2": [ + {"@value": "v2"}, + {"@value": "v3"}, + {"@value": "v4"}, + {"@value": "v5"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p001-in.jsonld b/core/src/test/resources/json-ld.org/expand/p001-in.jsonld new file mode 100644 index 00000000..5820b1c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p001-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": [ + {"@vocab": "http://example/"}, + {"@version": 1.1, "a": {"@type": "@id"}} + ], + "a": "http://example.org/foo" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p001-out.jsonld b/core/src/test/resources/json-ld.org/expand/p001-out.jsonld new file mode 100644 index 00000000..d6a85b74 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p001-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example/a": [{"@id": "http://example.org/foo"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p002-in.jsonld b/core/src/test/resources/json-ld.org/expand/p002-in.jsonld new file mode 100644 index 00000000..c221cf91 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p002-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": [ + {"@vocab": "http://example/"}, + {"@version": 1.1, "a": {"@type": "@id"}}, + {"b": {"@type": "@id"}} + ], + "a": "http://example.org/foo", + "b": "http://example.org/bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p002-out.jsonld b/core/src/test/resources/json-ld.org/expand/p002-out.jsonld new file mode 100644 index 00000000..e38a93bb --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p002-out.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example/a": [{"@id": "http://example.org/foo"}], + "http://example/b": [{"@id": "http://example.org/bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p003-in.jsonld b/core/src/test/resources/json-ld.org/expand/p003-in.jsonld new file mode 100644 index 00000000..e50ad3c4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p003-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": [ + {"@version": 1.1, "a": {"@id": "http://example/a", "@type": "@id"}}, + {"@vocab": "http://example/", "b": {"@type": "@id"}} + ], + "a": "http://example.org/foo", + "b": "http://example.org/bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p003-out.jsonld b/core/src/test/resources/json-ld.org/expand/p003-out.jsonld new file mode 100644 index 00000000..e38a93bb --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p003-out.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example/a": [{"@id": "http://example.org/foo"}], + "http://example/b": [{"@id": "http://example.org/bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p004-in.jsonld b/core/src/test/resources/json-ld.org/expand/p004-in.jsonld new file mode 100644 index 00000000..f458decf --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p004-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": [ + {"@version": 1.1, "a": {"@id": "http://example/a", "@type": "@id"}}, + {"@vocab": "http://example/"}, + {"@version": 1.1, "b": {"@type": "@id"}} + ], + "a": "http://example.org/foo", + "b": "http://example.org/bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/p004-out.jsonld b/core/src/test/resources/json-ld.org/expand/p004-out.jsonld new file mode 100644 index 00000000..e38a93bb --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/p004-out.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example/a": [{"@id": "http://example.org/foo"}], + "http://example/b": [{"@id": "http://example.org/bar"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi01-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi01-in.jsonld new file mode 100644 index 00000000..50e86117 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi01-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "container": {"@container": "@index", "@index": "prop"} + }, + "@id": "http://example.com/annotationsTest", + "container": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi02-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi02-in.jsonld new file mode 100644 index 00000000..45f7b965 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi02-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "container": {"@index": "prop"} + }, + "@id": "http://example.com/annotationsTest", + "container": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi03-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi03-in.jsonld new file mode 100644 index 00000000..d0803e11 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi03-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "container": { + "@id": "http://example.com/container", + "@container": "@index", + "@index": "@index" + } + }, + "@id": "http://example.com/annotationsTest", + "container": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi04-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi04-in.jsonld new file mode 100644 index 00000000..e30adb37 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi04-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "container": { + "@id": "http://example.com/container", + "@container": "@index", + "@index": true + } + }, + "@id": "http://example.com/annotationsTest", + "container": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi05-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi05-in.jsonld new file mode 100644 index 00000000..e9325a44 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi05-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/", + "container": { + "@id": "http://example.com/container", + "@container": "@index", + "@index": "prop" + } + }, + "@id": "http://example.com/annotationsTest", + "container": { + "en": "The Queen", + "de": [ "Die Königin", "Ihre Majestät" ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi06-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi06-in.jsonld new file mode 100644 index 00000000..c57f9382 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi06-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + }, + "@id": "article", + "author": { + "regular": "person/1", + "guest": ["person/2", "person/3"] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi06-out.jsonld b/core/src/test/resources/json-ld.org/expand/pi06-out.jsonld new file mode 100644 index 00000000..7bd1df81 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi06-out.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@value": "guest"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@value": "guest"}]}, + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@value": "regular"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi07-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi07-in.jsonld new file mode 100644 index 00000000..e05de77c --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi07-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"} + }, + "@id": "article", + "author": { + "regular": {"@id": "person/1", "http://example.com/prop": "foo"}, + "guest": [ + {"@id": "person/2", "prop": "foo"}, + {"@id": "person/3", "prop": "foo"} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi07-out.jsonld b/core/src/test/resources/json-ld.org/expand/pi07-out.jsonld new file mode 100644 index 00000000..b8fb6b17 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi07-out.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@value": "guest"}, {"@value": "foo"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@value": "guest"}, {"@value": "foo"}]}, + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@value": "regular"}, {"@value": "foo"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi08-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi08-in.jsonld new file mode 100644 index 00000000..17b42ddd --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi08-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@vocab"} + }, + "@id": "http://example.com/article", + "author": { + "regular": "person/1", + "guest": ["person/2", "person/3"] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi08-out.jsonld b/core/src/test/resources/json-ld.org/expand/pi08-out.jsonld new file mode 100644 index 00000000..ed4bb030 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi08-out.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@id": "http://example.com/guest"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@id": "http://example.com/guest"}]}, + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@id": "http://example.com/regular"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi09-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi09-in.jsonld new file mode 100644 index 00000000..5811c345 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi09-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@vocab"} + }, + "@id": "http://example.com/article", + "author": { + "regular": {"@id": "person/1", "prop": "foo"}, + "guest": [ + {"@id": "person/2", "prop": "foo"}, + {"@id": "person/3", "prop": "foo"} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi09-out.jsonld b/core/src/test/resources/json-ld.org/expand/pi09-out.jsonld new file mode 100644 index 00000000..a4556ede --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi09-out.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@id": "http://example.com/guest"}, {"@id": "http://example.com/foo"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@id": "http://example.com/guest"}, {"@id": "http://example.com/foo"}]}, + {"@id": "http://example.com/person/1", "http://example.com/prop": [{"@id": "http://example.com/regular"}, {"@id": "http://example.com/foo"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi10-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi10-in.jsonld new file mode 100644 index 00000000..a62aba22 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi10-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@version": 1.1, + "@base": "http://example.com/", + "@vocab": "http://example.com/", + "author": {"@type": "@id", "@container": "@index", "@index": "prop"}, + "prop": {"@type": "@vocab"} + }, + "@id": "http://example.com/article", + "author": { + "@none": {"@id": "person/1"}, + "guest": [ + {"@id": "person/2"}, + {"@id": "person/3"} + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi10-out.jsonld b/core/src/test/resources/json-ld.org/expand/pi10-out.jsonld new file mode 100644 index 00000000..22faa368 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi10-out.jsonld @@ -0,0 +1,8 @@ +[{ + "@id": "http://example.com/article", + "http://example.com/author": [ + {"@id": "http://example.com/person/1"}, + {"@id": "http://example.com/person/2", "http://example.com/prop": [{"@id": "http://example.com/guest"}]}, + {"@id": "http://example.com/person/3", "http://example.com/prop": [{"@id": "http://example.com/guest"}]} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi11-in.jsonld b/core/src/test/resources/json-ld.org/expand/pi11-in.jsonld new file mode 100644 index 00000000..e3dd902a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi11-in.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.org/", + "input": {"@container": ["@graph", "@index"], "@index": "prop"} + }, + "input": { + "g1": {"value": "x"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pi11-out.jsonld b/core/src/test/resources/json-ld.org/expand/pi11-out.jsonld new file mode 100644 index 00000000..c67c64bd --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pi11-out.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.org/input": [{ + "http://example.org/prop": [{"@value": "g1"}], + "@graph": [{ + "http://example.org/value": [{"@value": "x"}] + }] + }] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/pr01-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr01-in.jsonld new file mode 100644 index 00000000..049d4cf6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr01-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "protected": { + "@protected": true + } + }, + "protected": { + "@context": { + "protected": "http://example.com/something-else" + }, + "protected": "error / property http://example.com/protected" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr02-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr02-in.jsonld new file mode 100644 index 00000000..22fe4a86 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr02-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "protected": { + "@protected": true + }, + "unprotected": { + "@protected": false + } + }, + "protected": true, + "unprotected": true, + "scope": { + "@context": { + "unprotected": "http://example.com/something-else" + }, + "unprotected": "property http://example.com/something-else" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr02-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr02-out.jsonld new file mode 100644 index 00000000..bb498495 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr02-out.jsonld @@ -0,0 +1,9 @@ +[ + { + "http://example.com/protected": [{"@value": true}], + "http://example.com/unprotected": [{"@value": true}], + "http://example.com/scope": [{ + "http://example.com/something-else": [{"@value": "property http://example.com/something-else"}] + }] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr03-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr03-in.jsonld new file mode 100644 index 00000000..c0a8aa2a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr03-in.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "@protected": true, + "protected1": { + "@id": "http://example.com/protected1" + }, + "protected2": { + "@id": "http://example.com/protected2" + } + }, + "protected1": { + "@context": { + "protected1": "http://example.com/something-else", + "protected2": "http://example.com/something-else" + }, + "protected1": "error / property http://example.com/protected1", + "protected2": "error / property http://example.com/protected2" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr04-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr04-in.jsonld new file mode 100644 index 00000000..5adc5228 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr04-in.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "@protected": true, + "protected": { + "@id": "http://example.com/protected" + }, + "unprotected": { + "@id": "http://example.com/unprotected", "@protected": false + } + }, + "protected": { + "@context": { + "protected": "http://example.com/something-else1", + "unprotected": "http://example.com/something-else2" + }, + "protected": "error / property http://example.com/protected", + "unprotected": "property http://example.com/something-else2" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr05-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr05-in.jsonld new file mode 100644 index 00000000..a7ccf05d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr05-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "@protected": true, + "protected": {"@language": null} + }, + "protected": { + "@context": [ + null, + { + "@vocab": "http://something-else/" + } + ], + "protected": "error / property http://example.com/protected" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr06-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr06-in.jsonld new file mode 100644 index 00000000..df894594 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr06-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "@protected": true, + "protected": { + "@type": "@id" + }, + "unprotected": { + "@protected": false, + "@context": null + } + }, + "unprotected": { + "protected": "not expanded, as protected is not a defined term" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr06-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr06-out.jsonld new file mode 100644 index 00000000..121aee43 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr06-out.jsonld @@ -0,0 +1,5 @@ +[ + { + "http://example.com/unprotected": [{}] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr08-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr08-in.jsonld new file mode 100644 index 00000000..357c5cee --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr08-in.jsonld @@ -0,0 +1,38 @@ +{ + "@context": { + "@vocab": "http://example.com/", + "@version": 1.1, + "protected": { + "@protected": false + }, + "scope1": { + "@protected": false, + "@context": { + "protected": { + "@id": "http://example.com/something-else" + } + } + }, + "scope2": { + "@protected": true, + "@context": { + "protected": { + "@protected": true + } + } + } + }, + "protected": false, + "scope1": { + "@context": { + "protected": "http://example.com/another-thing" + }, + "protected": "property http://example.com/another-thing" + }, + "scope2": { + "@context": { + "protected": "http://example.com/another-thing" + }, + "protected": "error / property http://example.com/protected" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr09-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr09-in.jsonld new file mode 100644 index 00000000..29895ff3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr09-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "http://example.org/protected1", + "protected2": "http://example.org/protected2" + }, + "protected2": { + "@context": { + "protected1": "http://example.org/something-else" + }, + "protected1": "error / property http://example.org/protected1" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr10-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr10-in.jsonld new file mode 100644 index 00000000..a8933fe3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr10-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "protected": { + "@id": "ex:protected", + "@protected": true + }, + "unprotected": "ex:unprotected" + }, + "protected": "p === ex:protected", + "unprotected": { + "protected": "p === ex:protected" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr10-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr10-out.jsonld new file mode 100644 index 00000000..3f10151e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr10-out.jsonld @@ -0,0 +1,18 @@ +[ + { + "ex:protected": [ + { + "@value": "p === ex:protected" + } + ], + "ex:unprotected": [ + { + "ex:protected": [ + { + "@value": "p === ex:protected" + } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr11-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr11-in.jsonld new file mode 100644 index 00000000..de185630 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr11-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@version": 1.1, + "protected": { + "@id": "ex:protected", + "@protected": true + }, + "unprotected": "ex:unprotected" + }, + "protected": "p === ex:protected", + "unprotected": { + "@context": { + "protected": "ex:protected2" + }, + "protected": "p === ex:protected" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr12-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr12-in.jsonld new file mode 100644 index 00000000..2dc30da6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr12-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "protected2": "ex:protected2" + }, + "protected1": "p === ex:protected1", + "protected2": { + "@context": { + "protected1": "ex:protected1:error" + }, + "protected1": "error / p === ex:protected1" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr13-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr13-in.jsonld new file mode 100644 index 00000000..6f8ff006 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr13-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected": "ex:protected", + "unprotected": { + "@id": "ex:unprotected1", + "@protected": false + } + }, + "protected": { + "@context": { + "unprotected": "ex:unprotected2" + }, + "unprotected": "p === ex:unprotected2" + }, + "unprotected": "p === ex:unprotected1" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr13-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr13-out.jsonld new file mode 100644 index 00000000..256cc41a --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr13-out.jsonld @@ -0,0 +1,18 @@ +[ + { + "ex:protected": [ + { + "ex:unprotected2": [ + { + "@value": "p === ex:unprotected2" + } + ] + } + ], + "ex:unprotected1": [ + { + "@value": "p === ex:unprotected1" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr14-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr14-in.jsonld new file mode 100644 index 00000000..e88b9ef2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr14-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "protected2": { + "@id": "ex:protected2", + "@context": null + } + }, + "protected1": "p === ex:protected1", + "protected2": { + "@context": { + "protected1": "ex:protected3" + }, + "protected1": "p === ex:protected3" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr14-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr14-out.jsonld new file mode 100644 index 00000000..52c399e9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr14-out.jsonld @@ -0,0 +1,18 @@ +[ + { + "ex:protected1": [ + { + "@value": "p === ex:protected1" + } + ], + "ex:protected2": [ + { + "ex:protected3": [ + { + "@value": "p === ex:protected3" + } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr15-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr15-in.jsonld new file mode 100644 index 00000000..d0cf99b1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr15-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "protected2": { + "@id": "ex:protected2", + "@context": [ + null + ] + } + }, + "protected1": "p === ex:protected1", + "protected2": { + "@context": { + "protected1": "ex:protected3" + }, + "protected1": "p === ex:protected3" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr15-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr15-out.jsonld new file mode 100644 index 00000000..52c399e9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr15-out.jsonld @@ -0,0 +1,18 @@ +[ + { + "ex:protected1": [ + { + "@value": "p === ex:protected1" + } + ], + "ex:protected2": [ + { + "ex:protected3": [ + { + "@value": "p === ex:protected3" + } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr16-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr16-in.jsonld new file mode 100644 index 00000000..61946e01 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr16-in.jsonld @@ -0,0 +1,30 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "protected2": { + "@id": "ex:protected2", + "@context": [ + null, + { + "protected1": "ex:protected3", + "unprotected": "ex:unprotected2" + } + ] + }, + "unprotected": { + "@protected": false, + "@id": "ex:unprotected1" + } + }, + "protected1": "p === ex:protected1", + "protected2": { + "@context": { + "protected1": "ex:protected3" + }, + "protected1": "p === ex:protected3", + "unprotected": "p === ex:unprotected2" + }, + "unprotected": "p === ex:unprotected1" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr16-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr16-out.jsonld new file mode 100644 index 00000000..264b8360 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr16-out.jsonld @@ -0,0 +1,28 @@ +[ + { + "ex:protected1": [ + { + "@value": "p === ex:protected1" + } + ], + "ex:protected2": [ + { + "ex:protected3": [ + { + "@value": "p === ex:protected3" + } + ], + "ex:unprotected2": [ + { + "@value": "p === ex:unprotected2" + } + ] + } + ], + "ex:unprotected1": [ + { + "@value": "p === ex:unprotected1" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr17-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr17-in.jsonld new file mode 100644 index 00000000..e2300354 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr17-in.jsonld @@ -0,0 +1,22 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "protected2": "ex:protected2", + "Protected": { + "@id": "ex:Protected", + "@context": [ + null + ] + } + }, + "protected1": "p === protected1", + "protected2": { + "@context": { + "unprotected": "ex:unprotected" + }, + "@type": "Protected", + "unprotected": "error / omitted" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr18-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr18-in.jsonld new file mode 100644 index 00000000..a6648cd6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr18-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected": "ex:protected1", + "Protected": { + "@id": "ex:Protected", + "@context": [ + null, + { + "protected": "ex:protected2" + } + ] + } + }, + "@type": "Protected", + "protected": "error / p === ex:protected1" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr19-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr19-in.jsonld new file mode 100644 index 00000000..e418cb12 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr19-in.jsonld @@ -0,0 +1,29 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "protected2": { + "@id": "ex:protected2", + "@context": [ + null, + { + "protected1": "ex:protected3" + } + ] + }, + "unprotected": { + "@protected": false, + "@id": "ex:unprotected1" + } + }, + "protected1": "p === ex:protected1", + "protected2": { + "@context": { + "protected1": "ex:protected3" + }, + "protected1": "p === ex:protected3", + "unprotected": "p === ex:unprotected2" + }, + "unprotected": "p === ex:unprotected1" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr19-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr19-out.jsonld new file mode 100644 index 00000000..0bca9e1b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr19-out.jsonld @@ -0,0 +1,23 @@ +[ + { + "ex:protected1": [ + { + "@value": "p === ex:protected1" + } + ], + "ex:protected2": [ + { + "ex:protected3": [ + { + "@value": "p === ex:protected3" + } + ] + } + ], + "ex:unprotected1": [ + { + "@value": "p === ex:unprotected1" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/pr20-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr20-in.jsonld new file mode 100644 index 00000000..69edf670 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr20-in.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected1": "ex:protected1", + "Protected": { + "@id": "ex:Protected", + "@context": [ + null, + { + "protected1": "ex:protected2", + "unprotected": "ex:unprotected2" + } + ] + }, + "unprotected": { + "@protected": false, + "@id": "ex:unprotected1" + } + }, + "@type": "Protected", + "protected1": "error / p === ex:protected1", + "unprotected": "p === ex:unprotected2" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr21-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr21-in.jsonld new file mode 100644 index 00000000..3be7f54f --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr21-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "@version": 1.1, + "@protected": true, + "protected": "ex:protected", + "Protected": { + "@id": "ex:Protected", + "@context": [ + null + ] + }, + "unprotected": { + "@protected": false, + "@id": "ex:unprotected" + } + }, + "@type": "Protected", + "protected": "error / p === ex:protected", + "unprotected": "missing" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr22-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr22-in.jsonld new file mode 100644 index 00000000..7cd17cb8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr22-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "@vocab": "http://example.com/", + "Parent": {"@context": {"@protected": true, "foo": {"@type": "@id"}}} + }, { + "@version": 1.1, + "@protected": true, + "Child": {"@context": {"@protected": true, "foo": {"@type": "@id"}}} + }], + "@type": "Parent", + "foo": { + "@type": "Child", + "foo": "http://example.com/test" + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr22-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr22-out.jsonld new file mode 100644 index 00000000..4e97b905 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr22-out.jsonld @@ -0,0 +1,20 @@ +[ + { + "@type": [ + "http://example.com/Parent" + ], + "http://example.com/foo": [ + { + "@type": [ + "http://example.com/Child" + ], + "http://example.com/foo": [ + { + "@id": "http://example.com/test" + } + ] + } + ] + } +] + diff --git a/core/src/test/resources/json-ld.org/expand/pr23-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr23-in.jsonld new file mode 100644 index 00000000..23f525f3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr23-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type" + }, { + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type" + }], + "id": "http://example/id", + "type": "http://example/type" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr23-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr23-out.jsonld new file mode 100644 index 00000000..b8fdbb80 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr23-out.jsonld @@ -0,0 +1,9 @@ +[ + { + "@id": "http://example/id", + "@type": [ + "http://example/type" + ] + } +] + diff --git a/core/src/test/resources/json-ld.org/expand/pr24-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr24-in.jsonld new file mode 100644 index 00000000..ed5af3b3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr24-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "foo": "http://example/foo#" + }, { + "@version": 1.1, + "@protected": true, + "foo": "http://example/foo#" + }], + "foo:bar": "foobar" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr24-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr24-out.jsonld new file mode 100644 index 00000000..0698413c --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr24-out.jsonld @@ -0,0 +1,8 @@ +[ + { + "http://example/foo#bar": [{ + "@value": "foobar" + }] + } +] + diff --git a/core/src/test/resources/json-ld.org/expand/pr25-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr25-in.jsonld new file mode 100644 index 00000000..02fffd68 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr25-in.jsonld @@ -0,0 +1,141 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type", + "foo": { + "@id": "http://example/foo", + "@container": ["@graph", "@set"] + }, + "bar": { + "@id": "http://example/bar", + "@type": "@id", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Bar": { + "@id": "http://example/Bar", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + }, { + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type", + "foo": { + "@id": "http://example/foo", + "@container": ["@graph", "@set"] + }, + "bar": { + "@id": "http://example/bar", + "@type": "@id", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Bar": { + "@id": "http://example/Bar", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + }], + "type": "Bar", + "foo": [{ + "bar": "http://example/" + }], + "bar-1": { + "bar-2": { + "type": "Foo", + "bar-2": "bar-2" + } + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr25-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr25-out.jsonld new file mode 100644 index 00000000..0eff6fac --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr25-out.jsonld @@ -0,0 +1,23 @@ +[ + { + "@type": [ + "http://example/Bar" + ], + "http://example/foo": [{ + "@graph": [{ + "http://example/bar": [{ + "@id": "http://example/" + }] + }] + }], + "http://example/bar-1": [{ + "http://example/bar-2": [{ + "@type": ["http://example/Foo"], + "http://example/bar-2": [{ + "@value": "bar-2" + }] + }] + }] + } +] + diff --git a/core/src/test/resources/json-ld.org/expand/pr26-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr26-in.jsonld new file mode 100644 index 00000000..28f02147 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr26-in.jsonld @@ -0,0 +1,136 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type", + "foo": { + "@id": "http://example/foo", + "@container": ["@graph", "@set"] + }, + "bar": { + "@id": "http://example/bar", + "@type": "@id", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Bar": { + "@id": "http://example/Bar", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + }, { + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type", + "foo": { + "@id": "http://example/foo", + "@container": ["@graph", "@set"] + }, + "bar": { + "@id": "http://example/bar", + "@type": "@id", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Bar": { + "@id": "http://example/Bar", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-1": { + "@id": "http://example/bar-1", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2", + "Foo": { + "@id": "http://example/Foo", + "@context": { + "@version": 1.1, + "@protected": true, + "bar-2": "http://example/bar-2" + } + } + } + } + } + }, + "Foo": { + "@id": "http://example/Foo" + } + }], + "type": "Bar", + "foo": [{ + "bar": "http://example/" + }], + "bar-1": { + "bar-2": { + "type": "Foo", + "bar-2": "bar-2" + } + } +} diff --git a/core/src/test/resources/json-ld.org/expand/pr27-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr27-in.jsonld new file mode 100644 index 00000000..27d54470 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr27-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type" + }, { + "@version": 1.1, + "id": "@id", + "type": "@type" + }], + "id": "http://example/id", + "type": "http://example/type" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr27-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr27-out.jsonld new file mode 100644 index 00000000..b8fdbb80 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr27-out.jsonld @@ -0,0 +1,9 @@ +[ + { + "@id": "http://example/id", + "@type": [ + "http://example/type" + ] + } +] + diff --git a/core/src/test/resources/json-ld.org/expand/pr28-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr28-in.jsonld new file mode 100644 index 00000000..f883af3b --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr28-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": [{ + "@version": 1.1, + "@protected": true, + "term": null + }, { + "@version": 1.1, + "term": {"@id": "http://example.com/term"} + }], + "term": "undefined" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr29-in.jsonld b/core/src/test/resources/json-ld.org/expand/pr29-in.jsonld new file mode 100644 index 00000000..e49e6c69 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr29-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@version": 1.1, + "tag": {"@id": "http://example.org/ns/tag/", "@prefix": false} + }, + "tag:champin.net,2019:prop": "This is not treated as a Compact IRI", + "tag": "tricky" +} diff --git a/core/src/test/resources/json-ld.org/expand/pr29-out.jsonld b/core/src/test/resources/json-ld.org/expand/pr29-out.jsonld new file mode 100644 index 00000000..fe204c1d --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/pr29-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "http://example.org/ns/tag/": [ + { + "@value": "tricky" + } + ] + }, + { + "tag:champin.net,2019:prop": [ + { + "@value": "This is not treated as a Compact IRI" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/expand/tn01-in.jsonld b/core/src/test/resources/json-ld.org/expand/tn01-in.jsonld new file mode 100644 index 00000000..5e83158e --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/tn01-in.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none"} + }, + "notype": [ + "string", + true, + false, + 1, + 10.0, + {"@value": "plain"}, + {"@value": true, "@type": "xsd:boolean"}, + {"@value": "english", "@language": "en"}, + {"@value": "2018-02-17", "@type": "xsd:date"}, + {"@id": "http://example.com/iri"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/tn02-in.jsonld b/core/src/test/resources/json-ld.org/expand/tn02-in.jsonld new file mode 100644 index 00000000..79c40761 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/tn02-in.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "@version": 1.1, + "xsd": "http://www.w3.org/2001/XMLSchema#", + "notype": {"@id": "http://example.com/notype", "@type": "@none"} + }, + "notype": [ + "string", + true, + false, + 1, + 10.0, + {"@value": "plain"}, + {"@value": true, "@type": "xsd:boolean"}, + {"@value": "english", "@language": "en"}, + {"@value": "2018-02-17", "@type": "xsd:date"}, + {"@id": "http://example.com/iri"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/expand/tn02-out.jsonld b/core/src/test/resources/json-ld.org/expand/tn02-out.jsonld new file mode 100644 index 00000000..2398cf62 --- /dev/null +++ b/core/src/test/resources/json-ld.org/expand/tn02-out.jsonld @@ -0,0 +1,14 @@ +[{ + "http://example.com/notype": [ + {"@value": "string"}, + {"@value": true}, + {"@value": false}, + {"@value": 1}, + {"@value": 10.0}, + {"@value": "plain"}, + {"@value": true, "@type": "http://www.w3.org/2001/XMLSchema#boolean"}, + {"@value": "english", "@language": "en"}, + {"@value": "2018-02-17", "@type": "http://www.w3.org/2001/XMLSchema#date"}, + {"@id": "http://example.com/iri"} + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0004-in.jsonld b/core/src/test/resources/json-ld.org/flatten-0004-in.jsonld deleted file mode 100644 index 5768520b..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0004-in.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, - "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"}, - "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, - "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} - }, - "@id": "http://example.org/id", - "mylist1": { "@list": [ ] }, - "mylist2": "one item", - "myset2": { "@set": [ ] }, - "myset3": [ "v1" ], - "http://example.org/list1": { "@list": [ null ] }, - "http://example.org/list2": { "@list": [ {"@value": null} ] }, - "http://example.org/set1": { "@set": [ ] }, - "http://example.org/set1": { "@set": [ null ] }, - "http://example.org/set3": [ ], - "http://example.org/set4": [ null ], - "http://example.org/set5": "one item", - "http://example.org/property": { "@list": "one item" } -} diff --git a/core/src/test/resources/json-ld.org/flatten-0004-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0004-out.jsonld deleted file mode 100644 index e1675517..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0004-out.jsonld +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "@id": "http://example.org/id", - "http://example.com/mylist1": [ - { - "@list": [ - - ] - } - ], - "http://example.com/mylist2": [ - { - "@list": [ - { - "@value": "one item" - } - ] - } - ], - "http://example.com/myset2": [ - - ], - "http://example.com/myset3": [ - { - "@value": "v1" - } - ], - "http://example.org/list1": [ - { - "@list": [ - - ] - } - ], - "http://example.org/list2": [ - { - "@list": [ - - ] - } - ], - "http://example.org/property": [ - { - "@list": [ - { - "@value": "one item" - } - ] - } - ], - "http://example.org/set1": [ - - ], - "http://example.org/set3": [ - - ], - "http://example.org/set4": [ - - ], - "http://example.org/set5": [ - { - "@value": "one item" - } - ] - } -] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0005-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0005-out.jsonld deleted file mode 100644 index 04e92a42..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0005-out.jsonld +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "@id": "http://example.com/alice#me", - "http://xmlns.com/foaf/0.1/homepage": [ - { - "@id": "http://example.com/alice" - } - ], - "http://xmlns.com/foaf/0.1/name": [ - { - "@value": "Alice" - } - ] - }, - { - "@id": "http://example.com/bob#me", - "http://xmlns.com/foaf/0.1/homepage": [ - { - "@id": "http://example.com/bob" - } - ], - "http://xmlns.com/foaf/0.1/name": [ - { - "@value": "Bob" - } - ] - }, - { - "@id": "http://json-ld.org/test-suite/tests/flatten-0005-in.jsonld#me", - "http://xmlns.com/foaf/0.1/knows": [ - { - "@id": "http://example.com/bob#me" - }, - { - "@id": "http://example.com/alice#me" - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0011-in.jsonld b/core/src/test/resources/json-ld.org/flatten-0011-in.jsonld deleted file mode 100644 index 15815597..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0011-in.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#book", - "dc:title": "Title", - "ex:contains": "http://example.org/test#chapter" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0012-in.jsonld b/core/src/test/resources/json-ld.org/flatten-0012-in.jsonld deleted file mode 100644 index d081e7fb..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0012-in.jsonld +++ /dev/null @@ -1,39 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:authored": { - "@type": "@id" - }, - "ex:contains": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@graph": [ - { - "@id": "http://example.org/test#chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - }, - { - "@id": "http://example.org/test#jane", - "ex:authored": "http://example.org/test#chapter", - "foaf:name": "Jane" - }, - { - "@id": "http://example.org/test#john", - "foaf:name": "John" - }, - { - "@id": "http://example.org/test#library", - "ex:contains": { - "@id": "http://example.org/test#book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - } - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0025-in.jsonld b/core/src/test/resources/json-ld.org/flatten-0025-in.jsonld deleted file mode 100644 index de45eb4c..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0025-in.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "foo": "http://example.com/foo/", - "foo:bar": "http://example.com/bar", - "bar": {"@id": "foo:bar", "@type": "@id"}, - "_": "http://example.com/underscore/" - }, - "@type": ["foo", "foo:bar", "_"] -} diff --git a/core/src/test/resources/json-ld.org/flatten-0025-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0025-out.jsonld deleted file mode 100644 index 3617a3e4..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0025-out.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "@id": "_:b0", - "@type": [ - "http://example.com/foo/", - "http://example.com/bar", - "http://example.com/underscore/" - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0028-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0028-out.jsonld deleted file mode 100644 index cc95a31c..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0028-out.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/example1", - "@type": [ - "http://example.org/vocab#test" - ], - "http://example.org/vocab#date": [ - { - "@value": "2011-01-25T00:00:00Z", - "@type": "http://example.org/vocab#dateTime" - } - ], - "http://example.org/vocab#embed": [ - { - "@id": "http://json-ld.org/test-suite/tests/example2" - } - ] - }, - { - "@id": "http://json-ld.org/test-suite/tests/example2", - "http://example.org/vocab#expandedDate": [ - { - "@type": "http://example.org/vocab#dateTime", - "@value": "2012-08-01T00:00:00Z" - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0029-in.jsonld b/core/src/test/resources/json-ld.org/flatten-0029-in.jsonld deleted file mode 100644 index 08cdde33..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0029-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } - }, - "@id": "relativeIris", - "@type": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../../parent-parent-eq-root", - "../../../../../still-root", - "../.././.././../../too-many-dots", - "/absolute", - "//example.org/scheme-relative" - ], - "links": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../../parent-parent-eq-root", - "./../../../useless/../../../still-root", - "../.././.././../../too-many-dots", - "/absolute", - "//example.org/scheme-relative" - ] -} diff --git a/core/src/test/resources/json-ld.org/flatten-0029-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0029-out.jsonld deleted file mode 100644 index 13b5aea5..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0029-out.jsonld +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/relativeIris", - "@type": [ - "http://json-ld.org/test-suite/tests/link", - "http://json-ld.org/test-suite/tests/flatten-0029-in.jsonld#fragment-works", - "http://json-ld.org/test-suite/tests/flatten-0029-in.jsonld?query=works", - "http://json-ld.org/test-suite/tests/", - "http://json-ld.org/test-suite/", - "http://json-ld.org/test-suite/parent", - "http://json-ld.org/parent-parent-eq-root", - "http://json-ld.org/still-root", - "http://json-ld.org/too-many-dots", - "http://json-ld.org/absolute", - "http://example.org/scheme-relative" - ], - "http://www.example.com/link": [ - { - "@list": [ - { - "@id": "http://json-ld.org/test-suite/tests/link" - }, - { - "@id": "http://json-ld.org/test-suite/tests/flatten-0029-in.jsonld#fragment-works" - }, - { - "@id": "http://json-ld.org/test-suite/tests/flatten-0029-in.jsonld?query=works" - }, - { - "@id": "http://json-ld.org/test-suite/tests/" - }, - { - "@id": "http://json-ld.org/test-suite/" - }, - { - "@id": "http://json-ld.org/test-suite/parent" - }, - { - "@id": "http://json-ld.org/parent-parent-eq-root" - }, - { - "@id": "http://json-ld.org/still-root" - }, - { - "@id": "http://json-ld.org/too-many-dots" - }, - { - "@id": "http://json-ld.org/absolute" - }, - { - "@id": "http://example.org/scheme-relative" - } - ] - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0038-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0038-out.jsonld deleted file mode 100644 index 015a684d..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0038-out.jsonld +++ /dev/null @@ -1,44 +0,0 @@ -[ - { - "@id": "_:b0", - "@type": [ - "_:b0" - ], - "_:b0": [ - { - "@id": "_:b0" - }, - { - "@id": "_:b1" - }, - { - "@value": "plain value" - }, - { - "@id": "_:b2" - }, - { - "@id": "_:b3" - }, - { - "@id": "http://json-ld.org/test-suite/tests/relativeIri" - } - ] - }, - { - "@id": "_:b1", - "_:b0": [ - { - "@value": "term" - } - ] - }, - { - "@id": "_:b2", - "_:b0": [ - { - "@value": "termId" - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0040-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0040-out.jsonld deleted file mode 100644 index 23a4e44f..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0040-out.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "@id": "http://example.com/queen", - "http://example.com/vocab/index": [ - { - "@value": "No" - }, - { - "@value": "indexes" - }, - { - "@id": "http://json-ld.org/test-suite/tests/asTheValueIsntAnObject" - } - ], - "http://example.com/vocab/label": [ - { - "@value": "The Queen" - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0042-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0042-out.jsonld deleted file mode 100644 index f667f8a8..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0042-out.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/list-equivalence-test", - "http://example.com/list": [ - { - "@list": [ { "@value": "1" }, { "@value": "2" } ] - }, - { - "@list": [ { "@value": "1" }, { "@value": "2" } ] - } - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-0043-in.jsonld b/core/src/test/resources/json-ld.org/flatten-0043-in.jsonld deleted file mode 100644 index a143cbe9..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0043-in.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@id": "", - "http://example/sequence": {"@list": [ - { - "@id": "#t0001", - "http://example/name": "Keywords cannot be aliased to other keywords", - "http://example/input": {"@id": "error-expand-0001-in.jsonld"} - } - ]} -} diff --git a/core/src/test/resources/json-ld.org/flatten-0043-out.jsonld b/core/src/test/resources/json-ld.org/flatten-0043-out.jsonld deleted file mode 100644 index 7b9417c9..00000000 --- a/core/src/test/resources/json-ld.org/flatten-0043-out.jsonld +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "@id": "http://json-ld.org/test-suite/tests/flatten-0043-in.jsonld", - "http://example/sequence": [ - {"@list": [{"@id": "http://json-ld.org/test-suite/tests/flatten-0043-in.jsonld#t0001"}]} - ] - }, - { - "@id": "http://json-ld.org/test-suite/tests/flatten-0043-in.jsonld#t0001", - "http://example/input": [ - {"@id": "http://json-ld.org/test-suite/tests/error-expand-0001-in.jsonld"} - ], - "http://example/name": [ - {"@value": "Keywords cannot be aliased to other keywords"} - ] - } -] diff --git a/core/src/test/resources/json-ld.org/flatten-manifest.jsonld b/core/src/test/resources/json-ld.org/flatten-manifest.jsonld index cea88ae5..5872b947 100644 --- a/core/src/test/resources/json-ld.org/flatten-manifest.jsonld +++ b/core/src/test/resources/json-ld.org/flatten-manifest.jsonld @@ -1,312 +1,308 @@ { - "@context": "http://json-ld.org/test-suite/context.jsonld", + "@context": "context.jsonld", "@id": "", "@type": "mf:Manifest", "name": "Flattening", "description": "JSON-LD flattening tests use object comparison.", - "baseIri": "http://json-ld.org/test-suite/tests/", + "baseIri": "https://w3c.github.io/json-ld-api/tests/", "sequence": [ { "@id": "#t0001", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "drop free-floating nodes", "purpose": "Flattening drops unreferenced nodes having only @id", - "input": "flatten-0001-in.jsonld", - "expect": "flatten-0001-out.jsonld" + "input": "flatten/0001-in.jsonld", + "expect": "flatten/0001-out.jsonld" }, { "@id": "#t0002", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "basic", "purpose": "Flattening terms with different types of values", - "input": "flatten-0002-in.jsonld", - "expect": "flatten-0002-out.jsonld" + "input": "flatten/0002-in.jsonld", + "expect": "flatten/0002-out.jsonld" }, { "@id": "#t0003", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "drop null and unmapped properties", "purpose": "Verifies that null values and unmapped properties are removed from expanded output", - "input": "flatten-0003-in.jsonld", - "expect": "flatten-0003-out.jsonld" + "input": "flatten/0003-in.jsonld", + "expect": "flatten/0003-out.jsonld" }, { "@id": "#t0004", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "optimize @set, keep empty arrays", "purpose": "Uses of @set are removed in expansion; values of @set, or just plain values which are empty arrays are retained", - "input": "flatten-0004-in.jsonld", - "expect": "flatten-0004-out.jsonld" + "input": "flatten/0004-in.jsonld", + "expect": "flatten/0004-out.jsonld" }, { "@id": "#t0005", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "do not expand aliased @id/@type", "purpose": "If a keyword is aliased, it is not used when flattening", - "input": "flatten-0005-in.jsonld", - "expect": "flatten-0005-out.jsonld" + "input": "flatten/0005-in.jsonld", + "expect": "flatten/0005-out.jsonld" }, { "@id": "#t0006", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "alias keywords", "purpose": "Aliased keywords expand in resulting document", - "input": "flatten-0006-in.jsonld", - "expect": "flatten-0006-out.jsonld" + "input": "flatten/0006-in.jsonld", + "expect": "flatten/0006-out.jsonld" }, { "@id": "#t0007", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "date type-coercion", "purpose": "Expand strings to expanded value with @type: xsd:dateTime", - "input": "flatten-0007-in.jsonld", - "expect": "flatten-0007-out.jsonld" + "input": "flatten/0007-in.jsonld", + "expect": "flatten/0007-out.jsonld" }, { "@id": "#t0008", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "@value with @language", "purpose": "Keep expanded values with @language, drop non-conforming value objects containing just @language", - "input": "flatten-0008-in.jsonld", - "expect": "flatten-0008-out.jsonld" + "input": "flatten/0008-in.jsonld", + "expect": "flatten/0008-out.jsonld" }, { "@id": "#t0009", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "@graph with terms", "purpose": "Use of @graph to contain multiple nodes within array", - "input": "flatten-0009-in.jsonld", - "expect": "flatten-0009-out.jsonld" + "input": "flatten/0009-in.jsonld", + "expect": "flatten/0009-out.jsonld" }, { "@id": "#t0010", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "native types", "purpose": "Flattening native scalar retains native scalar within expanded value", - "input": "flatten-0010-in.jsonld", - "expect": "flatten-0010-out.jsonld" + "input": "flatten/0010-in.jsonld", + "expect": "flatten/0010-out.jsonld" }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "coerced @id", "purpose": "A value of a property with @type: @id coercion expands to a node reference", - "input": "flatten-0011-in.jsonld", - "expect": "flatten-0011-out.jsonld" + "input": "flatten/0011-in.jsonld", + "expect": "flatten/0011-out.jsonld" }, { "@id": "#t0012", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "@graph with embed", "purpose": "Flattening objects containing chained objects flattens all objects", - "input": "flatten-0012-in.jsonld", - "expect": "flatten-0012-out.jsonld" + "input": "flatten/0012-in.jsonld", + "expect": "flatten/0012-out.jsonld" }, { "@id": "#t0013", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "flatten already expanded", "purpose": "Flattening an expanded/flattened document maintains input document", - "input": "flatten-0013-in.jsonld", - "expect": "flatten-0013-out.jsonld" + "input": "flatten/0013-in.jsonld", + "expect": "flatten/0013-out.jsonld" }, { "@id": "#t0014", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "@set of @value objects with keyword aliases", "purpose": "Flattening aliased @set and @value", - "input": "flatten-0014-in.jsonld", - "expect": "flatten-0014-out.jsonld" + "input": "flatten/0014-in.jsonld", + "expect": "flatten/0014-out.jsonld", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0015", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "collapse set of sets, keep empty lists", "purpose": "An array of multiple @set nodes are collapsed into a single array", - "input": "flatten-0015-in.jsonld", - "expect": "flatten-0015-out.jsonld" + "input": "flatten/0015-in.jsonld", + "expect": "flatten/0015-out.jsonld" }, { "@id": "#t0016", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "context reset", "purpose": "Setting @context to null within an embedded object resets back to initial context state", - "input": "flatten-0016-in.jsonld", - "expect": "flatten-0016-out.jsonld" + "input": "flatten/0016-in.jsonld", + "expect": "flatten/0016-out.jsonld" }, { "@id": "#t0017", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "@graph and @id aliased", "purpose": "Flattening with @graph and @id aliases", - "input": "flatten-0017-in.jsonld", - "expect": "flatten-0017-out.jsonld" + "input": "flatten/0017-in.jsonld", + "expect": "flatten/0017-out.jsonld" }, { "@id": "#t0018", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "override default @language", "purpose": "override default @language in terms; only language-tag strings", - "input": "flatten-0018-in.jsonld", - "expect": "flatten-0018-out.jsonld" + "input": "flatten/0018-in.jsonld", + "expect": "flatten/0018-out.jsonld" }, { "@id": "#t0019", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "remove @value = null", "purpose": "Flattening a value of null removes the value", - "input": "flatten-0019-in.jsonld", - "expect": "flatten-0019-out.jsonld" + "input": "flatten/0019-in.jsonld", + "expect": "flatten/0019-out.jsonld" }, { "@id": "#t0020", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "do not remove @graph if not at top-level", "purpose": "@graph used under a node is retained", - "input": "flatten-0020-in.jsonld", - "expect": "flatten-0020-out.jsonld" + "input": "flatten/0020-in.jsonld", + "expect": "flatten/0020-out.jsonld" }, { "@id": "#t0021", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "do not remove @graph at top-level if not only property", "purpose": "@graph used at the top level is retained if there are other properties", - "input": "flatten-0021-in.jsonld", - "expect": "flatten-0021-out.jsonld" + "input": "flatten/0021-in.jsonld", + "expect": "flatten/0021-out.jsonld" }, { "@id": "#t0022", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "flatten value with default language", "purpose": "Flattening with a default language applies that language to string values", - "input": "flatten-0022-in.jsonld", - "expect": "flatten-0022-out.jsonld" + "input": "flatten/0022-in.jsonld", + "expect": "flatten/0022-out.jsonld" }, { "@id": "#t0023", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Flattening list/set with coercion", "purpose": "Flattening lists and sets with properties having coercion coerces list/set values", - "input": "flatten-0023-in.jsonld", - "expect": "flatten-0023-out.jsonld" + "input": "flatten/0023-in.jsonld", + "expect": "flatten/0023-out.jsonld" }, { "@id": "#t0024", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Multiple contexts", "purpose": "Tests that contexts in an array are merged", - "input": "flatten-0024-in.jsonld", - "expect": "flatten-0024-out.jsonld" + "input": "flatten/0024-in.jsonld", + "expect": "flatten/0024-out.jsonld" }, { "@id": "#t0025", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Problematic IRI flattening tests", "purpose": "Flattening different kinds of terms and Compact IRIs", - "input": "flatten-0025-in.jsonld", - "expect": "flatten-0025-out.jsonld" + "input": "flatten/0025-in.jsonld", + "expect": "flatten/0025-out.jsonld" }, { "@id": "#t0026", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Term definition with @id: @type", "purpose": "Flattening term mapping to @type uses @type syntax", - "input": "flatten-0026-in.jsonld", - "expect": "flatten-0026-out.jsonld" + "input": "flatten/0026-in.jsonld", + "expect": "flatten/0026-out.jsonld", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0027", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Duplicate values in @list and @set", "purpose": "Duplicate values in @list and @set are not merged", - "input": "flatten-0027-in.jsonld", - "expect": "flatten-0027-out.jsonld" + "input": "flatten/0027-in.jsonld", + "expect": "flatten/0027-out.jsonld" }, { "@id": "#t0028", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Use @vocab in properties and @type but not in @id", "purpose": "@vocab is used to compact properties and @type, but is not used for @id", - "input": "flatten-0028-in.jsonld", - "expect": "flatten-0028-out.jsonld" - }, { - "@id": "#t0029", - "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], - "name": "Relative IRIs", - "purpose": "@base is used to compact @id; test with different relative IRIs", - "input": "flatten-0029-in.jsonld", - "expect": "flatten-0029-out.jsonld" + "input": "flatten/0028-in.jsonld", + "expect": "flatten/0028-out.jsonld" }, { "@id": "#t0030", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Language maps", "purpose": "Language Maps expand values to include @language", - "input": "flatten-0030-in.jsonld", - "expect": "flatten-0030-out.jsonld" + "input": "flatten/0030-in.jsonld", + "expect": "flatten/0030-out.jsonld" }, { "@id": "#t0031", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "type-coercion of native types", "purpose": "Flattening native types with type coercion adds the coerced type to an expanded value representation and retains the native value representation", - "input": "flatten-0031-in.jsonld", - "expect": "flatten-0031-out.jsonld" + "input": "flatten/0031-in.jsonld", + "expect": "flatten/0031-out.jsonld" }, { "@id": "#t0032", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Null term and @vocab", "purpose": "Mapping a term to null decouples it from @vocab", - "input": "flatten-0032-in.jsonld", - "expect": "flatten-0032-out.jsonld" + "input": "flatten/0032-in.jsonld", + "expect": "flatten/0032-out.jsonld" }, { "@id": "#t0033", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Using @vocab with with type-coercion", "purpose": "Verifies that terms can be defined using @vocab", - "input": "flatten-0033-in.jsonld", - "expect": "flatten-0033-out.jsonld" + "input": "flatten/0033-in.jsonld", + "expect": "flatten/0033-out.jsonld" }, { "@id": "#t0034", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Multiple properties expanding to the same IRI", "purpose": "Verifies multiple values from separate terms are deterministically made multiple values of the IRI associated with the terms", - "input": "flatten-0034-in.jsonld", - "expect": "flatten-0034-out.jsonld" + "input": "flatten/0034-in.jsonld", + "expect": "flatten/0034-out.jsonld" }, { "@id": "#t0035", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Language maps with @vocab, default language, and colliding property", "purpose": "Pathological tests of language maps", - "input": "flatten-0035-in.jsonld", - "expect": "flatten-0035-out.jsonld" + "input": "flatten/0035-in.jsonld", + "expect": "flatten/0035-out.jsonld" }, { "@id": "#t0036", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Flattening @index", "purpose": "Flattening index maps for terms defined with @container: @index", - "input": "flatten-0036-in.jsonld", - "expect": "flatten-0036-out.jsonld" + "input": "flatten/0036-in.jsonld", + "expect": "flatten/0036-out.jsonld" }, { "@id": "#t0037", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Flattening reverse properties", "purpose": "Flattening @reverse keeps @reverse", - "input": "flatten-0037-in.jsonld", - "expect": "flatten-0037-out.jsonld" + "input": "flatten/0037-in.jsonld", + "expect": "flatten/0037-out.jsonld" }, { "@id": "#t0038", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Flattening blank node labels", "purpose": "Blank nodes are not relabeled during expansion", - "input": "flatten-0038-in.jsonld", - "expect": "flatten-0038-out.jsonld" + "option": {"specVersion": "json-ld-1.0"}, + "input": "flatten/0038-in.jsonld", + "expect": "flatten/0038-out.jsonld" }, { "@id": "#t0039", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Using terms in a reverse-maps", "purpose": "Terms within @reverse are expanded", - "input": "flatten-0039-in.jsonld", - "expect": "flatten-0039-out.jsonld" + "input": "flatten/0039-in.jsonld", + "expect": "flatten/0039-out.jsonld" }, { "@id": "#t0040", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "language and index expansion on non-objects", "purpose": "Only invoke language and index map expansion if the value is a JSON object", - "input": "flatten-0040-in.jsonld", - "expect": "flatten-0040-out.jsonld" + "input": "flatten/0040-in.jsonld", + "expect": "flatten/0040-out.jsonld" }, { "@id": "#t0041", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Free-floating sets and lists", "purpose": "Free-floating values in sets are removed, free-floating lists are removed completely", - "input": "flatten-0041-in.jsonld", - "expect": "flatten-0041-out.jsonld" + "input": "flatten/0041-in.jsonld", + "expect": "flatten/0041-out.jsonld" }, { "@id": "#t0042", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "List objects not equivalent", "purpose": "Lists objects are implicit unlabeled blank nodes and thus never equivalent", - "input": "flatten-0042-in.jsonld", - "expect": "flatten-0042-out.jsonld" + "input": "flatten/0042-in.jsonld", + "expect": "flatten/0042-out.jsonld" }, { "@id": "#t0043", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Sample test manifest extract", "purpose": "Flatten a test manifest", - "input": "flatten-0043-in.jsonld", - "expect": "flatten-0043-out.jsonld" + "input": "flatten/0043-in.jsonld", + "expect": "flatten/0043-out.jsonld" }, { "@id": "#t0044", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], @@ -315,16 +311,113 @@ "option": { "compactArrays": false }, - "input": "flatten-0044-in.jsonld", - "context": "flatten-0044-context.jsonld", - "expect": "flatten-0044-out.jsonld" + "input": "flatten/0044-in.jsonld", + "context": "flatten/0044-context.jsonld", + "expect": "flatten/0044-out.jsonld" }, { "@id": "#t0045", "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], "name": "Blank nodes with reverse properties", "purpose": "Proper (re-)labeling of blank nodes if used with reverse properties.", - "input": "flatten-0045-in.jsonld", - "expect": "flatten-0045-out.jsonld" + "input": "flatten/0045-in.jsonld", + "expect": "flatten/0045-out.jsonld" + }, { + "@id": "#t0046", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "Empty string as identifier", + "purpose": "Usage of empty strings in identifiers needs special care when constructing the node map.", + "input": "flatten/0046-in.jsonld", + "expect": "flatten/0046-out.jsonld" + }, { + "@id": "#t0047", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "Flatten using relative fragment identifier properly joins to base", + "purpose": "Compacting a relative round-trips", + "option": {"base": "http://example.org/"}, + "input": "flatten/0047-in.jsonld", + "expect": "flatten/0047-out.jsonld" + }, { + "@id": "#t0048", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "@list with embedded object", + "purpose": "Node definitions contained within lists are flattend to top level.", + "input": "flatten/0048-in.jsonld", + "expect": "flatten/0048-out.jsonld" + }, { + "@id": "#t0049", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "context with JavaScript Object property names", + "purpose": "Flatten with context including JavaScript Object property names", + "input": "flatten/0049-in.jsonld", + "expect": "flatten/0049-out.jsonld" + }, { + "@id": "#te001", + "@type": [ "jld:NegativeEvaluationTest", "jld:FlattenTest" ], + "name": "Conflicting indexes", + "purpose": "Verifies that an exception is raised in Flattening when conflicting indexes are found", + "option": {"specVersion": "json-ld-1.1"}, + "input": "flatten/e001-in.jsonld", + "expect": "conflicting indexes" + }, { + "@id": "#th001", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "Flattens embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "flatten/h001-in.html", + "context": "flatten/h001-context.jsonld", + "expect": "flatten/h001-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th002", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "Flattens first embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "flatten/h002-in.html", + "context": "flatten/h002-context.jsonld", + "expect": "flatten/h002-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "extractAllScripts": false} + }, { + "@id": "#th003", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "Flattens targeted JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier", + "input": "flatten/h003-in.html#second", + "context": "flatten/h003-context.jsonld", + "expect": "flatten/h003-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th004", + "@type": ["jld:PositiveEvaluationTest", "jld:FlattenTest"], + "name": "Flattens all script elements by default", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier", + "input": "flatten/h004-in.html", + "context": "flatten/h004-context.jsonld", + "expect": "flatten/h004-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli01", + "@type": [ "jld:PositiveEvaluationTest", "jld:FlattenTest" ], + "name": "@list containing an deep list", + "purpose": "Lists of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "flatten/li01-in.jsonld", + "expect": "flatten/li01-out.jsonld" + }, { + "@id": "#tli02", + "@type": [ "jld:PositiveEvaluationTest", "jld:FlattenTest" ], + "name": "@list containing empty @list", + "purpose": "Lists of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "flatten/li02-in.jsonld", + "expect": "flatten/li02-out.jsonld" + }, { + "@id": "#tli03", + "@type": [ "jld:PositiveEvaluationTest", "jld:FlattenTest" ], + "name": "@list containing mixed list values", + "purpose": "Lists of lists", + "option": {"specVersion": "json-ld-1.1"}, + "input": "flatten/li03-in.jsonld", + "expect": "flatten/li03-out.jsonld" } ] } diff --git a/core/src/test/resources/json-ld.org/flatten-0001-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0001-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0001-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0001-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0001-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0001-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0002-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0002-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0002-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0002-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0002-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0002-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0002-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0002-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0003-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0003-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0003-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0003-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0003-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0003-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0003-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0003-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0004-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0004-in.jsonld new file mode 100644 index 00000000..8499bfa0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0004-in.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, + "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"}, + "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, + "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} + }, + "@id": "http://example.org/id", + "mylist1": { "@list": [ ] }, + "mylist2": "one item", + "myset2": { "@set": [ ] }, + "myset3": [ "v1" ], + "http://example.org/list1": { "@list": [ null ] }, + "http://example.org/list2": { "@list": [ {"@value": null} ] }, + "http://example.org/set1": { "@set": [ ] }, + "http://example.org/set2": { "@set": [ null ] }, + "http://example.org/set3": [ ], + "http://example.org/set4": [ null ], + "http://example.org/set5": "one item", + "http://example.org/property": { "@list": "one item" } +} diff --git a/core/src/test/resources/json-ld.org/flatten/0004-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0004-out.jsonld new file mode 100644 index 00000000..3e7c9947 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0004-out.jsonld @@ -0,0 +1,25 @@ +[ + { + "@id": "http://example.org/id", + "http://example.com/mylist1": [{"@list": []}], + "http://example.com/mylist2": [ + { + "@list": [{"@value": "one item"}] + } + ], + "http://example.com/myset2": [], + "http://example.com/myset3": [{"@value": "v1"}], + "http://example.org/list1": [{"@list": []}], + "http://example.org/list2": [{"@list": []}], + "http://example.org/property": [ + { + "@list": [{"@value": "one item"}] + } + ], + "http://example.org/set1": [], + "http://example.org/set2": [], + "http://example.org/set3": [], + "http://example.org/set4": [], + "http://example.org/set5": [{"@value": "one item"}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0005-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0005-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0005-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0005-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0005-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0005-out.jsonld new file mode 100644 index 00000000..07b0bd48 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0005-out.jsonld @@ -0,0 +1,39 @@ +[ + { + "@id": "http://example.com/alice#me", + "http://xmlns.com/foaf/0.1/homepage": [ + { + "@id": "http://example.com/alice" + } + ], + "http://xmlns.com/foaf/0.1/name": [ + { + "@value": "Alice" + } + ] + }, + { + "@id": "http://example.com/bob#me", + "http://xmlns.com/foaf/0.1/homepage": [ + { + "@id": "http://example.com/bob" + } + ], + "http://xmlns.com/foaf/0.1/name": [ + { + "@value": "Bob" + } + ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/0005-in.jsonld#me", + "http://xmlns.com/foaf/0.1/knows": [ + { + "@id": "http://example.com/bob#me" + }, + { + "@id": "http://example.com/alice#me" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten-0006-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0006-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0006-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0006-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0006-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0006-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0006-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0006-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0007-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0007-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0007-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0007-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0007-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0007-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0007-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0007-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0008-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0008-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0008-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0008-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0008-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0008-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0008-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0008-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0009-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0009-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0009-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0009-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0009-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0009-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0009-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0009-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0010-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0010-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0010-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0010-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0010-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0010-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0010-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0010-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0011-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0011-in.jsonld new file mode 100644 index 00000000..fa90d97d --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0011-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:contains": { + "@type": "@id" + }, + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "@id": "http://example.org/test#book", + "dc11:title": "Title", + "ex:contains": "http://example.org/test#chapter" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0011-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0011-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0011-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0011-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0012-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0012-in.jsonld new file mode 100644 index 00000000..ebda5732 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0012-in.jsonld @@ -0,0 +1,39 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:authored": { + "@type": "@id" + }, + "ex:contains": { + "@type": "@id" + }, + "foaf": "http://xmlns.com/foaf/0.1/", + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "@graph": [ + { + "@id": "http://example.org/test#chapter", + "dc11:description": "Fun", + "dc11:title": "Chapter One" + }, + { + "@id": "http://example.org/test#jane", + "ex:authored": "http://example.org/test#chapter", + "foaf:name": "Jane" + }, + { + "@id": "http://example.org/test#john", + "foaf:name": "John" + }, + { + "@id": "http://example.org/test#library", + "ex:contains": { + "@id": "http://example.org/test#book", + "dc11:contributor": "Writer", + "dc11:title": "My Book", + "ex:contains": "http://example.org/test#chapter" + } + } + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten-0012-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0012-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0012-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0012-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0013-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0013-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0013-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0013-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0013-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0013-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0013-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0013-out.jsonld diff --git a/core/src/test/resources/json-ld.org/expand-0014-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0014-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/expand-0014-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0014-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0014-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0014-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0014-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0014-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0015-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0015-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0015-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0015-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0015-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0015-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0015-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0015-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0016-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0016-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0016-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0016-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0016-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0016-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0016-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0016-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0017-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0017-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0017-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0017-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0017-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0017-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0017-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0017-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0018-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0018-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0018-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0018-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0018-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0018-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0018-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0018-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0019-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0019-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0019-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0019-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0019-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0019-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0019-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0019-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0020-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0020-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0020-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0020-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0020-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0020-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0020-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0020-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0021-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0021-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0021-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0021-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0021-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0021-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0021-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0021-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0022-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0022-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0022-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0022-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0022-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0022-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0022-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0022-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0023-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0023-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0023-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0023-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0023-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0023-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0023-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0023-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0024-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0024-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0024-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0024-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0024-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0024-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0024-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0024-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0025-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0025-in.jsonld new file mode 100644 index 00000000..276851f6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0025-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "foo": "http://example.com/foo/", + "foo:bar": "http://example.com/foo/bar", + "bar": {"@id": "foo:bar", "@type": "@id"}, + "_": "http://example.com/underscore/" + }, + "@type": ["foo", "foo:bar", "_"] +} diff --git a/core/src/test/resources/json-ld.org/flatten/0025-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0025-out.jsonld new file mode 100644 index 00000000..cc9881d9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0025-out.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "_:b0", + "@type": [ + "http://example.com/foo/", + "http://example.com/foo/bar", + "http://example.com/underscore/" + ] + } +] diff --git a/core/src/test/resources/json-ld.org/toRdf-0066-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0026-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0066-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0026-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0026-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0026-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0026-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0026-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0027-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0027-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0027-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0027-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0027-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0027-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0027-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0027-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0028-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0028-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0028-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0028-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0028-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0028-out.jsonld new file mode 100644 index 00000000..8e4cab76 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0028-out.jsonld @@ -0,0 +1,28 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/example1", + "@type": [ + "http://example.org/vocab#test" + ], + "http://example.org/vocab#date": [ + { + "@value": "2011-01-25T00:00:00Z", + "@type": "http://example.org/vocab#dateTime" + } + ], + "http://example.org/vocab#embed": [ + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/example2" + } + ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/example2", + "http://example.org/vocab#expandedDate": [ + { + "@type": "http://example.org/vocab#dateTime", + "@value": "2012-08-01T00:00:00Z" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten-0030-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0030-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0030-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0030-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0030-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0030-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0030-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0030-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0031-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0031-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0031-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0031-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0031-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0031-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0031-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0031-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0032-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0032-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0032-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0032-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0032-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0032-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0032-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0032-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0033-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0033-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0033-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0033-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0033-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0033-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0033-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0033-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0034-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0034-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0034-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0034-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0034-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0034-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0034-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0034-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0035-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0035-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0035-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0035-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0035-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0035-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0035-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0035-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0036-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0036-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0036-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0036-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0036-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0036-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0036-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0036-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0037-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0037-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0037-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0037-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0037-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0037-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0037-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0037-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0038-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0038-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0038-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0038-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0038-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0038-out.jsonld new file mode 100644 index 00000000..c473598e --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0038-out.jsonld @@ -0,0 +1,44 @@ +[ + { + "@id": "_:b0", + "@type": [ + "_:b0" + ], + "_:b0": [ + { + "@id": "_:b0" + }, + { + "@id": "_:b1" + }, + { + "@value": "plain value" + }, + { + "@id": "_:b2" + }, + { + "@id": "_:b3" + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/relativeIri" + } + ] + }, + { + "@id": "_:b1", + "_:b0": [ + { + "@value": "term" + } + ] + }, + { + "@id": "_:b2", + "_:b0": [ + { + "@value": "termId" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten-0039-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0039-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0039-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0039-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0039-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0039-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0039-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0039-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0040-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0040-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0040-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0040-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0040-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0040-out.jsonld new file mode 100644 index 00000000..bea4691d --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0040-out.jsonld @@ -0,0 +1,21 @@ +[ + { + "@id": "http://example.com/queen", + "http://example.com/vocab/index": [ + { + "@value": "No" + }, + { + "@value": "indexes" + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/asTheValueIsntAnObject" + } + ], + "http://example.com/vocab/label": [ + { + "@value": "The Queen" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten-0041-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0041-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0041-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0041-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0041-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0041-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0041-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0041-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0042-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0042-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0042-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0042-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0042-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0042-out.jsonld new file mode 100644 index 00000000..6d0c41f6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0042-out.jsonld @@ -0,0 +1,13 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/list-equivalence-test", + "http://example.com/list": [ + { + "@list": [ { "@value": "1" }, { "@value": "2" } ] + }, + { + "@list": [ { "@value": "1" }, { "@value": "2" } ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten/0043-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0043-in.jsonld new file mode 100644 index 00000000..bdcb3ebd --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0043-in.jsonld @@ -0,0 +1,10 @@ +{ + "@id": "", + "http://example/sequence": {"@list": [ + { + "@id": "#t0001", + "http://example/name": "Keywords cannot be aliased to other keywords", + "http://example/input": {"@id": "0001-in.jsonld"} + } + ]} +} diff --git a/core/src/test/resources/json-ld.org/flatten/0043-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0043-out.jsonld new file mode 100644 index 00000000..bcaacf8a --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0043-out.jsonld @@ -0,0 +1,17 @@ +[ + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/0043-in.jsonld", + "http://example/sequence": [ + {"@list": [{"@id": "https://w3c.github.io/json-ld-api/tests/flatten/0043-in.jsonld#t0001"}]} + ] + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/flatten/0043-in.jsonld#t0001", + "http://example/input": [ + {"@id": "https://w3c.github.io/json-ld-api/tests/flatten/0001-in.jsonld"} + ], + "http://example/name": [ + {"@value": "Keywords cannot be aliased to other keywords"} + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten-0044-context.jsonld b/core/src/test/resources/json-ld.org/flatten/0044-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0044-context.jsonld rename to core/src/test/resources/json-ld.org/flatten/0044-context.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0044-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0044-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0044-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0044-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0044-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0044-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0044-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0044-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0045-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0045-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0045-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/0045-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten-0045-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0045-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0045-out.jsonld rename to core/src/test/resources/json-ld.org/flatten/0045-out.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/0046-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0046-in.jsonld new file mode 100644 index 00000000..87b32f49 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0046-in.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@base": null + }, + "@id": "", + "http://example.com/foo": "bar", + "@graph": [ + { + "@id": "", + "http://example.com/baz": "bam" + }, + { + "@id": "0", + "http://example.com/baaaaaz": "baaaam" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/flatten/0046-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0046-out.jsonld new file mode 100644 index 00000000..6268e047 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0046-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "@id": "", + "http://example.com/foo": [ { "@value": "bar" } ], + "@graph": [ + { + "@id": "", + "http://example.com/baz": [ { "@value": "bam" } ] + }, + { + "@id": "0", + "http://example.com/baaaaaz": [ { "@value": "baaaam" } ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/flatten/0047-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0047-in.jsonld new file mode 100644 index 00000000..c81b9842 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0047-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@base": "http://example.com/", + "iot": "http://example.com/core/#" + }, + "iot:associated": { "@id": "#Light" } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/0047-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0047-out.jsonld new file mode 100644 index 00000000..461d7fe3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0047-out.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "_:b0", + "http://example.com/core/#associated": [ + { + "@id": "http://example.com/#Light" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/0048-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0048-in.jsonld new file mode 100644 index 00000000..26b14249 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0048-in.jsonld @@ -0,0 +1,8 @@ +[{ + "http://example.com/foo": [{ + "@list": [{ + "@id": "http://example.com/baz", + "http://example.com/bar": "buz"} + ]} + ]} +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/0048-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0048-out.jsonld new file mode 100644 index 00000000..f3ede2ef --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0048-out.jsonld @@ -0,0 +1,16 @@ +[ + { + "@id": "_:b0", + "http://example.com/foo": [{ + "@list": [ + { + "@id": "http://example.com/baz" + } + ] + }] + }, + { + "@id": "http://example.com/baz", + "http://example.com/bar": [{"@value": "buz"}] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/0049-in.jsonld b/core/src/test/resources/json-ld.org/flatten/0049-in.jsonld new file mode 100644 index 00000000..4f679fd3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0049-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "valueOf": "http://example.org/valueOf", + "toString": "http://example.org/toString" + }, + "@id": "ex:test", + "valueOf": "first", + "toString": "second" +} diff --git a/core/src/test/resources/json-ld.org/flatten/0049-out.jsonld b/core/src/test/resources/json-ld.org/flatten/0049-out.jsonld new file mode 100644 index 00000000..af6d36de --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/0049-out.jsonld @@ -0,0 +1,15 @@ +[ + { + "@id": "ex:test", + "http://example.org/valueOf": [ + { + "@value": "first" + } + ], + "http://example.org/toString": [ + { + "@value": "second" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/error-0043-in.jsonld b/core/src/test/resources/json-ld.org/flatten/e001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/error-0043-in.jsonld rename to core/src/test/resources/json-ld.org/flatten/e001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/flatten/h001-context.jsonld b/core/src/test/resources/json-ld.org/flatten/h001-context.jsonld new file mode 100644 index 00000000..c9ee5d89 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h001-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h001-in.html b/core/src/test/resources/json-ld.org/flatten/h001-in.html new file mode 100644 index 00000000..57328e38 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h001-in.html @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h001-out.jsonld b/core/src/test/resources/json-ld.org/flatten/h001-out.jsonld new file mode 100644 index 00000000..b62c9ff4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h001-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + }, + "@graph": [{"@id": "_:b0","foo": ["bar"]} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h002-context.jsonld b/core/src/test/resources/json-ld.org/flatten/h002-context.jsonld new file mode 100644 index 00000000..c9ee5d89 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h002-context.jsonld @@ -0,0 +1,5 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h002-in.html b/core/src/test/resources/json-ld.org/flatten/h002-in.html new file mode 100644 index 00000000..b287ab50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h002-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h002-out.jsonld b/core/src/test/resources/json-ld.org/flatten/h002-out.jsonld new file mode 100644 index 00000000..b62c9ff4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h002-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + }, + "@graph": [{"@id": "_:b0","foo": ["bar"]} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h003-context.jsonld b/core/src/test/resources/json-ld.org/flatten/h003-context.jsonld new file mode 100644 index 00000000..bd58ee54 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h003-context.jsonld @@ -0,0 +1,3 @@ +{ + "@context": {"ex": "http://example.com/"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h003-in.html b/core/src/test/resources/json-ld.org/flatten/h003-in.html new file mode 100644 index 00000000..f18c1dae --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h003-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h003-out.jsonld b/core/src/test/resources/json-ld.org/flatten/h003-out.jsonld new file mode 100644 index 00000000..cd0c43e1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h003-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": {"ex": "http://example.com/"}, + "@graph": [ + {"@id": "_:b0", "ex:foo": "foo"}, + {"@id": "_:b1", "ex:bar": "bar"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h004-context.jsonld b/core/src/test/resources/json-ld.org/flatten/h004-context.jsonld new file mode 100644 index 00000000..c68c329c --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h004-context.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "ex": "http://example.com/", + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h004-in.html b/core/src/test/resources/json-ld.org/flatten/h004-in.html new file mode 100644 index 00000000..cfac7160 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h004-in.html @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/h004-out.jsonld b/core/src/test/resources/json-ld.org/flatten/h004-out.jsonld new file mode 100644 index 00000000..e0315dd2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/h004-out.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "ex": "http://example.com/", + "foo": {"@id": "http://example.com/foo", "@container": "@list"} + }, + "@graph": [ + {"@id": "_:b0", "foo": ["bar"]}, + {"@id": "_:b1", "ex:foo": "foo"}, + {"@id": "_:b2", "ex:bar": "bar"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/li01-in.jsonld b/core/src/test/resources/json-ld.org/flatten/li01-in.jsonld new file mode 100644 index 00000000..329a79c9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/li01-in.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.com/foo": [{"@list": [{"@list": [{"@list": [{"@value": "baz"}]}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/li01-out.jsonld b/core/src/test/resources/json-ld.org/flatten/li01-out.jsonld new file mode 100644 index 00000000..131f9b3a --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/li01-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "_:b0", + "http://example.com/foo": [{"@list": [{"@list": [{"@list": [{"@value": "baz"}]}]}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/li02-in.jsonld b/core/src/test/resources/json-ld.org/flatten/li02-in.jsonld new file mode 100644 index 00000000..4be9f2e8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/li02-in.jsonld @@ -0,0 +1,3 @@ +{ + "http://example.com/foo": {"@list": [{"@list": []}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/li02-out.jsonld b/core/src/test/resources/json-ld.org/flatten/li02-out.jsonld new file mode 100644 index 00000000..80abdac0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/li02-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "_:b0", + "http://example.com/foo": [{"@list": [{"@list": []}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/li03-in.jsonld b/core/src/test/resources/json-ld.org/flatten/li03-in.jsonld new file mode 100644 index 00000000..96afcbaa --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/li03-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": {"foo": {"@id": "http://example.com/foo", "@container": "@list"}}, + "foo": [ + [{"@id": "http://example/a", "@type": "http://example/Bar"}], + {"@id": "http://example/b", "@type": "http://example/Baz"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/flatten/li03-out.jsonld b/core/src/test/resources/json-ld.org/flatten/li03-out.jsonld new file mode 100644 index 00000000..155ccd8c --- /dev/null +++ b/core/src/test/resources/json-ld.org/flatten/li03-out.jsonld @@ -0,0 +1,19 @@ +[{ + "@id": "_:b0", + "http://example.com/foo": [{"@list": [ + {"@list": [{"@id": "http://example/a"}]}, + {"@id": "http://example/b"} + ]}] +}, +{ + "@id": "http://example/a", + "@type": [ + "http://example/Bar" + ] +}, +{ + "@id": "http://example/b", + "@type": [ + "http://example/Baz" + ] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0001-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0001-frame.jsonld deleted file mode 100644 index 16faf5bb..00000000 --- a/core/src/test/resources/json-ld.org/frame-0001-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Library", - "ex:contains": { - "@type": "ex:Book", - "ex:contains": { - "@type": "ex:Chapter" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0001-in.jsonld b/core/src/test/resources/json-ld.org/frame-0001-in.jsonld deleted file mode 100644 index dcc2dfab..00000000 --- a/core/src/test/resources/json-ld.org/frame-0001-in.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0001-out.jsonld b/core/src/test/resources/json-ld.org/frame-0001-out.jsonld deleted file mode 100644 index c2be4d27..00000000 --- a/core/src/test/resources/json-ld.org/frame-0001-out.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0002-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0002-frame.jsonld deleted file mode 100644 index 16faf5bb..00000000 --- a/core/src/test/resources/json-ld.org/frame-0002-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Library", - "ex:contains": { - "@type": "ex:Book", - "ex:contains": { - "@type": "ex:Chapter" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0002-in.jsonld b/core/src/test/resources/json-ld.org/frame-0002-in.jsonld deleted file mode 100644 index ba0b5b1b..00000000 --- a/core/src/test/resources/json-ld.org/frame-0002-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One", - "ex:act": "ex:ActOne" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0002-out.jsonld b/core/src/test/resources/json-ld.org/frame-0002-out.jsonld deleted file mode 100644 index db497ada..00000000 --- a/core/src/test/resources/json-ld.org/frame-0002-out.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One", - "ex:act": "ex:ActOne" - } - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0003-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0003-frame.jsonld deleted file mode 100644 index 9da49cf2..00000000 --- a/core/src/test/resources/json-ld.org/frame-0003-frame.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:DoesNotExist" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0003-in.jsonld b/core/src/test/resources/json-ld.org/frame-0003-in.jsonld deleted file mode 100644 index aef9e876..00000000 --- a/core/src/test/resources/json-ld.org/frame-0003-in.jsonld +++ /dev/null @@ -1,29 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0003-out.jsonld b/core/src/test/resources/json-ld.org/frame-0003-out.jsonld deleted file mode 100644 index dde98f3d..00000000 --- a/core/src/test/resources/json-ld.org/frame-0003-out.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0004-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0004-frame.jsonld deleted file mode 100644 index 8954e01f..00000000 --- a/core/src/test/resources/json-ld.org/frame-0004-frame.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@type": "ex:Library" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0004-in.jsonld b/core/src/test/resources/json-ld.org/frame-0004-in.jsonld deleted file mode 100644 index dcc2dfab..00000000 --- a/core/src/test/resources/json-ld.org/frame-0004-in.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0004-out.jsonld b/core/src/test/resources/json-ld.org/frame-0004-out.jsonld deleted file mode 100644 index 8b780018..00000000 --- a/core/src/test/resources/json-ld.org/frame-0004-out.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0005-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0005-frame.jsonld deleted file mode 100644 index df6e66e6..00000000 --- a/core/src/test/resources/json-ld.org/frame-0005-frame.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@explicit": true, - "@type": "ex:Library", - "ex:contains": { - "@explicit": true, - "@type": "ex:Book", - "dc:title": {}, - "ex:contains": { - "@explicit": true, - "@type": "ex:Chapter", - "dc:title": {}, - "ex:null": {} - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0005-in.jsonld b/core/src/test/resources/json-ld.org/frame-0005-in.jsonld deleted file mode 100644 index aef9e876..00000000 --- a/core/src/test/resources/json-ld.org/frame-0005-in.jsonld +++ /dev/null @@ -1,29 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0005-out.jsonld b/core/src/test/resources/json-ld.org/frame-0005-out.jsonld deleted file mode 100644 index 279d8168..00000000 --- a/core/src/test/resources/json-ld.org/frame-0005-out.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:title": "Chapter One", - "ex:null": null - } - } - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0006-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0006-frame.jsonld deleted file mode 100644 index 16faf5bb..00000000 --- a/core/src/test/resources/json-ld.org/frame-0006-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Library", - "ex:contains": { - "@type": "ex:Book", - "ex:contains": { - "@type": "ex:Chapter" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0006-in.jsonld b/core/src/test/resources/json-ld.org/frame-0006-in.jsonld deleted file mode 100644 index 7a1294bd..00000000 --- a/core/src/test/resources/json-ld.org/frame-0006-in.jsonld +++ /dev/null @@ -1,30 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0006-out.jsonld b/core/src/test/resources/json-ld.org/frame-0006-out.jsonld deleted file mode 100644 index c2be4d27..00000000 --- a/core/src/test/resources/json-ld.org/frame-0006-out.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0007-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0007-frame.jsonld deleted file mode 100644 index 16faf5bb..00000000 --- a/core/src/test/resources/json-ld.org/frame-0007-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Library", - "ex:contains": { - "@type": "ex:Book", - "ex:contains": { - "@type": "ex:Chapter" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0007-in.jsonld b/core/src/test/resources/json-ld.org/frame-0007-in.jsonld deleted file mode 100644 index 04580d2d..00000000 --- a/core/src/test/resources/json-ld.org/frame-0007-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": [ - "ex:Library", - "ex:Building" - ], - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0007-out.jsonld b/core/src/test/resources/json-ld.org/frame-0007-out.jsonld deleted file mode 100644 index 76af6190..00000000 --- a/core/src/test/resources/json-ld.org/frame-0007-out.jsonld +++ /dev/null @@ -1,25 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": [ - "ex:Library", - "ex:Building" - ], - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0008-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0008-frame.jsonld deleted file mode 100644 index 8dfff9d8..00000000 --- a/core/src/test/resources/json-ld.org/frame-0008-frame.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:embedded": {"@container": "@set"}, - "ex:literal": {"@container": "@set"}, - "ex:mixed": {"@container": "@set"}, - "ex:single": {"@container": "@set"} - }, - "@type": "ex:Example", - "ex:embedded": {}, - "ex:literal": {}, - "ex:mixed": {"@embed": false}, - "ex:single": {} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0008-in.jsonld b/core/src/test/resources/json-ld.org/frame-0008-in.jsonld deleted file mode 100644 index de162963..00000000 --- a/core/src/test/resources/json-ld.org/frame-0008-in.jsonld +++ /dev/null @@ -1,38 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@graph": [ - { - "@id": "http://example.org/test/#example", - "@type": "ex:Example", - "ex:embedded": { - "@id": "http://example.org/test#subject1" - }, - "ex:literal": [ - "str1", - "str2", - "str3" - ], - "ex:mixed": [ - { - "@id": "http://example.org/test#iri1" - }, - "literal1", - { - "@id": "http://example.org/test#iri2" - }, - "literal2", - { - "@id": "http://example.org/test#subject2", - "ex:prop": "property" - } - ], - "ex:single": "single" - }, - { - "@id": "http://example.org/test#subject1", - "ex:prop": "property" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0008-out.jsonld b/core/src/test/resources/json-ld.org/frame-0008-out.jsonld deleted file mode 100644 index c4acd177..00000000 --- a/core/src/test/resources/json-ld.org/frame-0008-out.jsonld +++ /dev/null @@ -1,40 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:embedded": {"@container": "@set"}, - "ex:literal": {"@container": "@set"}, - "ex:mixed": {"@container": "@set"}, - "ex:single": {"@container": "@set"} - }, - "@graph": [{ - "@id": "http://example.org/test/#example", - "@type": "ex:Example", - "ex:embedded": [ - { - "@id": "http://example.org/test#subject1", - "ex:prop": "property" - } - ], - "ex:literal": [ - "str1", - "str2", - "str3" - ], - "ex:mixed": [ - { - "@id": "http://example.org/test#iri1" - }, - "literal1", - { - "@id": "http://example.org/test#iri2" - }, - "literal2", - { - "@id": "http://example.org/test#subject2" - } - ], - "ex:single": [ - "single" - ] - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0009-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0009-frame.jsonld deleted file mode 100644 index 13524dac..00000000 --- a/core/src/test/resources/json-ld.org/frame-0009-frame.jsonld +++ /dev/null @@ -1,24 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p7": {"@container": "@set"} - }, - "@type": "ex:Example1", - "ex:p2": { - "@default": "custom-default" - }, - "ex:p3": { - "@default": 3 - }, - "ex:p4": { - "@omitDefault": true - }, - "ex:p5": {}, - "ex:p6": { - "@type": "ex:Example2", - "ex:p3": { - "@default": 4 - } - }, - "ex:p7": {"@type": "ex:Example3"} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0009-in.jsonld b/core/src/test/resources/json-ld.org/frame-0009-in.jsonld deleted file mode 100644 index bf63f48b..00000000 --- a/core/src/test/resources/json-ld.org/frame-0009-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@graph": [ - { - "@id": "http://example.org/test/#example1", - "@type": "ex:Example1", - "ex:p1": "non-default", - "ex:p6": { - "@id": "http://example.org/test/#example2" - } - }, - { - "@id": "http://example.org/test/#example2", - "@type": "ex:Example2" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0009-out.jsonld b/core/src/test/resources/json-ld.org/frame-0009-out.jsonld deleted file mode 100644 index 0d6eaa46..00000000 --- a/core/src/test/resources/json-ld.org/frame-0009-out.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p7": {"@container": "@set"} - }, - "@graph": [{ - "@id": "http://example.org/test/#example1", - "@type": "ex:Example1", - "ex:p1": "non-default", - "ex:p2": "custom-default", - "ex:p3": 3, - "ex:p5": null, - "ex:p6": { - "@id": "http://example.org/test/#example2", - "@type": "ex:Example2", - "ex:p3": 4 - }, - "ex:p7": [] - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0010-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0010-frame.jsonld deleted file mode 100644 index a6cea2b2..00000000 --- a/core/src/test/resources/json-ld.org/frame-0010-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/terms/", - "dc:creator": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "ps": "http://purl.org/payswarm#" - }, - "@id": "http://example.com/asset", - "@type": "ps:Asset", - "dc:creator": {} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0010-in.jsonld b/core/src/test/resources/json-ld.org/frame-0010-in.jsonld deleted file mode 100644 index ecc4cdb7..00000000 --- a/core/src/test/resources/json-ld.org/frame-0010-in.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "dc0": "http://purl.org/dc/terms/", - "dc:creator": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "ps": "http://purl.org/payswarm#" - }, - "@id": "http://example.com/asset", - "@type": "ps:Asset", - "dc:creator": { - "foaf:name": "John Doe" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0010-out.jsonld b/core/src/test/resources/json-ld.org/frame-0010-out.jsonld deleted file mode 100644 index 0c5bbf72..00000000 --- a/core/src/test/resources/json-ld.org/frame-0010-out.jsonld +++ /dev/null @@ -1,18 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/terms/", - "dc:creator": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "ps": "http://purl.org/payswarm#" - }, - "@graph": [{ - "@id": "http://example.com/asset", - "@type": "ps:Asset", - "dc:creator": { - "@id": "_:b0", - "foaf:name": "John Doe" - } - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0011-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0011-frame.jsonld deleted file mode 100644 index c219d400..00000000 --- a/core/src/test/resources/json-ld.org/frame-0011-frame.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -{ - "@context": { - "ex": "http://www.example.com/#" - }, - "@type": "ex:Thing", - "ex:embed": { - "@embed": true - }, - "ex:noembed": { - "@embed": false - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0011-in.jsonld b/core/src/test/resources/json-ld.org/frame-0011-in.jsonld deleted file mode 100644 index d5df9e32..00000000 --- a/core/src/test/resources/json-ld.org/frame-0011-in.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "ex": "http://www.example.com/#" - }, - "@id": "ex:subject", - "@type": "ex:Thing", - "ex:embed": { - "@id": "ex:embedded", - "ex:title": "Embedded" - }, - "ex:noembed": { - "@id": "ex:notembedded", - "ex:title": "Not Embedded" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0011-out.jsonld b/core/src/test/resources/json-ld.org/frame-0011-out.jsonld deleted file mode 100644 index 358ab54c..00000000 --- a/core/src/test/resources/json-ld.org/frame-0011-out.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "ex": "http://www.example.com/#" - }, - "@graph": [{ - "@id": "ex:subject", - "@type": "ex:Thing", - "ex:embed": { - "@id": "ex:embedded", - "ex:title": "Embedded" - }, - "ex:noembed": { - "@id": "ex:notembedded" - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0012-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0012-frame.jsonld deleted file mode 100644 index e82a7b4e..00000000 --- a/core/src/test/resources/json-ld.org/frame-0012-frame.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "sp": "http://smartplatforms.org/terms#" - }, - "@type": ["sp:Medication", "sp:Fulfillment"], - "sp:hasFulfillment": {"@omitDefault": true, "@embed": false}, - "sp:hasMedication": {"@omitDefault": true, "@embed": false} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0012-in.jsonld b/core/src/test/resources/json-ld.org/frame-0012-in.jsonld deleted file mode 100644 index 9b0d0edf..00000000 --- a/core/src/test/resources/json-ld.org/frame-0012-in.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@graph": [ - { - "@id": "http://example.org/med-1", - "@type": "http://smartplatforms.org/terms#Medication", - "http://smartplatforms.org/terms#hasFulfillment": { - "@id": "http://example.org/fill-1" - }, - "http://smartplatforms.org/terms#label": "Lisinopril" - }, - { - "@id": "http://example.org/fill-1", - "@type": "http://smartplatforms.org/terms#Fulfillment", - "http://smartplatforms.org/terms#hasMedication": { - "@id": "http://example.org/med-1" - }, - "http://smartplatforms.org/terms#label": "30 pills on 2/2/2011" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0012-out.jsonld b/core/src/test/resources/json-ld.org/frame-0012-out.jsonld deleted file mode 100644 index 2f14f160..00000000 --- a/core/src/test/resources/json-ld.org/frame-0012-out.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "sp": "http://smartplatforms.org/terms#" - }, - "@graph": [{ - "@id": "http://example.org/fill-1", - "@type": "sp:Fulfillment", - "sp:hasMedication": { - "@id": "http://example.org/med-1" - }, - "sp:label": "30 pills on 2/2/2011" - }, { - "@id": "http://example.org/med-1", - "@type": "sp:Medication", - "sp:hasFulfillment": { - "@id": "http://example.org/fill-1" - }, - "sp:label": "Lisinopril" - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0013-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0013-frame.jsonld deleted file mode 100644 index e08311af..00000000 --- a/core/src/test/resources/json-ld.org/frame-0013-frame.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0013-in.jsonld b/core/src/test/resources/json-ld.org/frame-0013-in.jsonld deleted file mode 100644 index eee483e7..00000000 --- a/core/src/test/resources/json-ld.org/frame-0013-in.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/" - }, - "@graph": [ - { - "@id": "ex:looker", - "ex:canSee": [ - { - "@id": "ex:forgotten" - }, - { - "@id": "ex:spotted" - } - ] - }, - { - "@id": "ex:spotted" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0013-out.jsonld b/core/src/test/resources/json-ld.org/frame-0013-out.jsonld deleted file mode 100644 index 21f45221..00000000 --- a/core/src/test/resources/json-ld.org/frame-0013-out.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/" - }, - "@graph": [{ - "@id": "ex:forgotten" - }, { - "@id": "ex:looker", - "ex:canSee": [ - { - "@id": "ex:forgotten" - }, - { - "@id": "ex:spotted" - } - ] - }, { - "@id": "ex:spotted" - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0014-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0014-frame.jsonld deleted file mode 100644 index a2e7f4be..00000000 --- a/core/src/test/resources/json-ld.org/frame-0014-frame.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/" - }, - "@type": ["ex:Node"] -} diff --git a/core/src/test/resources/json-ld.org/frame-0014-in.jsonld b/core/src/test/resources/json-ld.org/frame-0014-in.jsonld deleted file mode 100644 index b4f8ed8a..00000000 --- a/core/src/test/resources/json-ld.org/frame-0014-in.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/" - }, - "@id": "ex:a", - "@type": "ex:Node", - "ex:sees": { - "@id": "ex:b", - "@type": "ex:Node", - "ex:sees": { - "ex:remember_me": "This value should not disappear." - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0014-out.jsonld b/core/src/test/resources/json-ld.org/frame-0014-out.jsonld deleted file mode 100644 index 38c0b146..00000000 --- a/core/src/test/resources/json-ld.org/frame-0014-out.jsonld +++ /dev/null @@ -1,24 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/" - }, - "@graph": [{ - "@id": "ex:a", - "@type": "ex:Node", - "ex:sees": { - "@id": "ex:b", - "@type": "ex:Node", - "ex:sees": { - "@id": "_:b0", - "ex:remember_me": "This value should not disappear." - } - } - }, { - "@id": "ex:b", - "@type": "ex:Node", - "ex:sees": { - "@id": "_:b0", - "ex:remember_me": "This value should not disappear." - } - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0015-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0015-frame.jsonld deleted file mode 100644 index 04223492..00000000 --- a/core/src/test/resources/json-ld.org/frame-0015-frame.jsonld +++ /dev/null @@ -1,93 +0,0 @@ -{ - "@context": { - "api": "http://smartplatforms.org/terms/api#", - "dcterms": "http://purl.org/dc/terms/", - "foaf": "http://xmlns.com/foaf/0.1/", - "owl": "http://www.w3.org/2002/07/owl#", - "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", - "rdfs": "http://www.w3.org/2000/01/rdf-schema#", - "sp": "http://smartplatforms.org/terms#", - "sp:abnormalInterpretation": {"@type": "@id"}, - "sp:address": {"@type": "@id"}, - "sp:alertLevel": {"@type": "@id"}, - "sp:allergicReaction": {"@type": "@id"}, - "sp:allergyExclusionName": {"@type": "@id"}, - "sp:belongsTo": {"@type": "@id"}, - "sp:bloodPressure": {"@type": "@id"}, - "sp:bodyMassIndex": {"@type": "@id"}, - "sp:bodyPosition": {"@type": "@id"}, - "sp:bodySite": {"@type": "@id"}, - "sp:category": {"@type": "@id"}, - "sp:code": {"@type": "@id"}, - "sp:created": {"@type": "@id"}, - "sp:denominator": {"@type": "@id"}, - "sp:diastolic": {"@type": "@id"}, - "sp:drugAllergen": {"@type": "@id"}, - "sp:drugClass": {"@type": "@id"}, - "sp:drugClassAllergen": {"@type": "@id"}, - "sp:drugName": {"@type": "@id"}, - "sp:encounter": {"@type": "@id"}, - "sp:encounterType": {"@type": "@id"}, - "sp:facility": {"@type": "@id"}, - "sp:foodAllergen": {"@type": "@id"}, - "sp:frequency": {"@type": "@id"}, - "sp:fulfillment": {"@type": "@id"}, - "sp:hasStatement": {"@type": "@id"}, - "sp:heartRate": {"@type": "@id"}, - "sp:height": {"@type": "@id"}, - "sp:labName": {"@type": "@id"}, - "sp:labResult": {"@type": "@id"}, - "sp:labSpecimenCollected": {"@type": "@id"}, - "sp:labStatus": {"@type": "@id"}, - "sp:maximum": {"@type": "@id"}, - "sp:medicalRecordNumber": {"@type": "@id"}, - "sp:medication": {"@type": "@id"}, - "sp:method": {"@type": "@id"}, - "sp:minimum": {"@type": "@id"}, - "sp:narrativeResult": {"@type": "@id"}, - "sp:nominalResult": {"@type": "@id"}, - "sp:nonCriticalRange": {"@type": "@id"}, - "sp:normalRange": {"@type": "@id"}, - "sp:numerator": {"@type": "@id"}, - "sp:ordinalResult": {"@type": "@id"}, - "sp:organization": {"@type": "@id"}, - "sp:oxygenSaturation": {"@type": "@id"}, - "sp:participant": {"@type": "@id"}, - "sp:person": {"@type": "@id"}, - "sp:pharmacy": {"@type": "@id"}, - "sp:problemName": {"@type": "@id"}, - "sp:provenance": {"@type": "@id"}, - "sp:provider": {"@type": "@id"}, - "sp:quantitativeResult": {"@type": "@id"}, - "sp:quantity": {"@type": "@id"}, - "sp:quantityDispensed": {"@type": "@id"}, - "sp:respiratoryRate": {"@type": "@id"}, - "sp:severity": {"@type": "@id"}, - "sp:specimenCollected": {"@type": "@id"}, - "sp:systolic": {"@type": "@id"}, - "sp:temperature": {"@type": "@id"}, - "sp:translationFidelity": {"@type": "@id"}, - "sp:valueAndUnit": {"@type": "@id"}, - "sp:vitalName": {"@type": "@id"}, - "sp:weight": {"@type": "@id"}, - "spcode": "http://smartplatforms.org/terms/codes/", - "vcard": "http://www.w3.org/2006/vcard/ns#", - "vcard:adr": {"@type": "@id"}, - "vcard:n": {"@type": "@id"}, - "vcard:tel": {"@type": "@id"} - }, - "@type": [ - "sp:Statement", - "sp:Fulfillment", - "sp:Alert", - "sp:AllergyExclusion", - "sp:Demographics", - "sp:Problem", - "sp:Medication", - "sp:VitalSigns", - "sp:MedicalRecord", - "sp:LabResult", - "sp:Allergy", - "sp:Encounter" - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0015-in.jsonld b/core/src/test/resources/json-ld.org/frame-0015-in.jsonld deleted file mode 100644 index fce8c8cc..00000000 --- a/core/src/test/resources/json-ld.org/frame-0015-in.jsonld +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "@id": "http://localhost:7000/records/999888", - "@type": "http://smartplatforms.org/terms#MedicalRecord" - }, - { - "@id": "http://localhost:7000/records/999888", - "http://smartplatforms.org/terms#hasStatement": { - "@id": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6" - } - }, - { - "@id": "_:uDkkVEva509", - "@type": "http://smartplatforms.org/terms#VitalSign" - }, - { - "@id": "_:uDkkVEva509", - "http://smartplatforms.org/terms#vitalName": { - "@id": "_:uDkkVEva510" - } - }, - { - "@id": "_:uDkkVEva509", - "http://smartplatforms.org/terms#value": "111.226458141" - }, - { - "@id": "_:uDkkVEva509", - "http://smartplatforms.org/terms#unit": "mm[Hg]" - }, - { - "@id": "_:uDkkVEva508", - "@type": "http://smartplatforms.org/terms#BloodPressure" - }, - { - "@id": "_:uDkkVEva508", - "http://smartplatforms.org/terms#systolic": { - "@id": "_:uDkkVEva509" - } - }, - { - "@id": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6", - "http://smartplatforms.org/terms#bloodPressure": { - "@id": "_:uDkkVEva508" - } - }, - { - "@id": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6", - "@type": "http://smartplatforms.org/terms#VitalSigns" - }, - { - "@id": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6", - "http://smartplatforms.org/terms#belongsTo": { - "@id": "http://localhost:7000/records/999888" - } - }, - { - "@id": "_:uDkkVEva510", - "http://purl.org/dc/terms/title": "Systolic blood pressure" - }, - { - "@id": "_:uDkkVEva510", - "@type": "http://smartplatforms.org/terms#CodedValue" - }, - { - "@id": "_:uDkkVEva510", - "http://smartplatforms.org/terms#code": { - "@id": "http://loinc.org/codes/8480-6" - } - } -] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0015-out.jsonld b/core/src/test/resources/json-ld.org/frame-0015-out.jsonld deleted file mode 100644 index ae70a26b..00000000 --- a/core/src/test/resources/json-ld.org/frame-0015-out.jsonld +++ /dev/null @@ -1,128 +0,0 @@ -{ - "@context": { - "api": "http://smartplatforms.org/terms/api#", - "dcterms": "http://purl.org/dc/terms/", - "foaf": "http://xmlns.com/foaf/0.1/", - "owl": "http://www.w3.org/2002/07/owl#", - "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", - "rdfs": "http://www.w3.org/2000/01/rdf-schema#", - "sp": "http://smartplatforms.org/terms#", - "sp:abnormalInterpretation": {"@type": "@id"}, - "sp:address": {"@type": "@id"}, - "sp:alertLevel": {"@type": "@id"}, - "sp:allergicReaction": {"@type": "@id"}, - "sp:allergyExclusionName": {"@type": "@id"}, - "sp:belongsTo": {"@type": "@id"}, - "sp:bloodPressure": {"@type": "@id"}, - "sp:bodyMassIndex": {"@type": "@id"}, - "sp:bodyPosition": {"@type": "@id"}, - "sp:bodySite": {"@type": "@id"}, - "sp:category": {"@type": "@id"}, - "sp:code": {"@type": "@id"}, - "sp:created": {"@type": "@id"}, - "sp:denominator": {"@type": "@id"}, - "sp:diastolic": {"@type": "@id"}, - "sp:drugAllergen": {"@type": "@id"}, - "sp:drugClass": {"@type": "@id"}, - "sp:drugClassAllergen": {"@type": "@id"}, - "sp:drugName": {"@type": "@id"}, - "sp:encounter": {"@type": "@id"}, - "sp:encounterType": {"@type": "@id"}, - "sp:facility": {"@type": "@id"}, - "sp:foodAllergen": {"@type": "@id"}, - "sp:frequency": {"@type": "@id"}, - "sp:fulfillment": {"@type": "@id"}, - "sp:hasStatement": {"@type": "@id"}, - "sp:heartRate": {"@type": "@id"}, - "sp:height": {"@type": "@id"}, - "sp:labName": {"@type": "@id"}, - "sp:labResult": {"@type": "@id"}, - "sp:labSpecimenCollected": {"@type": "@id"}, - "sp:labStatus": {"@type": "@id"}, - "sp:maximum": {"@type": "@id"}, - "sp:medicalRecordNumber": {"@type": "@id"}, - "sp:medication": {"@type": "@id"}, - "sp:method": {"@type": "@id"}, - "sp:minimum": {"@type": "@id"}, - "sp:narrativeResult": {"@type": "@id"}, - "sp:nominalResult": {"@type": "@id"}, - "sp:nonCriticalRange": {"@type": "@id"}, - "sp:normalRange": {"@type": "@id"}, - "sp:numerator": {"@type": "@id"}, - "sp:ordinalResult": {"@type": "@id"}, - "sp:organization": {"@type": "@id"}, - "sp:oxygenSaturation": {"@type": "@id"}, - "sp:participant": {"@type": "@id"}, - "sp:person": {"@type": "@id"}, - "sp:pharmacy": {"@type": "@id"}, - "sp:problemName": {"@type": "@id"}, - "sp:provenance": {"@type": "@id"}, - "sp:provider": {"@type": "@id"}, - "sp:quantitativeResult": {"@type": "@id"}, - "sp:quantity": {"@type": "@id"}, - "sp:quantityDispensed": {"@type": "@id"}, - "sp:respiratoryRate": {"@type": "@id"}, - "sp:severity": {"@type": "@id"}, - "sp:specimenCollected": {"@type": "@id"}, - "sp:systolic": {"@type": "@id"}, - "sp:temperature": {"@type": "@id"}, - "sp:translationFidelity": {"@type": "@id"}, - "sp:valueAndUnit": {"@type": "@id"}, - "sp:vitalName": {"@type": "@id"}, - "sp:weight": {"@type": "@id"}, - "spcode": "http://smartplatforms.org/terms/codes/", - "vcard": "http://www.w3.org/2006/vcard/ns#", - "vcard:adr": {"@type": "@id"}, - "vcard:n": {"@type": "@id"}, - "vcard:tel": {"@type": "@id"} - }, - "@graph": [{ - "@id": "http://localhost:7000/records/999888", - "@type": "sp:MedicalRecord", - "sp:hasStatement": { - "@id": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6", - "@type": "sp:VitalSigns", - "sp:belongsTo": "http://localhost:7000/records/999888", - "sp:bloodPressure": { - "@id": "_:b2", - "@type": "sp:BloodPressure", - "sp:systolic": { - "@id": "_:b0", - "@type": "sp:VitalSign", - "sp:vitalName": { - "@id": "_:b1", - "dcterms:title": "Systolic blood pressure", - "@type": "sp:CodedValue", - "sp:code": "http://loinc.org/codes/8480-6" - }, - "sp:value": "111.226458141", - "sp:unit": "mm[Hg]" - } - } - } - }, { - "@id": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6", - "@type": "sp:VitalSigns", - "sp:belongsTo": { - "@id": "http://localhost:7000/records/999888", - "@type": "sp:MedicalRecord", - "sp:hasStatement": "http://localhost:7000/records/999888/vital_signs/c9ddca3e-3df8-4f13-9a16-eecd80aa8ff6" - }, - "sp:bloodPressure": { - "@id": "_:b2", - "@type": "sp:BloodPressure", - "sp:systolic": { - "@id": "_:b0", - "@type": "sp:VitalSign", - "sp:unit": "mm[Hg]", - "sp:value": "111.226458141", - "sp:vitalName": { - "@id": "_:b1", - "@type": "sp:CodedValue", - "dcterms:title": "Systolic blood pressure", - "sp:code": "http://loinc.org/codes/8480-6" - } - } - } - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0016-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0016-frame.jsonld deleted file mode 100644 index 7d71898f..00000000 --- a/core/src/test/resources/json-ld.org/frame-0016-frame.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": {}, - "ex:contains": {} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0016-in.jsonld b/core/src/test/resources/json-ld.org/frame-0016-in.jsonld deleted file mode 100644 index b997852a..00000000 --- a/core/src/test/resources/json-ld.org/frame-0016-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#untyped" - }, - { - "@id": "http://example.org/test#untyped", - "dc:contributor": "Writer", - "dc:title": "My Book" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0016-out.jsonld b/core/src/test/resources/json-ld.org/frame-0016-out.jsonld deleted file mode 100644 index f4ecd87e..00000000 --- a/core/src/test/resources/json-ld.org/frame-0016-out.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#untyped", - "dc:contributor": "Writer", - "dc:title": "My Book" - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0017-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0017-frame.jsonld deleted file mode 100644 index 16faf5bb..00000000 --- a/core/src/test/resources/json-ld.org/frame-0017-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Library", - "ex:contains": { - "@type": "ex:Book", - "ex:contains": { - "@type": "ex:Chapter" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0017-in.jsonld b/core/src/test/resources/json-ld.org/frame-0017-in.jsonld deleted file mode 100644 index 5c3ab141..00000000 --- a/core/src/test/resources/json-ld.org/frame-0017-in.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0017-out.jsonld b/core/src/test/resources/json-ld.org/frame-0017-out.jsonld deleted file mode 100644 index c2be4d27..00000000 --- a/core/src/test/resources/json-ld.org/frame-0017-out.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0018-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0018-frame.jsonld deleted file mode 100644 index 3cbce277..00000000 --- a/core/src/test/resources/json-ld.org/frame-0018-frame.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -{ - "@type": ["http://example.org/vocab#Library"], - "http://example.org/vocab#contains": [{}] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0018-in.jsonld b/core/src/test/resources/json-ld.org/frame-0018-in.jsonld deleted file mode 100644 index b402b5b3..00000000 --- a/core/src/test/resources/json-ld.org/frame-0018-in.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0018-out.jsonld b/core/src/test/resources/json-ld.org/frame-0018-out.jsonld deleted file mode 100644 index 2337696b..00000000 --- a/core/src/test/resources/json-ld.org/frame-0018-out.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@graph": [{ - "@id": "http://example.org/test/#library", - "@type": "http://example.org/vocab#Library", - "http://example.org/vocab#contains": {"@id": "http://example.org/test#book"} - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0019-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0019-frame.jsonld deleted file mode 100644 index 632cdfbb..00000000 --- a/core/src/test/resources/json-ld.org/frame-0019-frame.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/terms#" - }, - "@type": "ex:Node" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0019-in.jsonld b/core/src/test/resources/json-ld.org/frame-0019-in.jsonld deleted file mode 100644 index f04ff658..00000000 --- a/core/src/test/resources/json-ld.org/frame-0019-in.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/terms#", - "ex:sees": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "ex:node1", - "@type": "ex:Node", - "ex:sees": "ex:node2", - "ex:color": "blue" - }, { - "@id": "ex:node2", - "@type": "ex:Node", - "ex:sees": "ex:node1", - "ex:color": "red" - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0019-out.jsonld b/core/src/test/resources/json-ld.org/frame-0019-out.jsonld deleted file mode 100644 index 7902bcad..00000000 --- a/core/src/test/resources/json-ld.org/frame-0019-out.jsonld +++ /dev/null @@ -1,30 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/terms#" - }, - "@graph": [{ - "@id": "ex:node1", - "@type": "ex:Node", - "ex:color": "blue", - "ex:sees": { - "@id": "ex:node2", - "@type": "ex:Node", - "ex:sees": { - "@id": "ex:node1" - }, - "ex:color": "red" - } - }, { - "@id": "ex:node2", - "@type": "ex:Node", - "ex:color": "red", - "ex:sees": { - "@id": "ex:node1", - "@type": "ex:Node", - "ex:sees": { - "@id": "ex:node2" - }, - "ex:color": "blue" - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0020-in.jsonld b/core/src/test/resources/json-ld.org/frame-0020-in.jsonld deleted file mode 100644 index 606195c3..00000000 --- a/core/src/test/resources/json-ld.org/frame-0020-in.jsonld +++ /dev/null @@ -1,34 +0,0 @@ -{ - "@context": { - "name": "http://rdf.data-vocabulary.org/#name", - "ingredient": "http://rdf.data-vocabulary.org/#ingredients", - "yield": "http://rdf.data-vocabulary.org/#yield", - "instructions": "http://rdf.data-vocabulary.org/#instructions", - "step": { - "@id": "http://rdf.data-vocabulary.org/#step", - "@type": "xsd:integer" - }, - "description": "http://rdf.data-vocabulary.org/#description", - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "name": "Mojito", - "ingredient": ["12 fresh mint leaves", "1/2 lime, juiced with pulp", "1 tablespoons white sugar", "1 cup ice cubes", "2 fluid ounces white rum", "1/2 cup club soda"], - "yield": "1 cocktail", - "instructions": [ - { - "step": 1, - "description": "Crush lime juice, mint and sugar together in glass." - }, { - "step": 2, - "description": "Fill glass to top with ice cubes." - }, { - "step": 3, - "description": "Pour white rum over ice." - }, { - "step": 4, - "description": "Fill the rest of glass with club soda, stir." - }, { - "step": 5, - "description": "Garnish with a lime wedge." - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0020-out.jsonld b/core/src/test/resources/json-ld.org/frame-0020-out.jsonld deleted file mode 100644 index fa1ef500..00000000 --- a/core/src/test/resources/json-ld.org/frame-0020-out.jsonld +++ /dev/null @@ -1,80 +0,0 @@ -{ - "@graph": [ - { - "@id": "_:b0", - "http://rdf.data-vocabulary.org/#ingredients": ["12 fresh mint leaves", "1/2 lime, juiced with pulp", "1 tablespoons white sugar", "1 cup ice cubes", "2 fluid ounces white rum", "1/2 cup club soda"], - "http://rdf.data-vocabulary.org/#instructions": [{ - "@id": "_:b1", - "http://rdf.data-vocabulary.org/#description": "Crush lime juice, mint and sugar together in glass.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 1 - } - }, { - "@id": "_:b2", - "http://rdf.data-vocabulary.org/#description": "Fill glass to top with ice cubes.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 2 - } - }, { - "@id": "_:b3", - "http://rdf.data-vocabulary.org/#description": "Pour white rum over ice.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 3 - } - }, { - "@id": "_:b4", - "http://rdf.data-vocabulary.org/#description": "Fill the rest of glass with club soda, stir.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 4 - } - }, { - "@id": "_:b5", - "http://rdf.data-vocabulary.org/#description": "Garnish with a lime wedge.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 5 - } - }], - "http://rdf.data-vocabulary.org/#name": "Mojito", - "http://rdf.data-vocabulary.org/#yield": "1 cocktail" - }, { - "@id": "_:b1", - "http://rdf.data-vocabulary.org/#description": "Crush lime juice, mint and sugar together in glass.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 1 - } - }, { - "@id": "_:b2", - "http://rdf.data-vocabulary.org/#description": "Fill glass to top with ice cubes.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 2 - } - }, { - "@id": "_:b3", - "http://rdf.data-vocabulary.org/#description": "Pour white rum over ice.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 3 - } - }, { - "@id": "_:b4", - "http://rdf.data-vocabulary.org/#description": "Fill the rest of glass with club soda, stir.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 4 - } - }, { - "@id": "_:b5", - "http://rdf.data-vocabulary.org/#description": "Garnish with a lime wedge.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 5 - } - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0021-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0021-frame.jsonld deleted file mode 100644 index 32bfc6a6..00000000 --- a/core/src/test/resources/json-ld.org/frame-0021-frame.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:list": {"@container": "@list"} - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0021-in.jsonld b/core/src/test/resources/json-ld.org/frame-0021-in.jsonld deleted file mode 100644 index ccb878c3..00000000 --- a/core/src/test/resources/json-ld.org/frame-0021-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "ex:contains": { - "@type": "@id" - }, - "ex:list": {"@container": "@list"} - }, - "@graph": [ - { - "@id": "_:Book", - "dc:title": "Book type" - }, { - "@id": "http://example.org/library", - "@type": "ex:Library", - "ex:contains": "http://example.org/library/the-republic" - }, { - "@id": "http://example.org/library/the-republic", - "@type": "_:Book", - "dc:creator": "Plato", - "dc:title": "The Republic", - "ex:contains": "http://example.org/library/the-republic#introduction" - }, { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "dc:title": "The Introduction", - "ex:list": [1, 2, 3, 4, 4, 4, 5] - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0021-out.jsonld b/core/src/test/resources/json-ld.org/frame-0021-out.jsonld deleted file mode 100644 index a5e67d43..00000000 --- a/core/src/test/resources/json-ld.org/frame-0021-out.jsonld +++ /dev/null @@ -1,46 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:list": {"@container": "@list"} - }, - "@graph": [ - { - "@id": "_:b0", - "dc:title": "Book type" - }, { - "@id": "http://example.org/library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/library/the-republic", - "@type": "_:b0", - "dc:creator": "Plato", - "dc:title": "The Republic", - "ex:contains": { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "dc:title": "The Introduction", - "ex:list": [1, 2, 3, 4, 4, 4, 5] - } - } - }, { - "@id": "http://example.org/library/the-republic", - "@type": "_:b0", - "ex:contains": { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "dc:title": "The Introduction", - "ex:list": [1, 2, 3, 4, 4, 4, 5] - }, - "dc:creator": "Plato", - "dc:title": "The Republic" - }, { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "ex:list": [1, 2, 3, 4, 4, 4, 5], - "dc:title": "The Introduction" - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0022-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0022-frame.jsonld deleted file mode 100644 index dc15b5fd..00000000 --- a/core/src/test/resources/json-ld.org/frame-0022-frame.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -{ - "@context": {"ex": "http://example.org/"}, - "@id": "ex:Sub1" -} diff --git a/core/src/test/resources/json-ld.org/frame-0022-in.jsonld b/core/src/test/resources/json-ld.org/frame-0022-in.jsonld deleted file mode 100644 index 3e9969a6..00000000 --- a/core/src/test/resources/json-ld.org/frame-0022-in.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": {"ex": "http://example.org/"}, - "@graph": [{ - "@id": "ex:Sub1", - "@type": "ex:Type1" - }, { - "@id": "ex:Sub2", - "@type": "ex:Type2" - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0022-out.jsonld b/core/src/test/resources/json-ld.org/frame-0022-out.jsonld deleted file mode 100644 index ef560bfc..00000000 --- a/core/src/test/resources/json-ld.org/frame-0022-out.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": {"ex": "http://example.org/"}, - "@graph": [{ - "@id": "ex:Sub1", - "@type": "ex:Type1" - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-0030-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0030-frame.jsonld deleted file mode 100644 index 415e2b8f..00000000 --- a/core/src/test/resources/json-ld.org/frame-0030-frame.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -{ - "@context": { - "ex": "http://www.example.com/#" - }, - "@type": "ex:Thing", - "ex:embed": { - "@embed": "@always" - }, - "ex:noembed": { - "@embed": "@never" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0030-in.jsonld b/core/src/test/resources/json-ld.org/frame-0030-in.jsonld deleted file mode 100644 index d5df9e32..00000000 --- a/core/src/test/resources/json-ld.org/frame-0030-in.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "ex": "http://www.example.com/#" - }, - "@id": "ex:subject", - "@type": "ex:Thing", - "ex:embed": { - "@id": "ex:embedded", - "ex:title": "Embedded" - }, - "ex:noembed": { - "@id": "ex:notembedded", - "ex:title": "Not Embedded" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0030-out.jsonld b/core/src/test/resources/json-ld.org/frame-0030-out.jsonld deleted file mode 100644 index 358ab54c..00000000 --- a/core/src/test/resources/json-ld.org/frame-0030-out.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "ex": "http://www.example.com/#" - }, - "@graph": [{ - "@id": "ex:subject", - "@type": "ex:Thing", - "ex:embed": { - "@id": "ex:embedded", - "ex:title": "Embedded" - }, - "ex:noembed": { - "@id": "ex:notembedded" - } - }] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0046-frame.jsonld b/core/src/test/resources/json-ld.org/frame-0046-frame.jsonld deleted file mode 100644 index edd59d96..00000000 --- a/core/src/test/resources/json-ld.org/frame-0046-frame.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -{ - "@context": {"@vocab": "urn:"}, - "@type": "Class" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-0046-in.jsonld b/core/src/test/resources/json-ld.org/frame-0046-in.jsonld deleted file mode 100644 index a092c9da..00000000 --- a/core/src/test/resources/json-ld.org/frame-0046-in.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": {"@vocab": "urn:"}, - "@id": "urn:id-1", - "@type": "Class", - "preserve": { - "@graph": { - "@id": "urn:id-2", - "term": "data" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-g001-frame.jsonld b/core/src/test/resources/json-ld.org/frame-g001-frame.jsonld deleted file mode 100644 index 16faf5bb..00000000 --- a/core/src/test/resources/json-ld.org/frame-g001-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Library", - "ex:contains": { - "@type": "ex:Book", - "ex:contains": { - "@type": "ex:Chapter" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-g001-in.jsonld b/core/src/test/resources/json-ld.org/frame-g001-in.jsonld deleted file mode 100644 index dcc2dfab..00000000 --- a/core/src/test/resources/json-ld.org/frame-g001-in.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": "http://example.org/test#book" - }, - { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - }, - { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-g001-out.jsonld b/core/src/test/resources/json-ld.org/frame-g001-out.jsonld deleted file mode 100644 index 54356959..00000000 --- a/core/src/test/resources/json-ld.org/frame-g001-out.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#" - }, - "@id": "http://example.org/test/#library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/test#book", - "@type": "ex:Book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "@type": "ex:Chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-manifest.jsonld b/core/src/test/resources/json-ld.org/frame-manifest.jsonld deleted file mode 100644 index 03df4284..00000000 --- a/core/src/test/resources/json-ld.org/frame-manifest.jsonld +++ /dev/null @@ -1,222 +0,0 @@ -{ - "@context": "http://json-ld.org/test-suite/context.jsonld", - "@id": "", - "@type": "mf:Manifest", - "name": "Framing", - "description": "JSON-LD framing tests use object comparison.", - "baseIri": "http://json-ld.org/test-suite/tests/", - "sequence": [{ - "@id": "#t0001", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "simple", - "input": "frame-0001-in.jsonld", - "frame": "frame-0001-frame.jsonld", - "expect": "frame-0001-out.jsonld" - }, { - "@id": "#t0002", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "reframe w/extra CURIE value", - "input": "frame-0002-in.jsonld", - "frame": "frame-0002-frame.jsonld", - "expect": "frame-0002-out.jsonld" - }, { - "@id": "#t0003", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "reframe (null)", - "input": "frame-0003-in.jsonld", - "frame": "frame-0003-frame.jsonld", - "expect": "frame-0003-out.jsonld" - }, { - "@id": "#t0004", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "reframe (type)", - "input": "frame-0004-in.jsonld", - "frame": "frame-0004-frame.jsonld", - "expect": "frame-0004-out.jsonld" - }, { - "@id": "#t0005", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "reframe (explicit)", - "input": "frame-0005-in.jsonld", - "frame": "frame-0005-frame.jsonld", - "expect": "frame-0005-out.jsonld" - }, { - "@id": "#t0006", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "reframe (non-explicit)", - "input": "frame-0006-in.jsonld", - "frame": "frame-0006-frame.jsonld", - "expect": "frame-0006-out.jsonld" - }, { - "@id": "#t0007", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "input has multiple types", - "input": "frame-0007-in.jsonld", - "frame": "frame-0007-frame.jsonld", - "expect": "frame-0007-out.jsonld" - }, { - "@id": "#t0008", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "array framing cases", - "input": "frame-0008-in.jsonld", - "frame": "frame-0008-frame.jsonld", - "expect": "frame-0008-out.jsonld" - }, { - "@id": "#t0009", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "default value", - "input": "frame-0009-in.jsonld", - "frame": "frame-0009-frame.jsonld", - "expect": "frame-0009-out.jsonld" - }, { - "@id": "#t0010", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "property CURIE conflict", - "input": "frame-0010-in.jsonld", - "frame": "frame-0010-frame.jsonld", - "expect": "frame-0010-out.jsonld" - }, { - "@id": "#t0011", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "@embed", - "input": "frame-0011-in.jsonld", - "frame": "frame-0011-frame.jsonld", - "expect": "frame-0011-out.jsonld" - }, { - "@id": "#t0012", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Array frame", - "input": "frame-0012-in.jsonld", - "frame": "frame-0012-frame.jsonld", - "expect": "frame-0012-out.jsonld" - }, { - "@id": "#t0013", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Replace existing embed", - "input": "frame-0013-in.jsonld", - "frame": "frame-0013-frame.jsonld", - "expect": "frame-0013-out.jsonld" - }, { - "@id": "#t0014", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Replace existing embed on 2nd pass", - "input": "frame-0014-in.jsonld", - "frame": "frame-0014-frame.jsonld", - "expect": "frame-0014-out.jsonld" - }, { - "@id": "#t0015", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Replace deeply-nested embed", - "input": "frame-0015-in.jsonld", - "frame": "frame-0015-frame.jsonld", - "expect": "frame-0015-out.jsonld" - }, { - "@id": "#t0016", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Use @type in ducktype filter", - "input": "frame-0016-in.jsonld", - "frame": "frame-0016-frame.jsonld", - "expect": "frame-0016-out.jsonld" - }, { - "@id": "#t0017", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Non-flat input", - "input": "frame-0017-in.jsonld", - "frame": "frame-0017-frame.jsonld", - "expect": "frame-0017-out.jsonld" - }, { - "@id": "#t0018", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "no frame @context but @graph output", - "input": "frame-0018-in.jsonld", - "frame": "frame-0018-frame.jsonld", - "expect": "frame-0018-out.jsonld" - }, { - "@id": "#t0019", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Resources can be re-embedded again in each top-level frame match", - "input": "frame-0019-in.jsonld", - "frame": "frame-0019-frame.jsonld", - "expect": "frame-0019-out.jsonld" - }, { - "@id": "#t0020", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Blank nodes in an array", - "input": "frame-0020-in.jsonld", - "frame": "frame-0020-frame.jsonld", - "expect": "frame-0020-out.jsonld" - }, { - "@id": "#t0021", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Blank nodes in @type", - "input": "frame-0021-in.jsonld", - "frame": "frame-0021-frame.jsonld", - "expect": "frame-0021-out.jsonld", - "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"} - } , { - "@id": "#t0022", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Default inside sets", - "input": "frame-0022-in.jsonld", - "frame": "frame-0022-frame.jsonld", - "expect": "frame-0022-out.jsonld" - } , { - "@id": "#t0030", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "@embed", - "input": "frame-0030-in.jsonld", - "frame": "frame-0030-frame.jsonld", - "expect": "frame-0030-out.jsonld" - }, { - "@id": "#tg001", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Library framing example with @graph and omitGraph is true.", - "purpose": "Basic example used in playground and spec examples.", - "input": "frame-g001-in.jsonld", - "frame": "frame-g001-frame.jsonld", - "expect": "frame-g001-out.jsonld", - "option": {"specVersion": "json-ld-1.1", "omitGraph": true} - }, { - "@id": "#tp010", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Property CURIE conflict (prune bnodes)", - "purpose": "(Not really framing) A term looking like a CURIE becomes a CURIE when framing/compacting if defined as such in frame/context.", - "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, - "input": "frame-0010-in.jsonld", - "frame": "frame-0010-frame.jsonld", - "expect": "frame-p010-out.jsonld" - }, { - "@id": "#tp020", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Blank nodes in an array (prune bnodes)", - "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, - "input": "frame-0020-in.jsonld", - "frame": "frame-0020-frame.jsonld", - "expect": "frame-p020-out.jsonld" - }, { - "@id": "#tp021", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Blank nodes in @type (prune bnodes)", - "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, - "input": "frame-0021-in.jsonld", - "frame": "frame-0021-frame.jsonld", - "expect": "frame-p021-out.jsonld" - }, { - "@id": "#tp046", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Merge graphs if no outer @graph is used (prune bnodes)", - "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"}, - "input": "frame-0046-in.jsonld", - "frame": "frame-0046-frame.jsonld", - "expect": "frame-p046-out.jsonld" - }, { - "@id": "#tp050", - "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], - "name": "Prune blank nodes with alias of @id", - "purpose": "If @id is aliased in a frame, an unreferenced blank node is still pruned.", - "input": "frame-p050-in.jsonld", - "frame": "frame-p050-frame.jsonld", - "expect": "frame-p050-out.jsonld", - "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-p010-out.jsonld b/core/src/test/resources/json-ld.org/frame-p010-out.jsonld deleted file mode 100644 index 38077e48..00000000 --- a/core/src/test/resources/json-ld.org/frame-p010-out.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/terms/", - "dc:creator": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "ps": "http://purl.org/payswarm#" - }, - "@id": "http://example.com/asset", - "@type": "ps:Asset", - "dc:creator": { - "foaf:name": "John Doe" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-p020-out.jsonld b/core/src/test/resources/json-ld.org/frame-p020-out.jsonld deleted file mode 100644 index e9d42b94..00000000 --- a/core/src/test/resources/json-ld.org/frame-p020-out.jsonld +++ /dev/null @@ -1,79 +0,0 @@ -{ - "@graph": [ - { - "http://rdf.data-vocabulary.org/#ingredients": ["12 fresh mint leaves", "1/2 lime, juiced with pulp", "1 tablespoons white sugar", "1 cup ice cubes", "2 fluid ounces white rum", "1/2 cup club soda"], - "http://rdf.data-vocabulary.org/#instructions": [{ - "@id": "_:b1", - "http://rdf.data-vocabulary.org/#description": "Crush lime juice, mint and sugar together in glass.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 1 - } - }, { - "@id": "_:b2", - "http://rdf.data-vocabulary.org/#description": "Fill glass to top with ice cubes.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 2 - } - }, { - "@id": "_:b3", - "http://rdf.data-vocabulary.org/#description": "Pour white rum over ice.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 3 - } - }, { - "@id": "_:b4", - "http://rdf.data-vocabulary.org/#description": "Fill the rest of glass with club soda, stir.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 4 - } - }, { - "@id": "_:b5", - "http://rdf.data-vocabulary.org/#description": "Garnish with a lime wedge.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 5 - } - }], - "http://rdf.data-vocabulary.org/#name": "Mojito", - "http://rdf.data-vocabulary.org/#yield": "1 cocktail" - }, { - "@id": "_:b1", - "http://rdf.data-vocabulary.org/#description": "Crush lime juice, mint and sugar together in glass.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 1 - } - }, { - "@id": "_:b2", - "http://rdf.data-vocabulary.org/#description": "Fill glass to top with ice cubes.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 2 - } - }, { - "@id": "_:b3", - "http://rdf.data-vocabulary.org/#description": "Pour white rum over ice.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 3 - } - }, { - "@id": "_:b4", - "http://rdf.data-vocabulary.org/#description": "Fill the rest of glass with club soda, stir.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 4 - } - }, { - "@id": "_:b5", - "http://rdf.data-vocabulary.org/#description": "Garnish with a lime wedge.", - "http://rdf.data-vocabulary.org/#step": { - "@type": "http://www.w3.org/2001/XMLSchema#integer", - "@value": 5 - } - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-p021-out.jsonld b/core/src/test/resources/json-ld.org/frame-p021-out.jsonld deleted file mode 100644 index a5e67d43..00000000 --- a/core/src/test/resources/json-ld.org/frame-p021-out.jsonld +++ /dev/null @@ -1,46 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:list": {"@container": "@list"} - }, - "@graph": [ - { - "@id": "_:b0", - "dc:title": "Book type" - }, { - "@id": "http://example.org/library", - "@type": "ex:Library", - "ex:contains": { - "@id": "http://example.org/library/the-republic", - "@type": "_:b0", - "dc:creator": "Plato", - "dc:title": "The Republic", - "ex:contains": { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "dc:title": "The Introduction", - "ex:list": [1, 2, 3, 4, 4, 4, 5] - } - } - }, { - "@id": "http://example.org/library/the-republic", - "@type": "_:b0", - "ex:contains": { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "dc:title": "The Introduction", - "ex:list": [1, 2, 3, 4, 4, 4, 5] - }, - "dc:creator": "Plato", - "dc:title": "The Republic" - }, { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "ex:Chapter", - "dc:description": "An introductory chapter on The Republic.", - "ex:list": [1, 2, 3, 4, 4, 4, 5], - "dc:title": "The Introduction" - }] -} diff --git a/core/src/test/resources/json-ld.org/frame-p046-out.jsonld b/core/src/test/resources/json-ld.org/frame-p046-out.jsonld deleted file mode 100644 index 6d127277..00000000 --- a/core/src/test/resources/json-ld.org/frame-p046-out.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": {"@vocab": "urn:"}, - "@id": "urn:id-1", - "@type": "Class", - "preserve": {} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-p050-frame.jsonld b/core/src/test/resources/json-ld.org/frame-p050-frame.jsonld deleted file mode 100644 index 77dc5555..00000000 --- a/core/src/test/resources/json-ld.org/frame-p050-frame.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "@vocab": "http://example/", - "id": "@id" - }, - "id": {}, - "name": {} -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-p050-in.jsonld b/core/src/test/resources/json-ld.org/frame-p050-in.jsonld deleted file mode 100644 index fc31face..00000000 --- a/core/src/test/resources/json-ld.org/frame-p050-in.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "@vocab": "http://example/", - "id": "@id" - }, - "id": "_:bnode0", - "name": "foo" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/frame-p050-out.jsonld b/core/src/test/resources/json-ld.org/frame-p050-out.jsonld deleted file mode 100644 index 75e0a23e..00000000 --- a/core/src/test/resources/json-ld.org/frame-p050-out.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "@vocab": "http://example/", - "id": "@id" - }, - "name": "foo" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf-0020-in.nq b/core/src/test/resources/json-ld.org/fromRdf-0020-in.nq deleted file mode 100644 index ce811f51..00000000 --- a/core/src/test/resources/json-ld.org/fromRdf-0020-in.nq +++ /dev/null @@ -1,7 +0,0 @@ - . - "myLabel" . - "2012-05-12"^^ . - . - "Plain" . - "2012-05-12"^^ . - "English"@en . diff --git a/core/src/test/resources/json-ld.org/fromRdf-0020-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf-0020-out.jsonld deleted file mode 100644 index 6f9d169f..00000000 --- a/core/src/test/resources/json-ld.org/fromRdf-0020-out.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "@id": "http://example.com/Subj1", - "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [{ - "@id": "http://example.com/Type" - }], - "http://example.com/prop1": [{"@id": "http://example.com/Obj1"}], - "http://example.com/prop2": [ - {"@value": "Plain"}, - {"@value": "2012-05-12", "@type": "http://www.w3.org/2001/XMLSchema#date"}, - {"@value": "English", "@language": "en"} - ] - }, - { - "@id": "http://example.com/Type", - "http://www.w3.org/1999/02/22-rdf-syntax-ns#label": [{"@value": "myLabel"}], - "http://example.com/prop2": [{"@value": "2012-05-12", "@type": "http://www.w3.org/2001/XMLSchema#date"}] - } -] diff --git a/core/src/test/resources/json-ld.org/fromRdf-manifest.jsonld b/core/src/test/resources/json-ld.org/fromRdf-manifest.jsonld index 6d9451bb..4a04c921 100644 --- a/core/src/test/resources/json-ld.org/fromRdf-manifest.jsonld +++ b/core/src/test/resources/json-ld.org/fromRdf-manifest.jsonld @@ -1,130 +1,131 @@ { - "@context": "http://json-ld.org/test-suite/context.jsonld", + "@context": "context.jsonld", "@id": "", "@type": "mf:Manifest", "name": "Transform RDF to JSON-LD", "description": "Transform RDF to JSON-LD tests take N-Quads input and use object comparison.", - "baseIri": "http://json-ld.org/test-suite/tests/", + "baseIri": "https://w3c.github.io/json-ld-api/tests/", "sequence": [ { "@id": "#t0001", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Object Lists", "purpose": "Tests generation using different types of objects.", - "input": "fromRdf-0001-in.nq", - "expect": "fromRdf-0001-out.jsonld" + "input": "fromRdf/0001-in.nq", + "expect": "fromRdf/0001-out.jsonld" }, { "@id": "#t0002", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Native Types", "purpose": "Do not use native datatypes for xsd:boolean, xsd:integer, and xsd:double by default.", - "input": "fromRdf-0002-in.nq", - "expect": "fromRdf-0002-out.jsonld" + "input": "fromRdf/0002-in.nq", + "expect": "fromRdf/0002-out.jsonld" }, { "@id": "#t0003", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "BNodes and references", "purpose": "BNode name generation and references between resources.", - "input": "fromRdf-0003-in.nq", - "expect": "fromRdf-0003-out.jsonld" + "input": "fromRdf/0003-in.nq", + "expect": "fromRdf/0003-out.jsonld" }, { "@id": "#t0004", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Lists", "purpose": "Multiple lists with different types of element.", - "input": "fromRdf-0004-in.nq", - "expect": "fromRdf-0004-out.jsonld" + "input": "fromRdf/0004-in.nq", + "expect": "fromRdf/0004-out.jsonld" }, { "@id": "#t0005", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Document with list", "purpose": "Uses a named graph containing a list.", - "input": "fromRdf-0005-in.nq", - "expect": "fromRdf-0005-out.jsonld" + "input": "fromRdf/0005-in.nq", + "expect": "fromRdf/0005-out.jsonld" }, { "@id": "#t0006", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Two graphs having same subject but different values", "purpose": "Ensure that properties and list elements aren't confused between graphs.", - "input": "fromRdf-0006-in.nq", - "expect": "fromRdf-0006-out.jsonld" + "input": "fromRdf/0006-in.nq", + "expect": "fromRdf/0006-out.jsonld" }, { "@id": "#t0007", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Graph with multiple named graphs", "purpose": "Testing @graph recursion.", - "input": "fromRdf-0007-in.nq", - "expect": "fromRdf-0007-out.jsonld" + "input": "fromRdf/0007-in.nq", + "expect": "fromRdf/0007-out.jsonld" }, { "@id": "#t0008", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List conversion", - "purpose": "Conversion of lists of lists (the triples in the input are only partially ordered on purpose", - "input": "fromRdf-0008-in.nq", - "expect": "fromRdf-0008-out.jsonld" + "purpose": "Conversion of lists of lists (the triples in the input are only partially ordered on purpose (1.0 semantics)", + "input": "fromRdf/0008-in.nq", + "expect": "fromRdf/0008-out.jsonld", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0009", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List conversion with IRI nodes", "purpose": "Preserve IRI list nodes (i.e., not blank nodes) when converting to @list", - "input": "fromRdf-0009-in.nq", - "expect": "fromRdf-0009-out.jsonld" + "input": "fromRdf/0009-in.nq", + "expect": "fromRdf/0009-out.jsonld" }, { "@id": "#t0010", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern without rdf:nil", "purpose": "Do not convert lists that are not terminated by rdf:nil to @list.", - "input": "fromRdf-0010-in.nq", - "expect": "fromRdf-0010-out.jsonld" + "input": "fromRdf/0010-in.nq", + "expect": "fromRdf/0010-out.jsonld" }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern with extra properties", "purpose": "If additional properties are associated to a list node, the list is only partially converted to @list.", - "input": "fromRdf-0011-in.nq", - "expect": "fromRdf-0011-out.jsonld" + "input": "fromRdf/0011-in.nq", + "expect": "fromRdf/0011-out.jsonld" }, { "@id": "#t0012", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern with cycles", "purpose": "Detect lists containing cycles and do not convert them to @list.", - "input": "fromRdf-0012-in.nq", - "expect": "fromRdf-0012-out.jsonld" + "input": "fromRdf/0012-in.nq", + "expect": "fromRdf/0012-out.jsonld" }, { "@id": "#t0013", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern with multiple values of rdf:first", "purpose": "Do not convert list nodes to @list if nodes contain more than one value for rdf:first.", - "input": "fromRdf-0013-in.nq", - "expect": "fromRdf-0013-out.jsonld" + "input": "fromRdf/0013-in.nq", + "expect": "fromRdf/0013-out.jsonld" }, { "@id": "#t0014", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern with multiple values of rdf:rest", "purpose": "Do not convert list nodes to @list if nodes contain more than one value for rdf:rest.", - "input": "fromRdf-0014-in.nq", - "expect": "fromRdf-0014-out.jsonld" + "input": "fromRdf/0014-in.nq", + "expect": "fromRdf/0014-out.jsonld" }, { "@id": "#t0015", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern with IRI rdf:rest", "purpose": "Do not convert lists to @list if a list node's rdf:rest is an IRI.", - "input": "fromRdf-0015-in.nq", - "expect": "fromRdf-0015-out.jsonld" + "input": "fromRdf/0015-in.nq", + "expect": "fromRdf/0015-out.jsonld" }, { "@id": "#t0016", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "List pattern with type rdf:List", "purpose": "List nodes may have a rdf:type rdf:List.", - "input": "fromRdf-0016-in.nq", - "expect": "fromRdf-0016-out.jsonld" + "input": "fromRdf/0016-in.nq", + "expect": "fromRdf/0016-out.jsonld" }, { "@id": "#t0017", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], "name": "Remove duplicate triples", "purpose": "Equivalent triples are used only once", - "input": "fromRdf-0017-in.nq", - "expect": "fromRdf-0017-out.jsonld" + "input": "fromRdf/0017-in.nq", + "expect": "fromRdf/0017-out.jsonld" }, { "@id": "#t0018", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], @@ -133,8 +134,8 @@ "option": { "useNativeTypes": true }, - "input": "fromRdf-0018-in.nq", - "expect": "fromRdf-0018-out.jsonld" + "input": "fromRdf/0018-in.nq", + "expect": "fromRdf/0018-out.jsonld" }, { "@id": "#t0019", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], @@ -143,15 +144,137 @@ "option": { "useRdfType": true }, - "input": "fromRdf-0019-in.nq", - "expect": "fromRdf-0019-out.jsonld" + "input": "fromRdf/0019-in.nq", + "expect": "fromRdf/0019-out.jsonld" }, { "@id": "#t0020", "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], - "name": "rdf:type as an @id with values", - "purpose": "Tests the proper formatting of @type (even with useRdfType to false) into rdf:type when the object contains more triples.", - "input": "fromRdf-0020-in.nq", - "expect": "fromRdf-0020-out.jsonld" + "name": "list with node shared across graphs", + "purpose": "An otherwise conformant list with a node shared across different lists does not serialize using @list", + "input": "fromRdf/0020-in.nq", + "expect": "fromRdf/0020-out.jsonld" + }, { + "@id": "#t0021", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "list with node shared across graphs (same triple in different graphs)", + "purpose": "If a list node is used in different graphs, it isn't removed and converted to @list", + "input": "fromRdf/0021-in.nq", + "expect": "fromRdf/0021-out.jsonld" + }, { + "@id": "#t0022", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "list from duplicate triples", + "purpose": "Duplicate triples for a list node will not prevent @list from being properly generated", + "input": "fromRdf/0022-in.nq", + "expect": "fromRdf/0022-out.jsonld" + }, { + "@id": "#t0023", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "triple with RDF nil subject", + "purpose": "Test triple with RDF nil subject", + "input": "fromRdf/0023-in.nq", + "expect": "fromRdf/0023-out.jsonld" + }, { + "@id": "#t0024", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "multiple languages for same subject+property+value", + "purpose": "Uniqness of triples should include the value language", + "input": "fromRdf/0024-in.nq", + "expect": "fromRdf/0024-out.jsonld" + }, { + "@id": "#t0025", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "multiple types for same subject+property+value", + "purpose": "Uniqness of triples should include the value type", + "input": "fromRdf/0025-in.nq", + "expect": "fromRdf/0025-out.jsonld" + }, { + "@id": "#t0026", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "triple with rdf:first property and rdf:nil value", + "purpose": "Check list generation with rdf:first property and rdf:nil value.", + "input": "fromRdf/0026-in.nq", + "expect": "fromRdf/0026-out.jsonld" + }, { + "@id": "#tjs01", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (boolean true)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (boolean true).", + "input": "fromRdf/js01-in.nq", + "expect": "fromRdf/js01-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs02", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (boolean false)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (boolean false).", + "input": "fromRdf/js02-in.nq", + "expect": "fromRdf/js02-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs03", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (double)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (double).", + "input": "fromRdf/js03-in.nq", + "expect": "fromRdf/js03-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs04", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (double-zero)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (double-zero).", + "input": "fromRdf/js04-in.nq", + "expect": "fromRdf/js04-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs05", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (integer)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (integer).", + "input": "fromRdf/js05-in.nq", + "expect": "fromRdf/js05-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs06", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (object)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (object).", + "input": "fromRdf/js06-in.nq", + "expect": "fromRdf/js06-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs07", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "JSON literal (array)", + "purpose": "Tests creating property with rdf:type rdf:JSON to a JSON literal (array).", + "input": "fromRdf/js07-in.nq", + "expect": "fromRdf/js07-out.jsonld", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tli01", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "@list containing empty @list", + "purpose": "List of lists", + "input": "fromRdf/li01-in.nq", + "expect": "fromRdf/li01-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli02", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "@list containing multiple lists", + "purpose": "List of lists", + "input": "fromRdf/li02-in.nq", + "expect": "fromRdf/li02-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli03", + "@type": ["jld:PositiveEvaluationTest", "jld:FromRDFTest"], + "name": "t0008 as interpreted for 1.1. ", + "purpose": "List of lists", + "input": "fromRdf/li02-in.nq", + "expect": "fromRdf/li02-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} } ] } diff --git a/core/src/test/resources/json-ld.org/fromRdf-0001-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0001-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0001-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0001-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0001-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0001-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0001-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0001-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0002-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0002-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0002-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0002-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0002-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0002-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0002-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0002-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0003-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0003-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0003-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0003-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0003-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0003-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0003-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0003-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0004-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0004-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0004-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0004-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0004-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0004-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0004-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0004-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0005-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0005-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0005-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0005-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0005-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0005-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0005-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0005-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0006-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0006-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0006-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0006-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0006-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0006-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0006-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0006-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0007-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0007-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0007-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0007-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0007-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0007-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0007-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0007-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0008-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0008-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0008-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0008-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0008-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0008-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0008-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0008-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0009-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0009-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0009-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0009-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0009-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0009-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0009-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0009-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0010-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0010-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0010-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0010-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0010-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0010-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0010-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0010-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0011-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0011-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0011-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0011-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0011-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0011-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0011-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0011-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0012-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0012-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0012-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0012-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0012-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0012-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0012-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0012-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0013-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0013-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0013-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0013-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0013-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0013-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0013-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0013-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0014-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0014-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0014-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0014-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0014-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0014-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0014-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0014-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0015-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0015-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0015-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0015-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0015-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0015-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0015-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0015-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0016-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0016-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0016-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0016-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0016-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0016-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0016-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0016-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0017-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0017-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0017-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0017-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0017-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0017-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0017-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0017-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0018-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0018-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0018-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0018-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0018-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0018-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0018-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0018-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf-0019-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0019-in.nq similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0019-in.nq rename to core/src/test/resources/json-ld.org/fromRdf/0019-in.nq diff --git a/core/src/test/resources/json-ld.org/fromRdf-0019-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0019-out.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/fromRdf-0019-out.jsonld rename to core/src/test/resources/json-ld.org/fromRdf/0019-out.jsonld diff --git a/core/src/test/resources/json-ld.org/fromRdf/0020-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0020-in.nq new file mode 100644 index 00000000..dd715f3d --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0020-in.nq @@ -0,0 +1,6 @@ + _:z0 . +_:z0 "cell-A" . +_:z0 _:z1 . +_:z1 "cell-B" . +_:z1 . + _:z1 . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0020-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0020-out.jsonld new file mode 100644 index 00000000..2c5e5ee1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0020-out.jsonld @@ -0,0 +1,30 @@ +[ + { + "@id": "http://www.example.com/G", + "@graph": [ + { + "@id": "_:z0", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@value": "cell-A" } ], + "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@id": "_:z1" } ] + }, + { + "@id": "_:z1", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@value": "cell-B" } ], + "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ { "@list": [] } ] + }, + { + "@id": "http://www.example.com/z", + "http://www.example.com/q": [ { "@id": "_:z0" } ] + } + ] + }, + { + "@id": "http://www.example.com/G1", + "@graph": [ + { + "@id": "http://www.example.com/x", + "http://www.example.com/p": [ { "@id": "_:z1" } ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/fromRdf/0021-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0021-in.nq new file mode 100644 index 00000000..ce770b64 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0021-in.nq @@ -0,0 +1,6 @@ + _:z0 . +_:z0 "cell-A" . +_:z0 _:z1 . +_:z1 "cell-B" . +_:z1 . + _:z0 . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0021-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0021-out.jsonld new file mode 100644 index 00000000..2bfc7d35 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0021-out.jsonld @@ -0,0 +1,31 @@ +[ + { + "@id": "http://www.example.com/G", + "@graph": [ + { + "@id": "_:z0", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ { "@value": "cell-A" } ], + "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [ + { + "@list": [ + { "@value": "cell-B" } + ] + } + ] + }, + { + "@id": "http://www.example.com/z", + "http://www.example.com/q": [ { "@id": "_:z0" } ] + } + ] + }, + { + "@id": "http://www.example.com/G1", + "@graph": [ + { + "@id": "http://www.example.com/z", + "http://www.example.com/q": [ { "@id": "_:z0" } ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/fromRdf/0022-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0022-in.nq new file mode 100644 index 00000000..bb7c722b --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0022-in.nq @@ -0,0 +1,6 @@ + _:z0 . +_:z0 "cell-A" . +_:z0 _:z1 . +_:z1 "cell-B" . +_:z1 . + _:z0 . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0022-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0022-out.jsonld new file mode 100644 index 00000000..503f2482 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0022-out.jsonld @@ -0,0 +1,22 @@ +[ + { + "@id": "http://www.example.com/G", + "@graph": [ + { + "@id": "http://www.example.com/z", + "http://www.example.com/q": [ + { + "@list": [ + { + "@value": "cell-A" + }, + { + "@value": "cell-B" + } + ] + } + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/fromRdf/0023-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0023-in.nq new file mode 100644 index 00000000..aa54881b --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0023-in.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0023-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0023-out.jsonld new file mode 100644 index 00000000..3ecb939c --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0023-out.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil", + "http://example.com/foo": [ + { + "@id": "http://example.com/bar" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/fromRdf/0024-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0024-in.nq new file mode 100644 index 00000000..6ac8fd5c --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0024-in.nq @@ -0,0 +1,2 @@ + "test"@en . + "test"@fr . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0024-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0024-out.jsonld new file mode 100644 index 00000000..4ff839cc --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0024-out.jsonld @@ -0,0 +1,15 @@ +[ + { + "@id": "http://example.com", + "http://example.com/label": [ + { + "@value": "test", + "@language": "en" + }, + { + "@value": "test", + "@language": "fr" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/fromRdf/0025-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0025-in.nq new file mode 100644 index 00000000..5988604a --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0025-in.nq @@ -0,0 +1,2 @@ + "test"^^ . + "test"^^ . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0025-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0025-out.jsonld new file mode 100644 index 00000000..82be02f6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0025-out.jsonld @@ -0,0 +1,15 @@ +[ + { + "@id": "http://example.com", + "http://example.com/label": [ + { + "@value": "test", + "@type": "http://example.com/t1" + }, + { + "@value": "test", + "@type": "http://example.com/t2" + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/fromRdf/0026-in.nq b/core/src/test/resources/json-ld.org/fromRdf/0026-in.nq new file mode 100644 index 00000000..f54e3608 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0026-in.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/fromRdf/0026-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/0026-out.jsonld new file mode 100644 index 00000000..dc8b9476 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/0026-out.jsonld @@ -0,0 +1,11 @@ +[ + { + "@id": "ex:s", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [ + { + "@list": [] + } + ] + } +] + diff --git a/core/src/test/resources/json-ld.org/fromRdf/js01-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js01-in.nq new file mode 100644 index 00000000..49b72920 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js01-in.nq @@ -0,0 +1 @@ + "true"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js01-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js01-out.jsonld new file mode 100644 index 00000000..e5d59442 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js01-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#bool": [{"@value": true, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js02-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js02-in.nq new file mode 100644 index 00000000..f88e0fa6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js02-in.nq @@ -0,0 +1 @@ + "false"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js02-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js02-out.jsonld new file mode 100644 index 00000000..5e831a6c --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js02-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#bool": [{"@value": false, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js03-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js03-in.nq new file mode 100644 index 00000000..83f070a5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js03-in.nq @@ -0,0 +1 @@ + "1.23"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js03-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js03-out.jsonld new file mode 100644 index 00000000..19e3e095 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js03-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#double": [{"@value": 1.23E0, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js04-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js04-in.nq new file mode 100644 index 00000000..cd8145ef --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js04-in.nq @@ -0,0 +1 @@ + "0"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js04-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js04-out.jsonld new file mode 100644 index 00000000..d0171d50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js04-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#double": [{"@value": 0, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js05-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js05-in.nq new file mode 100644 index 00000000..063dda24 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js05-in.nq @@ -0,0 +1 @@ + "123"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js05-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js05-out.jsonld new file mode 100644 index 00000000..438a44e1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js05-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#integer": [{"@value": 123, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js06-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js06-in.nq new file mode 100644 index 00000000..498c22b0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js06-in.nq @@ -0,0 +1 @@ + "{\"foo\":\"bar\"}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js06-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js06-out.jsonld new file mode 100644 index 00000000..89844df5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js06-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#object": [{"@value": {"foo": "bar"}, "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js07-in.nq b/core/src/test/resources/json-ld.org/fromRdf/js07-in.nq new file mode 100644 index 00000000..257f4b0a --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js07-in.nq @@ -0,0 +1 @@ + "[{\"foo\":\"bar\"}]"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/js07-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/js07-out.jsonld new file mode 100644 index 00000000..3233b0b9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/js07-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.org/vocab#id", + "http://example.org/vocab#array": [{"@value": [{"foo": "bar"}], "@type": "@json"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/li01-in.nq b/core/src/test/resources/json-ld.org/fromRdf/li01-in.nq new file mode 100644 index 00000000..b7018119 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/li01-in.nq @@ -0,0 +1,3 @@ + _:l1 . +_:l1 . +_:l1 . diff --git a/core/src/test/resources/json-ld.org/fromRdf/li01-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/li01-out.jsonld new file mode 100644 index 00000000..df528914 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/li01-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "http://example.com/a", + "http://example.com/property": [{"@list": [{"@list": []}]}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/fromRdf/li02-in.nq b/core/src/test/resources/json-ld.org/fromRdf/li02-in.nq new file mode 100644 index 00000000..37244ae7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/li02-in.nq @@ -0,0 +1,9 @@ + _:l1 . +_:a "a" . +_:a . +_:b "b" . +_:b . +_:l1 _:a . +_:l1 _:l2 . +_:l2 _:b . +_:l2 . diff --git a/core/src/test/resources/json-ld.org/fromRdf/li02-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/li02-out.jsonld new file mode 100644 index 00000000..3f9e348c --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/li02-out.jsonld @@ -0,0 +1,7 @@ +[{ + "@id": "http://example.com/a", + "http://example.com/property": [{"@list": [ + {"@list": [{"@value": "a"}]}, + {"@list": [{"@value": "b"}]} + ]}] +}] diff --git a/core/src/test/resources/json-ld.org/fromRdf/li03-in.nq b/core/src/test/resources/json-ld.org/fromRdf/li03-in.nq new file mode 100644 index 00000000..878e33ed --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/li03-in.nq @@ -0,0 +1,28 @@ + _:outerlist . +_:outerlist _:lista . +_:outerlist _:b0 . + +_:lista "a1" . +_:lista _:a2 . +_:a2 "a2" . +_:a2 _:a3 . +_:a3 "a3" . +_:a3 . + +_:c0 _:c1 . +_:c0 . +_:c1 "c1" . +_:c1 _:c2 . +_:c2 "c2" . +_:c2 _:c3 . +_:c3 "c3" . +_:c3 . + +_:b0 _:b1 . +_:b0 _:c0 . +_:b1 "b1" . +_:b1 _:b2 . +_:b2 "b2" . +_:b2 _:b3 . +_:b3 "b3" . +_:b3 . diff --git a/core/src/test/resources/json-ld.org/fromRdf/li03-out.jsonld b/core/src/test/resources/json-ld.org/fromRdf/li03-out.jsonld new file mode 100644 index 00000000..3dff7bcf --- /dev/null +++ b/core/src/test/resources/json-ld.org/fromRdf/li03-out.jsonld @@ -0,0 +1,14 @@ +[ + { + "@id": "http://example.com", + "http://example.com/property": [ + { + "@list": [ + {"@list": [{"@value": "a1"}, {"@value": "a2"}, {"@value": "a3"}]}, + {"@list": [{"@value": "b1"}, {"@value": "b2"}, {"@value": "b3"}]}, + {"@list": [{"@value": "c1"}, {"@value": "c2"}, {"@value": "c3"}]} + ] + } + ] + } +] diff --git a/core/src/test/resources/json-ld.org/manifest.jsonld b/core/src/test/resources/json-ld.org/manifest.jsonld new file mode 100644 index 00000000..fd7dfce2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/manifest.jsonld @@ -0,0 +1,15 @@ +{ + "@context": "context.jsonld", + "@id": "", + "@type": "mf:Manifest", + "name": "JSON-LD Test Suite", + "description": "This manifest loads additional manifests for specific behavior tests", + "sequence": [ + "compact-manifest.jsonld", + "expand-manifest.jsonld", + "flatten-manifest.jsonld", + "fromRdf-manifest.jsonld", + "remote-doc-manifest.jsonld", + "toRdf-manifest.jsonld" + ] +} diff --git a/core/src/test/resources/json-ld.org/mk_vocab.rb b/core/src/test/resources/json-ld.org/mk_vocab.rb new file mode 100755 index 00000000..402890a7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/mk_vocab.rb @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +# Generate vocab.jsonld and vocab.html from vocab.ttl and vocab_template. +# +# Generating vocab.jsonld is equivalent to running the following: +# +# jsonld --compact --context vocab_context.jsonld --input-format ttl vocab.ttl -o vocab.jsonld +require 'linkeddata' +require 'haml' + +File.open("vocab.jsonld", "w") do |f| + r = RDF::Repository.load("vocab.ttl") + JSON::LD::API.fromRDF(r, :useNativeTypes => true) do |expanded| + # Remove leading/trailing and multiple whitespace from rdf:comments + expanded.each do |o| + c = o[RDF::RDFS.comment.to_s].first['@value'] + o[RDF::RDFS.comment.to_s].first['@value'] = c.strip.gsub(/\s+/m, ' ') + end + JSON::LD::API.compact(expanded, File.open("vocab_context.jsonld")) do |compacted| + # Create vocab.jsonld + f.write(compacted.to_json(JSON::LD::JSON_STATE)) + + # Create vocab.html using vocab_template.haml and compacted vocabulary + template = File.read("vocab_template.haml") + + html = Haml::Engine.new(template, format: :html5).render(self, + ontology: compacted['@graph'].detect {|o| o['@id'] == "https://w3c.github.io/json-ld-api/tests/vocab#"}, + classes: compacted['@graph'].select {|o| o['@type'] == "rdfs:Class"}.sort_by {|o| o['rdfs:label']}, + properties: compacted['@graph'].select {|o| o['@type'] == "rdf:Property"}.sort_by {|o| o['rdfs:label']}, + source: compacted.to_json(JSON::LD::JSON_STATE) + ) + File.open("vocab.html", "w") {|fh| fh.write html} + end + end +end diff --git a/core/src/test/resources/json-ld.org/normalize-0001-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0001-in.jsonld deleted file mode 100644 index 39c66051..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0001-in.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - "@id": "http://example.org/test#example" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0002-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0002-in.jsonld deleted file mode 100644 index bdcb83cd..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0002-in.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@id": "http://example.org/test#example1", - "ex:p": [ - { - "@id": "http://example.org/test#example2" - }, - { - "@id": "http://example.org/test#example2" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0002-out.nq b/core/src/test/resources/json-ld.org/normalize-0002-out.nq deleted file mode 100644 index 529056c8..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0002-out.nq +++ /dev/null @@ -1 +0,0 @@ - . diff --git a/core/src/test/resources/json-ld.org/normalize-0003-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0003-in.jsonld deleted file mode 100644 index efdc7a85..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0003-in.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Foo" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0003-out.nq b/core/src/test/resources/json-ld.org/normalize-0003-out.nq deleted file mode 100644 index 5ca44444..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0003-out.nq +++ /dev/null @@ -1 +0,0 @@ -_:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0004-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0004-in.jsonld deleted file mode 100644 index b6d71c54..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0004-in.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@type": "ex:Foo", - "ex:embed": { - "@id": "http://example.org/test#example" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0004-out.nq b/core/src/test/resources/json-ld.org/normalize-0004-out.nq deleted file mode 100644 index b8bc8314..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0004-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:c14n0 . -_:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0005-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0005-in.jsonld deleted file mode 100644 index 28264b9d..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0005-in.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@id": "http://example.org/test#example", - "@type": "ex:Foo", - "ex:embed": { - "@type": "ex:Bar" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0005-out.nq b/core/src/test/resources/json-ld.org/normalize-0005-out.nq deleted file mode 100644 index 695c23d2..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0005-out.nq +++ /dev/null @@ -1,3 +0,0 @@ - _:c14n0 . - . -_:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0006-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0006-in.jsonld deleted file mode 100644 index 122aa0bf..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0006-in.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@id": "http://example.org/test#example", - "@type": [ - "ex:Foo", - "ex:Bar" - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0006-out.nq b/core/src/test/resources/json-ld.org/normalize-0006-out.nq deleted file mode 100644 index 6fdd06dc..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0006-out.nq +++ /dev/null @@ -1,2 +0,0 @@ - . - . diff --git a/core/src/test/resources/json-ld.org/normalize-0007-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0007-in.jsonld deleted file mode 100644 index 2740bc19..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0007-in.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:foo": {"@type": "@id"} - }, - "@id": "http://example.org/test#example", - "@type": "ex:Foo", - "ex:foo": "ex:Bar" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0007-out.nq b/core/src/test/resources/json-ld.org/normalize-0007-out.nq deleted file mode 100644 index 95da1839..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0007-out.nq +++ /dev/null @@ -1,2 +0,0 @@ - . - . diff --git a/core/src/test/resources/json-ld.org/normalize-0008-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0008-in.jsonld deleted file mode 100644 index 311c34dc..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0008-in.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - } - }, - "@id": "http://example.org/test#library", - "ex:contains": { - "@id": "http://example.org/test#book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": { - "@id": "http://example.org/test#chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - } - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0008-out.nq b/core/src/test/resources/json-ld.org/normalize-0008-out.nq deleted file mode 100644 index 4f30f5e4..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0008-out.nq +++ /dev/null @@ -1,6 +0,0 @@ - . - "Writer" . - "My Book" . - "Fun" . - "Chapter One" . - . diff --git a/core/src/test/resources/json-ld.org/normalize-0009-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0009-in.jsonld deleted file mode 100644 index d081e7fb..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0009-in.jsonld +++ /dev/null @@ -1,39 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:authored": { - "@type": "@id" - }, - "ex:contains": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@graph": [ - { - "@id": "http://example.org/test#chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - }, - { - "@id": "http://example.org/test#jane", - "ex:authored": "http://example.org/test#chapter", - "foaf:name": "Jane" - }, - { - "@id": "http://example.org/test#john", - "foaf:name": "John" - }, - { - "@id": "http://example.org/test#library", - "ex:contains": { - "@id": "http://example.org/test#book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - } - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0010-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0010-in.jsonld deleted file mode 100644 index c71bc96b..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0010-in.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:validFrom": { - "@type": "xsd:dateTime" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#example", - "ex:validFrom": "2011-01-25T00:00:00+0000" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0010-out.nq b/core/src/test/resources/json-ld.org/normalize-0010-out.nq deleted file mode 100644 index 91dd2e10..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0010-out.nq +++ /dev/null @@ -1 +0,0 @@ - "2011-01-25T00:00:00+0000"^^ . diff --git a/core/src/test/resources/json-ld.org/normalize-0011-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0011-in.jsonld deleted file mode 100644 index 4beabc9c..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0011-in.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:validFrom": { - "@type": "xsd:dateTime" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#example", - "ex:validFrom": "2011-01-25T00:00:00Z" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0011-out.nq b/core/src/test/resources/json-ld.org/normalize-0011-out.nq deleted file mode 100644 index aeac7ab0..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0011-out.nq +++ /dev/null @@ -1 +0,0 @@ - "2011-01-25T00:00:00Z"^^ . diff --git a/core/src/test/resources/json-ld.org/normalize-0012-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0012-in.jsonld deleted file mode 100644 index 3c04439e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0012-in.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:date": { - "@type": "xsd:dateTime" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#example", - "ex:date": [ - "2011-01-25T00:00:00Z", - "2011-01-25T00:00:00Z" - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0012-out.nq b/core/src/test/resources/json-ld.org/normalize-0012-out.nq deleted file mode 100644 index e542c9fa..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0012-out.nq +++ /dev/null @@ -1 +0,0 @@ - "2011-01-25T00:00:00Z"^^ . diff --git a/core/src/test/resources/json-ld.org/normalize-0014-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0014-in.jsonld deleted file mode 100644 index 5025d958..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0014-in.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#" - }, - "@id": "http://example.org/test", - "e:bool": true, - "e:double": 1.23, - "e:int": 123 -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0014-out.nq b/core/src/test/resources/json-ld.org/normalize-0014-out.nq deleted file mode 100644 index 01da6612..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0014-out.nq +++ /dev/null @@ -1,3 +0,0 @@ - "true"^^ . - "1.23E0"^^ . - "123"^^ . diff --git a/core/src/test/resources/json-ld.org/normalize-0015-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0015-in.jsonld deleted file mode 100644 index 92775469..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0015-in.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#" - }, - "@graph": [ - { - "@id": "e:A" - }, - { - "@id": "e:B" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0016-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0016-in.jsonld deleted file mode 100644 index 8b763814..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0016-in.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:B": {"@type": "@id"} - }, - "@id": "http://example.org/test", - "e:A": { - "@id": "_:b1" - }, - "e:B": "_:b1", - "e:embed": { - "@id": "_:b1", - "name": "foo" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0016-out.nq b/core/src/test/resources/json-ld.org/normalize-0016-out.nq deleted file mode 100644 index 7ea86396..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0016-out.nq +++ /dev/null @@ -1,3 +0,0 @@ - _:c14n0 . - _:c14n0 . - _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0017-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0017-in.jsonld deleted file mode 100644 index 17fcbc6e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0017-in.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "@context": { - "e": "http://example.org/vocab#", - "e:B": { - "@type": "@id" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test", - "e:A": { - "@id": "_:b1" - }, - "e:B": "_:b1" - }, - { - "@id": "_:b1", - "name": "foo" - } -] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0017-out.nq b/core/src/test/resources/json-ld.org/normalize-0017-out.nq deleted file mode 100644 index 28a87ed6..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0017-out.nq +++ /dev/null @@ -1,2 +0,0 @@ - _:c14n0 . - _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0018-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0018-in.jsonld deleted file mode 100644 index 99daa632..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0018-in.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:self": {"@type": "@id"} - }, - "@id": "_:b0", - "e:self": "_:b0" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0018-out.nq b/core/src/test/resources/json-ld.org/normalize-0018-out.nq deleted file mode 100644 index a01a73a1..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0018-out.nq +++ /dev/null @@ -1 +0,0 @@ -_:c14n0 _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0019-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0019-in.jsonld deleted file mode 100644 index 7644dbb5..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0019-in.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:self": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b0", - "e:self": "_:b0" - }, - { - "@id": "_:b1", - "e:self": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0019-out.nq b/core/src/test/resources/json-ld.org/normalize-0019-out.nq deleted file mode 100644 index b617fa70..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0019-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:c14n0 _:c14n0 . -_:c14n1 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0020-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0020-in.jsonld deleted file mode 100644 index d2a53f39..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0020-in.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:A": {"@type": "@id"}, - "e:B": {"@type": "@id"}, - "e:next": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "e:test", - "e:A": "_:b1", - "e:B": "_:b2" - }, - { - "@id": "_:b1", - "e:next": "_:b3" - }, - { - "@id": "_:b2", - "e:next": "_:b3" - }, - { - "@id": "_:b3" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0020-out.nq b/core/src/test/resources/json-ld.org/normalize-0020-out.nq deleted file mode 100644 index 66ac3f5e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0020-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - _:c14n2 . - _:c14n1 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0021-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0021-in.jsonld deleted file mode 100644 index 9a27f7b1..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0021-in.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b1", - "e:next": "_:b2" - }, - { - "@id": "_:b2", - "e:next": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0021-out.nq b/core/src/test/resources/json-ld.org/normalize-0021-out.nq deleted file mode 100644 index d67d3872..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0021-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n1 _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0022-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0022-in.jsonld deleted file mode 100644 index 5b3fd752..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0022-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": {"@type": "@id"}, - "e:prev": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b2" - }, - { - "@id": "_:b2", - "e:next": "_:b1", - "e:prev": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0022-out.nq b/core/src/test/resources/json-ld.org/normalize-0022-out.nq deleted file mode 100644 index 725618a5..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0022-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n1 . -_:c14n1 _:c14n0 . -_:c14n1 _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0023-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0023-in.jsonld deleted file mode 100644 index 1f8f3993..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0023-in.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b1", - "e:next": "_:b2" - }, - { - "@id": "_:b2", - "e:next": "_:b3" - }, - { - "@id": "_:b3", - "e:next": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0023-out.nq b/core/src/test/resources/json-ld.org/normalize-0023-out.nq deleted file mode 100644 index cbf821d0..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0023-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:c14n0 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0024-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0024-in.jsonld deleted file mode 100644 index 8c18956d..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0024-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": { - "@type": "@id" - }, - "e:prev": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b3" - }, - { - "@id": "_:b2", - "e:next": "_:b3", - "e:prev": "_:b1" - }, - { - "@id": "_:b3", - "e:next": "_:b1", - "e:prev": "_:b2" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0024-out.nq b/core/src/test/resources/json-ld.org/normalize-0024-out.nq deleted file mode 100644 index 6a6bf240..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0024-out.nq +++ /dev/null @@ -1,6 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0025-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0025-in.jsonld deleted file mode 100644 index c602fc7c..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0025-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": { - "@type": "@id" - }, - "e:prev": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b3" - }, - { - "@id": "_:b3", - "e:next": "_:b1", - "e:prev": "_:b2" - }, - { - "@id": "_:b2", - "e:next": "_:b3", - "e:prev": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0025-out.nq b/core/src/test/resources/json-ld.org/normalize-0025-out.nq deleted file mode 100644 index 6a6bf240..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0025-out.nq +++ /dev/null @@ -1,6 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0026-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0026-in.jsonld deleted file mode 100644 index f2fb1baf..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0026-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": { - "@type": "@id" - }, - "e:prev": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b2", - "e:next": "_:b3", - "e:prev": "_:b1" - }, - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b3" - }, - { - "@id": "_:b3", - "e:next": "_:b1", - "e:prev": "_:b2" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0026-out.nq b/core/src/test/resources/json-ld.org/normalize-0026-out.nq deleted file mode 100644 index 6a6bf240..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0026-out.nq +++ /dev/null @@ -1,6 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0027-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0027-in.jsonld deleted file mode 100644 index cb5b8e89..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0027-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": { - "@type": "@id" - }, - "e:prev": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b2", - "e:next": "_:b3", - "e:prev": "_:b1" - }, - { - "@id": "_:b3", - "e:next": "_:b1", - "e:prev": "_:b2" - }, - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b3" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0027-out.nq b/core/src/test/resources/json-ld.org/normalize-0027-out.nq deleted file mode 100644 index 6a6bf240..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0027-out.nq +++ /dev/null @@ -1,6 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0028-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0028-in.jsonld deleted file mode 100644 index 078b76be..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0028-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": { - "@type": "@id" - }, - "e:prev": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b3", - "e:next": "_:b1", - "e:prev": "_:b2" - }, - { - "@id": "_:b2", - "e:next": "_:b3", - "e:prev": "_:b1" - }, - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b3" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0028-out.nq b/core/src/test/resources/json-ld.org/normalize-0028-out.nq deleted file mode 100644 index 6a6bf240..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0028-out.nq +++ /dev/null @@ -1,6 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0029-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0029-in.jsonld deleted file mode 100644 index 5ed1ec2e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0029-in.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:next": { - "@type": "@id" - }, - "e:prev": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b3", - "e:next": "_:b1", - "e:prev": "_:b2" - }, - { - "@id": "_:b1", - "e:next": "_:b2", - "e:prev": "_:b3" - }, - { - "@id": "_:b2", - "e:next": "_:b3", - "e:prev": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0029-out.nq b/core/src/test/resources/json-ld.org/normalize-0029-out.nq deleted file mode 100644 index 6a6bf240..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0029-out.nq +++ /dev/null @@ -1,6 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n2 . -_:c14n1 _:c14n0 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0030-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0030-in.jsonld deleted file mode 100644 index a75642e7..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0030-in.jsonld +++ /dev/null @@ -1,37 +0,0 @@ -{ - "@context": { - "e": "http://example.org/vocab#", - "e:A": { - "@type": "@id" - }, - "e:B": { - "@type": "@id" - }, - "e:C": { - "@type": "@id" - }, - "e:next": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "e:test", - "e:A": "_:b1", - "e:B": "_:b2", - "e:C": "_:b3" - }, - { - "@id": "_:b1", - "e:next": "_:b2" - }, - { - "@id": "_:b2", - "e:next": "_:b3" - }, - { - "@id": "_:b3", - "e:next": "_:b1" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0030-out.nq b/core/src/test/resources/json-ld.org/normalize-0030-out.nq deleted file mode 100644 index 554c7d8e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0030-out.nq +++ /dev/null @@ -1,6 +0,0 @@ - _:c14n1 . - _:c14n2 . - _:c14n0 . -_:c14n0 _:c14n1 . -_:c14n1 _:c14n2 . -_:c14n2 _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0031-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0031-in.jsonld deleted file mode 100644 index 5a05ec99..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0031-in.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@id": "_:a", - "@type": "ex:Foo" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0031-out.nq b/core/src/test/resources/json-ld.org/normalize-0031-out.nq deleted file mode 100644 index 5ca44444..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0031-out.nq +++ /dev/null @@ -1 +0,0 @@ -_:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0032-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0032-in.jsonld deleted file mode 100644 index 2359444e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0032-in.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@id": "_:b", - "@type": "ex:Foo" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0032-out.nq b/core/src/test/resources/json-ld.org/normalize-0032-out.nq deleted file mode 100644 index 5ca44444..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0032-out.nq +++ /dev/null @@ -1 +0,0 @@ -_:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0033-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0033-in.jsonld deleted file mode 100644 index 9becb0b3..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0033-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@graph": [ - { - "@id": "_:a0", - "ex:prop": { - "@id": "_:a1" - } - }, - { - "@id": "_:b0", - "ex:prop": { - "@id": "_:b1" - } - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0033-out.nq b/core/src/test/resources/json-ld.org/normalize-0033-out.nq deleted file mode 100644 index 623996c5..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0033-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:c14n1 _:c14n0 . -_:c14n3 _:c14n2 . diff --git a/core/src/test/resources/json-ld.org/normalize-0034-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0034-in.jsonld deleted file mode 100644 index 0a2a38a3..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0034-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@graph": [ - { - "@id": "_:b0", - "ex:prop": { - "@id": "_:b1" - } - }, - { - "@id": "_:a0", - "ex:prop": { - "@id": "_:a1" - } - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0034-out.nq b/core/src/test/resources/json-ld.org/normalize-0034-out.nq deleted file mode 100644 index 623996c5..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0034-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:c14n1 _:c14n0 . -_:c14n3 _:c14n2 . diff --git a/core/src/test/resources/json-ld.org/normalize-0035-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0035-in.jsonld deleted file mode 100644 index fbde484f..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0035-in.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:a1", - "ex:p1": "_:a3" - }, - { - "@id": "_:a2", - "ex:p1": "_:a4" - }, - { - "@id": "_:a3", - "ex:p2": "Foo" - }, - { - "@id": "_:a4", - "ex:p2": "Foo" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0035-out.nq b/core/src/test/resources/json-ld.org/normalize-0035-out.nq deleted file mode 100644 index eb561bf6..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0035-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n1 "Foo" . -_:c14n2 _:c14n3 . -_:c14n3 "Foo" . diff --git a/core/src/test/resources/json-ld.org/normalize-0036-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0036-in.jsonld deleted file mode 100644 index b9cb261e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0036-in.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:a1", - "ex:p1": "_:a4" - }, - { - "@id": "_:a2", - "ex:p1": "_:a3" - }, - { - "@id": "_:a3", - "ex:p2": "Foo" - }, - { - "@id": "_:a4", - "ex:p2": "Foo" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0036-out.nq b/core/src/test/resources/json-ld.org/normalize-0036-out.nq deleted file mode 100644 index eb561bf6..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0036-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n1 "Foo" . -_:c14n2 _:c14n3 . -_:c14n3 "Foo" . diff --git a/core/src/test/resources/json-ld.org/normalize-0037-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0037-in.jsonld deleted file mode 100644 index 8a871243..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0037-in.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b1", - "ex:p1": "_:b4" - }, - { - "@id": "_:b2", - "ex:p1": "_:b3" - }, - { - "@id": "_:b3", - "ex:p2": "Foo" - }, - { - "@id": "_:b4", - "ex:p2": "Foo" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0037-out.nq b/core/src/test/resources/json-ld.org/normalize-0037-out.nq deleted file mode 100644 index eb561bf6..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0037-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n1 "Foo" . -_:c14n2 _:c14n3 . -_:c14n3 "Foo" . diff --git a/core/src/test/resources/json-ld.org/normalize-0038-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0038-in.jsonld deleted file mode 100644 index 41f76fd1..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0038-in.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:a0", - "ex:p1": [ - "_:a1", - "_:a2" - ] - }, - { - "@id": "_:a1", - "ex:p1": "_:a3" - }, - { - "@id": "_:a2" - }, - { - "@id": "_:a3" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0038-out.nq b/core/src/test/resources/json-ld.org/normalize-0038-out.nq deleted file mode 100644 index b29dc042..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0038-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n3 . diff --git a/core/src/test/resources/json-ld.org/normalize-0039-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0039-in.jsonld deleted file mode 100644 index bc0ca6c2..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0039-in.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b0", - "ex:p1": [ - {}, - "_:b2" - ] - }, - { - "@id": "_:b2", - "ex:p1": {} - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0039-out.nq b/core/src/test/resources/json-ld.org/normalize-0039-out.nq deleted file mode 100644 index b29dc042..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0039-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n1 _:c14n3 . diff --git a/core/src/test/resources/json-ld.org/normalize-0040-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0040-in.jsonld deleted file mode 100644 index a8cf8703..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0040-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b1", - "ex:p1": "_:b2" - }, - { - "@id": "_:b2", - "ex:p1": "_:b3" - }, - { - "@id": "_:b3" - }, - { - "@id": "_:c1", - "ex:p1": "_:c2" - }, - { - "@id": "_:c2", - "ex:p1": "_:c3" - }, - { - "@id": "_:c3" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0040-out.nq b/core/src/test/resources/json-ld.org/normalize-0040-out.nq deleted file mode 100644 index 69da9716..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0040-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n1 _:c14n0 . -_:c14n2 _:c14n1 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n4 . diff --git a/core/src/test/resources/json-ld.org/normalize-0041-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0041-in.jsonld deleted file mode 100644 index f182a931..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0041-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b1", - "ex:p1": "_:b2" - }, - { - "@id": "_:b2", - "ex:p1": "_:b3" - }, - { - "@id": "_:b3" - }, - { - "@id": "_:b4", - "ex:p1": "_:b5" - }, - { - "@id": "_:b5", - "ex:p1": "_:b6" - }, - { - "@id": "_:b6" - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0041-out.nq b/core/src/test/resources/json-ld.org/normalize-0041-out.nq deleted file mode 100644 index 69da9716..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0041-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n1 _:c14n0 . -_:c14n2 _:c14n1 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n4 . diff --git a/core/src/test/resources/json-ld.org/normalize-0042-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0042-in.jsonld deleted file mode 100644 index de7357b3..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0042-in.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:p1": { - "@type": "@id" - } - }, - "@graph": [ - { - "@id": "_:b1", - "ex:p1": "_:b3" - }, - { - "@id": "_:b3", - "ex:p1": {} - }, - { - "@id": "_:b5", - "ex:p1": "_:b6" - }, - { - "@id": "_:b6", - "ex:p1": {} - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0042-out.nq b/core/src/test/resources/json-ld.org/normalize-0042-out.nq deleted file mode 100644 index 69da9716..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0042-out.nq +++ /dev/null @@ -1,4 +0,0 @@ -_:c14n1 _:c14n0 . -_:c14n2 _:c14n1 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n4 . diff --git a/core/src/test/resources/json-ld.org/normalize-0043-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0043-in.jsonld deleted file mode 100644 index 5ab536c4..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0043-in.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#" - }, - "@id": "http://example.org/test", - "ex:test": { - "@language": "en", - "@value": "test" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0043-out.nq b/core/src/test/resources/json-ld.org/normalize-0043-out.nq deleted file mode 100644 index 09d5dc2e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0043-out.nq +++ /dev/null @@ -1 +0,0 @@ - "test"@en . diff --git a/core/src/test/resources/json-ld.org/normalize-0044-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0044-in.jsonld deleted file mode 100644 index 016ba3bf..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0044-in.jsonld +++ /dev/null @@ -1,104 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b1", - "eg:p": [ - "_:b2", - "_:b4", - "_:b3" - ] - }, - { - "@id": "_:b2", - "eg:p": [ - "_:b1", - "_:b3", - "_:b5" - ] - }, - { - "@id": "_:b3", - "eg:p": [ - "_:b1", - "_:b2", - "_:b6" - ] - }, - { - "@id": "_:b4", - "eg:p": [ - "_:b1", - "_:b5", - "_:b6" - ] - }, - { - "@id": "_:b5", - "eg:p": [ - "_:b2", - "_:b4", - "_:b6" - ] - }, - { - "@id": "_:b6", - "eg:p": [ - "_:b3", - "_:b4", - "_:b5" - ] - }, - { - "@id": "_:c1", - "eg:p": [ - "_:c4", - "_:c5", - "_:c6" - ] - }, - { - "@id": "_:c2", - "eg:p": [ - "_:c4", - "_:c5", - "_:c6" - ] - }, - { - "@id": "_:c3", - "eg:p": [ - "_:c4", - "_:c5", - "_:c6" - ] - }, - { - "@id": "_:c4", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - }, - { - "@id": "_:c5", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - }, - { - "@id": "_:c6", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0044-out.nq b/core/src/test/resources/json-ld.org/normalize-0044-out.nq deleted file mode 100644 index 540d3aa0..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0044-out.nq +++ /dev/null @@ -1,36 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n0 _:c14n3 . -_:c14n1 _:c14n0 . -_:c14n1 _:c14n4 . -_:c14n1 _:c14n5 . -_:c14n10 _:c14n11 . -_:c14n10 _:c14n7 . -_:c14n10 _:c14n9 . -_:c14n11 _:c14n10 . -_:c14n11 _:c14n8 . -_:c14n11 _:c14n9 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n4 . -_:c14n2 _:c14n5 . -_:c14n3 _:c14n0 . -_:c14n3 _:c14n4 . -_:c14n3 _:c14n5 . -_:c14n4 _:c14n1 . -_:c14n4 _:c14n2 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n1 . -_:c14n5 _:c14n2 . -_:c14n5 _:c14n3 . -_:c14n6 _:c14n7 . -_:c14n6 _:c14n8 . -_:c14n6 _:c14n9 . -_:c14n7 _:c14n10 . -_:c14n7 _:c14n6 . -_:c14n7 _:c14n8 . -_:c14n8 _:c14n11 . -_:c14n8 _:c14n6 . -_:c14n8 _:c14n7 . -_:c14n9 _:c14n10 . -_:c14n9 _:c14n11 . -_:c14n9 _:c14n6 . diff --git a/core/src/test/resources/json-ld.org/normalize-0045-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0045-in.jsonld deleted file mode 100644 index 9b7bc39b..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0045-in.jsonld +++ /dev/null @@ -1,104 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:c1", - "eg:p": [ - "_:c4", - "_:c5", - "_:c6" - ] - }, - { - "@id": "_:c2", - "eg:p": [ - "_:c4", - "_:c5", - "_:c6" - ] - }, - { - "@id": "_:c3", - "eg:p": [ - "_:c4", - "_:c5", - "_:c6" - ] - }, - { - "@id": "_:c4", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - }, - { - "@id": "_:c5", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - }, - { - "@id": "_:c6", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - }, - { - "@id": "_:b1", - "eg:p": [ - "_:b2", - "_:b4", - "_:b3" - ] - }, - { - "@id": "_:b2", - "eg:p": [ - "_:b1", - "_:b3", - "_:b5" - ] - }, - { - "@id": "_:b3", - "eg:p": [ - "_:b1", - "_:b2", - "_:b6" - ] - }, - { - "@id": "_:b4", - "eg:p": [ - "_:b1", - "_:b5", - "_:b6" - ] - }, - { - "@id": "_:b5", - "eg:p": [ - "_:b2", - "_:b4", - "_:b6" - ] - }, - { - "@id": "_:b6", - "eg:p": [ - "_:b3", - "_:b4", - "_:b5" - ] - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0045-out.nq b/core/src/test/resources/json-ld.org/normalize-0045-out.nq deleted file mode 100644 index 540d3aa0..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0045-out.nq +++ /dev/null @@ -1,36 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n0 _:c14n3 . -_:c14n1 _:c14n0 . -_:c14n1 _:c14n4 . -_:c14n1 _:c14n5 . -_:c14n10 _:c14n11 . -_:c14n10 _:c14n7 . -_:c14n10 _:c14n9 . -_:c14n11 _:c14n10 . -_:c14n11 _:c14n8 . -_:c14n11 _:c14n9 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n4 . -_:c14n2 _:c14n5 . -_:c14n3 _:c14n0 . -_:c14n3 _:c14n4 . -_:c14n3 _:c14n5 . -_:c14n4 _:c14n1 . -_:c14n4 _:c14n2 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n1 . -_:c14n5 _:c14n2 . -_:c14n5 _:c14n3 . -_:c14n6 _:c14n7 . -_:c14n6 _:c14n8 . -_:c14n6 _:c14n9 . -_:c14n7 _:c14n10 . -_:c14n7 _:c14n6 . -_:c14n7 _:c14n8 . -_:c14n8 _:c14n11 . -_:c14n8 _:c14n6 . -_:c14n8 _:c14n7 . -_:c14n9 _:c14n10 . -_:c14n9 _:c14n11 . -_:c14n9 _:c14n6 . diff --git a/core/src/test/resources/json-ld.org/normalize-0046-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0046-in.jsonld deleted file mode 100644 index aea55245..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0046-in.jsonld +++ /dev/null @@ -1,104 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b6", - "eg:p": [ - "_:b3", - "_:b4", - "_:b5" - ] - }, - { - "@id": "_:c1", - "eg:p": [ - "_:c6", - "_:c5", - "_:c4" - ] - }, - { - "@id": "_:b1", - "eg:p": [ - "_:b3", - "_:b4", - "_:b2" - ] - }, - { - "@id": "_:c4", - "eg:p": [ - "_:c3", - "_:c2", - "_:c1" - ] - }, - { - "@id": "_:c5", - "eg:p": [ - "_:c1", - "_:c2", - "_:c3" - ] - }, - { - "@id": "_:c6", - "eg:p": [ - "_:c3", - "_:c1", - "_:c2" - ] - }, - { - "@id": "_:b2", - "eg:p": [ - "_:b1", - "_:b5", - "_:b3" - ] - }, - { - "@id": "_:c2", - "eg:p": [ - "_:c6", - "_:c5", - "_:c4" - ] - }, - { - "@id": "_:b5", - "eg:p": [ - "_:b6", - "_:b4", - "_:b2" - ] - }, - { - "@id": "_:b3", - "eg:p": [ - "_:b6", - "_:b2", - "_:b1" - ] - }, - { - "@id": "_:b4", - "eg:p": [ - "_:b5", - "_:b1", - "_:b6" - ] - }, - { - "@id": "_:c3", - "eg:p": [ - "_:c5", - "_:c4", - "_:c6" - ] - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0046-out.nq b/core/src/test/resources/json-ld.org/normalize-0046-out.nq deleted file mode 100644 index 540d3aa0..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0046-out.nq +++ /dev/null @@ -1,36 +0,0 @@ -_:c14n0 _:c14n1 . -_:c14n0 _:c14n2 . -_:c14n0 _:c14n3 . -_:c14n1 _:c14n0 . -_:c14n1 _:c14n4 . -_:c14n1 _:c14n5 . -_:c14n10 _:c14n11 . -_:c14n10 _:c14n7 . -_:c14n10 _:c14n9 . -_:c14n11 _:c14n10 . -_:c14n11 _:c14n8 . -_:c14n11 _:c14n9 . -_:c14n2 _:c14n0 . -_:c14n2 _:c14n4 . -_:c14n2 _:c14n5 . -_:c14n3 _:c14n0 . -_:c14n3 _:c14n4 . -_:c14n3 _:c14n5 . -_:c14n4 _:c14n1 . -_:c14n4 _:c14n2 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n1 . -_:c14n5 _:c14n2 . -_:c14n5 _:c14n3 . -_:c14n6 _:c14n7 . -_:c14n6 _:c14n8 . -_:c14n6 _:c14n9 . -_:c14n7 _:c14n10 . -_:c14n7 _:c14n6 . -_:c14n7 _:c14n8 . -_:c14n8 _:c14n11 . -_:c14n8 _:c14n6 . -_:c14n8 _:c14n7 . -_:c14n9 _:c14n10 . -_:c14n9 _:c14n11 . -_:c14n9 _:c14n6 . diff --git a/core/src/test/resources/json-ld.org/normalize-0047-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0047-in.jsonld deleted file mode 100644 index 673bd79f..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0047-in.jsonld +++ /dev/null @@ -1,46 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b1", - "eg:p": [ - "_:b2" - ] - }, - { - "@id": "_:b2", - "eg:p": [ - "_:b3" - ] - }, - { - "@id": "_:b3", - "eg:z": [ - "foo1", - "foo2" - ] - }, - { - "@id": "_:c1", - "eg:p": [ - "_:c2" - ] - }, - { - "@id": "_:c2", - "eg:p": [ - "_:c3" - ] - }, - { - "@id": "_:c3", - "eg:z": [ - "bar1", - "bar2" - ] - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0047-out.nq b/core/src/test/resources/json-ld.org/normalize-0047-out.nq deleted file mode 100644 index 1d345e5a..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0047-out.nq +++ /dev/null @@ -1,8 +0,0 @@ -_:c14n0 "bar1" . -_:c14n0 "bar2" . -_:c14n1 "foo1" . -_:c14n1 "foo2" . -_:c14n2 _:c14n0 . -_:c14n3 _:c14n2 . -_:c14n4 _:c14n1 . -_:c14n5 _:c14n4 . diff --git a/core/src/test/resources/json-ld.org/normalize-0048-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0048-in.jsonld deleted file mode 100644 index 1f9058e8..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0048-in.jsonld +++ /dev/null @@ -1,46 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:c1", - "eg:p": [ - "_:c2" - ] - }, - { - "@id": "_:c2", - "eg:p": [ - "_:c3" - ] - }, - { - "@id": "_:c3", - "eg:z": [ - "bar1", - "bar2" - ] - }, - { - "@id": "_:b1", - "eg:p": [ - "_:b2" - ] - }, - { - "@id": "_:b2", - "eg:p": [ - "_:b3" - ] - }, - { - "@id": "_:b3", - "eg:z": [ - "foo1", - "foo2" - ] - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0048-out.nq b/core/src/test/resources/json-ld.org/normalize-0048-out.nq deleted file mode 100644 index 1d345e5a..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0048-out.nq +++ /dev/null @@ -1,8 +0,0 @@ -_:c14n0 "bar1" . -_:c14n0 "bar2" . -_:c14n1 "foo1" . -_:c14n1 "foo2" . -_:c14n2 _:c14n0 . -_:c14n3 _:c14n2 . -_:c14n4 _:c14n1 . -_:c14n5 _:c14n4 . diff --git a/core/src/test/resources/json-ld.org/normalize-0049-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0049-in.jsonld deleted file mode 100644 index 4dd52986..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0049-in.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@id": "http://example.org/test#example", - "eg:p": null -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0050-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0050-in.jsonld deleted file mode 100644 index fd16f53a..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0050-in.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#" - }, - "@id": "_:c1", - "eg:array": ["value", null], - "eg:doc": "Test 'null' in various locations", - "eg:null": null, - "eg:object": { - "prop1": "value1", - "prop2": null - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0050-out.nq b/core/src/test/resources/json-ld.org/normalize-0050-out.nq deleted file mode 100644 index c0085ed2..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0050-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:c14n1 "value" . -_:c14n1 "Test 'null' in various locations" . -_:c14n1 _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-0051-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0051-in.jsonld deleted file mode 100644 index 52e673b3..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0051-in.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "@id": "http://example.org/test#example", - "http://example.org/test#property": "object1" - }, - { - "@id": "http://example.org/test#example", - "http://example.org/test#property": "object2" - }, - { - "@id": "http://example.org/test#example", - "http://example.org/test#property": "object3" - } -] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0051-out.nq b/core/src/test/resources/json-ld.org/normalize-0051-out.nq deleted file mode 100644 index 56ed9a1e..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0051-out.nq +++ /dev/null @@ -1,3 +0,0 @@ - "object1" . - "object2" . - "object3" . diff --git a/core/src/test/resources/json-ld.org/normalize-0052-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0052-in.jsonld deleted file mode 100644 index 19887c97..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0052-in.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "http://example.org/test#property1": {"@type": "@id"}, - "http://example.org/test#property2": {"@type": "@id"}, - "uri": "@id" - }, - "http://example.org/test#property1": { - "http://example.org/test#property4": "foo", - "uri": "http://example.org/test#example2" - }, - "http://example.org/test#property2": "http://example.org/test#example3", - "http://example.org/test#property3": { - "uri": "http://example.org/test#example4" - }, - "uri": "http://example.org/test#example1" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0053-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0053-in.jsonld deleted file mode 100644 index ef5162dc..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0053-in.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "prop1": "http://example.org/test#property1", - "prop2": {"@id": "http://example.org/test#property2", "@container": "@list"} - }, - "prop1": {"@list": ["1","2","3"]}, - "prop2": ["4","5","6"] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0053-out.nq b/core/src/test/resources/json-ld.org/normalize-0053-out.nq deleted file mode 100644 index 08ae4d27..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0053-out.nq +++ /dev/null @@ -1,14 +0,0 @@ -_:c14n0 _:c14n2 . -_:c14n0 _:c14n3 . -_:c14n1 "2" . -_:c14n1 _:c14n5 . -_:c14n2 "1" . -_:c14n2 _:c14n1 . -_:c14n3 "4" . -_:c14n3 _:c14n6 . -_:c14n4 "6" . -_:c14n4 . -_:c14n5 "3" . -_:c14n5 . -_:c14n6 "5" . -_:c14n6 _:c14n4 . diff --git a/core/src/test/resources/json-ld.org/normalize-0054-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0054-in.jsonld deleted file mode 100644 index 58cfd24c..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0054-in.jsonld +++ /dev/null @@ -1,64 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:a", - "eg:p": "_:b" - }, - { - "@id": "_:b", - "eg:p": "_:c" - }, - { - "@id": "_:c", - "eg:p": ["_:d","_:z"] - }, - { - "@id": "_:d", - "eg:p": "_:e" - }, - { - "@id": "_:e", - "eg:p": "_:f" - }, - { - "@id": "_:f", - "eg:p": "_:g" - }, - { - "@id": "_:g", - "eg:p": "_:h" - }, - { - "@id": "_:h", - "eg:p": "_:i" - }, - { - "@id": "_:z", - "eg:p": "_:w" - }, - { - "@id": "_:w", - "eg:p": "_:x" - }, - { - "@id": "_:x", - "eg:p": "_:y" - }, - { - "@id": "_:y", - "eg:p": "_:v" - }, - { - "@id": "_:v", - "eg:p": "_:u" - }, - { - "@id": "_:u", - "eg:p": "_:t" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/normalize-0054-out.nq b/core/src/test/resources/json-ld.org/normalize-0054-out.nq deleted file mode 100644 index 0c34b2f1..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0054-out.nq +++ /dev/null @@ -1,15 +0,0 @@ -_:c14n0 _:c14n14 . -_:c14n0 _:c14n7 . -_:c14n1 _:c14n15 . -_:c14n10 _:c14n9 . -_:c14n11 _:c14n10 . -_:c14n12 _:c14n11 . -_:c14n13 _:c14n12 . -_:c14n14 _:c14n13 . -_:c14n15 _:c14n0 . -_:c14n3 _:c14n2 . -_:c14n4 _:c14n3 . -_:c14n5 _:c14n4 . -_:c14n6 _:c14n5 . -_:c14n7 _:c14n6 . -_:c14n9 _:c14n8 . diff --git a/core/src/test/resources/json-ld.org/normalize-0055-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0055-in.jsonld deleted file mode 100644 index 35d2af15..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0055-in.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:a", - "eg:p": ["_:b", "http://example.com"] - }, - { - "@id": "_:b", - "eg:p": "http://example.org" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/normalize-0055-out.nq b/core/src/test/resources/json-ld.org/normalize-0055-out.nq deleted file mode 100644 index 000d870c..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0055-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:c14n0 . -_:c14n0 _:c14n1 . -_:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0056-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0056-in.jsonld deleted file mode 100644 index 395089cf..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0056-in.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "eg": "http://example.org/vocab#", - "eg:p": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "_:b", - "eg:p": "http://example.org" - }, - { - "@id": "_:a", - "eg:p": ["_:b", "http://example.com"] - } - ] -} diff --git a/core/src/test/resources/json-ld.org/normalize-0056-out.nq b/core/src/test/resources/json-ld.org/normalize-0056-out.nq deleted file mode 100644 index 000d870c..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0056-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:c14n0 . -_:c14n0 _:c14n1 . -_:c14n1 . diff --git a/core/src/test/resources/json-ld.org/normalize-0057-in.jsonld b/core/src/test/resources/json-ld.org/normalize-0057-in.jsonld deleted file mode 100644 index 52e0a4b5..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0057-in.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "homepage": { - "@id": "http://xmlns.com/foaf/0.1/homepage", - "@type": "@id" - } - }, - "@id": "_:graph1", - "@graph": { - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/normalize-0057-out.nq b/core/src/test/resources/json-ld.org/normalize-0057-out.nq deleted file mode 100644 index 460da845..00000000 --- a/core/src/test/resources/json-ld.org/normalize-0057-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:c14n1 _:c14n0 . -_:c14n1 "Manu Sporny" _:c14n0 . diff --git a/core/src/test/resources/json-ld.org/normalize-manifest.jsonld b/core/src/test/resources/json-ld.org/normalize-manifest.jsonld deleted file mode 100644 index d4dcc360..00000000 --- a/core/src/test/resources/json-ld.org/normalize-manifest.jsonld +++ /dev/null @@ -1,353 +0,0 @@ -{ - "@context": "http://json-ld.org/test-suite/context.jsonld", - "@id": "", - "@type": "mf:Manifest", - "name": "Normalization", - "description": "JSON-LD to normalized RDF tests output N-Quads and use string comparison.", - "baseIri": "http://json-ld.org/test-suite/tests/", - "sequence": [ - { - "@id": "#t0001", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "simple id", - "input": "normalize-0001-in.jsonld", - "expect": "normalize-0001-out.nq" - }, { - "@id": "#t0002", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "duplicate property iri values", - "input": "normalize-0002-in.jsonld", - "expect": "normalize-0002-out.nq" - }, { - "@id": "#t0003", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "bnode", - "input": "normalize-0003-in.jsonld", - "expect": "normalize-0003-out.nq" - }, { - "@id": "#t0004", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "bnode plus embed w/subject", - "input": "normalize-0004-in.jsonld", - "expect": "normalize-0004-out.nq" - }, { - "@id": "#t0005", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "bnode embed", - "input": "normalize-0005-in.jsonld", - "expect": "normalize-0005-out.nq" - }, { - "@id": "#t0006", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "multiple rdf types", - "input": "normalize-0006-in.jsonld", - "expect": "normalize-0006-out.nq" - }, { - "@id": "#t0007", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "coerce CURIE value", - "input": "normalize-0007-in.jsonld", - "expect": "normalize-0007-out.nq" - }, { - "@id": "#t0008", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "single subject complex", - "input": "normalize-0008-in.jsonld", - "expect": "normalize-0008-out.nq" - }, { - "@id": "#t0009", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "multiple subjects - complex", - "input": "normalize-0009-in.jsonld", - "expect": "normalize-0009-out.nq" - }, { - "@id": "#t0010", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "type", - "input": "normalize-0010-in.jsonld", - "expect": "normalize-0010-out.nq" - }, { - "@id": "#t0011", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "type-coerced type", - "input": "normalize-0011-in.jsonld", - "expect": "normalize-0011-out.nq" - }, { - "@id": "#t0012", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "type-coerced type, remove duplicate reference", - "input": "normalize-0012-in.jsonld", - "expect": "normalize-0012-out.nq" - }, { - "@id": "#t0013", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "type-coerced type, cycle", - "input": "normalize-0013-in.jsonld", - "expect": "normalize-0013-out.nq" - }, { - "@id": "#t0014", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "check types", - "input": "normalize-0014-in.jsonld", - "expect": "normalize-0014-out.nq" - }, { - "@id": "#t0015", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "top level context", - "input": "normalize-0015-in.jsonld", - "expect": "normalize-0015-out.nq" - }, { - "@id": "#t0016", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - dual link - embed", - "input": "normalize-0016-in.jsonld", - "expect": "normalize-0016-out.nq" - }, { - "@id": "#t0017", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - dual link - non-embed", - "input": "normalize-0017-in.jsonld", - "expect": "normalize-0017-out.nq" - }, { - "@id": "#t0018", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - self link", - "input": "normalize-0018-in.jsonld", - "expect": "normalize-0018-out.nq" - }, { - "@id": "#t0019", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - disjoint self links", - "input": "normalize-0019-in.jsonld", - "expect": "normalize-0019-out.nq" - }, { - "@id": "#t0020", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - diamond", - "input": "normalize-0020-in.jsonld", - "expect": "normalize-0020-out.nq" - }, { - "@id": "#t0021", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - circle of 2", - "input": "normalize-0021-in.jsonld", - "expect": "normalize-0021-out.nq" - }, { - "@id": "#t0022", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 2", - "input": "normalize-0022-in.jsonld", - "expect": "normalize-0022-out.nq" - }, { - "@id": "#t0023", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - circle of 3", - "input": "normalize-0023-in.jsonld", - "expect": "normalize-0023-out.nq" - }, { - "@id": "#t0024", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 3 (1-2-3)", - "input": "normalize-0024-in.jsonld", - "expect": "normalize-0024-out.nq" - }, { - "@id": "#t0025", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 3 (1-3-2)", - "input": "normalize-0025-in.jsonld", - "expect": "normalize-0025-out.nq" - }, { - "@id": "#t0026", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 3 (2-1-3)", - "input": "normalize-0026-in.jsonld", - "expect": "normalize-0026-out.nq" - }, { - "@id": "#t0027", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 3 (2-3-1)", - "input": "normalize-0027-in.jsonld", - "expect": "normalize-0027-out.nq" - }, { - "@id": "#t0028", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 3 (3-2-1)", - "input": "normalize-0028-in.jsonld", - "expect": "normalize-0028-out.nq" - }, { - "@id": "#t0029", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - double circle of 3 (3-1-2)", - "input": "normalize-0029-in.jsonld", - "expect": "normalize-0029-out.nq" - }, { - "@id": "#t0030", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "blank node - point at circle of 3", - "input": "normalize-0030-in.jsonld", - "expect": "normalize-0030-out.nq" - }, { - "@id": "#t0031", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "bnode (1)", - "input": "normalize-0031-in.jsonld", - "expect": "normalize-0031-out.nq" - }, { - "@id": "#t0032", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "bnode (2)", - "input": "normalize-0032-in.jsonld", - "expect": "normalize-0032-out.nq" - }, { - "@id": "#t0033", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "disjoint identical subgraphs (1)", - "input": "normalize-0033-in.jsonld", - "expect": "normalize-0033-out.nq" - }, { - "@id": "#t0034", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "disjoint identical subgraphs (2)", - "input": "normalize-0034-in.jsonld", - "expect": "normalize-0034-out.nq" - }, { - "@id": "#t0035", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered w/strings (1)", - "input": "normalize-0035-in.jsonld", - "expect": "normalize-0035-out.nq" - }, { - "@id": "#t0036", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered w/strings (2)", - "input": "normalize-0036-in.jsonld", - "expect": "normalize-0036-out.nq" - }, { - "@id": "#t0037", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered w/strings (3)", - "input": "normalize-0037-in.jsonld", - "expect": "normalize-0037-out.nq" - }, { - "@id": "#t0038", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered 4 bnodes, reordered 2 properties (1)", - "input": "normalize-0038-in.jsonld", - "expect": "normalize-0038-out.nq" - }, { - "@id": "#t0039", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered 4 bnodes, reordered 2 properties (2)", - "input": "normalize-0039-in.jsonld", - "expect": "normalize-0039-out.nq" - }, { - "@id": "#t0040", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered 6 bnodes (1)", - "input": "normalize-0040-in.jsonld", - "expect": "normalize-0040-out.nq" - }, { - "@id": "#t0041", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered 6 bnodes (2)", - "input": "normalize-0041-in.jsonld", - "expect": "normalize-0041-out.nq" - }, { - "@id": "#t0042", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "reordered 6 bnodes (3)", - "input": "normalize-0042-in.jsonld", - "expect": "normalize-0042-out.nq" - }, { - "@id": "#t0043", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "literal with language", - "input": "normalize-0043-in.jsonld", - "expect": "normalize-0043-out.nq" - }, { - "@id": "#t0044", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "evil (1)", - "input": "normalize-0044-in.jsonld", - "expect": "normalize-0044-out.nq" - }, { - "@id": "#t0045", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "evil (2)", - "input": "normalize-0045-in.jsonld", - "expect": "normalize-0045-out.nq" - }, { - "@id": "#t0046", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "evil (3)", - "input": "normalize-0046-in.jsonld", - "expect": "normalize-0046-out.nq" - }, { - "@id": "#t0047", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "deep diff (1)", - "input": "normalize-0047-in.jsonld", - "expect": "normalize-0047-out.nq" - }, { - "@id": "#t0048", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "deep diff (2)", - "input": "normalize-0048-in.jsonld", - "expect": "normalize-0048-out.nq" - }, { - "@id": "#t0049", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "remove null", - "input": "normalize-0049-in.jsonld", - "expect": "normalize-0049-out.nq" - }, { - "@id": "#t0050", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "nulls", - "input": "normalize-0050-in.jsonld", - "expect": "normalize-0050-out.nq" - }, { - "@id": "#t0051", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "merging subjects", - "input": "normalize-0051-in.jsonld", - "expect": "normalize-0051-out.nq" - }, { - "@id": "#t0052", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "alias keywords", - "input": "normalize-0052-in.jsonld", - "expect": "normalize-0052-out.nq" - }, { - "@id": "#t0053", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "@list", - "input": "normalize-0053-in.jsonld", - "expect": "normalize-0053-out.nq" - }, { - "@id": "#t0054", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "t-graph", - "input": "normalize-0054-in.jsonld", - "expect": "normalize-0054-out.nq" - }, { - "@id": "#t0055", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "simple reorder (1)", - "input": "normalize-0055-in.jsonld", - "expect": "normalize-0055-out.nq" - }, { - "@id": "#t0056", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "simple reorder (2)", - "input": "normalize-0056-in.jsonld", - "expect": "normalize-0056-out.nq" - }, { - "@id": "#t0057", - "@type": ["jld:PositiveEvaluationTest", "jld:NormalizeTest"], - "name": "unnamed graph", - "input": "normalize-0057-in.jsonld", - "expect": "normalize-0057-out.nq" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/remote-doc-0001-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc-0001-out.jsonld deleted file mode 100644 index 5d1957a9..00000000 --- a/core/src/test/resources/json-ld.org/remote-doc-0001-out.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/remote-doc-0001-in.jsonld", - "http://example/vocab#term": [{"@value": "object"}] -}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0002-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc-0002-out.jsonld deleted file mode 100644 index b41edc71..00000000 --- a/core/src/test/resources/json-ld.org/remote-doc-0002-out.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/remote-doc-0002-in.json", - "http://example/vocab#term": [{"@value": "object"}] -}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0003-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc-0003-out.jsonld deleted file mode 100644 index 4564d66f..00000000 --- a/core/src/test/resources/json-ld.org/remote-doc-0003-out.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/remote-doc-0003-in.jldt", - "http://example/vocab#term": [{"@value": "object"}] -}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0009-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc-0009-out.jsonld deleted file mode 100644 index 427bc1e3..00000000 --- a/core/src/test/resources/json-ld.org/remote-doc-0009-out.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/remote-doc-0009-in.jsonld", - "http://example/0009/term": [{"@value": "value1"}] -}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/remote-doc-0010-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc-0010-out.jsonld deleted file mode 100644 index 804502ea..00000000 --- a/core/src/test/resources/json-ld.org/remote-doc-0010-out.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/remote-doc-0010-in.json", - "http://example/vocab#term": [{"@value": "value"}] -}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0011-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc-0011-out.jsonld deleted file mode 100644 index 04508345..00000000 --- a/core/src/test/resources/json-ld.org/remote-doc-0011-out.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://json-ld.org/test-suite/tests/remote-doc-0011-in.jldt", - "http://example/vocab#term": [{"@value": "value"}] -}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-manifest.jsonld b/core/src/test/resources/json-ld.org/remote-doc-manifest.jsonld index e9d9b4aa..d2086514 100644 --- a/core/src/test/resources/json-ld.org/remote-doc-manifest.jsonld +++ b/core/src/test/resources/json-ld.org/remote-doc-manifest.jsonld @@ -1,25 +1,25 @@ { - "@context": "http://json-ld.org/test-suite/context.jsonld", + "@context": "https://w3c.github.io/json-ld-api/tests/context.jsonld", "@id": "", "@type": "mf:Manifest", - "description": "Tests appropriate document loading behavior as defined in the API", "name": "Remote document", - "baseIri": "http://json-ld.org/test-suite/tests/", + "description": "Tests appropriate document loading behavior as defined in the API", + "baseIri": "https://w3c.github.io/json-ld-api/tests/", "sequence": [ { "@id": "#t0001", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "load JSON-LD document", "purpose": "Document loader loads a JSON-LD document.", - "input": "remote-doc-0001-in.jsonld", - "expect": "remote-doc-0001-out.jsonld" + "input": "remote-doc/0001-in.jsonld", + "expect": "remote-doc/0001-out.jsonld" }, { "@id": "#t0002", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "load JSON document", "purpose": "Document loader loads a JSON document.", - "input": "remote-doc-0002-in.json", - "expect": "remote-doc-0002-out.jsonld" + "input": "remote-doc/0002-in.json", + "expect": "remote-doc/0002-out.jsonld" }, { "@id": "#t0003", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], @@ -28,8 +28,8 @@ "option": { "contentType": "application/jldTest+json" }, - "input": "remote-doc-0003-in.jldt", - "expect": "remote-doc-0003-out.jsonld" + "input": "remote-doc/0003-in.jldt", + "expect": "remote-doc/0003-out.jsonld" }, { "@id": "#t0004", "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], @@ -38,7 +38,7 @@ "option": { "contentType": "application/jldTest" }, - "input": "remote-doc-0004-in.jldte", + "input": "remote-doc/0004-in.jldte", "expect": "loading document failed" }, { "@id": "#t0005", @@ -46,39 +46,39 @@ "name": "Load JSON-LD through 301 redirect", "purpose": "Loading a document with a redirect should use the redirected URL as document base", "option": { - "redirectTo": "remote-doc-0001-in.jsonld", + "redirectTo": "remote-doc/0001-in.jsonld", "httpStatus": 301 }, - "input": "remote-doc-0005-in.jsonld", - "expect": "remote-doc-0001-out.jsonld" + "input": "remote-doc/0005-in.jsonld", + "expect": "remote-doc/0001-out.jsonld" }, { "@id": "#t0006", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Load JSON-LD through 303 redirect", "purpose": "Loading a document with a redirect should use the redirected URL as document base", "option": { - "redirectTo": "remote-doc-0001-in.jsonld", + "redirectTo": "remote-doc/0001-in.jsonld", "httpStatus": 303 }, - "input": "remote-doc-0006-in.jsonld", - "expect": "remote-doc-0001-out.jsonld" + "input": "remote-doc/0006-in.jsonld", + "expect": "remote-doc/0001-out.jsonld" }, { "@id": "#t0007", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "Load JSON-LD through 307 redirect", "purpose": "Loading a document with a redirect should use the redirected URL as document base", "option": { - "redirectTo": "remote-doc-0001-in.jsonld", + "redirectTo": "remote-doc/0001-in.jsonld", "httpStatus": 307 }, - "input": "remote-doc-0007-in.jsonld", - "expect": "remote-doc-0001-out.jsonld" + "input": "remote-doc/0007-in.jsonld", + "expect": "remote-doc/0001-out.jsonld" }, { "@id": "#t0008", "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], "name": "Non-existant file (404)", "purpose": "Loading a non-existant file raises loading document failed error", - "input": "remote-doc-0008-in.jsonld", + "input": "remote-doc/missing-in.jsonld", "expect": "loading document failed" }, { "@id": "#t0009", @@ -86,31 +86,31 @@ "name": "load JSON-LD document with link", "purpose": "If a context is specified in a link header, it is not used for JSON-LD.", "option": { - "httpLink": "; rel=\"http://www.w3.org/ns/json-ld#context\"" + "httpLink": "<0009-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"" }, - "input": "remote-doc-0009-in.jsonld", - "expect": "remote-doc-0009-out.jsonld" + "input": "remote-doc/0009-in.jsonld", + "expect": "remote-doc/0009-out.jsonld" }, { "@id": "#t0010", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "load JSON document with link", "purpose": "If a context is specified in a link header, it is used for JSON.", "option": { - "httpLink": "; rel=\"http://www.w3.org/ns/json-ld#context\"" + "httpLink": "<0010-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"" }, - "input": "remote-doc-0010-in.json", - "expect": "remote-doc-0010-out.jsonld" + "input": "remote-doc/0010-in.json", + "expect": "remote-doc/0010-out.jsonld" }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], "name": "load JSON document with extension-type with link", "purpose": "If a context is specified in a link header, it is used for a JSON extension type.", - "input": "remote-doc-0011-in.jldt", + "input": "remote-doc/0011-in.jldt", "option": { "contentType": "application/jldTest+json", - "httpLink": "; rel=\"http://www.w3.org/ns/json-ld#context\"" + "httpLink": "<0011-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"" }, - "expect": "remote-doc-0011-out.jsonld" + "expect": "remote-doc/0011-out.jsonld" }, { "@id": "#t0012", "@type": ["jld:NegativeEvaluationTest", "jld:ExpandTest"], @@ -118,12 +118,22 @@ "purpose": "Loading a file when multiple link headers are returned is an error", "option": { "httpLink": [ - "; rel=\"http://www.w3.org/ns/json-ld#context\"", - "; rel=\"http://www.w3.org/ns/json-ld#context\"" + "<0012-context1.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"", + "<0012-context2.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"" ] }, - "input": "remote-doc-0012-in.json", + "input": "remote-doc/0012-in.json", "expect": "multiple context link headers" + }, { + "@id": "#t0013", + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], + "name": "load JSON document with link to HTML document", + "purpose": "If a context is specified in a link header, it is used for JSON, extracting from HTML.", + "option": { + "httpLink": "<0013-context.html>; rel=\"http://www.w3.org/ns/json-ld#context\"" + }, + "input": "remote-doc/0013-in.json", + "expect": "remote-doc/0013-out.jsonld" } ] } diff --git a/core/src/test/resources/json-ld.org/remote-doc/.htaccess b/core/src/test/resources/json-ld.org/remote-doc/.htaccess new file mode 100644 index 00000000..b40307dd --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/.htaccess @@ -0,0 +1,35 @@ +# Special rules for document loader tests +# Rewrite engine setup +RewriteEngine On +RewriteBase /tests + +# Add directive for test types +AddType application/jldTest+json .jldt +AddType application/jldTest .jldte + +# Tests 0005-0007, status redirect to 0001 +RewriteRule ^0005-in.jsonld$ 0001-in.jsonld [R=301] +RewriteRule ^0006-in.jsonld$ 0001-in.jsonld [R=303] +RewriteRule ^0007-in.jsonld$ 0001-in.jsonld [R=307] + +# Tests 0009-0011 Add link header + + Header set Link '<0009-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"' + + + Header set Link '<0010-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"' + + + Header set Link '<0011-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"' + + +# Test 0012 adds multiple link headers + + Header set Link '<0012-context1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"' + Header append Link '<0012-context2.jsonld>; rel="http://www.w3.org/ns/json-ld#context"' + + +# Test 0013 link header to HTML document + + Header set Link '<0013-context.html>; rel="http://www.w3.org/ns/json-ld#context"' + diff --git a/core/src/test/resources/json-ld.org/remote-doc-0001-in.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0001-in.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc/0001-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0001-out.jsonld new file mode 100644 index 00000000..52a3ce1e --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0001-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0001-in.jsonld", + "http://example/vocab#term": [{"@value": "object"}] +}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0002-in.json b/core/src/test/resources/json-ld.org/remote-doc/0002-in.json similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0002-in.json rename to core/src/test/resources/json-ld.org/remote-doc/0002-in.json diff --git a/core/src/test/resources/json-ld.org/remote-doc/0002-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0002-out.jsonld new file mode 100644 index 00000000..9f5d89dc --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0002-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0002-in.json", + "http://example/vocab#term": [{"@value": "object"}] +}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0003-in.jldt b/core/src/test/resources/json-ld.org/remote-doc/0003-in.jldt similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0003-in.jldt rename to core/src/test/resources/json-ld.org/remote-doc/0003-in.jldt diff --git a/core/src/test/resources/json-ld.org/remote-doc/0003-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0003-out.jsonld new file mode 100644 index 00000000..050a79c5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0003-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0003-in.jldt", + "http://example/vocab#term": [{"@value": "object"}] +}] diff --git a/core/src/test/resources/json-ld.org/normalize-0001-out.nq b/core/src/test/resources/json-ld.org/remote-doc/0004-in.jldte similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0001-out.nq rename to core/src/test/resources/json-ld.org/remote-doc/0004-in.jldte diff --git a/core/src/test/resources/json-ld.org/remote-doc-0009-context.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0009-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0009-context.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0009-context.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc-0009-in.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0009-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0009-in.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0009-in.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc/0009-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0009-out.jsonld new file mode 100644 index 00000000..7987a952 --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0009-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0009-in.jsonld", + "http://example/0009/term": [{"@value": "value1"}] +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/remote-doc-0010-context.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0010-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0010-context.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0010-context.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc-0010-in.json b/core/src/test/resources/json-ld.org/remote-doc/0010-in.json similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0010-in.json rename to core/src/test/resources/json-ld.org/remote-doc/0010-in.json diff --git a/core/src/test/resources/json-ld.org/remote-doc/0010-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0010-out.jsonld new file mode 100644 index 00000000..235a0b1e --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0010-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0010-in.json", + "http://example/vocab#term": [{"@value": "value"}] +}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0011-context.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0011-context.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0011-context.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0011-context.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc-0011-in.jldt b/core/src/test/resources/json-ld.org/remote-doc/0011-in.jldt similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0011-in.jldt rename to core/src/test/resources/json-ld.org/remote-doc/0011-in.jldt diff --git a/core/src/test/resources/json-ld.org/remote-doc/0011-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0011-out.jsonld new file mode 100644 index 00000000..53e1e18c --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0011-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0011-in.jldt", + "http://example/vocab#term": [{"@value": "value"}] +}] diff --git a/core/src/test/resources/json-ld.org/remote-doc-0012-context1.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0012-context1.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0012-context1.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0012-context1.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc-0012-context2.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0012-context2.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0012-context2.jsonld rename to core/src/test/resources/json-ld.org/remote-doc/0012-context2.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc-0012-in.json b/core/src/test/resources/json-ld.org/remote-doc/0012-in.json similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0012-in.json rename to core/src/test/resources/json-ld.org/remote-doc/0012-in.json diff --git a/core/src/test/resources/json-ld.org/remote-doc/0013-context.html b/core/src/test/resources/json-ld.org/remote-doc/0013-context.html new file mode 100644 index 00000000..3cedcd7e --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0013-context.html @@ -0,0 +1,11 @@ + + + + + diff --git a/core/src/test/resources/json-ld.org/remote-doc/0013-in.json b/core/src/test/resources/json-ld.org/remote-doc/0013-in.json new file mode 100644 index 00000000..d76b9971 --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0013-in.json @@ -0,0 +1,4 @@ +[{ + "@id": "", + "term": "value" +}] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/remote-doc/0013-out.jsonld b/core/src/test/resources/json-ld.org/remote-doc/0013-out.jsonld new file mode 100644 index 00000000..853d335e --- /dev/null +++ b/core/src/test/resources/json-ld.org/remote-doc/0013-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/0013-in.json", + "http://example/vocab#term": [{"@value": "value"}] +}] diff --git a/core/src/test/resources/json-ld.org/toRdf-0016-out.nq b/core/src/test/resources/json-ld.org/toRdf-0016-out.nq deleted file mode 100644 index 0ed95c6e..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0016-out.nq +++ /dev/null @@ -1 +0,0 @@ - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0017-out.nq b/core/src/test/resources/json-ld.org/toRdf-0017-out.nq deleted file mode 100644 index 56e22246..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0017-out.nq +++ /dev/null @@ -1 +0,0 @@ - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0018-out.nq b/core/src/test/resources/json-ld.org/toRdf-0018-out.nq deleted file mode 100644 index 3d10901d..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0018-out.nq +++ /dev/null @@ -1 +0,0 @@ - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0028-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0028-in.jsonld deleted file mode 100644 index 3795dfb1..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0028-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "sec": "http://purl.org/security#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", - "dc": "http://purl.org/dc/terms/", - "sec:signer": {"@type": "@id"}, - "dc:created": {"@type": "xsd:dateTime"} - }, - "@id": "http://example.org/sig1", - "@type": ["rdf:Graph", "sec:SignedGraph"], - "dc:created": "2011-09-23T20:21:34Z", - "sec:signer": "http://payswarm.example.com/i/john/keys/5", - "sec:signatureValue": "OGQzNGVkMzVm4NTIyZTkZDYMmMzQzNmExMgoYzI43Q3ODIyOWM32NjI=", - "@graph": { - "@id": "http://example.org/fact1", - "dc:title": "Hello World!" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0044-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0044-in.jsonld deleted file mode 100644 index 5768520b..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0044-in.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, - "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"}, - "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, - "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} - }, - "@id": "http://example.org/id", - "mylist1": { "@list": [ ] }, - "mylist2": "one item", - "myset2": { "@set": [ ] }, - "myset3": [ "v1" ], - "http://example.org/list1": { "@list": [ null ] }, - "http://example.org/list2": { "@list": [ {"@value": null} ] }, - "http://example.org/set1": { "@set": [ ] }, - "http://example.org/set1": { "@set": [ null ] }, - "http://example.org/set3": [ ], - "http://example.org/set4": [ null ], - "http://example.org/set5": "one item", - "http://example.org/property": { "@list": "one item" } -} diff --git a/core/src/test/resources/json-ld.org/toRdf-0045-out.nq b/core/src/test/resources/json-ld.org/toRdf-0045-out.nq deleted file mode 100644 index fa46f903..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0045-out.nq +++ /dev/null @@ -1,6 +0,0 @@ - . - "Alice" . - . - "Bob" . - . - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0046-out.nq b/core/src/test/resources/json-ld.org/toRdf-0046-out.nq deleted file mode 100644 index a9213cf3..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0046-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - . - . - . - "foo" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0047-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0047-in.jsonld deleted file mode 100644 index b49fac4e..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0047-in.jsonld +++ /dev/null @@ -1,18 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/vocab#", - "ex:date": { - "@type": "xsd:dateTime" - }, - "ex:parent": { - "@type": "@id" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#example1", - "ex:date": "2011-01-25T00:00:00Z", - "ex:embed": { - "@id": "http://example.org/test#example2", - "ex:parent": "http://example.org/test#example1" - } -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0047-out.nq b/core/src/test/resources/json-ld.org/toRdf-0047-out.nq deleted file mode 100644 index 5f833b1d..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0047-out.nq +++ /dev/null @@ -1,3 +0,0 @@ - "2011-01-25T00:00:00Z"^^ . - . - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0051-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0051-in.jsonld deleted file mode 100644 index 15815597..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0051-in.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:contains": { - "@type": "@id" - }, - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@id": "http://example.org/test#book", - "dc:title": "Title", - "ex:contains": "http://example.org/test#chapter" -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0052-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0052-in.jsonld deleted file mode 100644 index d081e7fb..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0052-in.jsonld +++ /dev/null @@ -1,39 +0,0 @@ -{ - "@context": { - "dc": "http://purl.org/dc/elements/1.1/", - "ex": "http://example.org/vocab#", - "ex:authored": { - "@type": "@id" - }, - "ex:contains": { - "@type": "@id" - }, - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#" - }, - "@graph": [ - { - "@id": "http://example.org/test#chapter", - "dc:description": "Fun", - "dc:title": "Chapter One" - }, - { - "@id": "http://example.org/test#jane", - "ex:authored": "http://example.org/test#chapter", - "foaf:name": "Jane" - }, - { - "@id": "http://example.org/test#john", - "foaf:name": "John" - }, - { - "@id": "http://example.org/test#library", - "ex:contains": { - "@id": "http://example.org/test#book", - "dc:contributor": "Writer", - "dc:title": "My Book", - "ex:contains": "http://example.org/test#chapter" - } - } - ] -} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0054-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0054-in.jsonld deleted file mode 100644 index ba913ff2..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0054-in.jsonld +++ /dev/null @@ -1,50 +0,0 @@ -{ - "@context": { - "ex": "http://example.org/test#", - "property1": { - "@id": "http://example.org/test#property1", - "@type": "@id" - }, - "property2": { - "@id": "ex:property2", - "@type": "@id" - }, - "uri": "@id", - "set": "@set", - "value": "@value", - "type": "@type", - "xsd": { "@id": "http://www.w3.org/2001/XMLSchema#" } - }, - "property1": { - "uri": "ex:example2", - "http://example.org/test#property4": "foo" - }, - "property2": "http://example.org/test#example3", - "http://example.org/test#property3": { - "uri": "http://example.org/test#example4" - }, - "ex:property4": { - "uri": "ex:example4", - "ex:property5": [ - { - "set": [ - { - "value": "2012-03-31", - "type": "xsd:date" - } - ] - } - ] - }, - "ex:property6": [ - { - "set": [ - { - "value": null, - "type": "xsd:date" - } - ] - } - ], - "uri": "http://example.org/test#example1" -} diff --git a/core/src/test/resources/json-ld.org/toRdf-0057-out.nq b/core/src/test/resources/json-ld.org/toRdf-0057-out.nq deleted file mode 100644 index 1c8d94af..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0057-out.nq +++ /dev/null @@ -1,9 +0,0 @@ - . - "Writer" . - "My Book" . - "Fun" . - "Chapter One" . - . - "Jane" . - "John" . - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0065-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0065-in.jsonld deleted file mode 100644 index 426de362..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0065-in.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "foo": "http://example.com/foo/", - "foo:bar": "http://example.com/bar", - "bar": {"@id": "foo:bar", "@type": "@id"}, - "_": "http://example.com/underscore/" - }, - "@type": [ "foo", "foo:bar", "_" ] -} diff --git a/core/src/test/resources/json-ld.org/toRdf-0065-out.nq b/core/src/test/resources/json-ld.org/toRdf-0065-out.nq deleted file mode 100644 index 57adb84c..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0065-out.nq +++ /dev/null @@ -1,3 +0,0 @@ -_:b0 . -_:b0 . -_:b0 . diff --git a/core/src/test/resources/json-ld.org/toRdf-0068-out.nq b/core/src/test/resources/json-ld.org/toRdf-0068-out.nq deleted file mode 100644 index e8b4f18e..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0068-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - "2011-01-25T00:00:00Z"^^ . - . - . - "2012-08-01T00:00:00Z"^^ . diff --git a/core/src/test/resources/json-ld.org/toRdf-0069-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0069-in.jsonld deleted file mode 100644 index 08cdde33..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0069-in.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -{ - "@context": { - "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } - }, - "@id": "relativeIris", - "@type": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../../parent-parent-eq-root", - "../../../../../still-root", - "../.././.././../../too-many-dots", - "/absolute", - "//example.org/scheme-relative" - ], - "links": [ - "link", - "#fragment-works", - "?query=works", - "./", - "../", - "../parent", - "../../parent-parent-eq-root", - "./../../../useless/../../../still-root", - "../.././.././../../too-many-dots", - "/absolute", - "//example.org/scheme-relative" - ] -} diff --git a/core/src/test/resources/json-ld.org/toRdf-0069-out.nq b/core/src/test/resources/json-ld.org/toRdf-0069-out.nq deleted file mode 100644 index 89910136..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0069-out.nq +++ /dev/null @@ -1,34 +0,0 @@ - _:b0 . - . - . - . - . - . - . - . - . - . - . - . -_:b0 . -_:b0 _:b1 . -_:b1 . -_:b1 _:b2 . -_:b10 . -_:b10 . -_:b2 . -_:b2 _:b3 . -_:b3 . -_:b3 _:b4 . -_:b4 . -_:b4 _:b5 . -_:b5 . -_:b5 _:b6 . -_:b6 . -_:b6 _:b7 . -_:b7 . -_:b7 _:b8 . -_:b8 . -_:b8 _:b9 . -_:b9 . -_:b9 _:b10 . diff --git a/core/src/test/resources/json-ld.org/toRdf-0080-out.nq b/core/src/test/resources/json-ld.org/toRdf-0080-out.nq deleted file mode 100644 index 4059ef58..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0080-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - "No" . - "indexes" . - . - "The Queen" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0088-in.jsonld b/core/src/test/resources/json-ld.org/toRdf-0088-in.jsonld deleted file mode 100644 index 005f5e16..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0088-in.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "term": "http://example.com/terms-are-not-considered-in-id", - "compact-iris": "http://example.com/compact-iris-", - "property": "http://example.com/property", - "@vocab": "http://example.org/vocab-is-not-considered-for-id" - }, - "@id": "term", - "property": [ - { - "@id": "compact-iris:are-considered", - "property": "@id supports the following values: relative, absolute, and compact IRIs" - }, - { - "@id": "../parent-node", - "property": "relative IRIs get resolved against the document's base IRI" - } - ] -} diff --git a/core/src/test/resources/json-ld.org/toRdf-0088-out.nq b/core/src/test/resources/json-ld.org/toRdf-0088-out.nq deleted file mode 100644 index 55b4f9ff..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0088-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - "@id supports the following values: relative, absolute, and compact IRIs" . - "relative IRIs get resolved against the document's base IRI" . - . - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0090-out.nq b/core/src/test/resources/json-ld.org/toRdf-0090-out.nq deleted file mode 100644 index 537edf6e..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0090-out.nq +++ /dev/null @@ -1,2 +0,0 @@ -_:b0 . -_:b0 "Markus" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0091-out.nq b/core/src/test/resources/json-ld.org/toRdf-0091-out.nq deleted file mode 100644 index 34819079..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0091-out.nq +++ /dev/null @@ -1 +0,0 @@ - "ok" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0096-out.nq b/core/src/test/resources/json-ld.org/toRdf-0096-out.nq deleted file mode 100644 index bca879ff..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0096-out.nq +++ /dev/null @@ -1,3 +0,0 @@ - . - . - "Markus Lanthaler" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0097-out.nq b/core/src/test/resources/json-ld.org/toRdf-0097-out.nq deleted file mode 100644 index 384f1d91..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0097-out.nq +++ /dev/null @@ -1 +0,0 @@ -_:b0 . diff --git a/core/src/test/resources/json-ld.org/toRdf-0099-out.nq b/core/src/test/resources/json-ld.org/toRdf-0099-out.nq deleted file mode 100644 index 85da3ac8..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0099-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - . - . - "property expanded using @vocab" . - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0100-out.nq b/core/src/test/resources/json-ld.org/toRdf-0100-out.nq deleted file mode 100644 index 8f20fb1b..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0100-out.nq +++ /dev/null @@ -1,4 +0,0 @@ - . - . - . - . diff --git a/core/src/test/resources/json-ld.org/toRdf-0106-out.nq b/core/src/test/resources/json-ld.org/toRdf-0106-out.nq deleted file mode 100644 index 1dcbdf7d..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0106-out.nq +++ /dev/null @@ -1,5 +0,0 @@ - . - "Dave Longley" . - "Markus Lanthaler" . - . - "Compact keys using @vocab" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0118-out.nq b/core/src/test/resources/json-ld.org/toRdf-0118-out.nq deleted file mode 100644 index a9451eef..00000000 --- a/core/src/test/resources/json-ld.org/toRdf-0118-out.nq +++ /dev/null @@ -1,9 +0,0 @@ -_:b0 _:b0 . -_:b0 _:b0 "plain value" . -_:b0 _:b0 . -_:b0 _:b0 _:b0 . -_:b0 _:b0 _:b1 . -_:b0 _:b0 _:b2 . -_:b0 _:b0 _:b3 . -_:b1 _:b0 "term" . -_:b2 _:b0 "termId" . diff --git a/core/src/test/resources/json-ld.org/toRdf-manifest.jsonld b/core/src/test/resources/json-ld.org/toRdf-manifest.jsonld index a8d2fdf2..1b60ec72 100644 --- a/core/src/test/resources/json-ld.org/toRdf-manifest.jsonld +++ b/core/src/test/resources/json-ld.org/toRdf-manifest.jsonld @@ -1,889 +1,1212 @@ { - "@context": "http://json-ld.org/test-suite/context.jsonld", + "@context": "context.jsonld", "@id": "", "@type": "mf:Manifest", "name": "Transform JSON-LD to RDF", - "description": "JSON-LD to RDF tests generate N-Quads output and use string comparison.", - "baseIri": "http://json-ld.org/test-suite/tests/", + "description": "JSON-LD to RDF tests generate RDF Datasets and use RDF Dataset Isomorphism comparison.", + "baseIri": "https://w3c.github.io/json-ld-api/tests/", "sequence": [ { "@id": "#t0001", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Plain literal with URIs", "purpose": "Tests generation of a triple using full URIs and a plain literal.", - "input": "toRdf-0001-in.jsonld", - "expect": "toRdf-0001-out.nq" + "input": "toRdf/0001-in.jsonld", + "expect": "toRdf/0001-out.nq" }, { "@id": "#t0002", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Plain literal with CURIE from default context", "purpose": "Tests generation of a triple using a CURIE defined in the default context.", - "input": "toRdf-0002-in.jsonld", - "expect": "toRdf-0002-out.nq" + "input": "toRdf/0002-in.jsonld", + "expect": "toRdf/0002-out.nq" }, { "@id": "#t0003", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Default subject is BNode", "purpose": "Tests that a BNode is created if no explicit subject is set.", - "input": "toRdf-0003-in.jsonld", - "expect": "toRdf-0003-out.nq" + "input": "toRdf/0003-in.jsonld", + "expect": "toRdf/0003-out.nq" }, { "@id": "#t0004", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Literal with language tag", "purpose": "Tests that a plain literal is created with a language tag.", - "input": "toRdf-0004-in.jsonld", - "expect": "toRdf-0004-out.nq" + "input": "toRdf/0004-in.jsonld", + "expect": "toRdf/0004-out.nq" }, { "@id": "#t0005", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Extended character set literal", "purpose": "Tests that a literal may be created using extended characters.", - "input": "toRdf-0005-in.jsonld", - "expect": "toRdf-0005-out.nq" + "input": "toRdf/0005-in.jsonld", + "expect": "toRdf/0005-out.nq" }, { "@id": "#t0006", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Typed literal", "purpose": "Tests creation of a literal with a datatype.", - "input": "toRdf-0006-in.jsonld", - "expect": "toRdf-0006-out.nq" + "input": "toRdf/0006-in.jsonld", + "expect": "toRdf/0006-out.nq" }, { "@id": "#t0007", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Tests 'a' generates rdf:type and object is implicit IRI", "purpose": "Verify that 'a' is an alias for rdf:type, and the object is created as an IRI.", - "input": "toRdf-0007-in.jsonld", - "expect": "toRdf-0007-out.nq" + "input": "toRdf/0007-in.jsonld", + "expect": "toRdf/0007-out.nq" }, { "@id": "#t0008", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test prefix defined in @context", "purpose": "Generate an IRI using a prefix defined within an @context.", - "input": "toRdf-0008-in.jsonld", - "expect": "toRdf-0008-out.nq" + "input": "toRdf/0008-in.jsonld", + "expect": "toRdf/0008-out.nq" }, { "@id": "#t0009", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test using an empty suffix", "purpose": "An empty suffix may be used.", - "input": "toRdf-0009-in.jsonld", - "expect": "toRdf-0009-out.nq" + "input": "toRdf/0009-in.jsonld", + "expect": "toRdf/0009-out.nq" }, { "@id": "#t0010", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test object processing defines object", "purpose": "A property referencing an associative array gets object from subject of array.", - "input": "toRdf-0010-in.jsonld", - "expect": "toRdf-0010-out.nq" + "input": "toRdf/0010-in.jsonld", + "expect": "toRdf/0010-out.nq" }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test object processing defines object with implicit BNode", "purpose": "If no @ is specified, a BNode is created, and will be used as the object of an enclosing property.", - "input": "toRdf-0011-in.jsonld", - "expect": "toRdf-0011-out.nq" + "input": "toRdf/0011-in.jsonld", + "expect": "toRdf/0011-out.nq" }, { "@id": "#t0012", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Multiple Objects for a Single Property", "purpose": "Tests that Multiple Objects are for a Single Property using array syntax.", - "input": "toRdf-0012-in.jsonld", - "expect": "toRdf-0012-out.nq" + "input": "toRdf/0012-in.jsonld", + "expect": "toRdf/0012-out.nq" }, { "@id": "#t0013", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Creation of an empty list", "purpose": "Tests that @list: [] generates an empty list.", - "input": "toRdf-0013-in.jsonld", - "expect": "toRdf-0013-out.nq" + "input": "toRdf/0013-in.jsonld", + "expect": "toRdf/0013-out.nq" }, { "@id": "#t0014", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Creation of a list with single element", "purpose": "Tests that @list generates a list.", - "input": "toRdf-0014-in.jsonld", - "expect": "toRdf-0014-out.nq" + "input": "toRdf/0014-in.jsonld", + "expect": "toRdf/0014-out.nq" }, { "@id": "#t0015", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Creation of a list with multiple elements", "purpose": "Tests that list with multiple elements.", - "input": "toRdf-0015-in.jsonld", - "expect": "toRdf-0015-out.nq" + "input": "toRdf/0015-in.jsonld", + "expect": "toRdf/0015-out.nq" }, { "@id": "#t0016", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Empty IRI expands to resource location", "purpose": "Expanding an empty IRI uses the test file location.", - "input": "toRdf-0016-in.jsonld", - "expect": "toRdf-0016-out.nq" + "input": "toRdf/0016-in.jsonld", + "expect": "toRdf/0016-out.nq" }, { "@id": "#t0017", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Relative IRI expands relative resource location", "purpose": "Expanding a relative IRI uses the test file location.", - "input": "toRdf-0017-in.jsonld", - "expect": "toRdf-0017-out.nq" + "input": "toRdf/0017-in.jsonld", + "expect": "toRdf/0017-out.nq" }, { "@id": "#t0018", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Frag ID expands relative resource location", "purpose": "Expanding a fragment uses the test file location.", - "input": "toRdf-0018-in.jsonld", - "expect": "toRdf-0018-out.nq" + "input": "toRdf/0018-in.jsonld", + "expect": "toRdf/0018-out.nq" }, { "@id": "#t0019", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test type coercion to anyURI", "purpose": "Tests coercion of object to anyURI when specified.", - "input": "toRdf-0019-in.jsonld", - "expect": "toRdf-0019-out.nq" + "input": "toRdf/0019-in.jsonld", + "expect": "toRdf/0019-out.nq" }, { "@id": "#t0020", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test type coercion to typed literal", "purpose": "Tests coercion of object to a typed literal when specified.", - "input": "toRdf-0020-in.jsonld", - "expect": "toRdf-0020-out.nq" + "input": "toRdf/0020-in.jsonld", + "expect": "toRdf/0020-out.nq" }, { "@id": "#t0022", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test coercion of double value", "purpose": "Tests that a decimal value generates a xsd:double typed literal;.", - "input": "toRdf-0022-in.jsonld", - "expect": "toRdf-0022-out.nq" + "input": "toRdf/0022-in.jsonld", + "expect": "toRdf/0022-out.nq" }, { "@id": "#t0023", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test coercion of integer value", "purpose": "Tests that a decimal value generates a xsd:integer typed literal.", - "input": "toRdf-0023-in.jsonld", - "expect": "toRdf-0023-out.nq" + "input": "toRdf/0023-in.jsonld", + "expect": "toRdf/0023-out.nq" }, { "@id": "#t0024", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test coercion of boolean value", "purpose": "Tests that a decimal value generates a xsd:boolean typed literal.", - "input": "toRdf-0024-in.jsonld", - "expect": "toRdf-0024-out.nq" + "input": "toRdf/0024-in.jsonld", + "expect": "toRdf/0024-out.nq" }, { "@id": "#t0025", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test list coercion with single element", "purpose": "Tests that an array with a single element on a property with @list coercion creates an RDF Collection.", - "input": "toRdf-0025-in.jsonld", - "expect": "toRdf-0025-out.nq" + "input": "toRdf/0025-in.jsonld", + "expect": "toRdf/0025-out.nq" }, { "@id": "#t0026", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Test creation of multiple types", "purpose": "Tests that @type with an array of types creates multiple types.", - "input": "toRdf-0026-in.jsonld", - "expect": "toRdf-0026-out.nq" + "input": "toRdf/0026-in.jsonld", + "expect": "toRdf/0026-out.nq" }, { "@id": "#t0027", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Simple named graph (Wikidata)", "purpose": "Using @graph with other keys places triples in a named graph.", - "input": "toRdf-0027-in.jsonld", - "expect": "toRdf-0027-out.nq" + "input": "toRdf/0027-in.jsonld", + "expect": "toRdf/0027-out.nq" }, { "@id": "#t0028", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Simple named graph", "purpose": "Signing a graph.", - "input": "toRdf-0028-in.jsonld", - "expect": "toRdf-0028-out.nq" + "input": "toRdf/0028-in.jsonld", + "expect": "toRdf/0028-out.nq" }, { "@id": "#t0029", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "named graph with embedded named graph", "purpose": "Tests that named graphs containing named graphs flatten to single level of graph naming.", - "input": "toRdf-0029-in.jsonld", - "expect": "toRdf-0029-out.nq" + "input": "toRdf/0029-in.jsonld", + "expect": "toRdf/0029-out.nq" }, { "@id": "#t0030", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "top-level graph with string subject reference", "purpose": "Tests graphs containing subject references as strings.", - "input": "toRdf-0030-in.jsonld", - "expect": "toRdf-0030-out.nq" + "input": "toRdf/0030-in.jsonld", + "expect": "toRdf/0030-out.nq" }, { "@id": "#t0031", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Reverse property", "purpose": "Tests conversion of reverse properties.", - "input": "toRdf-0031-in.jsonld", - "expect": "toRdf-0031-out.nq" + "input": "toRdf/0031-in.jsonld", + "expect": "toRdf/0031-out.nq" }, { "@id": "#t0032", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@context reordering", "purpose": "Tests that generated triples do not depend on order of @context.", - "input": "toRdf-0032-in.jsonld", - "expect": "toRdf-0032-out.nq" + "input": "toRdf/0032-in.jsonld", + "expect": "toRdf/0032-out.nq" }, { "@id": "#t0033", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@id reordering", "purpose": "Tests that generated triples do not depend on order of @id.", - "input": "toRdf-0033-in.jsonld", - "expect": "toRdf-0033-out.nq" + "input": "toRdf/0033-in.jsonld", + "expect": "toRdf/0033-out.nq" }, { "@id": "#t0034", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "context properties reordering", "purpose": "Tests that generated triples do not depend on order of properties inside @context.", - "input": "toRdf-0034-in.jsonld", - "expect": "toRdf-0034-out.nq" + "input": "toRdf/0034-in.jsonld", + "expect": "toRdf/0034-out.nq" }, { "@id": "#t0035", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "non-fractional numbers converted to xsd:double", "purpose": "xsd:double's canonical lexical is used when converting numbers without fraction that are coerced to xsd:double", - "input": "toRdf-0035-in.jsonld", - "expect": "toRdf-0035-out.nq" + "input": "toRdf/0035-in.jsonld", + "expect": "toRdf/0035-out.nq" }, { "@id": "#t0036", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Use nodeMapGeneration bnode labels", "purpose": "The toRDF algorithm does not relabel blank nodes; it reuses the counter from the nodeMapGeneration to generate new ones", - "input": "toRdf-0036-in.jsonld", - "expect": "toRdf-0036-out.nq" + "input": "toRdf/0036-in.jsonld", + "expect": "toRdf/0036-out.nq" }, { "@id": "#t0041", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "drop free-floating nodes", "purpose": "Free-floating nodes do not generate RDF triples", - "input": "toRdf-0041-in.jsonld", - "expect": "toRdf-0041-out.nq" + "input": "toRdf/0041-in.jsonld", + "expect": "toRdf/0041-out.nq" }, { "@id": "#t0042", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "basic", "purpose": "Basic RDF conversion", - "input": "toRdf-0042-in.jsonld", - "expect": "toRdf-0042-out.nq" + "input": "toRdf/0042-in.jsonld", + "expect": "toRdf/0042-out.nq" }, { "@id": "#t0043", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "drop null and unmapped properties", "purpose": "Properties mapped to null or which are never mapped are dropped", - "input": "toRdf-0043-in.jsonld", - "expect": "toRdf-0043-out.nq" + "input": "toRdf/0043-in.jsonld", + "expect": "toRdf/0043-out.nq" }, { "@id": "#t0044", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "optimize @set, keep empty arrays", "purpose": "RDF version of expand-0004", - "input": "toRdf-0044-in.jsonld", - "expect": "toRdf-0044-out.nq" + "input": "toRdf/0044-in.jsonld", + "expect": "toRdf/0044-out.nq" }, { "@id": "#t0045", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "do not expand aliased @id/@type", "purpose": "RDF version of expand-0005", - "input": "toRdf-0045-in.jsonld", - "expect": "toRdf-0045-out.nq" + "input": "toRdf/0045-in.jsonld", + "expect": "toRdf/0045-out.nq" }, { "@id": "#t0046", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "alias keywords", "purpose": "RDF version of expand-0006", - "input": "toRdf-0046-in.jsonld", - "expect": "toRdf-0046-out.nq" + "input": "toRdf/0046-in.jsonld", + "expect": "toRdf/0046-out.nq" }, { "@id": "#t0047", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "date type-coercion", "purpose": "Type-coerced dates generate typed literals", - "input": "toRdf-0047-in.jsonld", - "expect": "toRdf-0047-out.nq" + "input": "toRdf/0047-in.jsonld", + "expect": "toRdf/0047-out.nq" }, { "@id": "#t0048", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@value with @language", "purpose": "RDF version of expand-0008", - "input": "toRdf-0048-in.jsonld", - "expect": "toRdf-0048-out.nq" + "input": "toRdf/0048-in.jsonld", + "expect": "toRdf/0048-out.nq" }, { "@id": "#t0049", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@graph with terms", "purpose": "RDF version of expand-0009", - "input": "toRdf-0049-in.jsonld", - "expect": "toRdf-0049-out.nq" + "input": "toRdf/0049-in.jsonld", + "expect": "toRdf/0049-out.nq" }, { "@id": "#t0050", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "native types", "purpose": "Native types generate typed literals", - "input": "toRdf-0050-in.jsonld", - "expect": "toRdf-0050-out.nq" + "input": "toRdf/0050-in.jsonld", + "expect": "toRdf/0050-out.nq" }, { "@id": "#t0051", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "coerced @id", "purpose": "RDF version of expand-0011", - "input": "toRdf-0051-in.jsonld", - "expect": "toRdf-0051-out.nq" + "input": "toRdf/0051-in.jsonld", + "expect": "toRdf/0051-out.nq" }, { "@id": "#t0052", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@graph with embed", "purpose": "RDF version of expand-0012", - "input": "toRdf-0052-in.jsonld", - "expect": "toRdf-0052-out.nq" + "input": "toRdf/0052-in.jsonld", + "expect": "toRdf/0052-out.nq" }, { "@id": "#t0053", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "expand already expanded", "purpose": "RDF version of expand-0013", - "input": "toRdf-0053-in.jsonld", - "expect": "toRdf-0053-out.nq" + "input": "toRdf/0053-in.jsonld", + "expect": "toRdf/0053-out.nq" }, { "@id": "#t0054", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@set of @value objects with keyword aliases", "purpose": "RDF version of expand-0014", - "input": "toRdf-0054-in.jsonld", - "expect": "toRdf-0054-out.nq" + "input": "toRdf/0054-in.jsonld", + "expect": "toRdf/0054-out.nq", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0055", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "collapse set of sets, keep empty lists", "purpose": "RDF version of expand-0015", - "input": "toRdf-0055-in.jsonld", - "expect": "toRdf-0055-out.nq" + "input": "toRdf/0055-in.jsonld", + "expect": "toRdf/0055-out.nq" }, { "@id": "#t0056", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "context reset", "purpose": "RDF version of expand-0016", - "input": "toRdf-0056-in.jsonld", - "expect": "toRdf-0056-out.nq" + "input": "toRdf/0056-in.jsonld", + "expect": "toRdf/0056-out.nq" }, { "@id": "#t0057", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@graph and @id aliased", "purpose": "RDF version of expand-0017", - "input": "toRdf-0057-in.jsonld", - "expect": "toRdf-0057-out.nq" + "input": "toRdf/0057-in.jsonld", + "expect": "toRdf/0057-out.nq" }, { "@id": "#t0058", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "override default @language", "purpose": "RDF version of expand-0018", - "input": "toRdf-0058-in.jsonld", - "expect": "toRdf-0058-out.nq" + "input": "toRdf/0058-in.jsonld", + "expect": "toRdf/0058-out.nq" }, { "@id": "#t0059", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "remove @value = null", "purpose": "RDF version of expand-0019", - "input": "toRdf-0059-in.jsonld", - "expect": "toRdf-0059-out.nq" + "input": "toRdf/0059-in.jsonld", + "expect": "toRdf/0059-out.nq" }, { "@id": "#t0060", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "do not remove @graph if not at top-level", "purpose": "Embedded @graph without @id creates BNode-labeled named graph", - "input": "toRdf-0060-in.jsonld", - "expect": "toRdf-0060-out.nq" + "input": "toRdf/0060-in.jsonld", + "expect": "toRdf/0060-out.nq" }, { "@id": "#t0061", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "do not remove @graph at top-level if not only property", "purpose": "RDF version of expand-0021", - "input": "toRdf-0061-in.jsonld", - "expect": "toRdf-0061-out.nq" + "input": "toRdf/0061-in.jsonld", + "expect": "toRdf/0061-out.nq" }, { "@id": "#t0062", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "expand value with default language", "purpose": "RDF version of expand-0022", - "input": "toRdf-0062-in.jsonld", - "expect": "toRdf-0062-out.nq" + "input": "toRdf/0062-in.jsonld", + "expect": "toRdf/0062-out.nq" }, { "@id": "#t0063", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Lists and sets of properties with list/set coercion", "purpose": "RDF version of expand-0023", - "input": "toRdf-0063-in.jsonld", - "expect": "toRdf-0063-out.nq" + "input": "toRdf/0063-in.jsonld", + "expect": "toRdf/0063-out.nq" }, { "@id": "#t0064", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Multiple contexts", "purpose": "RDF version of expand-0024", - "input": "toRdf-0064-in.jsonld", - "expect": "toRdf-0064-out.nq" + "input": "toRdf/0064-in.jsonld", + "expect": "toRdf/0064-out.nq" }, { "@id": "#t0065", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Problematic IRI expansion tests", "purpose": "RDF version of expand-0025", - "input": "toRdf-0065-in.jsonld", - "expect": "toRdf-0065-out.nq" + "input": "toRdf/0065-in.jsonld", + "expect": "toRdf/0065-out.nq" }, { "@id": "#t0066", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expanding term mapping to @type uses @type syntax", "purpose": "RDF version of expand-0026", - "input": "toRdf-0066-in.jsonld", - "expect": "toRdf-0066-out.nq" + "input": "toRdf/0066-in.jsonld", + "expect": "toRdf/0066-out.nq", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0067", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Keep duplicate values in @list and @set", "purpose": "RDF version of expand-0027", - "input": "toRdf-0067-in.jsonld", - "expect": "toRdf-0067-out.nq" + "input": "toRdf/0067-in.jsonld", + "expect": "toRdf/0067-out.nq" }, { "@id": "#t0068", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Use @vocab in properties and @type but not in @id", "purpose": "RDF version of expand-0028", - "input": "toRdf-0068-in.jsonld", - "expect": "toRdf-0068-out.nq" + "input": "toRdf/0068-in.jsonld", + "expect": "toRdf/0068-out.nq" }, { "@id": "#t0069", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Relative IRIs", "purpose": "RDF version of expand-0029", - "input": "toRdf-0069-in.jsonld", - "expect": "toRdf-0069-out.nq" + "input": "toRdf/0069-in.jsonld", + "expect": "toRdf/0069-out.nq" }, { "@id": "#t0070", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Language maps", "purpose": "RDF version of expand-0030", - "input": "toRdf-0070-in.jsonld", - "expect": "toRdf-0070-out.nq" + "input": "toRdf/0070-in.jsonld", + "expect": "toRdf/0070-out.nq" }, { "@id": "#t0071", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "type-coercion of native types", "purpose": "RDF version of expand-0031", - "input": "toRdf-0071-in.jsonld", - "expect": "toRdf-0071-out.nq" + "input": "toRdf/0071-in.jsonld", + "expect": "toRdf/0071-out.nq" }, { "@id": "#t0072", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Mapping a term to null decouples it from @vocab", "purpose": "RDF version of expand-0032", - "input": "toRdf-0072-in.jsonld", - "expect": "toRdf-0072-out.nq" + "input": "toRdf/0072-in.jsonld", + "expect": "toRdf/0072-out.nq" }, { "@id": "#t0073", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Using @vocab with with type-coercion", "purpose": "RDF version of expand-0033", - "input": "toRdf-0073-in.jsonld", - "expect": "toRdf-0073-out.nq" + "input": "toRdf/0073-in.jsonld", + "expect": "toRdf/0073-out.nq" }, { "@id": "#t0074", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Multiple properties expanding to the same IRI", "purpose": "RDF version of expand-0034", - "input": "toRdf-0074-in.jsonld", - "expect": "toRdf-0074-out.nq" + "input": "toRdf/0074-in.jsonld", + "expect": "toRdf/0074-out.nq" }, { "@id": "#t0075", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Language maps with @vocab, default language, and colliding property", "purpose": "RDF version of expand-0035", - "input": "toRdf-0075-in.jsonld", - "expect": "toRdf-0075-out.nq" + "input": "toRdf/0075-in.jsonld", + "expect": "toRdf/0075-out.nq" }, { "@id": "#t0076", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expanding @index", "purpose": "RDF version of expand-0036", - "input": "toRdf-0076-in.jsonld", - "expect": "toRdf-0076-out.nq" + "input": "toRdf/0076-in.jsonld", + "expect": "toRdf/0076-out.nq" }, { "@id": "#t0077", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expanding @reverse", "purpose": "RDF version of expand-0037", - "input": "toRdf-0077-in.jsonld", - "expect": "toRdf-0077-out.nq" + "input": "toRdf/0077-in.jsonld", + "expect": "toRdf/0077-out.nq" }, { "@id": "#t0078", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Drop blank node predicates by default", "purpose": "Triples with blank node predicates are dropped by default.", - "input": "toRdf-0078-in.jsonld", - "expect": "toRdf-0078-out.nq" + "option": {"processingMode": "json-ld-1.0"}, + "input": "toRdf/0078-in.jsonld", + "expect": "toRdf/0078-out.nq" }, { "@id": "#t0079", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Using terms in a reverse-maps", "purpose": "RDF version of expand-0039", - "input": "toRdf-0079-in.jsonld", - "expect": "toRdf-0079-out.nq" + "input": "toRdf/0079-in.jsonld", + "expect": "toRdf/0079-out.nq" }, { "@id": "#t0080", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "language and index expansion on non-objects", "purpose": "RDF version of expand-0040", - "input": "toRdf-0080-in.jsonld", - "expect": "toRdf-0080-out.nq" + "input": "toRdf/0080-in.jsonld", + "expect": "toRdf/0080-out.nq" }, { "@id": "#t0081", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Reset the default language", "purpose": "RDF version of expand-0041", - "input": "toRdf-0081-in.jsonld", - "expect": "toRdf-0081-out.nq" + "input": "toRdf/0081-in.jsonld", + "expect": "toRdf/0081-out.nq" }, { "@id": "#t0082", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expanding reverse properties", "purpose": "RDF version of expand-0042", - "input": "toRdf-0082-in.jsonld", - "expect": "toRdf-0082-out.nq" + "input": "toRdf/0082-in.jsonld", + "expect": "toRdf/0082-out.nq" }, { "@id": "#t0083", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Using reverse properties inside a @reverse-container", "purpose": "RDF version of expand-0043", - "input": "toRdf-0083-in.jsonld", - "expect": "toRdf-0083-out.nq" + "input": "toRdf/0083-in.jsonld", + "expect": "toRdf/0083-out.nq" }, { "@id": "#t0084", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Ensure index maps use language mapping", "purpose": "RDF version of expand-0044", - "input": "toRdf-0084-in.jsonld", - "expect": "toRdf-0084-out.nq" + "input": "toRdf/0084-in.jsonld", + "expect": "toRdf/0084-out.nq" }, { "@id": "#t0085", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Top-level value objects are removed", "purpose": "RDF version of expand-0045", - "input": "toRdf-0085-in.jsonld", - "expect": "toRdf-0085-out.nq" + "input": "toRdf/0085-in.jsonld", + "expect": "toRdf/0085-out.nq" }, { "@id": "#t0086", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Free-floating nodes are removed", "purpose": "RDF version of expand-0046", - "input": "toRdf-0086-in.jsonld", - "expect": "toRdf-0086-out.nq" + "input": "toRdf/0086-in.jsonld", + "expect": "toRdf/0086-out.nq" }, { "@id": "#t0087", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Remove free-floating set values and lists", "purpose": "RDF version of expand-0047", - "input": "toRdf-0087-in.jsonld", - "expect": "toRdf-0087-out.nq" + "input": "toRdf/0087-in.jsonld", + "expect": "toRdf/0087-out.nq" }, { "@id": "#t0088", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Terms are ignored in @id", "purpose": "RDF version of expand-0048", - "input": "toRdf-0088-in.jsonld", - "expect": "toRdf-0088-out.nq" + "input": "toRdf/0088-in.jsonld", + "expect": "toRdf/0088-out.nq" }, { "@id": "#t0089", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Using strings as value of a reverse property", "purpose": "RDF version of expand-0049", - "input": "toRdf-0089-in.jsonld", - "expect": "toRdf-0089-out.nq" + "input": "toRdf/0089-in.jsonld", + "expect": "toRdf/0089-out.nq" }, { "@id": "#t0090", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Term definitions with prefix separate from prefix definitions", "purpose": "RDF version of expand-0050", - "input": "toRdf-0090-in.jsonld", - "expect": "toRdf-0090-out.nq" + "input": "toRdf/0090-in.jsonld", + "expect": "toRdf/0090-out.nq" }, { "@id": "#t0091", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expansion of keyword aliases in term definitions", "purpose": "RDF version of expand-0051", - "input": "toRdf-0091-in.jsonld", - "expect": "toRdf-0091-out.nq" + "input": "toRdf/0091-in.jsonld", + "expect": "toRdf/0091-out.nq" }, { "@id": "#t0092", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "@vocab-relative IRIs in term definitions", "purpose": "RDF version of expand-0052", - "input": "toRdf-0092-in.jsonld", - "expect": "toRdf-0092-out.nq" + "input": "toRdf/0092-in.jsonld", + "expect": "toRdf/0092-out.nq" }, { "@id": "#t0093", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand absolute IRI with @type: @vocab", "purpose": "RDF version of expand-0053", - "input": "toRdf-0093-in.jsonld", - "expect": "toRdf-0093-out.nq" + "input": "toRdf/0093-in.jsonld", + "expect": "toRdf/0093-out.nq" }, { "@id": "#t0094", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand term with @type: @vocab", "purpose": "RDF version of expand-0054", - "input": "toRdf-0094-in.jsonld", - "expect": "toRdf-0094-out.nq" + "input": "toRdf/0094-in.jsonld", + "expect": "toRdf/0094-out.nq" }, { "@id": "#t0095", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand @vocab-relative term with @type: @vocab", "purpose": "RDF version of expand-0055", - "input": "toRdf-0095-in.jsonld", - "expect": "toRdf-0095-out.nq" + "input": "toRdf/0095-in.jsonld", + "expect": "toRdf/0095-out.nq" }, { "@id": "#t0096", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Use terms with @type: @vocab but not with @type: @id", "purpose": "RDF version of expand-0056", - "input": "toRdf-0096-in.jsonld", - "expect": "toRdf-0096-out.nq" + "input": "toRdf/0096-in.jsonld", + "expect": "toRdf/0096-out.nq" }, { "@id": "#t0097", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand relative IRI with @type: @vocab", "purpose": "RDF version of expand-0057", - "input": "toRdf-0097-in.jsonld", - "expect": "toRdf-0097-out.nq" + "input": "toRdf/0097-in.jsonld", + "expect": "toRdf/0097-out.nq" }, { "@id": "#t0098", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand compact IRI with @type: @vocab", "purpose": "RDF version of expand-0058", - "input": "toRdf-0098-in.jsonld", - "expect": "toRdf-0098-out.nq" + "input": "toRdf/0098-in.jsonld", + "expect": "toRdf/0098-out.nq" }, { "@id": "#t0099", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Reset @vocab by setting it to null", "purpose": "RDF version of expand-0059", - "input": "toRdf-0099-in.jsonld", - "expect": "toRdf-0099-out.nq" + "input": "toRdf/0099-in.jsonld", + "expect": "toRdf/0099-out.nq" }, { "@id": "#t0100", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Overwrite document base with @base and reset it again", "purpose": "RDF version of expand-0060", - "input": "toRdf-0100-in.jsonld", - "expect": "toRdf-0100-out.nq" + "input": "toRdf/0100-in.jsonld", + "expect": "toRdf/0100-out.nq" }, { "@id": "#t0101", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Coercing native types to arbitrary datatypes", "purpose": "RDF version of expand-0061", - "input": "toRdf-0101-in.jsonld", - "expect": "toRdf-0101-out.nq" + "input": "toRdf/0101-in.jsonld", + "expect": "toRdf/0101-out.nq" }, { "@id": "#t0102", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Various relative IRIs with with @base", "purpose": "RDF version of expand-0062", - "input": "toRdf-0102-in.jsonld", - "expect": "toRdf-0102-out.nq" + "input": "toRdf/0102-in.jsonld", + "expect": "toRdf/0102-out.nq" }, { "@id": "#t0103", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand a reverse property with an index-container", "purpose": "RDF version of expand-0063", - "input": "toRdf-0103-in.jsonld", - "expect": "toRdf-0103-out.nq" + "input": "toRdf/0103-in.jsonld", + "expect": "toRdf/0103-out.nq" }, { "@id": "#t0104", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Expand reverse property whose values are unlabeled blank nodes", "purpose": "RDF version of expand-0064", - "input": "toRdf-0104-in.jsonld", - "expect": "toRdf-0104-out.nq" + "input": "toRdf/0104-in.jsonld", + "expect": "toRdf/0104-out.nq" }, { "@id": "#t0105", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Keys that are not mapped to an IRI in a reverse-map are dropped", "purpose": "RDF version of expand-0065", - "input": "toRdf-0105-in.jsonld", - "expect": "toRdf-0105-out.nq" + "input": "toRdf/0105-in.jsonld", + "expect": "toRdf/0105-out.nq" }, { "@id": "#t0106", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Use @vocab to expand keys in reverse-maps", "purpose": "RDF version of expand-0066", - "input": "toRdf-0106-in.jsonld", - "expect": "toRdf-0106-out.nq" + "input": "toRdf/0106-in.jsonld", + "expect": "toRdf/0106-out.nq" }, { "@id": "#t0107", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "prefix:://sufffix not a compact IRI", "purpose": "RDF version of expand-0067", - "input": "toRdf-0107-in.jsonld", - "expect": "toRdf-0107-out.nq" + "input": "toRdf/0107-in.jsonld", + "expect": "toRdf/0107-out.nq" }, { "@id": "#t0108", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "_::sufffix not a compact IRI", "purpose": "RDF version of expand-0068", - "input": "toRdf-0108-in.jsonld", - "expect": "toRdf-0108-out.nq" + "input": "toRdf/0108-in.jsonld", + "expect": "toRdf/0108-out.nq" }, { "@id": "#t0109", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Compact IRI as term with type mapping", "purpose": "RDF version of expand-0069", - "input": "toRdf-0109-in.jsonld", - "expect": "toRdf-0109-out.nq" + "input": "toRdf/0109-in.jsonld", + "expect": "toRdf/0109-out.nq" }, { "@id": "#t0110", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Redefine compact IRI with itself", "purpose": "RDF version of expand-0070", - "input": "toRdf-0110-in.jsonld", - "expect": "toRdf-0110-out.nq" + "input": "toRdf/0110-in.jsonld", + "expect": "toRdf/0110-out.nq" }, { "@id": "#t0111", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Redefine terms looking like compact IRIs", "purpose": "RDF version of expand-0071", - "input": "toRdf-0111-in.jsonld", - "expect": "toRdf-0111-out.nq" + "input": "toRdf/0111-in.jsonld", + "expect": "toRdf/0111-out.nq", + "option": {"specVersion": "json-ld-1.0"} }, { "@id": "#t0112", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Redefine term using @vocab, not itself", "purpose": "RDF version of expand-0072", - "input": "toRdf-0112-in.jsonld", - "expect": "toRdf-0112-out.nq" + "input": "toRdf/0112-in.jsonld", + "expect": "toRdf/0112-out.nq" }, { "@id": "#t0113", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Dataset with a IRI named graph", "purpose": "Basic use of creating a named graph using an IRI name", - "input": "toRdf-0113-in.jsonld", - "expect": "toRdf-0113-out.nq" + "input": "toRdf/0113-in.jsonld", + "expect": "toRdf/0113-out.nq" }, { "@id": "#t0114", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Dataset with a IRI named graph", "purpose": "Basic use of creating a named graph using a BNode name", - "input": "toRdf-0114-in.jsonld", - "expect": "toRdf-0114-out.nq" + "input": "toRdf/0114-in.jsonld", + "expect": "toRdf/0114-out.nq" }, { "@id": "#t0115", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Dataset with a default and two named graphs", "purpose": "Dataset with a default and two named graphs (IRI and BNode)", - "input": "toRdf-0115-in.jsonld", - "expect": "toRdf-0115-out.nq" + "input": "toRdf/0115-in.jsonld", + "expect": "toRdf/0115-out.nq" }, { "@id": "#t0116", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Dataset from node with embedded named graph", "purpose": "Embedding @graph in a node creates a named graph", - "input": "toRdf-0116-in.jsonld", - "expect": "toRdf-0116-out.nq" + "input": "toRdf/0116-in.jsonld", + "expect": "toRdf/0116-out.nq" }, { "@id": "#t0117", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Dataset from node with embedded named graph (bnode)", "purpose": "Embedding @graph in a node creates a named graph. Graph name is created if there is no subject", - "input": "toRdf-0117-in.jsonld", - "expect": "toRdf-0117-out.nq" + "input": "toRdf/0117-in.jsonld", + "expect": "toRdf/0117-out.nq" }, { "@id": "#t0118", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "produce generalized RDF flag", "purpose": "Triples with blank node predicates are not dropped if the produce generalized RDF flag is true.", "option": { + "processingMode": "json-ld-1.0", "produceGeneralizedRdf": true }, - "input": "toRdf-0118-in.jsonld", - "expect": "toRdf-0118-out.nq" + "input": "toRdf/0118-in.jsonld", + "expect": "toRdf/0118-out.nq" }, { "@id": "#t0119", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "Blank nodes with reverse properties", "purpose": "Proper (re-)labeling of blank nodes if used with reverse properties.", - "input": "toRdf-0119-in.jsonld", - "expect": "toRdf-0119-out.nq" + "input": "toRdf/0119-in.jsonld", + "expect": "toRdf/0119-out.nq" }, { "@id": "#t0120", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (0)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0120-in.jsonld", - "expect": "toRdf-0120-out.nq" + "input": "toRdf/0120-in.jsonld", + "expect": "toRdf/0120-out.nq" }, { "@id": "#t0121", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (1)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0121-in.jsonld", - "expect": "toRdf-0121-out.nq" + "input": "toRdf/0121-in.jsonld", + "expect": "toRdf/0121-out.nq" }, { "@id": "#t0122", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (2)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0122-in.jsonld", - "expect": "toRdf-0122-out.nq" + "input": "toRdf/0122-in.jsonld", + "expect": "toRdf/0122-out.nq" }, { "@id": "#t0123", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (3)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0123-in.jsonld", - "expect": "toRdf-0123-out.nq" + "input": "toRdf/0123-in.jsonld", + "expect": "toRdf/0123-out.nq" }, { "@id": "#t0124", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (4)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0124-in.jsonld", - "expect": "toRdf-0124-out.nq" + "input": "toRdf/0124-in.jsonld", + "expect": "toRdf/0124-out.nq" }, { "@id": "#t0125", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (5)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0125-in.jsonld", - "expect": "toRdf-0125-out.nq" + "input": "toRdf/0125-in.jsonld", + "expect": "toRdf/0125-out.nq" + }, { + "@id": "#t0126", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "IRI Resolution (6)", + "purpose": "IRI resolution according to RFC3986.", + "input": "toRdf/0126-in.jsonld", + "expect": "toRdf/0126-out.nq" }, { "@id": "#t0127", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (7)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0127-in.jsonld", - "expect": "toRdf-0127-out.nq" + "input": "toRdf/0127-in.jsonld", + "expect": "toRdf/0127-out.nq" + }, { + "@id": "#t0128", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "IRI Resolution (8)", + "purpose": "IRI resolution according to RFC3986.", + "input": "toRdf/0128-in.jsonld", + "expect": "toRdf/0128-out.nq" }, { "@id": "#t0129", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (9)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0129-in.jsonld", - "expect": "toRdf-0129-out.nq" + "input": "toRdf/0129-in.jsonld", + "expect": "toRdf/0129-out.nq" }, { "@id": "#t0130", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (10)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0130-in.jsonld", - "expect": "toRdf-0130-out.nq" + "input": "toRdf/0130-in.jsonld", + "expect": "toRdf/0130-out.nq" }, { "@id": "#t0131", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (11)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0131-in.jsonld", - "expect": "toRdf-0131-out.nq" + "input": "toRdf/0131-in.jsonld", + "expect": "toRdf/0131-out.nq" }, { "@id": "#t0132", "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], "name": "IRI Resolution (12)", "purpose": "IRI resolution according to RFC3986.", - "input": "toRdf-0132-in.jsonld", - "expect": "toRdf-0132-out.nq" + "input": "toRdf/0132-in.jsonld", + "expect": "toRdf/0132-out.nq" + }, { + "@id": "#th001", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transforms embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "toRdf/h001-in.html", + "expect": "toRdf/h001-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#th002", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transforms first embedded JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML", + "input": "toRdf/h002-in.html", + "expect": "toRdf/h002-out.nq", + "option": {"specVersion": "json-ld-1.1", "extractAllScripts": false} + }, { + "@id": "#th003", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transforms targeted JSON-LD script element", + "purpose": "Tests embedded JSON-LD in HTML with fragment identifier", + "input": "toRdf/h003-in.html#second", + "expect": "toRdf/h003-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs01", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (boolean true)", + "purpose": "Tests transforming property with @type @json to a JSON literal (boolean true).", + "input": "toRdf/js01-in.jsonld", + "expect": "toRdf/js01-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs02", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (boolean false)", + "purpose": "Tests transforming property with @type @json to a JSON literal (boolean false).", + "input": "toRdf/js02-in.jsonld", + "expect": "toRdf/js02-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs03", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (double)", + "purpose": "Tests transforming property with @type @json to a JSON literal (double).", + "input": "toRdf/js03-in.jsonld", + "expect": "toRdf/js03-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs04", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (double-zero)", + "purpose": "Tests transforming property with @type @json to a JSON literal (double-zero).", + "input": "toRdf/js04-in.jsonld", + "expect": "toRdf/js04-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs05", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (integer)", + "purpose": "Tests transforming property with @type @json to a JSON literal (integer).", + "input": "toRdf/js05-in.jsonld", + "expect": "toRdf/js05-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs06", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (object)", + "purpose": "Tests transforming property with @type @json to a JSON literal (object).", + "input": "toRdf/js06-in.jsonld", + "expect": "toRdf/js06-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs07", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal (array)", + "purpose": "Tests transforming property with @type @json to a JSON literal (array).", + "input": "toRdf/js07-in.jsonld", + "expect": "toRdf/js07-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs08", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal with array canonicalization", + "purpose": "Tests Transforming JSON literal with array canonicalization.", + "input": "toRdf/js08-in.jsonld", + "expect": "toRdf/js08-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs09", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal with string canonicalization", + "purpose": "Tests transforming JSON literal with string canonicalization.", + "input": "toRdf/js09-in.jsonld", + "expect": "toRdf/js09-out.nq", + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.1"} + }, { + "@id": "#tjs10", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal with structural canonicalization", + "purpose": "Tests transforming JSON literal with structural canonicalization.", + "input": "toRdf/js10-in.jsonld", + "expect": "toRdf/js10-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs11", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal with unicode canonicalization", + "purpose": "Tests transforming JSON literal with unicode canonicalization.", + "input": "toRdf/js11-in.jsonld", + "expect": "toRdf/js11-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs12", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal with value canonicalization", + "purpose": "Tests transforming JSON literal with value canonicalization.", + "input": "toRdf/js12-in.jsonld", + "expect": "toRdf/js12-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tjs13", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Transform JSON literal with wierd canonicalization", + "purpose": "Tests transforming JSON literal with wierd canonicalization.", + "input": "toRdf/js13-in.jsonld", + "expect": "toRdf/js13-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli01", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "@list containing @list", + "purpose": "List of lists.", + "input": "toRdf/li01-in.jsonld", + "expect": "toRdf/li01-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tli02", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "@list containing empty @list", + "purpose": "List of lists.", + "input": "toRdf/li02-in.jsonld", + "expect": "toRdf/li02-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf01", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid subject IRIs are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf01-in.jsonld", + "expect": "toRdf/wf01-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf02", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid predicate IRIs are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf02-in.jsonld", + "expect": "toRdf/wf02-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf03", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid object IRIs are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf03-in.jsonld", + "expect": "toRdf/wf03-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf04", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid type IRIs are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf04-in.jsonld", + "expect": "toRdf/wf04-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf05", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid language tags are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf05-in.jsonld", + "expect": "toRdf/wf05-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf06", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid literal datatype IRIs are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf06-in.jsonld", + "expect": "toRdf/wf06-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#twf07", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Triples including invalid graph name IRIs are rejected", + "purpose": "ToRdf emits only well-formed statements.", + "input": "toRdf/wf07-in.jsonld", + "expect": "toRdf/wf07-out.nq", + "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tnt01", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_ascii_boundaries", + "purpose": "literal_ascii_boundaries '\\x00\\x26\\x28...' from N-Triples", + "input": "toRdf/nt01-in.jsonld" + }, { + "@id": "#tnt02", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_UTF8_boundaries", + "purpose": "literal_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...' from N-Triples", + "input": "toRdf/nt02-in.jsonld" + }, { + "@id": "#tnt03", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_all_controls", + "purpose": "literal_all_controls '\\x00\\x01\\x02\\x03\\x04...' from N-Triples", + "input": "toRdf/nt03-in.jsonld" + }, { + "@id": "#tnt04", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_all_punctuation", + "purpose": "literal_all_punctuation '!\"#$%&()...' from N-Triples", + "input": "toRdf/nt04-in.jsonld" + }, { + "@id": "#tnt05", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_squote", + "purpose": "literal with squote \"x'y\" from N-Triples", + "input": "toRdf/nt05-in.jsonld" + }, { + "@id": "#tnt06", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_2_squotes", + "purpose": "literal with 2 squotes \"x''y\" from N-Triples", + "input": "toRdf/nt06-in.jsonld" + }, { + "@id": "#tnt07", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_dquote", + "purpose": "literal with dquote \"x\"y\" from N-Triples", + "input": "toRdf/nt07-in.jsonld" + }, { + "@id": "#tnt08", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_2_dquotes", + "purpose": "literal with 2 dquotes \"\"\"a\"\"b\"\"\" from N-Triples", + "input": "toRdf/nt08-in.jsonld" + }, { + "@id": "#tnt09", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_REVERSE_SOLIDUS2", + "purpose": "REVERSE SOLIDUS at end of literal from N-Triples", + "input": "toRdf/nt09-in.jsonld" + }, { + "@id": "#tnt10", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_CHARACTER_TABULATION", + "purpose": "literal with CHARACTER TABULATION from N-Triples", + "input": "toRdf/nt10-in.jsonld" + }, { + "@id": "#tnt11", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_BACKSPACE", + "purpose": "literal with BACKSPACE from N-Triples", + "input": "toRdf/nt11-in.jsonld" + }, { + "@id": "#tnt12", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_LINE_FEED", + "purpose": "literal with LINE FEED from N-Triples", + "input": "toRdf/nt12-in.jsonld" + }, { + "@id": "#tnt13", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_CARRIAGE_RETURN", + "purpose": "literal with CARRIAGE RETURN from N-Triples", + "input": "toRdf/nt13-in.jsonld" + }, { + "@id": "#tnt14", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_FORM_FEED", + "purpose": "literal with FORM FEED from N-Triples", + "input": "toRdf/nt14-in.jsonld" + }, { + "@id": "#tnt15", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_REVERSE_SOLIDUS", + "purpose": "literal with REVERSE SOLIDUS from N-Triples", + "input": "toRdf/nt15-in.jsonld" + }, { + "@id": "#tnt16", + "@type": ["jld:PositiveSyntaxTest", "jld:ToRDFTest"], + "name": "literal_with_numeric_escape4", + "purpose": "literal with numeric escape4 \\u from N-Triples", + "input": "toRdf/nt16-in.jsonld" + }, { + "@id": "#trt01", + "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"], + "name": "Representing numbers >= 1e21", + "purpose": "numbers with no fractions but that are >= 1e21 are represented as xsd:double", + "option": {"specVersion": "json-ld-1.1"}, + "input": "toRdf/rt01-in.jsonld", + "expect": "toRdf/rt01-out.nq" } ] } diff --git a/core/src/test/resources/json-ld.org/toRdf-0001-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0001-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0001-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0001-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0001-out.nq b/core/src/test/resources/json-ld.org/toRdf/0001-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0001-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0001-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0002-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0002-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0002-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0002-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0002-out.nq b/core/src/test/resources/json-ld.org/toRdf/0002-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0002-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0002-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0003-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0003-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0003-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0003-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0003-out.nq b/core/src/test/resources/json-ld.org/toRdf/0003-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0003-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0003-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0004-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0004-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0004-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0004-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0004-out.nq b/core/src/test/resources/json-ld.org/toRdf/0004-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0004-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0004-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0005-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0005-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0005-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0005-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0005-out.nq b/core/src/test/resources/json-ld.org/toRdf/0005-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0005-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0005-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0006-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0006-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0006-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0006-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0006-out.nq b/core/src/test/resources/json-ld.org/toRdf/0006-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0006-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0006-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0007-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0007-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0007-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0007-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0007-out.nq b/core/src/test/resources/json-ld.org/toRdf/0007-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0007-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0007-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0008-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0008-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0008-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0008-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0008-out.nq b/core/src/test/resources/json-ld.org/toRdf/0008-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0008-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0008-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0009-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0009-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0009-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0009-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0009-out.nq b/core/src/test/resources/json-ld.org/toRdf/0009-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0009-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0009-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0010-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0010-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0010-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0010-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0010-out.nq b/core/src/test/resources/json-ld.org/toRdf/0010-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0010-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0010-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0011-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0011-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0011-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0011-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0011-out.nq b/core/src/test/resources/json-ld.org/toRdf/0011-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0011-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0011-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0012-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0012-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0012-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0012-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0012-out.nq b/core/src/test/resources/json-ld.org/toRdf/0012-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0012-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0012-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0013-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0013-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0013-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0013-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0013-out.nq b/core/src/test/resources/json-ld.org/toRdf/0013-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0013-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0013-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0014-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0014-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0014-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0014-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0014-out.nq b/core/src/test/resources/json-ld.org/toRdf/0014-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0014-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0014-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0015-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0015-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0015-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0015-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0015-out.nq b/core/src/test/resources/json-ld.org/toRdf/0015-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0015-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0015-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0016-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0016-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0016-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0016-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0016-out.nq b/core/src/test/resources/json-ld.org/toRdf/0016-out.nq new file mode 100644 index 00000000..fc3ee12a --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0016-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0017-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0017-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0017-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0017-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0017-out.nq b/core/src/test/resources/json-ld.org/toRdf/0017-out.nq new file mode 100644 index 00000000..3c54df34 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0017-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0018-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0018-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0018-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0018-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0018-out.nq b/core/src/test/resources/json-ld.org/toRdf/0018-out.nq new file mode 100644 index 00000000..2a6e3ded --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0018-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0019-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0019-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0019-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0019-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0019-out.nq b/core/src/test/resources/json-ld.org/toRdf/0019-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0019-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0019-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0020-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0020-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0020-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0020-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0020-out.nq b/core/src/test/resources/json-ld.org/toRdf/0020-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0020-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0020-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0022-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0022-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0022-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0022-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0022-out.nq b/core/src/test/resources/json-ld.org/toRdf/0022-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0022-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0022-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0023-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0023-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0023-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0023-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0023-out.nq b/core/src/test/resources/json-ld.org/toRdf/0023-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0023-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0023-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0024-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0024-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0024-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0024-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0024-out.nq b/core/src/test/resources/json-ld.org/toRdf/0024-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0024-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0024-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0025-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0025-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0025-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0025-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0025-out.nq b/core/src/test/resources/json-ld.org/toRdf/0025-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0025-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0025-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0026-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0026-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0026-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0026-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0026-out.nq b/core/src/test/resources/json-ld.org/toRdf/0026-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0026-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0026-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0027-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0027-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0027-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0027-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0027-out.nq b/core/src/test/resources/json-ld.org/toRdf/0027-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0027-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0027-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0028-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0028-in.jsonld new file mode 100644 index 00000000..3932feb8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0028-in.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "sec": "http://purl.org/security#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "dcterms": "http://purl.org/dc/terms/", + "sec:signer": {"@type": "@id"}, + "dcterms:created": {"@type": "xsd:dateTime"} + }, + "@id": "http://example.org/sig1", + "@type": ["rdf:Graph", "sec:SignedGraph"], + "dcterms:created": "2011-09-23T20:21:34Z", + "sec:signer": "http://payswarm.example.com/i/john/keys/5", + "sec:signatureValue": "OGQzNGVkMzVm4NTIyZTkZDYMmMzQzNmExMgoYzI43Q3ODIyOWM32NjI=", + "@graph": { + "@id": "http://example.org/fact1", + "dcterms:title": "Hello World!" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0028-out.nq b/core/src/test/resources/json-ld.org/toRdf/0028-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0028-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0028-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0029-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0029-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0029-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0029-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0029-out.nq b/core/src/test/resources/json-ld.org/toRdf/0029-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0029-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0029-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0030-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0030-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0030-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0030-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0030-out.nq b/core/src/test/resources/json-ld.org/toRdf/0030-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0030-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0030-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0031-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0031-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0031-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0031-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0031-out.nq b/core/src/test/resources/json-ld.org/toRdf/0031-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0031-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0031-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0032-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0032-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0032-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0032-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0032-out.nq b/core/src/test/resources/json-ld.org/toRdf/0032-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0032-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0032-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0033-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0033-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0033-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0033-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0033-out.nq b/core/src/test/resources/json-ld.org/toRdf/0033-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0033-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0033-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0034-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0034-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0034-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0034-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0034-out.nq b/core/src/test/resources/json-ld.org/toRdf/0034-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0034-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0034-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0035-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0035-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0035-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0035-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0035-out.nq b/core/src/test/resources/json-ld.org/toRdf/0035-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0035-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0035-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0036-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0036-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0036-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0036-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0036-out.nq b/core/src/test/resources/json-ld.org/toRdf/0036-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0036-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0036-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0041-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0041-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0041-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0041-in.jsonld diff --git a/core/src/test/resources/json-ld.org/normalize-0015-out.nq b/core/src/test/resources/json-ld.org/toRdf/0041-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0015-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0041-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0042-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0042-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0042-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0042-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0042-out.nq b/core/src/test/resources/json-ld.org/toRdf/0042-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0042-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0042-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0043-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0043-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0043-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0043-in.jsonld diff --git a/core/src/test/resources/json-ld.org/normalize-0049-out.nq b/core/src/test/resources/json-ld.org/toRdf/0043-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0049-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0043-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0044-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0044-in.jsonld new file mode 100644 index 00000000..8499bfa0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0044-in.jsonld @@ -0,0 +1,21 @@ +{ + "@context": { + "mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"}, + "mylist2": {"@id": "http://example.com/mylist2", "@container": "@list"}, + "myset2": {"@id": "http://example.com/myset2", "@container": "@set"}, + "myset3": {"@id": "http://example.com/myset3", "@container": "@set"} + }, + "@id": "http://example.org/id", + "mylist1": { "@list": [ ] }, + "mylist2": "one item", + "myset2": { "@set": [ ] }, + "myset3": [ "v1" ], + "http://example.org/list1": { "@list": [ null ] }, + "http://example.org/list2": { "@list": [ {"@value": null} ] }, + "http://example.org/set1": { "@set": [ ] }, + "http://example.org/set2": { "@set": [ null ] }, + "http://example.org/set3": [ ], + "http://example.org/set4": [ null ], + "http://example.org/set5": "one item", + "http://example.org/property": { "@list": "one item" } +} diff --git a/core/src/test/resources/json-ld.org/toRdf-0044-out.nq b/core/src/test/resources/json-ld.org/toRdf/0044-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0044-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0044-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0045-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0045-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0045-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0045-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0045-out.nq b/core/src/test/resources/json-ld.org/toRdf/0045-out.nq new file mode 100644 index 00000000..7a1302af --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0045-out.nq @@ -0,0 +1,6 @@ + . + "Alice" . + . + "Bob" . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0046-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0046-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0046-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0046-in.jsonld diff --git a/core/src/test/resources/json-ld.org/normalize-0052-out.nq b/core/src/test/resources/json-ld.org/toRdf/0046-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0052-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0046-out.nq diff --git a/core/src/test/resources/json-ld.org/normalize-0013-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0047-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0013-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0047-in.jsonld diff --git a/core/src/test/resources/json-ld.org/normalize-0013-out.nq b/core/src/test/resources/json-ld.org/toRdf/0047-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0013-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0047-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0048-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0048-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0048-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0048-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0048-out.nq b/core/src/test/resources/json-ld.org/toRdf/0048-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0048-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0048-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0049-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0049-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0049-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0049-in.jsonld diff --git a/core/src/test/resources/json-ld.org/normalize-0009-out.nq b/core/src/test/resources/json-ld.org/toRdf/0049-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/normalize-0009-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0049-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0050-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0050-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0050-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0050-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0050-out.nq b/core/src/test/resources/json-ld.org/toRdf/0050-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0050-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0050-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0051-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0051-in.jsonld new file mode 100644 index 00000000..fa90d97d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0051-in.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:contains": { + "@type": "@id" + }, + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "@id": "http://example.org/test#book", + "dc11:title": "Title", + "ex:contains": "http://example.org/test#chapter" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0051-out.nq b/core/src/test/resources/json-ld.org/toRdf/0051-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0051-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0051-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0052-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0052-in.jsonld new file mode 100644 index 00000000..ebda5732 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0052-in.jsonld @@ -0,0 +1,39 @@ +{ + "@context": { + "dc11": "http://purl.org/dc/elements/1.1/", + "ex": "http://example.org/vocab#", + "ex:authored": { + "@type": "@id" + }, + "ex:contains": { + "@type": "@id" + }, + "foaf": "http://xmlns.com/foaf/0.1/", + "xsd": "http://www.w3.org/2001/XMLSchema#" + }, + "@graph": [ + { + "@id": "http://example.org/test#chapter", + "dc11:description": "Fun", + "dc11:title": "Chapter One" + }, + { + "@id": "http://example.org/test#jane", + "ex:authored": "http://example.org/test#chapter", + "foaf:name": "Jane" + }, + { + "@id": "http://example.org/test#john", + "foaf:name": "John" + }, + { + "@id": "http://example.org/test#library", + "ex:contains": { + "@id": "http://example.org/test#book", + "dc11:contributor": "Writer", + "dc11:title": "My Book", + "ex:contains": "http://example.org/test#chapter" + } + } + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0049-out.nq b/core/src/test/resources/json-ld.org/toRdf/0052-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0049-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0052-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0053-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0053-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0053-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0053-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0053-out.nq b/core/src/test/resources/json-ld.org/toRdf/0053-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0053-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0053-out.nq diff --git a/core/src/test/resources/json-ld.org/flatten-0014-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0054-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/flatten-0014-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0054-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0054-out.nq b/core/src/test/resources/json-ld.org/toRdf/0054-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0054-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0054-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0055-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0055-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0055-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0055-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0055-out.nq b/core/src/test/resources/json-ld.org/toRdf/0055-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0055-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0055-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0056-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0056-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0056-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0056-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0056-out.nq b/core/src/test/resources/json-ld.org/toRdf/0056-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0056-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0056-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0057-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0057-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0057-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0057-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0052-out.nq b/core/src/test/resources/json-ld.org/toRdf/0057-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0052-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0057-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0058-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0058-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0058-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0058-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0058-out.nq b/core/src/test/resources/json-ld.org/toRdf/0058-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0058-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0058-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0059-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0059-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0059-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0059-in.jsonld diff --git a/core/src/test/resources/json-ld.org/remote-doc-0004-in.jldte b/core/src/test/resources/json-ld.org/toRdf/0059-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/remote-doc-0004-in.jldte rename to core/src/test/resources/json-ld.org/toRdf/0059-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0060-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0060-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0060-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0060-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0060-out.nq b/core/src/test/resources/json-ld.org/toRdf/0060-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0060-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0060-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0061-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0061-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0061-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0061-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0061-out.nq b/core/src/test/resources/json-ld.org/toRdf/0061-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0061-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0061-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0062-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0062-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0062-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0062-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0062-out.nq b/core/src/test/resources/json-ld.org/toRdf/0062-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0062-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0062-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0063-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0063-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0063-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0063-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0063-out.nq b/core/src/test/resources/json-ld.org/toRdf/0063-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0063-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0063-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0064-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0064-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0064-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0064-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0064-out.nq b/core/src/test/resources/json-ld.org/toRdf/0064-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0064-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0064-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0065-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0065-in.jsonld new file mode 100644 index 00000000..2cd0d48e --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0065-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "foo": "http://example.com/foo/", + "foo:bar": "http://example.com/foo/bar", + "bar": {"@id": "foo:bar", "@type": "@id"}, + "_": "http://example.com/underscore/" + }, + "@type": [ "foo", "foo:bar", "_" ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0065-out.nq b/core/src/test/resources/json-ld.org/toRdf/0065-out.nq new file mode 100644 index 00000000..4256e246 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0065-out.nq @@ -0,0 +1,3 @@ +_:b0 . +_:b0 . +_:b0 . diff --git a/core/src/test/resources/json-ld.org/toRdf/0066-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0066-in.jsonld new file mode 100644 index 00000000..36d8cac7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0066-in.jsonld @@ -0,0 +1,20 @@ +{ + "@context": { + "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": {"@id": "@type", "@type": "@id"} + }, + "@graph": [ + { + "@id": "http://example.com/a", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://example.com/b" + }, { + "@id": "http://example.com/c", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ + "http://example.com/d", + "http://example.com/e" + ] + }, { + "@id": "http://example.com/f", + "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://example.com/g" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf-0066-out.nq b/core/src/test/resources/json-ld.org/toRdf/0066-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0066-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0066-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0067-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0067-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0067-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0067-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0067-out.nq b/core/src/test/resources/json-ld.org/toRdf/0067-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0067-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0067-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0068-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0068-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0068-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0068-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0068-out.nq b/core/src/test/resources/json-ld.org/toRdf/0068-out.nq new file mode 100644 index 00000000..edd1dd2a --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0068-out.nq @@ -0,0 +1,4 @@ + "2011-01-25T00:00:00Z"^^ . + . + . + "2012-08-01T00:00:00Z"^^ . diff --git a/core/src/test/resources/json-ld.org/toRdf/0069-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0069-in.jsonld new file mode 100644 index 00000000..dd425bda --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0069-in.jsonld @@ -0,0 +1,32 @@ +{ + "@context": { + "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } + }, + "@id": "relativeIris", + "@type": [ + "link", + "#fragment-works", + "?query=works", + "./", + "../", + "../parent", + "../../../parent-parent-eq-root", + "../../../../../still-root", + "../.././.././../../too-many-dots", + "/absolute", + "//example.org/scheme-relative" + ], + "links": [ + "link", + "#fragment-works", + "?query=works", + "./", + "../", + "../parent", + "../../../parent-parent-eq-root", + "./../../../useless/../../../still-root", + "../.././.././../../too-many-dots", + "/absolute", + "//example.org/scheme-relative" + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0069-out.nq b/core/src/test/resources/json-ld.org/toRdf/0069-out.nq new file mode 100644 index 00000000..1d9efde7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0069-out.nq @@ -0,0 +1,34 @@ + _:b0 . + . + . + . + . + . + . + . + . + . + . + . +_:b0 . +_:b0 _:b1 . +_:b1 . +_:b1 _:b2 . +_:b2 . +_:b2 _:b3 . +_:b3 . +_:b3 _:b4 . +_:b4 . +_:b4 _:b5 . +_:b5 . +_:b5 _:b6 . +_:b6 . +_:b6 _:b7 . +_:b7 . +_:b7 _:b8 . +_:b8 . +_:b8 _:b9 . +_:b9 . +_:b9 _:b10 . +_:b10 . +_:b10 . diff --git a/core/src/test/resources/json-ld.org/toRdf-0070-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0070-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0070-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0070-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0070-out.nq b/core/src/test/resources/json-ld.org/toRdf/0070-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0070-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0070-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0071-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0071-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0071-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0071-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0071-out.nq b/core/src/test/resources/json-ld.org/toRdf/0071-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0071-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0071-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0072-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0072-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0072-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0072-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0072-out.nq b/core/src/test/resources/json-ld.org/toRdf/0072-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0072-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0072-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0073-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0073-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0073-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0073-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0073-out.nq b/core/src/test/resources/json-ld.org/toRdf/0073-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0073-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0073-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0074-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0074-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0074-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0074-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0074-out.nq b/core/src/test/resources/json-ld.org/toRdf/0074-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0074-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0074-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0075-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0075-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0075-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0075-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0075-out.nq b/core/src/test/resources/json-ld.org/toRdf/0075-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0075-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0075-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0076-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0076-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0076-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0076-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0076-out.nq b/core/src/test/resources/json-ld.org/toRdf/0076-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0076-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0076-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0077-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0077-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0077-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0077-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0077-out.nq b/core/src/test/resources/json-ld.org/toRdf/0077-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0077-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0077-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0078-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0078-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0078-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0078-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0078-out.nq b/core/src/test/resources/json-ld.org/toRdf/0078-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0078-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0078-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0079-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0079-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0079-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0079-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0079-out.nq b/core/src/test/resources/json-ld.org/toRdf/0079-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0079-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0079-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0080-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0080-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0080-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0080-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0080-out.nq b/core/src/test/resources/json-ld.org/toRdf/0080-out.nq new file mode 100644 index 00000000..31beb5f6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0080-out.nq @@ -0,0 +1,4 @@ + "No" . + "indexes" . + . + "The Queen" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0081-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0081-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0081-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0081-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0081-out.nq b/core/src/test/resources/json-ld.org/toRdf/0081-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0081-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0081-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0082-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0082-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0082-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0082-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0082-out.nq b/core/src/test/resources/json-ld.org/toRdf/0082-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0082-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0082-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0083-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0083-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0083-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0083-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0083-out.nq b/core/src/test/resources/json-ld.org/toRdf/0083-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0083-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0083-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0084-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0084-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0084-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0084-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0084-out.nq b/core/src/test/resources/json-ld.org/toRdf/0084-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0084-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0084-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0085-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0085-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0085-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0085-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0041-out.nq b/core/src/test/resources/json-ld.org/toRdf/0085-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0041-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0085-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0086-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0086-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0086-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0086-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0043-out.nq b/core/src/test/resources/json-ld.org/toRdf/0086-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0043-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0086-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0087-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0087-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0087-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0087-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0087-out.nq b/core/src/test/resources/json-ld.org/toRdf/0087-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0087-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0087-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0088-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0088-in.jsonld new file mode 100644 index 00000000..5854b8a0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0088-in.jsonld @@ -0,0 +1,19 @@ +{ + "@context": { + "term": "http://example.com/terms-are-not-considered-in-id", + "compact-iris": "http://example.com/compact-iris#", + "property": "http://example.com/property", + "@vocab": "http://example.org/vocab-is-not-considered-for-id" + }, + "@id": "term", + "property": [ + { + "@id": "compact-iris:are-considered", + "property": "@id supports the following values: relative, absolute, and compact IRIs" + }, + { + "@id": "../parent-node", + "property": "relative IRIs get resolved against the document's base IRI" + } + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0088-out.nq b/core/src/test/resources/json-ld.org/toRdf/0088-out.nq new file mode 100644 index 00000000..94324d9d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0088-out.nq @@ -0,0 +1,4 @@ + "@id supports the following values: relative, absolute, and compact IRIs" . + "relative IRIs get resolved against the document's base IRI" . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0089-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0089-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0089-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0089-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0089-out.nq b/core/src/test/resources/json-ld.org/toRdf/0089-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0089-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0089-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0090-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0090-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0090-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0090-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0090-out.nq b/core/src/test/resources/json-ld.org/toRdf/0090-out.nq new file mode 100644 index 00000000..21792147 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0090-out.nq @@ -0,0 +1,2 @@ +_:b0 . +_:b0 "Markus" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0091-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0091-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0091-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0091-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0091-out.nq b/core/src/test/resources/json-ld.org/toRdf/0091-out.nq new file mode 100644 index 00000000..2fe83826 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0091-out.nq @@ -0,0 +1 @@ + "ok" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0092-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0092-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0092-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0092-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0092-out.nq b/core/src/test/resources/json-ld.org/toRdf/0092-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0092-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0092-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0093-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0093-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0093-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0093-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0093-out.nq b/core/src/test/resources/json-ld.org/toRdf/0093-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0093-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0093-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0094-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0094-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0094-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0094-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0094-out.nq b/core/src/test/resources/json-ld.org/toRdf/0094-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0094-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0094-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0095-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0095-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0095-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0095-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0095-out.nq b/core/src/test/resources/json-ld.org/toRdf/0095-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0095-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0095-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0096-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0096-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0096-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0096-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0096-out.nq b/core/src/test/resources/json-ld.org/toRdf/0096-out.nq new file mode 100644 index 00000000..638e55e4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0096-out.nq @@ -0,0 +1,3 @@ + . + . + "Markus Lanthaler" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0097-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0097-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0097-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0097-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0097-out.nq b/core/src/test/resources/json-ld.org/toRdf/0097-out.nq new file mode 100644 index 00000000..8fc39181 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0097-out.nq @@ -0,0 +1 @@ +_:b0 . diff --git a/core/src/test/resources/json-ld.org/toRdf-0098-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0098-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0098-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0098-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0098-out.nq b/core/src/test/resources/json-ld.org/toRdf/0098-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0098-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0098-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0099-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0099-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0099-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0099-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0099-out.nq b/core/src/test/resources/json-ld.org/toRdf/0099-out.nq new file mode 100644 index 00000000..3f1f6d57 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0099-out.nq @@ -0,0 +1,4 @@ + . + . + "property expanded using @vocab" . + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0100-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0100-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0100-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0100-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0100-out.nq b/core/src/test/resources/json-ld.org/toRdf/0100-out.nq new file mode 100644 index 00000000..1837f9a5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0100-out.nq @@ -0,0 +1,4 @@ + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0101-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0101-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0101-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0101-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0101-out.nq b/core/src/test/resources/json-ld.org/toRdf/0101-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0101-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0101-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0102-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0102-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0102-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0102-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0102-out.nq b/core/src/test/resources/json-ld.org/toRdf/0102-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0102-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0102-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0103-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0103-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0103-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0103-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0103-out.nq b/core/src/test/resources/json-ld.org/toRdf/0103-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0103-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0103-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0104-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0104-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0104-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0104-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0104-out.nq b/core/src/test/resources/json-ld.org/toRdf/0104-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0104-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0104-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0105-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0105-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0105-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0105-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0105-out.nq b/core/src/test/resources/json-ld.org/toRdf/0105-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0105-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0105-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0106-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0106-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0106-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0106-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0106-out.nq b/core/src/test/resources/json-ld.org/toRdf/0106-out.nq new file mode 100644 index 00000000..91b33114 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0106-out.nq @@ -0,0 +1,5 @@ + "Markus Lanthaler" . + "Dave Longley" . + . + "Compact keys using @vocab" . + . diff --git a/core/src/test/resources/json-ld.org/toRdf-0107-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0107-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0107-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0107-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0107-out.nq b/core/src/test/resources/json-ld.org/toRdf/0107-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0107-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0107-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0108-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0108-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0108-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0108-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0108-out.nq b/core/src/test/resources/json-ld.org/toRdf/0108-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0108-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0108-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0109-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0109-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0109-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0109-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0109-out.nq b/core/src/test/resources/json-ld.org/toRdf/0109-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0109-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0109-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0110-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0110-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0110-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0110-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0110-out.nq b/core/src/test/resources/json-ld.org/toRdf/0110-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0110-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0110-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0111-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0111-in.jsonld new file mode 100644 index 00000000..598c43fe --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0111-in.jsonld @@ -0,0 +1,15 @@ +{ + "@context": [ + { + "v": "http://example.com/vocab#", + "v:term": "v:somethingElse", + "v:termId": { "@id": "v:somethingElseId" } + }, + { + "v:term": "v:term", + "v:termId": { "@id": "v:termId" } + } + ], + "v:term": "value of v:term", + "v:termId": "value of v:termId" +} diff --git a/core/src/test/resources/json-ld.org/toRdf-0111-out.nq b/core/src/test/resources/json-ld.org/toRdf/0111-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0111-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0111-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0112-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0112-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0112-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0112-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0112-out.nq b/core/src/test/resources/json-ld.org/toRdf/0112-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0112-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0112-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0113-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0113-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0113-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0113-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0113-out.nq b/core/src/test/resources/json-ld.org/toRdf/0113-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0113-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0113-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0114-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0114-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0114-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0114-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0114-out.nq b/core/src/test/resources/json-ld.org/toRdf/0114-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0114-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0114-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0115-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0115-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0115-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0115-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0115-out.nq b/core/src/test/resources/json-ld.org/toRdf/0115-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0115-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0115-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0116-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0116-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0116-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0116-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0116-out.nq b/core/src/test/resources/json-ld.org/toRdf/0116-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0116-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0116-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0117-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0117-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0117-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0117-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0117-out.nq b/core/src/test/resources/json-ld.org/toRdf/0117-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0117-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0117-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf-0118-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0118-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0118-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0118-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf/0118-out.nq b/core/src/test/resources/json-ld.org/toRdf/0118-out.nq new file mode 100644 index 00000000..fb03a3dd --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0118-out.nq @@ -0,0 +1,9 @@ +_:b0 _:b0 . +_:b0 _:b0 "plain value" . +_:b0 _:b0 . +_:b0 _:b0 _:b0 . +_:b0 _:b0 _:b1 . +_:b0 _:b0 _:b2 . +_:b0 _:b0 _:b3 . +_:b1 _:b0 "term" . +_:b2 _:b0 "termId" . diff --git a/core/src/test/resources/json-ld.org/toRdf-0119-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0119-in.jsonld similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0119-in.jsonld rename to core/src/test/resources/json-ld.org/toRdf/0119-in.jsonld diff --git a/core/src/test/resources/json-ld.org/toRdf-0119-out.nq b/core/src/test/resources/json-ld.org/toRdf/0119-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0119-out.nq rename to core/src/test/resources/json-ld.org/toRdf/0119-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/0120-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0120-in.jsonld new file mode 100644 index 00000000..ad2884b9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0120-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "http://a/bb/ccc/d;p?q", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s001", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s002", "urn:ex:p": "g"}, + {"@id": "urn:ex:s003", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s004", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s005", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s006", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s007", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s008", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s009", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s010", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s011", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s012", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s013", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s014", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s015", "urn:ex:p": ""}, + {"@id": "urn:ex:s016", "urn:ex:p": "."}, + {"@id": "urn:ex:s017", "urn:ex:p": "./"}, + {"@id": "urn:ex:s018", "urn:ex:p": ".."}, + {"@id": "urn:ex:s019", "urn:ex:p": "../"}, + {"@id": "urn:ex:s020", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s021", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s022", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s023", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s024", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s025", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s026", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s027", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s028", "urn:ex:p": "g."}, + {"@id": "urn:ex:s029", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s030", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s031", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s032", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s033", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s034", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s035", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s036", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s037", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s038", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s039", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s040", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s041", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s042", "urn:ex:p": "http:g"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/0120-out.nq b/core/src/test/resources/json-ld.org/toRdf/0120-out.nq new file mode 100644 index 00000000..8503e524 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0120-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0121-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0121-in.jsonld new file mode 100644 index 00000000..86a197dc --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0121-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "http://a/bb/ccc/d/", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s043", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s044", "urn:ex:p": "g"}, + {"@id": "urn:ex:s045", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s046", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s047", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s048", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s049", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s050", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s051", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s052", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s053", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s054", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s055", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s056", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s057", "urn:ex:p": ""}, + {"@id": "urn:ex:s058", "urn:ex:p": "."}, + {"@id": "urn:ex:s059", "urn:ex:p": "./"}, + {"@id": "urn:ex:s060", "urn:ex:p": ".."}, + {"@id": "urn:ex:s061", "urn:ex:p": "../"}, + {"@id": "urn:ex:s062", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s063", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s064", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s065", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s066", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s067", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s068", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s069", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s070", "urn:ex:p": "g."}, + {"@id": "urn:ex:s071", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s072", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s073", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s074", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s075", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s076", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s077", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s078", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s079", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s080", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s081", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s082", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s083", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s084", "urn:ex:p": "http:g"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/0121-out.nq b/core/src/test/resources/json-ld.org/toRdf/0121-out.nq new file mode 100644 index 00000000..b0a0231a --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0121-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0122-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0122-in.jsonld new file mode 100644 index 00000000..f6c240c0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0122-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "http://a/bb/ccc/./d;p?q", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s085", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s086", "urn:ex:p": "g"}, + {"@id": "urn:ex:s087", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s088", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s089", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s090", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s091", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s092", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s093", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s094", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s095", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s096", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s097", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s098", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s099", "urn:ex:p": ""}, + {"@id": "urn:ex:s100", "urn:ex:p": "."}, + {"@id": "urn:ex:s101", "urn:ex:p": "./"}, + {"@id": "urn:ex:s102", "urn:ex:p": ".."}, + {"@id": "urn:ex:s103", "urn:ex:p": "../"}, + {"@id": "urn:ex:s104", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s105", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s106", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s107", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s108", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s109", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s110", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s111", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s112", "urn:ex:p": "g."}, + {"@id": "urn:ex:s113", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s114", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s115", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s116", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s117", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s118", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s119", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s120", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s121", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s122", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s123", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s124", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s125", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s126", "urn:ex:p": "http:g"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/0122-out.nq b/core/src/test/resources/json-ld.org/toRdf/0122-out.nq new file mode 100644 index 00000000..fd518304 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0122-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0123-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0123-in.jsonld new file mode 100644 index 00000000..006fa689 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0123-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "http://a/bb/ccc/../d;p?q", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s127", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s128", "urn:ex:p": "g"}, + {"@id": "urn:ex:s129", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s130", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s131", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s132", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s133", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s134", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s135", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s136", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s137", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s138", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s139", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s140", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s141", "urn:ex:p": ""}, + {"@id": "urn:ex:s142", "urn:ex:p": "."}, + {"@id": "urn:ex:s143", "urn:ex:p": "./"}, + {"@id": "urn:ex:s144", "urn:ex:p": ".."}, + {"@id": "urn:ex:s145", "urn:ex:p": "../"}, + {"@id": "urn:ex:s146", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s147", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s148", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s149", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s150", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s151", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s152", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s153", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s154", "urn:ex:p": "g."}, + {"@id": "urn:ex:s155", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s156", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s157", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s158", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s159", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s160", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s161", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s162", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s163", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s164", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s165", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s166", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s167", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s168", "urn:ex:p": "http:g"} + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/0123-out.nq b/core/src/test/resources/json-ld.org/toRdf/0123-out.nq new file mode 100644 index 00000000..59af1ece --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0123-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0124-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0124-in.jsonld new file mode 100644 index 00000000..d75b3d8c --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0124-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "http://a/bb/ccc/.", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s169", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s170", "urn:ex:p": "g"}, + {"@id": "urn:ex:s171", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s172", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s173", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s174", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s175", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s176", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s177", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s178", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s179", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s180", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s181", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s182", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s183", "urn:ex:p": ""}, + {"@id": "urn:ex:s184", "urn:ex:p": "."}, + {"@id": "urn:ex:s185", "urn:ex:p": "./"}, + {"@id": "urn:ex:s186", "urn:ex:p": ".."}, + {"@id": "urn:ex:s187", "urn:ex:p": "../"}, + {"@id": "urn:ex:s188", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s189", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s190", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s191", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s192", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s193", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s194", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s195", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s196", "urn:ex:p": "g."}, + {"@id": "urn:ex:s197", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s198", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s199", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s200", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s201", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s202", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s203", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s204", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s205", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s206", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s207", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s208", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s209", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s210", "urn:ex:p": "http:g"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0124-out.nq b/core/src/test/resources/json-ld.org/toRdf/0124-out.nq new file mode 100644 index 00000000..7a57e0e6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0124-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0125-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0125-in.jsonld new file mode 100644 index 00000000..2e1adc8b --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0125-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "http://a/bb/ccc/..", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s211", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s212", "urn:ex:p": "g"}, + {"@id": "urn:ex:s213", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s214", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s215", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s216", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s217", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s218", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s219", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s220", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s221", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s222", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s223", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s224", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s225", "urn:ex:p": ""}, + {"@id": "urn:ex:s226", "urn:ex:p": "."}, + {"@id": "urn:ex:s227", "urn:ex:p": "./"}, + {"@id": "urn:ex:s228", "urn:ex:p": ".."}, + {"@id": "urn:ex:s229", "urn:ex:p": "../"}, + {"@id": "urn:ex:s230", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s231", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s232", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s233", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s234", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s235", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s236", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s237", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s238", "urn:ex:p": "g."}, + {"@id": "urn:ex:s239", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s240", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s241", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s242", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s243", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s244", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s245", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s246", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s247", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s248", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s249", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s250", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s251", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s252", "urn:ex:p": "http:g"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0125-out.nq b/core/src/test/resources/json-ld.org/toRdf/0125-out.nq new file mode 100644 index 00000000..89a3f659 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0125-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0126-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0126-in.jsonld new file mode 100644 index 00000000..81a64571 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0126-in.jsonld @@ -0,0 +1,47 @@ +{ + "@context": {"@base": "file:///a/bb/ccc/d;p?q", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s253", "urn:ex:p": "g:h"}, + {"@id": "urn:ex:s254", "urn:ex:p": "g"}, + {"@id": "urn:ex:s255", "urn:ex:p": "./g"}, + {"@id": "urn:ex:s256", "urn:ex:p": "g/"}, + {"@id": "urn:ex:s257", "urn:ex:p": "/g"}, + {"@id": "urn:ex:s258", "urn:ex:p": "//g"}, + {"@id": "urn:ex:s259", "urn:ex:p": "?y"}, + {"@id": "urn:ex:s260", "urn:ex:p": "g?y"}, + {"@id": "urn:ex:s261", "urn:ex:p": "#s"}, + {"@id": "urn:ex:s262", "urn:ex:p": "g#s"}, + {"@id": "urn:ex:s263", "urn:ex:p": "g?y#s"}, + {"@id": "urn:ex:s264", "urn:ex:p": ";x"}, + {"@id": "urn:ex:s265", "urn:ex:p": "g;x"}, + {"@id": "urn:ex:s266", "urn:ex:p": "g;x?y#s"}, + {"@id": "urn:ex:s267", "urn:ex:p": ""}, + {"@id": "urn:ex:s268", "urn:ex:p": "."}, + {"@id": "urn:ex:s269", "urn:ex:p": "./"}, + {"@id": "urn:ex:s270", "urn:ex:p": ".."}, + {"@id": "urn:ex:s271", "urn:ex:p": "../"}, + {"@id": "urn:ex:s272", "urn:ex:p": "../g"}, + {"@id": "urn:ex:s273", "urn:ex:p": "../.."}, + {"@id": "urn:ex:s274", "urn:ex:p": "../../"}, + {"@id": "urn:ex:s275", "urn:ex:p": "../../g"}, + {"@id": "urn:ex:s276", "urn:ex:p": "../../../g"}, + {"@id": "urn:ex:s277", "urn:ex:p": "../../../../g"}, + {"@id": "urn:ex:s278", "urn:ex:p": "/./g"}, + {"@id": "urn:ex:s279", "urn:ex:p": "/../g"}, + {"@id": "urn:ex:s280", "urn:ex:p": "g."}, + {"@id": "urn:ex:s281", "urn:ex:p": ".g"}, + {"@id": "urn:ex:s282", "urn:ex:p": "g.."}, + {"@id": "urn:ex:s283", "urn:ex:p": "..g"}, + {"@id": "urn:ex:s284", "urn:ex:p": "./../g"}, + {"@id": "urn:ex:s285", "urn:ex:p": "./g/."}, + {"@id": "urn:ex:s286", "urn:ex:p": "g/./h"}, + {"@id": "urn:ex:s287", "urn:ex:p": "g/../h"}, + {"@id": "urn:ex:s288", "urn:ex:p": "g;x=1/./y"}, + {"@id": "urn:ex:s289", "urn:ex:p": "g;x=1/../y"}, + {"@id": "urn:ex:s290", "urn:ex:p": "g?y/./x"}, + {"@id": "urn:ex:s291", "urn:ex:p": "g?y/../x"}, + {"@id": "urn:ex:s292", "urn:ex:p": "g#s/./x"}, + {"@id": "urn:ex:s293", "urn:ex:p": "g#s/../x"}, + {"@id": "urn:ex:s294", "urn:ex:p": "http:g"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0126-out.nq b/core/src/test/resources/json-ld.org/toRdf/0126-out.nq new file mode 100644 index 00000000..e1fc4f36 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0126-out.nq @@ -0,0 +1,42 @@ + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0127-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0127-in.jsonld new file mode 100644 index 00000000..eec91f99 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0127-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": {"@base": "http://abc/def/ghi", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s295", "urn:ex:p": "."}, + {"@id": "urn:ex:s296", "urn:ex:p": ".?a=b"}, + {"@id": "urn:ex:s297", "urn:ex:p": ".#a=b"}, + {"@id": "urn:ex:s298", "urn:ex:p": ".."}, + {"@id": "urn:ex:s299", "urn:ex:p": "..?a=b"}, + {"@id": "urn:ex:s300", "urn:ex:p": "..#a=b"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0127-out.nq b/core/src/test/resources/json-ld.org/toRdf/0127-out.nq new file mode 100644 index 00000000..65e26022 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0127-out.nq @@ -0,0 +1,6 @@ + . + . + . + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0128-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0128-in.jsonld new file mode 100644 index 00000000..3863011f --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0128-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": {"@base": "http://ab//de//ghi", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s301", "urn:ex:p": "xyz"}, + {"@id": "urn:ex:s302", "urn:ex:p": "./xyz"}, + {"@id": "urn:ex:s303", "urn:ex:p": "../xyz"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0128-out.nq b/core/src/test/resources/json-ld.org/toRdf/0128-out.nq new file mode 100644 index 00000000..8fc2148f --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0128-out.nq @@ -0,0 +1,3 @@ + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0129-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0129-in.jsonld new file mode 100644 index 00000000..a199895e --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0129-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": {"@base": "http://abc/d:f/ghi", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s304", "urn:ex:p": "xyz"}, + {"@id": "urn:ex:s305", "urn:ex:p": "./xyz"}, + {"@id": "urn:ex:s306", "urn:ex:p": "../xyz"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0129-out.nq b/core/src/test/resources/json-ld.org/toRdf/0129-out.nq new file mode 100644 index 00000000..31bce616 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0129-out.nq @@ -0,0 +1,3 @@ + . + . + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0130-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0130-in.jsonld new file mode 100644 index 00000000..bb11d1fe --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0130-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": {"@base": "tag:example", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s307", "urn:ex:p": "a"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0130-out.nq b/core/src/test/resources/json-ld.org/toRdf/0130-out.nq new file mode 100644 index 00000000..48c95173 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0130-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0131-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0131-in.jsonld new file mode 100644 index 00000000..86954242 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0131-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": {"@base": "tag:example/foo", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s308", "urn:ex:p": "a"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0131-out.nq b/core/src/test/resources/json-ld.org/toRdf/0131-out.nq new file mode 100644 index 00000000..4c420b35 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0131-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf/0132-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/0132-in.jsonld new file mode 100644 index 00000000..d26b45b6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0132-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": {"@base": "tag:example/foo/", "urn:ex:p": {"@type": "@id"}}, + "@graph": [ + {"@id": "urn:ex:s309", "urn:ex:p": "a"} + ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/0132-out.nq b/core/src/test/resources/json-ld.org/toRdf/0132-out.nq new file mode 100644 index 00000000..7215f758 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/0132-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf/h001-in.html b/core/src/test/resources/json-ld.org/toRdf/h001-in.html new file mode 100644 index 00000000..5f7274ed --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/h001-in.html @@ -0,0 +1,12 @@ + + + + +) \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/h001-out.nq b/core/src/test/resources/json-ld.org/toRdf/h001-out.nq new file mode 100644 index 00000000..91e9e279 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/h001-out.nq @@ -0,0 +1,3 @@ +_:b0 _:b1 . +_:b1 "bar" . +_:b1 . diff --git a/core/src/test/resources/json-ld.org/toRdf/h002-in.html b/core/src/test/resources/json-ld.org/toRdf/h002-in.html new file mode 100644 index 00000000..b287ab50 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/h002-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/h002-out.nq b/core/src/test/resources/json-ld.org/toRdf/h002-out.nq new file mode 100644 index 00000000..91e9e279 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/h002-out.nq @@ -0,0 +1,3 @@ +_:b0 _:b1 . +_:b1 "bar" . +_:b1 . diff --git a/core/src/test/resources/json-ld.org/toRdf/h003-in.html b/core/src/test/resources/json-ld.org/toRdf/h003-in.html new file mode 100644 index 00000000..f18c1dae --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/h003-in.html @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/h003-out.nq b/core/src/test/resources/json-ld.org/toRdf/h003-out.nq new file mode 100644 index 00000000..44f69e9a --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/h003-out.nq @@ -0,0 +1,2 @@ +_:b0 "foo" . +_:b1 "bar" . diff --git a/core/src/test/resources/json-ld.org/toRdf/js01-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js01-in.jsonld new file mode 100644 index 00000000..ace09383 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js01-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + }, + "e": true +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js01-out.nq b/core/src/test/resources/json-ld.org/toRdf/js01-out.nq new file mode 100644 index 00000000..bac18733 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js01-out.nq @@ -0,0 +1 @@ +_:b0 "true"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js02-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js02-in.jsonld new file mode 100644 index 00000000..65f32bf2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js02-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#bool", "@type": "@json"} + }, + "e": false +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js02-out.nq b/core/src/test/resources/json-ld.org/toRdf/js02-out.nq new file mode 100644 index 00000000..7bb8fd1f --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js02-out.nq @@ -0,0 +1 @@ +_:b0 "false"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js03-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js03-in.jsonld new file mode 100644 index 00000000..3f98c4fc --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js03-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + }, + "e": 1.23 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js03-out.nq b/core/src/test/resources/json-ld.org/toRdf/js03-out.nq new file mode 100644 index 00000000..1fbd15a4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js03-out.nq @@ -0,0 +1 @@ +_:b0 "1.23"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js04-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js04-in.jsonld new file mode 100644 index 00000000..dfd129c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js04-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#double", "@type": "@json"} + }, + "e": 0.0e0 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js04-out.nq b/core/src/test/resources/json-ld.org/toRdf/js04-out.nq new file mode 100644 index 00000000..1172726d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js04-out.nq @@ -0,0 +1 @@ +_:b0 "0"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js05-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js05-in.jsonld new file mode 100644 index 00000000..22702493 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js05-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#integer", "@type": "@json"} + }, + "e": 123 +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js05-out.nq b/core/src/test/resources/json-ld.org/toRdf/js05-out.nq new file mode 100644 index 00000000..d8c47b46 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js05-out.nq @@ -0,0 +1 @@ +_:b0 "123"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js06-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js06-in.jsonld new file mode 100644 index 00000000..b0c57352 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js06-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#object", "@type": "@json"} + }, + "e": {"foo": "bar"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js06-out.nq b/core/src/test/resources/json-ld.org/toRdf/js06-out.nq new file mode 100644 index 00000000..4909a3d6 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js06-out.nq @@ -0,0 +1 @@ +_:b0 "{\"foo\":\"bar\"}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js07-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js07-in.jsonld new file mode 100644 index 00000000..8caa6c9f --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js07-in.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#array", "@type": "@json"} + }, + "e": [{"foo": "bar"}] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js07-out.nq b/core/src/test/resources/json-ld.org/toRdf/js07-out.nq new file mode 100644 index 00000000..f2ef8961 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js07-out.nq @@ -0,0 +1 @@ +_:b0 "[{\"foo\":\"bar\"}]"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js08-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js08-in.jsonld new file mode 100644 index 00000000..16ae134f --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js08-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} + }, + "e": [ + 56, + { + "d": true, + "10": null, + "1": [ ] + } + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js08-out.nq b/core/src/test/resources/json-ld.org/toRdf/js08-out.nq new file mode 100644 index 00000000..b27b6b7d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js08-out.nq @@ -0,0 +1 @@ +_:b0 "[56,{\"1\":[],\"10\":null,\"d\":true}]"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js09-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js09-in.jsonld new file mode 100644 index 00000000..3ade2918 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js09-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} + }, + "e": { + "peach": "This sorting order", + "péché": "is wrong according to French", + "pêche": "but canonicalization MUST", + "sin": "ignore locale" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js09-out.nq b/core/src/test/resources/json-ld.org/toRdf/js09-out.nq new file mode 100644 index 00000000..aedbd732 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js09-out.nq @@ -0,0 +1 @@ +_:b0 "{\"peach\":\"This sorting order\",\"péché\":\"is wrong according to French\",\"pêche\":\"but canonicalization MUST\",\"sin\":\"ignore locale\"}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js10-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js10-in.jsonld new file mode 100644 index 00000000..5a34da26 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js10-in.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} + }, + "e": { + "1": {"f": {"f": "hi","F": 5} ," ": 56.0}, + "10": { }, + "": "empty", + "a": { }, + "111": [ {"e": "yes","E": "no" } ], + "A": { } + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js10-out.nq b/core/src/test/resources/json-ld.org/toRdf/js10-out.nq new file mode 100644 index 00000000..055426c8 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js10-out.nq @@ -0,0 +1 @@ +_:b0 "{\"\":\"empty\",\"1\":{\" \":56,\"f\":{\"F\":5,\"f\":\"hi\"}},\"10\":{},\"111\":[{\"E\":\"no\",\"e\":\"yes\"}],\"A\":{},\"a\":{}}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js11-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js11-in.jsonld new file mode 100644 index 00000000..8f6f20b4 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js11-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} + }, + "e": { + "Unnormalized Unicode":"A\u030a" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js11-out.nq b/core/src/test/resources/json-ld.org/toRdf/js11-out.nq new file mode 100644 index 00000000..0d41a89d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js11-out.nq @@ -0,0 +1 @@ +_:b0 "{\"Unnormalized Unicode\":\"Å\"}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js12-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js12-in.jsonld new file mode 100644 index 00000000..325b874a --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js12-in.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} + }, + "e": { + "numbers": [333333333.33333329, 1E30, 4.50, 2e-3, 0.000000000000000000000000001], + "string": "\u20ac$\u000F\u000aA'\u0042\u0022\u005c\\\"\/", + "literals": [null, true, false] + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js12-out.nq b/core/src/test/resources/json-ld.org/toRdf/js12-out.nq new file mode 100644 index 00000000..1c5d73f9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js12-out.nq @@ -0,0 +1 @@ +_:b0 "{\"literals\":[null,true,false],\"numbers\":[333333333.3333333,1e+30,4.5,0.002,1e-27],\"string\":\"€$\\u000f\\nA'B\\\"\\\\\\\\\\\"/\"}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js13-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/js13-in.jsonld new file mode 100644 index 00000000..dc476ae9 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js13-in.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "e": {"@id": "http://example.org/vocab#c14n", "@type": "@json"} + }, + "e": { + "\u20ac": "Euro Sign", + "\r": "Carriage Return", + "\u000a": "Newline", + "1": "One", + "\u0080": "Control\u007f", + "\ud83d\ude02": "Smiley", + "\u00f6": "Latin Small Letter O With Diaeresis", + "": "Browser Challenge" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/js13-out.nq b/core/src/test/resources/json-ld.org/toRdf/js13-out.nq new file mode 100644 index 00000000..f0fc6770 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/js13-out.nq @@ -0,0 +1 @@ +_:b0 "{\"\\n\":\"Newline\",\"\\r\":\"Carriage Return\",\"1\":\"One\",\"\":\"Browser Challenge\",\"€\":\"Control\",\"ö\":\"Latin Small Letter O With Diaeresis\",\"€\":\"Euro Sign\",\"😂\":\"Smiley\"}"^^ . \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/li01-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/li01-in.jsonld new file mode 100644 index 00000000..6cc2c82b --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/li01-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example/A", + "http://example.com/foo": {"@list": [{"@list": ["baz"]}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/li01-out.nq b/core/src/test/resources/json-ld.org/toRdf/li01-out.nq new file mode 100644 index 00000000..30142060 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/li01-out.nq @@ -0,0 +1,5 @@ + _:l1 . +_:l1 _:l2 . +_:l1 . +_:l2 "baz" . +_:l2 . diff --git a/core/src/test/resources/json-ld.org/toRdf/li02-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/li02-in.jsonld new file mode 100644 index 00000000..7d50dc38 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/li02-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example/A", + "http://example.com/foo": {"@list": [{"@list": []}]} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/li02-out.nq b/core/src/test/resources/json-ld.org/toRdf/li02-out.nq new file mode 100644 index 00000000..7239ef09 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/li02-out.nq @@ -0,0 +1,3 @@ + _:l1 . +_:l1 . +_:l1 . diff --git a/core/src/test/resources/json-ld.org/toRdf/nt01-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt01-in.jsonld new file mode 100644 index 00000000..d9abc2cb --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt01-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\u0000\t\u000B\f\u000e&([]\u007F" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt02-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt02-in.jsonld new file mode 100644 index 00000000..f084bfd1 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt02-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt03-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt03-in.jsonld new file mode 100644 index 00000000..77fc0b34 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt03-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\u000b\f\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt04-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt04-in.jsonld new file mode 100644 index 00000000..4baebf0b --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt04-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": " !\"#$%&():;<=>?@[]^_`{|}~" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt05-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt05-in.jsonld new file mode 100644 index 00000000..e3feea5f --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt05-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "x'y" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt06-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt06-in.jsonld new file mode 100644 index 00000000..a9e58909 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt06-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "x''y" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt07-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt07-in.jsonld new file mode 100644 index 00000000..de2c2eb2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt07-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "x\"y" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt08-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt08-in.jsonld new file mode 100644 index 00000000..cc90b100 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt08-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "x\"\"y" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt09-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt09-in.jsonld new file mode 100644 index 00000000..7c251114 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt09-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://example.org/ns#s", + "http://example.org/ns#p1": [ + { + "@value": "test-\\" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt10-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt10-in.jsonld new file mode 100644 index 00000000..eab1c520 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt10-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\t" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt11-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt11-in.jsonld new file mode 100644 index 00000000..dde526be --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt11-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\b" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt12-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt12-in.jsonld new file mode 100644 index 00000000..c7df2308 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt12-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\n" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt13-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt13-in.jsonld new file mode 100644 index 00000000..72f8aca0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt13-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\r" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt14-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt14-in.jsonld new file mode 100644 index 00000000..76840fd2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt14-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\f" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt15-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt15-in.jsonld new file mode 100644 index 00000000..c25a97e0 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt15-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\\" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/nt16-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/nt16-in.jsonld new file mode 100644 index 00000000..f9c43cd7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/nt16-in.jsonld @@ -0,0 +1,10 @@ +[ + { + "@id": "http://a.example/s", + "http://a.example/p": [ + { + "@value": "\u000F" + } + ] + } +] \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/rt01-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/rt01-in.jsonld new file mode 100644 index 00000000..9aaa87be --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/rt01-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "number": {"@id": "http://example.com/number"} + }, + "number": [-0e0, 8, 9.9, 1e21 ] +} diff --git a/core/src/test/resources/json-ld.org/toRdf/rt01-out.nq b/core/src/test/resources/json-ld.org/toRdf/rt01-out.nq new file mode 100644 index 00000000..65c50746 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/rt01-out.nq @@ -0,0 +1,4 @@ +_:b0 "0"^^ . +_:b0 "8"^^ . +_:b0 "9.9E0"^^ . +_:b0 "1.0E21"^^ . diff --git a/core/src/test/resources/json-ld.org/toRdf/wf01-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf01-in.jsonld new file mode 100644 index 00000000..54fa7e8d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf01-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/a b", + "http://example.com/foo": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0059-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf01-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0059-out.nq rename to core/src/test/resources/json-ld.org/toRdf/wf01-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/wf02-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf02-in.jsonld new file mode 100644 index 00000000..fe5f18e3 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf02-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/foo", + "http://example.com/a b": "bar" +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0085-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf02-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0085-out.nq rename to core/src/test/resources/json-ld.org/toRdf/wf02-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/wf03-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf03-in.jsonld new file mode 100644 index 00000000..d6e20ade --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf03-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/foo", + "http://example.com/bar": {"@id": "http://example.com/baz z"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf-0086-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf03-out.nq similarity index 100% rename from core/src/test/resources/json-ld.org/toRdf-0086-out.nq rename to core/src/test/resources/json-ld.org/toRdf/wf03-out.nq diff --git a/core/src/test/resources/json-ld.org/toRdf/wf04-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf04-in.jsonld new file mode 100644 index 00000000..9321636d --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf04-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/foo", + "@type": ["http://example.com/bar", "http://in valid"] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/wf04-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf04-out.nq new file mode 100644 index 00000000..b241d18b --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf04-out.nq @@ -0,0 +1 @@ + . diff --git a/core/src/test/resources/json-ld.org/toRdf/wf05-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf05-in.jsonld new file mode 100644 index 00000000..79352683 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf05-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/foo", + "http://example.com/bar": {"@value": "bar", "@language": "a b"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/wf05-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf05-out.nq new file mode 100644 index 00000000..e69de29b diff --git a/core/src/test/resources/json-ld.org/toRdf/wf06-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf06-in.jsonld new file mode 100644 index 00000000..41a7a8b2 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf06-in.jsonld @@ -0,0 +1,4 @@ +{ + "@id": "http://example.com/foo", + "http://example.com/bar": {"@value": "bar", "@type": "http://example.com/baz z"} +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/wf06-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf06-out.nq new file mode 100644 index 00000000..e69de29b diff --git a/core/src/test/resources/json-ld.org/toRdf/wf07-in.jsonld b/core/src/test/resources/json-ld.org/toRdf/wf07-in.jsonld new file mode 100644 index 00000000..5119e589 --- /dev/null +++ b/core/src/test/resources/json-ld.org/toRdf/wf07-in.jsonld @@ -0,0 +1,7 @@ +{ + "@id": "http://example.com/invalid gn", + "@graph": { + "@id": "http://example.com/foo", + "http://example.com/bar": "baz" + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/toRdf/wf07-out.nq b/core/src/test/resources/json-ld.org/toRdf/wf07-out.nq new file mode 100644 index 00000000..e69de29b diff --git a/core/src/test/resources/json-ld.org/vocab.html b/core/src/test/resources/json-ld.org/vocab.html new file mode 100644 index 00000000..3a93686b --- /dev/null +++ b/core/src/test/resources/json-ld.org/vocab.html @@ -0,0 +1,394 @@ + + + +Test case manifest vocabulary extensions + + + + +

Test case manifest vocabulary extensions

+

W3C

+

+Alternate versions of the test vocabulary definition exist in +Turtle +and JSON-LD. +

+
+

Test Case Classes

+
+
Compact Evaluation Test
+

A CompactTest modifies either a PositiveEvaluationTest, NegativeEvaluationTest, PositiveSyntaxTest or NegativeSyntaxTest.

+
+
Expand Evaluation Test
+

A ExpandTest modifies either a PositiveEvaluationTest, NegativeEvaluationTest, PositiveSyntaxTest or NegativeSyntaxTest.

+
+
Flatten Evaluation Test
+

A FlattenTest modifies either a PositiveEvaluationTest, NegativeEvaluationTest, PositiveSyntaxTest or NegativeSyntaxTest.

+
+
Frame Evaluation Test
+

A FrameTest modifies either a PositiveEvaluationTest, NegativeEvaluationTest, PositiveSyntaxTest or NegativeSyntaxTest.

+
+
From RDF Evaluation Test
+

A FromRDFTest modifies either a PositiveEvaluationTest, NegativeEvaluationTest, PositiveSyntaxTest or NegativeSyntaxTest.

+
+
HTTP Evaluation Test
+

An HttpTest modifies either a PositiveEvaluationTest or NegativeEvaluationTest.

+
+
Negative Syntax Test
+

A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action. Negative syntax tests are tests of which the result should be a parser error.

+
+
Positive Evaluation Test
+

A Positive Evaluation test is successful when the result of processing the input file specified as mf:action (aliased as "input" in test manifest) exactly matches the output file specified as mf:result (aliased as "expect" in test manifest) using the comparison defined in another class. The specifics of invoking test, including the interpretation of options (:option) and other input files are specified through another class.

+
+
Positive Evaluation Test
+

A Negative Evaluation test is successful when the result of processing the input file specified as mf:action (aliased as "input" in test manifest) results in the error identified by the literal value of mf:result (aliased as "expect" in test manifest). The specifics of invoking test, including the interpretation of options (:option) and other input files are specified through another class. See the README for more details on running tests.

+
+
Positive Syntax Test
+

A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action.

+
+
Processor Options
+

Options passed to the test runner to affect invocation of the appropriate API method.

+
+
Superclass of all JSON-LD tests
+

All JSON-LD tests have an input file referenced using mf:action (aliased as "input" in test manifest). Positive and Negative Evaluation Tests also have a result file referenced using mf:result (aliased as "expect" in test manifest). Other tests may take different inputs and options as defined for each test class. Tests should be run with the processingMode option set to "json-ld-1.1", unless specified explicitly as a test option.

+
+
To RDF Evaluation Test
+

A ToRDFTest modifies either a PositiveEvaluationTest, NegativeEvaluationTest, PositiveSyntaxTest or NegativeSyntaxTest.

+
+
+
+
+

Test Case Properties

+
+
HTTP Accept
+

An HTTP Accept header.

+
+
HTTP link
+

An HTTP Link header to be added to the result of requesting the input file.

+
+
HTTP status
+

The HTTP status code that must be returned when the input file is requested. This is typically used along with the redirectTo property.

+
+
base
+

The base IRI to use when expanding or compacting the document. If set, this overrides the input document's IRI.

+
+
compact arrays
+

If set to true, the JSON-LD processor replaces arrays with just one element with that element during compaction. If set to false, all arrays will remain arrays even if they have just one element.

+
+
compact to relative
+

If set to false, the JSON-LD processor will not attempt to compact using document-relative IRIs.

+
+
content type
+

The HTTP Content-Type used for the input file, in case it is a non-registered type.

+
+
context
+

A context that is used for transforming the input document.

+
+
expand context
+

A context that is used to initialize the active context when expanding a document.

+
+
input
+

A frame that is used for transforming the input document.

+
+
input
+

Secondary input file

+
+
option
+

Options affecting processing

+
+
processing mode
+

If set to "json-ld-1.1", the JSON-LD processor must produce exactly the same results as the algorithms defined in this specification. If set to another value, the JSON-LD processor is allowed to extend or modify the algorithms defined in this specification to enable application-specific optimizations. The definition of such optimizations is beyond the scope of this specification and thus not defined. Consequently, different implementations may implement different optimizations. Developers must not define modes beginning with json-ld as they are reserved for future versions of this specification.

+
+
produce generalized RDF
+

Unless the produce generalized RDF flag is set to true, RDF triples containing a blank node predicate are excluded from output.

+
+
redirect to
+

The location of a URL for redirection. A request made of the input file must be redirected to the designated URL.

+
+
spec version
+

Indicates the JSON-LD version to which the test applies, rather than the specific processing mode. Values are "json-ld-1.0", and "json-ld-1.1". If not set, the test is presumed to be valid for all versions of JSON-LD. In cases where results differ between spec versions for the same test, the test will have both a "1.0" and "1.1" version, for example.

+
+
use RDF types
+

If the use rdf type flag is set to true, statements with an rdf:type predicate will not use @type, but will be transformed as a normal property.

+
+
use native types
+

If the use native types flag is set to true, RDF literals with a datatype IRI that equal xsd:integer or xsd:double are converted to a JSON numbers and RDF literals with a datatype IRI that equals xsd:boolean are converted to true or false based on their lexical form.

+
+
+
+
+W3C Linked JSON Community Group +
+ + diff --git a/core/src/test/resources/json-ld.org/vocab.jsonld b/core/src/test/resources/json-ld.org/vocab.jsonld new file mode 100644 index 00000000..425496c5 --- /dev/null +++ b/core/src/test/resources/json-ld.org/vocab.jsonld @@ -0,0 +1,270 @@ +{ + "@context": { + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "dc11": "http://purl.org/dc/elements/1.1/", + "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "jld": "https://w3c.github.io/json-ld-api/tests/vocab#", + "jld:Test": { + "@type": "@id" + }, + "dc11:identifier": { + "@type": "@id" + }, + "rdfs:subClassOf": { + "@type": "@id" + }, + "rdfs:domain": { + "@type": "@id" + }, + "rdfs:range": { + "@type": "@id" + } + }, + "@graph": [ + { + "@id": "jld:PositiveEvaluationTest", + "rdfs:comment": "A Positive Evaluation test is successful when the result of processing the input file specified as `mf:action` (aliased as \"input\" in test manifest) exactly matches the output file specified as `mf:result` (aliased as \"expect\" in test manifest) using the comparison defined in another class. The specifics of invoking test, including the interpretation of options (`:option`) and other input files are specified through another class.", + "@type": "rdfs:Class", + "rdfs:label": "Positive Evaluation Test", + "rdfs:subClassOf": "jld:Test" + }, + { + "@id": "jld:Test", + "rdfs:comment": "All JSON-LD tests have an input file referenced using `mf:action` (aliased as \"input\" in test manifest). Positive and Negative Evaluation Tests also have a result file referenced using `mf:result` (aliased as \"expect\" in test manifest). Other tests may take different inputs and options as defined for each test class. Tests should be run with the processingMode option set to \"json-ld-1.1\", unless specified explicitly as a test option.", + "@type": "rdfs:Class", + "rdfs:label": "Superclass of all JSON-LD tests" + }, + { + "@id": "jld:option", + "rdfs:comment": "Options affecting processing", + "rdfs:range": "jld:Option", + "rdfs:domain": "jld:Test", + "@type": "rdf:Property", + "rdfs:label": "option" + }, + { + "@id": "jld:Option", + "rdfs:comment": "Options passed to the test runner to affect invocation of the appropriate API method.", + "@type": "rdfs:Class", + "rdfs:label": "Processor Options" + }, + { + "@id": "jld:CompactTest", + "rdfs:comment": "A `CompactTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "Compact Evaluation Test" + }, + { + "@id": "https://w3c.github.io/json-ld-api/tests/vocab#", + "rdfs:comment": "Manifest vocabulary for JSON-LD test cases", + "dc11:title": "Test case manifest vocabulary extensions", + "dc11:creator": "Gregg Kellogg", + "dc11:publisher": "W3C Linked JSON Community Group", + "dc11:description": "Test case manifest vocabulary extensions", + "dc11:identifier": "https://w3c.github.io/json-ld-api/tests/vocab#", + "dc11:date": "2013-09-23" + }, + { + "@id": "jld:NegativeEvaluationTest", + "rdfs:comment": "A Negative Evaluation test is successful when the result of processing the input file specified as `mf:action` (aliased as \"input\" in test manifest) results in the error identified by the literal value of `mf:result` (aliased as \"expect\" in test manifest). The specifics of invoking test, including the interpretation of options (`:option`) and other input files are specified through another class. See the [README](https://w3c.github.io/json-ld-api/tests/) for more details on running tests.", + "@type": "rdfs:Class", + "rdfs:label": "Positive Evaluation Test", + "rdfs:subClassOf": "jld:Test" + }, + { + "@id": "jld:useRdfType", + "rdfs:comment": "If the _use rdf type_ flag is set to `true`, statements with an `rdf:type` predicate will not use `@type`, but will be transformed as a normal property.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "use RDF types" + }, + { + "@id": "jld:ExpandTest", + "rdfs:comment": "A `ExpandTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "Expand Evaluation Test" + }, + { + "@id": "jld:NegativeSyntaxTest", + "rdfs:comment": "A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action. Negative syntax tests are tests of which the result should be a parser error.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "Negative Syntax Test" + }, + { + "@id": "jld:compactArrays", + "rdfs:comment": "If set to `true`, the JSON-LD processor replaces arrays with just one element with that element during compaction. If set to false, all arrays will remain arrays even if they have just one element.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "compact arrays" + }, + { + "@id": "jld:HttpTest", + "rdfs:comment": "An `HttpTest` modifies either a `PositiveEvaluationTest` or `NegativeEvaluationTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "HTTP Evaluation Test" + }, + { + "@id": "jld:compactToRelative", + "rdfs:comment": "If set to `false`, the JSON-LD processor will not attempt to compact using document-relative IRIs.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "compact to relative" + }, + { + "@id": "jld:httpStatus", + "rdfs:comment": "The HTTP status code that must be returned when the input file is requested. This is typically used along with the `redirectTo` property.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "HTTP status" + }, + { + "@id": "jld:FrameTest", + "rdfs:comment": "A `FrameTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "Frame Evaluation Test" + }, + { + "@id": "jld:PositiveSyntaxTest", + "rdfs:comment": "A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "Positive Syntax Test" + }, + { + "@id": "jld:base", + "rdfs:comment": "The base IRI to use when expanding or compacting the document. If set, this overrides the input document's IRI.", + "rdfs:range": "rdfs:Resource", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "base" + }, + { + "@id": "jld:redirectTo", + "rdfs:comment": "The location of a URL for redirection. A request made of the input file must be redirected to the designated URL.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "redirect to" + }, + { + "@id": "jld:FlattenTest", + "rdfs:comment": "A `FlattenTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "Flatten Evaluation Test" + }, + { + "@id": "jld:expandContext", + "rdfs:comment": "A context that is used to initialize the active context when expanding a document.", + "rdfs:range": "rdfs:Resource", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "expand context" + }, + { + "@id": "jld:frame", + "rdfs:comment": "A frame that is used for transforming the input document.", + "rdfs:range": "rdfs:Resource", + "rdfs:domain": "jld:Test", + "@type": "rdf:Property", + "rdfs:label": "input" + }, + { + "@id": "jld:ToRDFTest", + "rdfs:comment": "A `ToRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "To RDF Evaluation Test" + }, + { + "@id": "jld:httpAccept", + "rdfs:comment": "An HTTP Accept header.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "HTTP Accept" + }, + { + "@id": "jld:FromRDFTest", + "rdfs:comment": "A `FromRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`.", + "@type": "rdfs:Class", + "rdfs:subClassOf": "jld:Test", + "rdfs:label": "From RDF Evaluation Test" + }, + { + "@id": "jld:useNativeTypes", + "rdfs:comment": "If the _use native types_ flag is set to `true`, RDF literals with a datatype IRI that equal `xsd:integer` or `xsd:double` are converted to a JSON numbers and RDF literals with a datatype IRI that equals `xsd:boolean` are converted to `true` or `false` based on their lexical form.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "use native types" + }, + { + "@id": "jld:context", + "rdfs:comment": "A context that is used for transforming the input document.", + "rdfs:range": "rdfs:Resource", + "rdfs:domain": "jld:Test", + "@type": "rdf:Property", + "rdfs:label": "context" + }, + { + "@id": "jld:contentType", + "rdfs:comment": "The HTTP Content-Type used for the input file, in case it is a non-registered type.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "content type" + }, + { + "@id": "jld:produceGeneralizedRdf", + "rdfs:comment": "Unless the produce generalized RDF flag is set to true, RDF triples containing a blank node predicate are excluded from output.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "produce generalized RDF" + }, + { + "@id": "jld:specVersion", + "rdfs:comment": "Indicates the JSON-LD version to which the test applies, rather than the specific processing mode. Values are \"json-ld-1.0\", and \"json-ld-1.1\". If not set, the test is presumed to be valid for all versions of JSON-LD. In cases where results differ between spec versions for the same test, the test will have both a \"1.0\" and \"1.1\" version, for example.", + "rdfs:range": "xsd:string", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "spec version" + }, + { + "@id": "jld:input", + "rdfs:comment": "Secondary input file", + "rdfs:range": "rdfs:Resource", + "rdfs:domain": "jld:Test", + "@type": "rdf:Property", + "rdfs:label": "input" + }, + { + "@id": "jld:httpLink", + "rdfs:comment": "An HTTP Link header to be added to the result of requesting the input file.", + "rdfs:range": "xsd:boolean", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "HTTP link" + }, + { + "@id": "jld:processingMode", + "rdfs:comment": "If set to \"json-ld-1.1\", the JSON-LD processor must produce exactly the same results as the algorithms defined in this specification. If set to another value, the JSON-LD processor is allowed to extend or modify the algorithms defined in this specification to enable application-specific optimizations. The definition of such optimizations is beyond the scope of this specification and thus not defined. Consequently, different implementations may implement different optimizations. Developers must not define modes beginning with json-ld as they are reserved for future versions of this specification.", + "rdfs:range": "xsd:string", + "rdfs:domain": "jld:Option", + "@type": "rdf:Property", + "rdfs:label": "processing mode" + } + ] +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/vocab.ttl b/core/src/test/resources/json-ld.org/vocab.ttl new file mode 100644 index 00000000..e81f5492 --- /dev/null +++ b/core/src/test/resources/json-ld.org/vocab.ttl @@ -0,0 +1,287 @@ +# Test vocabulary for the JSON-LD test suite. +# This vocabulary defines classes an properties which extend +# the test-manifest vocabulary at . + +@prefix rdfs: . +@prefix rdf: . +@prefix dc11: . +@prefix mf: . +@prefix xsd: . +@prefix : . + +: rdfs:comment "Manifest vocabulary for JSON-LD test cases" ; + dc11:creator "Gregg Kellogg" ; + dc11:publisher "W3C Linked JSON Community Group" ; + dc11:title "Test case manifest vocabulary extensions" ; + dc11:description "Test case manifest vocabulary extensions" ; + dc11:date "2013-09-23" ; + dc11:identifier : . + +## ---- Test Case Classes --- + +:Test a rdfs:Class ; + rdfs:label "Superclass of all JSON-LD tests" ; + rdfs:comment """ + All JSON-LD tests have an input file referenced using + `mf:action` (aliased as "input" in test manifest). + Positive and Negative Evaluation Tests also have a result file + referenced using `mf:result` (aliased as "expect" in test manifest). + Other tests may take different inputs and options as defined for each test class. + Tests should be run with the processingMode option set to "json-ld-1.1", + unless specified explicitly as a test option. + """ . + +:PositiveEvaluationTest a rdfs:Class ; + rdfs:label "Positive Evaluation Test" ; + rdfs:subClassOf :Test ; + rdfs:comment """ + A Positive Evaluation test is successful when the result of processing + the input file specified as `mf:action` (aliased as "input" in test manifest) + exactly matches the output file specified as + `mf:result` (aliased as "expect" in test manifest) using the comparison defined in + another class. The specifics of invoking test, including the interpretation of options + (`:option`) and other input files are specified through another class. + """ . + +:NegativeEvaluationTest a rdfs:Class ; + rdfs:label "Positive Evaluation Test" ; + rdfs:subClassOf :Test ; + rdfs:comment """ + A Negative Evaluation test is successful when the result of processing + the input file specified as `mf:action` (aliased as "input" in test manifest) + results in the error identified by the literal value of + `mf:result` (aliased as "expect" in test manifest). + The specifics of invoking test, including + the interpretation of options (`:option`) and other input files are + specified through another class. + See the [README](https://w3c.github.io/json-ld-api/tests/) for more details on running tests. + """ . + +:PositiveSyntaxTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "Positive Syntax Test" ; + rdfs:comment """ + A type of test specifically for syntax testing. + Syntax tests are not required to have an associated result, only an action. + """ . + +:NegativeSyntaxTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "Negative Syntax Test" ; + rdfs:comment """ + A type of test specifically for syntax testing. + Syntax tests are not required to have an associated result, only an action. + Negative syntax tests are tests of which the result should be a parser error. + """ . + +:CompactTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "Compact Evaluation Test" ; + rdfs:comment """ + A `CompactTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, + `PositiveSyntaxTest` or `NegativeSyntaxTest`. + """ . + +:ExpandTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "Expand Evaluation Test" ; + rdfs:comment """ + A `ExpandTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, + `PositiveSyntaxTest` or `NegativeSyntaxTest`. + """ . + +:FlattenTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "Flatten Evaluation Test" ; + rdfs:comment """ + A `FlattenTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, + `PositiveSyntaxTest` or `NegativeSyntaxTest`. + """ . + +:FrameTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "Frame Evaluation Test" ; + rdfs:comment """ + A `FrameTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, + `PositiveSyntaxTest` or `NegativeSyntaxTest`. + """ . + +:FromRDFTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "From RDF Evaluation Test" ; + rdfs:comment """ + A `FromRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, + `PositiveSyntaxTest` or `NegativeSyntaxTest`. + """ . + +:HttpTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "HTTP Evaluation Test" ; + rdfs:comment """ + An `HttpTest` modifies either a `PositiveEvaluationTest` or `NegativeEvaluationTest`. + """ . + +:ToRDFTest a rdfs:Class ; + rdfs:subClassOf :Test ; + rdfs:label "To RDF Evaluation Test" ; + rdfs:comment """ + A `ToRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, + `PositiveSyntaxTest` or `NegativeSyntaxTest`. + """ . + +:Option a rdfs:Class ; + rdfs:label "Processor Options" ; + rdfs:comment "Options passed to the test runner to affect invocation of the appropriate API method." . + +## ---- Property declarations for each test ---- + +:input a rdf:Property ; + rdfs:label "input"; + rdfs:comment "Secondary input file" ; + rdfs:domain :Test ; + rdfs:range rdfs:Resource . + +:context a rdf:Property ; + rdfs:label "context"; + rdfs:comment "A context that is used for transforming the input document." ; + rdfs:domain :Test ; + rdfs:range rdfs:Resource . + +:frame a rdf:Property ; + rdfs:label "input"; + rdfs:comment "A frame that is used for transforming the input document." ; + rdfs:domain :Test ; + rdfs:range rdfs:Resource . + +:option a rdf:Property ; + rdfs:label "option"; + rdfs:comment "Options affecting processing" ; + rdfs:domain :Test ; + rdfs:range :Option . + +:base a rdf:Property ; + rdfs:label "base"; + rdfs:comment """ + The base IRI to use when expanding or compacting the document. + If set, this overrides the input document's IRI. + """ ; + rdfs:domain :Option ; + rdfs:range rdfs:Resource . + +:compactArrays a rdf:Property ; + rdfs:label "compact arrays"; + rdfs:comment """ + If set to `true`, the JSON-LD processor replaces arrays with just one element + with that element during compaction. + If set to false, all arrays will remain arrays even if they have just one element. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:compactToRelative a rdf:Property ; + rdfs:label "compact to relative"; + rdfs:comment """ + If set to `false`, the JSON-LD processor will not attempt to compact using document-relative IRIs. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:expandContext a rdf:Property ; + rdfs:label "expand context"; + rdfs:comment "A context that is used to initialize the active context when expanding a document." ; + rdfs:domain :Option ; + rdfs:range rdfs:Resource . + +:processingMode a rdf:Property ; + rdfs:label "processing mode"; + rdfs:comment """ + If set to "json-ld-1.1", the JSON-LD processor must produce exactly the same results as + the algorithms defined in this specification. + If set to another value, the JSON-LD processor is allowed to extend or modify + the algorithms defined in this specification to enable application-specific optimizations. + The definition of such optimizations is beyond the scope of this specification and thus not defined. + Consequently, different implementations may implement different optimizations. + Developers must not define modes beginning with json-ld as they are reserved for future versions of this specification. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:string . + +:produceGeneralizedRdf a rdf:Property ; + rdfs:label "produce generalized RDF"; + rdfs:comment "Unless the produce generalized RDF flag is set to true, RDF triples containing a blank node predicate are excluded from output." ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:useNativeTypes a rdf:Property ; + rdfs:label "use native types"; + rdfs:comment """ + If the _use native types_ flag is set to `true`, RDF literals with a datatype IRI that + equal `xsd:integer` or `xsd:double` are converted to a JSON numbers and RDF literals + with a datatype IRI that equals `xsd:boolean` are converted to `true` or `false` based + on their lexical form. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:useRdfType a rdf:Property ; + rdfs:label "use RDF types"; + rdfs:comment """ + If the _use rdf type_ flag is set to `true`, statements with an `rdf:type` predicate + will not use `@type`, but will be transformed as a normal property. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:contentType a rdf:Property ; + rdfs:label "content type"; + rdfs:comment """ + The HTTP Content-Type used for the input file, in case it is a non-registered type. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:redirectTo a rdf:Property ; + rdfs:label "redirect to"; + rdfs:comment """ + The location of a URL for redirection. A request made of the input file must be redirected + to the designated URL. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:httpAccept a rdf:Property ; + rdfs:label "HTTP Accept"; + rdfs:comment """ + An HTTP Accept header. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:httpLink a rdf:Property ; + rdfs:label "HTTP link"; + rdfs:comment """ + An HTTP Link header to be added to the result of requesting the input file. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:httpStatus a rdf:Property ; + rdfs:label "HTTP status"; + rdfs:comment """ + The HTTP status code that must be returned when the input file is requested. This + is typically used along with the `redirectTo` property. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:boolean . + +:specVersion a rdf:Property ; + rdfs:label "spec version"; + rdfs:comment """ + Indicates the JSON-LD version to which the test applies, rather than the + specific processing mode. Values are "json-ld-1.0", and "json-ld-1.1". If not set, the + test is presumed to be valid for all versions of JSON-LD. In cases where + results differ between spec versions for the same test, the test will have + both a "1.0" and "1.1" version, for example. + """ ; + rdfs:domain :Option ; + rdfs:range xsd:string . diff --git a/core/src/test/resources/json-ld.org/vocab_context.jsonld b/core/src/test/resources/json-ld.org/vocab_context.jsonld new file mode 100644 index 00000000..3b539af7 --- /dev/null +++ b/core/src/test/resources/json-ld.org/vocab_context.jsonld @@ -0,0 +1,15 @@ +{ + "@context": { + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "dc11": "http://purl.org/dc/elements/1.1/", + "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "jld": "https://w3c.github.io/json-ld-api/tests/vocab#", + "jld:Test": {"@type": "@id"}, + "dc11:identifier": {"@type": "@id"}, + "rdfs:subClassOf": {"@type": "@id"}, + "rdfs:domain": {"@type": "@id"}, + "rdfs:range": {"@type": "@id"} + } +} \ No newline at end of file diff --git a/core/src/test/resources/json-ld.org/vocab_template.haml b/core/src/test/resources/json-ld.org/vocab_template.haml new file mode 100644 index 00000000..fc81dc15 --- /dev/null +++ b/core/src/test/resources/json-ld.org/vocab_template.haml @@ -0,0 +1,39 @@ +%html{lang: :en} + %head + %meta{charset: 'utf-8'} + %title<= ontology['dc11:title'] + %link{href: "http://www.w3.org/StyleSheets/2016/base.css", rel: :stylesheet} + %script{type: 'application/ld+json'} + = source + %body + %h1<=ontology['dc11:title'] + %p< + %a{href: 'http://www.w3.org/'}< + %img(src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72") + %p + Alternate versions of the test vocabulary definition exist in + %a(rel="alternate" href="vocab.ttl")<="Turtle" + and + = " " + %a(rel="alternate" href="vocab.jsonld")<>="JSON-LD" + = "." + %section + %h2<="Test Case Classes" + %dl + - classes.each do |cls| + %dt< + %strong<~cls["rdfs:label"] + %dd< + :markdown + #{cls["rdfs:comment"].to_s.gsub(/^\s+/, '')} + %section + %h2<="Test Case Properties" + %dl + - properties.each do |prop| + %dt< + %strong<~prop["rdfs:label"] + %dd< + :markdown + #{prop["rdfs:comment"].to_s.gsub(/^\s+/, '')} + %footer + %span<= ontology["dc11:publisher"]