diff --git a/Gemfile.lock b/Gemfile.lock index fcfed99e..60f5bfa3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/ruby-rdf/json-ld.git - revision: adbd407fa4b5783c8a7f7b79653b6e38815ff854 + revision: c1e72171960b31bf417c7af9ecea6ebf75fd0316 branch: develop specs: json-ld (3.0.2) @@ -34,10 +34,10 @@ GEM hamster (3.0.0) concurrent-ruby (~> 1.0) htmlentities (4.3.4) - i18n (1.6.0) + i18n (1.7.0) concurrent-ruby (~> 1.0) json-canonicalization (0.1.0) - json-ld-preloaded (3.0.4) + json-ld-preloaded (3.0.5) json-ld (~> 3.0) multi_json (~> 1.12) rdf (~> 3.0) @@ -83,7 +83,7 @@ GEM nokogiri public_suffix (4.0.1) rack (2.0.7) - rake (12.3.3) + rake (13.0.0) rdf (3.0.12) hamster (~> 3.0) link_header (~> 0.0, >= 0.0.8) @@ -135,7 +135,7 @@ GEM rdf-turtle (3.0.6) ebnf (~> 1.1) rdf (~> 3.0) - rdf-vocab (3.0.10) + rdf-vocab (3.0.11) rdf (~> 3.0, >= 3.0.11) rdf-xsd (3.0.1) rdf (~> 3.0) diff --git a/common/extract-examples.rb b/common/extract-examples.rb index 44fc8eb3..23e1f841 100755 --- a/common/extract-examples.rb +++ b/common/extract-examples.rb @@ -119,6 +119,13 @@ def table_to_dataset(table) # We might think something was an IRI, but determine that it's not object = RDF::Literal(object.to_s, language: cell.to_sym) end + when 'Direction' + case cell + when '-', /^\s*$/ + else + object = RDF::Literal(object.to_s, datatype: RDF::URI("https://www.w3.org/ns/i18n##{object.language}_#{cell}")) + # We might think something was an IRI, but determine that it's not + end end end repo << RDF::Statement.new(subject, predicate, object, graph_name: gname) diff --git a/common/terms.html b/common/terms.html index 2f75e8ae..1a122622 100644 --- a/common/terms.html +++ b/common/terms.html @@ -174,6 +174,10 @@ whose value MUST be a string representing a [[BCP47]] language code or null.
default object
A default object is a map that has a @default key.
+
base direction
+ The base direction is the direction used when a string does not have a direction associated with it directly. + It can be set in the context using the @direction key + whose value MUST be one of the strings `"ltr"`, `"rtl"`, or null.
embedded context
An embedded context is a context which appears as the @context entry of one of the following: diff --git a/examples/A-document-with-children-linking-to-their-parent-original.jsonld b/examples/A-document-with-children-linking-to-their-parent-compacted.jsonld similarity index 100% rename from examples/A-document-with-children-linking-to-their-parent-original.jsonld rename to examples/A-document-with-children-linking-to-their-parent-compacted.jsonld diff --git a/examples/A-person-and-its-children-using-a-reverse-property-original.jsonld b/examples/A-person-and-its-children-using-a-reverse-property-compacted.jsonld similarity index 100% rename from examples/A-person-and-its-children-using-a-reverse-property-original.jsonld rename to examples/A-person-and-its-children-using-a-reverse-property-compacted.jsonld diff --git a/examples/A-protected-context-with-an-exception-original.jsonld b/examples/A-protected-context-with-an-exception-compacted.jsonld similarity index 100% rename from examples/A-protected-context-with-an-exception-original.jsonld rename to examples/A-protected-context-with-an-exception-compacted.jsonld diff --git a/examples/A-protected-context-with-an-exception-statements.table b/examples/A-protected-context-with-an-exception-statements.table index 961f9bcd..4bbbe0d3 100644 --- a/examples/A-protected-context-with-an-exception-statements.table +++ b/examples/A-protected-context-with-an-exception-statements.table @@ -1,5 +1,5 @@ - +
diff --git a/examples/A-remote-context-to-be-imported-in-a-type-scoped-context.jsonld b/examples/A-remote-context-to-be-imported-in-a-type-scoped-context.jsonld new file mode 100644 index 00000000..e6ff4e1b --- /dev/null +++ b/examples/A-remote-context-to-be-imported-in-a-type-scoped-context.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "Type1": "http://example.com/vocab/Type1", + "Type2": "http://example.com/vocab/Type2", + "term1": "http://example.com/vocab#term1", + "term2": "http://example.com/vocab#term2" + } +} \ No newline at end of file diff --git a/examples/Aliasing-keywords-original.jsonld b/examples/Aliasing-keywords-compacted.jsonld similarity index 100% rename from examples/Aliasing-keywords-original.jsonld rename to examples/Aliasing-keywords-compacted.jsonld diff --git a/examples/An-ordered-collection-of-values-in-JSON-LD-original.jsonld b/examples/An-ordered-collection-of-values-in-JSON-LD-compacted.jsonld similarity index 100% rename from examples/An-ordered-collection-of-values-in-JSON-LD-original.jsonld rename to examples/An-ordered-collection-of-values-in-JSON-LD-compacted.jsonld diff --git a/examples/An-unordered-collection-of-values-in-JSON-LD-original.jsonld b/examples/An-unordered-collection-of-values-in-JSON-LD-compacted.jsonld similarity index 100% rename from examples/An-unordered-collection-of-values-in-JSON-LD-original.jsonld rename to examples/An-unordered-collection-of-values-in-JSON-LD-compacted.jsonld diff --git a/examples/Clearing-default-language.jsonld b/examples/Clearing-default-language.jsonld index 12034821..67ec9d68 100644 --- a/examples/Clearing-default-language.jsonld +++ b/examples/Clearing-default-language.jsonld @@ -1,12 +1,15 @@ { "@context": { - "@language": "ja" + "@version": 1.1, + "@vocab": "http://example.com/", + "@language": "ar-EG", + "@direction": "rtl", + "details": { + "@context": { + "@direction": null + } + } }, - "name": "花澄", - "details": { - "@context": { - "@language": null - }, - "occupation": "Ninja" - } + "title": "HTML و CSS: تصميم و إنشاء مواقع الويب", + "details": {"genre": "Technical Publication"} } \ No newline at end of file diff --git a/examples/Combining-external-and-local-contexts-original.jsonld b/examples/Combining-external-and-local-contexts-compacted.jsonld similarity index 68% rename from examples/Combining-external-and-local-contexts-original.jsonld rename to examples/Combining-external-and-local-contexts-compacted.jsonld index 769b36e0..a55d650b 100644 --- a/examples/Combining-external-and-local-contexts-original.jsonld +++ b/examples/Combining-external-and-local-contexts-compacted.jsonld @@ -2,7 +2,10 @@ "@context": [ "https://json-ld.org/contexts/person.jsonld", { - "pic": "http://xmlns.com/foaf/0.1/depiction" + "pic": { + "@id": "http://xmlns.com/foaf/0.1/depiction", + "@type": "@id" + } } ], "name": "Manu Sporny", diff --git a/examples/Combining-external-and-local-contexts-expanded.jsonld b/examples/Combining-external-and-local-contexts-expanded.jsonld index a2ed8f07..44efe53b 100644 --- a/examples/Combining-external-and-local-contexts-expanded.jsonld +++ b/examples/Combining-external-and-local-contexts-expanded.jsonld @@ -2,6 +2,6 @@ "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], "http://xmlns.com/foaf/0.1/homepage": [{"@id": "http://manu.sporny.org/"}], "http://xmlns.com/foaf/0.1/depiction": [{ - "@value": "http://twitter.com/account/profile_image/manusporny" + "@id": "http://twitter.com/account/profile_image/manusporny" }] }] \ No newline at end of file diff --git a/examples/Combining-external-and-local-contexts-statements.table b/examples/Combining-external-and-local-contexts-statements.table index 87702d74..2b09ff76 100644 --- a/examples/Combining-external-and-local-contexts-statements.table +++ b/examples/Combining-external-and-local-contexts-statements.table @@ -23,7 +23,7 @@ - +
Subject Property_:b0 foaf:depiction http://twitter.com/account/profile_image/manuspornyxsd:stringIRI
diff --git a/examples/Combining-external-and-local-contexts-turtle.ttl b/examples/Combining-external-and-local-contexts-turtle.ttl index d7410ebd..5a48c354 100644 --- a/examples/Combining-external-and-local-contexts-turtle.ttl +++ b/examples/Combining-external-and-local-contexts-turtle.ttl @@ -2,5 +2,5 @@ [ foaf:name "Manu Sporny"; foaf:homepage ; - foaf:depiction "http://twitter.com/account/profile_image/manusporny" + foaf:depiction ] . \ No newline at end of file diff --git a/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-original.html b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-compacted.html similarity index 100% rename from examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-original.html rename to examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-compacted.html diff --git a/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-statements.table b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-statements.table index b696240c..ad2caa7a 100644 --- a/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-statements.table +++ b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-statements.table @@ -1,5 +1,5 @@ - +
diff --git a/examples/Compacting-using-a-default-vocabulary-compacted.jsonld b/examples/Compacting-using-a-default-vocabulary-compacted.jsonld index 215e05cc..600a4791 100644 --- a/examples/Compacting-using-a-default-vocabulary-compacted.jsonld +++ b/examples/Compacting-using-a-default-vocabulary-compacted.jsonld @@ -1,6 +1,6 @@ { "@context": { - "@vocab": "http://xmlns.com/foaf/0.1/" + "@vocab": "http://example.org/" }, "@id": "http://example.org/places#BrewEats", "@type": "Restaurant", diff --git a/examples/Compacting-using-a-default-vocabulary-context.jsonld b/examples/Compacting-using-a-default-vocabulary-context.jsonld index 686e4b80..68db6fea 100644 --- a/examples/Compacting-using-a-default-vocabulary-context.jsonld +++ b/examples/Compacting-using-a-default-vocabulary-context.jsonld @@ -1,5 +1,5 @@ { "@context": { - "@vocab": "http://xmlns.com/foaf/0.1/" + "@vocab": "http://example.org/" } } \ No newline at end of file diff --git a/examples/Compacting-using-a-default-vocabulary-expanded.jsonld b/examples/Compacting-using-a-default-vocabulary-expanded.jsonld index 209e47d6..251b08ba 100644 --- a/examples/Compacting-using-a-default-vocabulary-expanded.jsonld +++ b/examples/Compacting-using-a-default-vocabulary-expanded.jsonld @@ -1,5 +1,5 @@ [{ "@id": "http://example.org/places#BrewEats", - "@type": ["http://xmlns.com/foaf/0.1/Restaurant"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Brew Eats"}] + "@type": ["http://example.org/Restaurant"], + "http://example.org/name": [{"@value": "Brew Eats"}] }] \ No newline at end of file diff --git a/examples/Context-defined-in-an-HTML-document.html b/examples/Context-defined-in-an-HTML-document.html deleted file mode 100644 index d775c3d1..00000000 --- a/examples/Context-defined-in-an-HTML-document.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Context definition of a person - - - -

The Person context

-

The Person context is based on a combination of FOAF, - schema.org , - and vcard vocabularies. It defines the following terms:

-
-
foaf
http://xmlns.com/foaf/0.1/
-
schema
http://schema.org/
-
vcard
http://www.w3.org/2006/vcard/ns#
-
xsd
http://www.w3.org/2001/XMLSchema#
-
Address
vcard:Address
-
- - \ No newline at end of file diff --git a/examples/Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld b/examples/Context-needs-to-be-duplicated-if-graph-is-not-used-compacted.jsonld similarity index 100% rename from examples/Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld rename to examples/Context-needs-to-be-duplicated-if-graph-is-not-used-compacted.jsonld diff --git a/examples/Coordinates-expressed-in-JSON-LD-original.json b/examples/Coordinates-expressed-in-JSON-LD-compacted.json similarity index 100% rename from examples/Coordinates-expressed-in-JSON-LD-original.json rename to examples/Coordinates-expressed-in-JSON-LD-compacted.json diff --git a/examples/Defining-an-context-within-a-term-definition-original.jsonld b/examples/Defining-an-context-within-a-term-definition-compacted.jsonld similarity index 100% rename from examples/Defining-an-context-within-a-term-definition-original.jsonld rename to examples/Defining-an-context-within-a-term-definition-compacted.jsonld diff --git a/examples/Defining-an-context-within-a-term-definition-used-on-type-original.jsonld b/examples/Defining-an-context-within-a-term-definition-used-on-type-compacted.jsonld similarity index 100% rename from examples/Defining-an-context-within-a-term-definition-used-on-type-original.jsonld rename to examples/Defining-an-context-within-a-term-definition-used-on-type-compacted.jsonld diff --git a/examples/Defining-an-context-within-a-term-definition-used-on-type-statements.table b/examples/Defining-an-context-within-a-term-definition-used-on-type-statements.table index 0d4e8a0a..5faf1e54 100644 --- a/examples/Defining-an-context-within-a-term-definition-used-on-type-statements.table +++ b/examples/Defining-an-context-within-a-term-definition-used-on-type-statements.table @@ -1,5 +1,5 @@ -
Subject Property
+
diff --git a/examples/Defining-property-nesting-Context.jsonld b/examples/Defining-property-nesting-Context.jsonld new file mode 100644 index 00000000..31e15db1 --- /dev/null +++ b/examples/Defining-property-nesting-Context.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "@version": 1.1, + "skos": "http://www.w3.org/2004/02/skos/core#", + "labels": "@nest", + "main_label": {"@id": "skos:prefLabel", "@nest": "labels"}, + "other_label": {"@id": "skos:altLabel", "@nest": "labels"}, + "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} + } +} \ No newline at end of file diff --git a/examples/Defining-property-nesting-expanded.jsonld b/examples/Defining-property-nesting-Expanded-Input.jsonld similarity index 100% rename from examples/Defining-property-nesting-expanded.jsonld rename to examples/Defining-property-nesting-Expanded-Input.jsonld diff --git a/examples/Defining-property-nesting-original.jsonld b/examples/Defining-property-nesting-compacted.jsonld similarity index 100% rename from examples/Defining-property-nesting-original.jsonld rename to examples/Defining-property-nesting-compacted.jsonld diff --git a/examples/Defining-property-nesting-statements.table b/examples/Defining-property-nesting-statements.table index 1e965530..1d9551f2 100644 --- a/examples/Defining-property-nesting-statements.table +++ b/examples/Defining-property-nesting-statements.table @@ -1,5 +1,5 @@ -
Subject Property
+
diff --git a/examples/Describing-disconnected-nodes-with-graph-original.jsonld b/examples/Describing-disconnected-nodes-with-graph-compacted.jsonld similarity index 100% rename from examples/Describing-disconnected-nodes-with-graph-original.jsonld rename to examples/Describing-disconnected-nodes-with-graph-compacted.jsonld diff --git a/examples/Describing-disconnected-nodes-with-included-compacted.jsonld b/examples/Describing-disconnected-nodes-with-included-compacted.jsonld new file mode 100644 index 00000000..eed5169d --- /dev/null +++ b/examples/Describing-disconnected-nodes-with-included-compacted.jsonld @@ -0,0 +1,18 @@ +{ + "@context": { + "Person": "http://xmlns.com/foaf/0.1/Person", + "name": "http://xmlns.com/foaf/0.1/name", + "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"} + }, + "@included": [{ + "@id": "http://manu.sporny.org/about#manu", + "@type": "Person", + "name": "Manu Sporny", + "knows": "https://greggkellogg.net/foaf#me" + }, { + "@id": "https://greggkellogg.net/foaf#me", + "@type": "Person", + "name": "Gregg Kellogg", + "knows": "http://manu.sporny.org/about#manu" + }] +} \ No newline at end of file diff --git a/examples/Describing-disconnected-nodes-with-included-expanded.jsonld b/examples/Describing-disconnected-nodes-with-included-expanded.jsonld new file mode 100644 index 00000000..244a4453 --- /dev/null +++ b/examples/Describing-disconnected-nodes-with-included-expanded.jsonld @@ -0,0 +1,17 @@ +[{ + "@included": [{ + "@id": "http://manu.sporny.org/about#manu", + "@type": ["http://xmlns.com/foaf/0.1/Person"], + "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], + "http://xmlns.com/foaf/0.1/knows": [ + {"@id": "https://greggkellogg.net/foaf#me"} + ] + }, { + "@id": "https://greggkellogg.net/foaf#me", + "@type": ["http://xmlns.com/foaf/0.1/Person"], + "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}], + "http://xmlns.com/foaf/0.1/knows": [ + {"@id": "http://manu.sporny.org/about#manu"} + ] + }] +}] \ No newline at end of file diff --git a/examples/Describing-disconnected-nodes-with-included-flattened.jsonld b/examples/Describing-disconnected-nodes-with-included-flattened.jsonld new file mode 100644 index 00000000..3cd0e75f --- /dev/null +++ b/examples/Describing-disconnected-nodes-with-included-flattened.jsonld @@ -0,0 +1,15 @@ +[{ + "@id": "http://manu.sporny.org/about#manu", + "@type": ["http://xmlns.com/foaf/0.1/Person"], + "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], + "http://xmlns.com/foaf/0.1/knows": [ + {"@id": "https://greggkellogg.net/foaf#me"} + ] +}, { + "@id": "https://greggkellogg.net/foaf#me", + "@type": ["http://xmlns.com/foaf/0.1/Person"], + "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}], + "http://xmlns.com/foaf/0.1/knows": [ + {"@id": "http://manu.sporny.org/about#manu"} + ] +}] \ No newline at end of file diff --git a/examples/Describing-disconnected-nodes-with-included-statements.table b/examples/Describing-disconnected-nodes-with-included-statements.table new file mode 100644 index 00000000..207d49d3 --- /dev/null +++ b/examples/Describing-disconnected-nodes-with-included-statements.table @@ -0,0 +1,47 @@ + +
Subject Property
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValueValue Type
http://manu.sporny.org/about#manurdf:typefoaf:Person 
http://manu.sporny.org/about#manufoaf:nameManu Sporny 
http://manu.sporny.org/about#manufoaf:knowshttps://greggkellogg.net/foaf#me 
https://greggkellogg.net/foaf#merdf:typefoaf:Person 
https://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg 
https://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu 
diff --git a/examples/Describing-disconnected-nodes-with-included-turtle.ttl b/examples/Describing-disconnected-nodes-with-included-turtle.ttl new file mode 100644 index 00000000..5436fc8b --- /dev/null +++ b/examples/Describing-disconnected-nodes-with-included-turtle.ttl @@ -0,0 +1,7 @@ +@prefix foaf: . + a foaf:Person; + foaf:name "Manu Sporny"; + foaf:knows . + a foaf:Person; + foaf:name "Gregg Kellogg"; + foaf:knows . \ No newline at end of file diff --git a/examples/Embedded-contexts-within-node-objects-original.jsonld b/examples/Embedded-contexts-within-node-objects-compacted.jsonld similarity index 100% rename from examples/Embedded-contexts-within-node-objects-original.jsonld rename to examples/Embedded-contexts-within-node-objects-compacted.jsonld diff --git a/examples/Embedding-JSON-LD-containing-HTML-in-HTML-original.html b/examples/Embedding-JSON-LD-containing-HTML-in-HTML-compacted.html similarity index 100% rename from examples/Embedding-JSON-LD-containing-HTML-in-HTML-original.html rename to examples/Embedding-JSON-LD-containing-HTML-in-HTML-compacted.html diff --git a/examples/Embedding-JSON-LD-in-HTML-original.html b/examples/Embedding-JSON-LD-in-HTML-compacted.html similarity index 100% rename from examples/Embedding-JSON-LD-in-HTML-original.html rename to examples/Embedding-JSON-LD-in-HTML-compacted.html diff --git a/examples/Embedding-Objects-original.jsonld b/examples/Embedding-Objects-compacted.jsonld similarity index 100% rename from examples/Embedding-Objects-original.jsonld rename to examples/Embedding-Objects-compacted.jsonld diff --git a/examples/Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld b/examples/Embedding-a-node-object-as-property-value-of-another-node-object-compacted.jsonld similarity index 100% rename from examples/Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld rename to examples/Embedding-a-node-object-as-property-value-of-another-node-object-compacted.jsonld diff --git a/examples/Example-demonstrating-the-context-sensitivity-for-type-statements-original.table b/examples/Example-demonstrating-the-context-sensitivity-for-type-statements-compacted.table similarity index 80% rename from examples/Example-demonstrating-the-context-sensitivity-for-type-statements-original.table rename to examples/Example-demonstrating-the-context-sensitivity-for-type-statements-compacted.table index 1ebf9ffa..9f3d18a7 100644 --- a/examples/Example-demonstrating-the-context-sensitivity-for-type-statements-original.table +++ b/examples/Example-demonstrating-the-context-sensitivity-for-type-statements-compacted.table @@ -1,5 +1,5 @@ - +
diff --git a/examples/Expanded-term-definition-with-language-and-direction.jsonld b/examples/Expanded-term-definition-with-language-and-direction.jsonld new file mode 100644 index 00000000..5626f00d --- /dev/null +++ b/examples/Expanded-term-definition-with-language-and-direction.jsonld @@ -0,0 +1,14 @@ +{ + "@context": { + "@version": 1.1, + "@language": "ar-EG", + "@direction": "rtl", + "ex": "http://example.com/vocab/", + "publisher": { "@id": "ex:publisher", "@direction": null }, + "title": { "@id": "ex:title" }, + "title_en": { "@id": "ex:title", "@language": "en", "@direction": "ltr" } + }, + "publisher": "مكتبة", + "title": "HTML و CSS: تصميم و إنشاء مواقع الويب", + "title_en": "HTML and CSS: Design and Build Websites" +} \ No newline at end of file diff --git a/examples/Expanded-term-definition-with-type-coercion-original.jsonld b/examples/Expanded-term-definition-with-type-coercion-compacted.jsonld similarity index 100% rename from examples/Expanded-term-definition-with-type-coercion-original.jsonld rename to examples/Expanded-term-definition-with-type-coercion-compacted.jsonld diff --git a/examples/Expanded-term-definition-with-types-original.jsonld b/examples/Expanded-term-definition-with-types-compacted.jsonld similarity index 100% rename from examples/Expanded-term-definition-with-types-original.jsonld rename to examples/Expanded-term-definition-with-types-compacted.jsonld diff --git a/examples/Expanded-value-with-type-original.jsonld b/examples/Expanded-value-with-type-compacted.jsonld similarity index 100% rename from examples/Expanded-value-with-type-original.jsonld rename to examples/Expanded-value-with-type-compacted.jsonld diff --git a/examples/Expansion-using-embedded-and-scoped-contexts-embedding-equivalent-.jsonld b/examples/Expansion-using-embedded-and-scoped-contexts-embedding-equivalent-.jsonld new file mode 100644 index 00000000..ebf5174e --- /dev/null +++ b/examples/Expansion-using-embedded-and-scoped-contexts-embedding-equivalent-.jsonld @@ -0,0 +1,24 @@ +{ + "@context": { + "@vocab": "http://example.com/vocab/", + "property": "http://example.com/vocab/property", + "Type1": "http://example.com/vocab/Type1", + "Type2": "http://example.com/vocab/Type2" + }, + "property": { + "@context": [{ + "term1": "http://example.com/vocab/term1" + }, { + "term2": "http://example.com/vocab/term2" + }, { + "term3": "http://example.com/vocab/term3" + }, { + "term4": "http://example.com/vocab/term4" + }], + "@type": ["Type2", "Type1"], + "term1": "a", + "term2": "b", + "term3": "c", + "term4": "d" + } +} \ No newline at end of file diff --git a/examples/Expansion-using-embedded-and-scoped-contexts.jsonld b/examples/Expansion-using-embedded-and-scoped-contexts.jsonld new file mode 100644 index 00000000..2bd55bec --- /dev/null +++ b/examples/Expansion-using-embedded-and-scoped-contexts.jsonld @@ -0,0 +1,34 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.com/vocab/", + "property": { + "@id": "http://example.com/vocab/property", + "@context": { + "term1": "http://example.com/vocab/term1" + } + }, + "Type1": { + "@id": "http://example.com/vocab/Type1", + "@context": { + "term3": "http://example.com/vocab/term3" + } + }, + "Type2": { + "@id": "http://example.com/vocab/Type2", + "@context": { + "term4": "http://example.com/vocab/term4" + } + } + }, + "property": { + "@context": { + "term2": "http://example.com/vocab/term2" + }, + "@type": ["Type2", "Type1"], + "term1": "a", + "term2": "b", + "term3": "c", + "term4": "d" + } +} \ No newline at end of file diff --git a/examples/Flattened-form-for-included-blocks-flattened.jsonld b/examples/Flattened-form-for-included-blocks-flattened.jsonld new file mode 100644 index 00000000..b4f1a2d8 --- /dev/null +++ b/examples/Flattened-form-for-included-blocks-flattened.jsonld @@ -0,0 +1,30 @@ + [{ + "@id": "http://example.org/base/1", + "@type": ["http://example.org/Thing-with-Items"], + "http://example.org/items": [ + {"@id": "http://example.org/base/2"}, + {"@id": "http://example.org/base/3"} + ] + }, { + "@id": "http://example.org/enum#c6", + "@type": ["http://example.org/Type"], + "http://example.org/label": [{"@value": "Classification 6"}] + }, { + "@id": "http://example.org/enum#s2", + "@type": ["http://example.org/Service"], + "http://example.org/label": [{"@value": "Login Service"}] + }, { + "@id": "http://example.org/base/2", + "http://example.org/classification": [ + {"@id": "http://example.org/enum#c6"} + ], + "http://example.org/service": [ + {"@id": "http://example.org/enum#s2"} + ] + }, { + "@id": "http://example.org/base/3", + "http://example.org/classification": [ + {"@id": "http://example.org/enum#c6"} + ] + } +] \ No newline at end of file diff --git a/examples/Flattened-form-for-included-blocks-statements.table b/examples/Flattened-form-for-included-blocks-statements.table new file mode 100644 index 00000000..b324002c --- /dev/null +++ b/examples/Flattened-form-for-included-blocks-statements.table @@ -0,0 +1,60 @@ + +
Subject Property
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
http://example.org/base/1rdf:typehttp://example.org/Thing-with-Items
http://example.org/base/1http://example.org/itemshttp://example.org/base/2
http://example.org/base/1http://example.org/itemshttp://example.org/base/3
http://example.org/base/2http://example.org/classificationhttp://example.org/enum#c6
http://example.org/base/2http://example.org/servicehttp://example.org/enum#s2
http://example.org/base/3http://example.org/classificationhttp://example.org/enum#c6
http://example.org/enum#c6rdf:typehttp://example.org/Type
http://example.org/enum#c6http://example.org/labelClassification 6
http://example.org/enum#s2rdf:typehttp://example.org/Service
http://example.org/enum#s2http://example.org/labelLogin Service
diff --git a/examples/Flattened-form-for-included-blocks-turtle.ttl b/examples/Flattened-form-for-included-blocks-turtle.ttl new file mode 100644 index 00000000..39f4b400 --- /dev/null +++ b/examples/Flattened-form-for-included-blocks-turtle.ttl @@ -0,0 +1,11 @@ +@prefix ex: . +@prefix enum: . + a ex:Thing-with-Items; + ex:items , . + ex:classification enum:c6; + ex:service enum:s2 . + ex:classification enum:c6 . +enum:c6 a ex:Type; + ex:label "Classification 6" . +enum:s2 a ex:Service; + ex:label "Login Service" . \ No newline at end of file diff --git a/examples/HTML-that-describes-a-book-using-microdata.html b/examples/HTML-that-describes-a-book-using-microdata.html index f50ad42d..7c5bb511 100644 --- a/examples/HTML-that-describes-a-book-using-microdata.html +++ b/examples/HTML-that-describes-a-book-using-microdata.html @@ -2,22 +2,22 @@ itemtype="http://purl.org/vocab/frbr/core#Work" itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
Title
-
Just a Geek
+
Just a Geek
By
-
Wil Wheaton
+
Wil Wheaton
Format
- + Print
- + Ebook
\ No newline at end of file diff --git a/examples/Identifying-a-node-original.jsonld b/examples/Identifying-a-node-compacted.jsonld similarity index 100% rename from examples/Identifying-a-node-original.jsonld rename to examples/Identifying-a-node-compacted.jsonld diff --git a/examples/Identifying-and-making-statements-about-a-graph-original.jsonld b/examples/Identifying-and-making-statements-about-a-graph-compacted.jsonld similarity index 87% rename from examples/Identifying-and-making-statements-about-a-graph-original.jsonld rename to examples/Identifying-and-making-statements-about-a-graph-compacted.jsonld index 3786efcd..e8beca66 100644 --- a/examples/Identifying-and-making-statements-about-a-graph-original.jsonld +++ b/examples/Identifying-and-making-statements-about-a-graph-compacted.jsonld @@ -2,14 +2,14 @@ "@context": { "generatedAt": { "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"} }, "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", + "generatedAt": "2012-04-09T00:00:00", "@graph": [ { "@id": "http://manu.sporny.org/about#manu", diff --git a/examples/Identifying-and-making-statements-about-a-graph-expanded.jsonld b/examples/Identifying-and-making-statements-about-a-graph-expanded.jsonld index 00fa9584..aec0c798 100644 --- a/examples/Identifying-and-making-statements-about-a-graph-expanded.jsonld +++ b/examples/Identifying-and-making-statements-about-a-graph-expanded.jsonld @@ -1,8 +1,8 @@ [{ "@id": "http://example.org/foaf-graph", "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" + "@value": "2012-04-09T00:00:00", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }], "@graph": [{ "@id": "http://manu.sporny.org/about#manu", diff --git a/examples/Identifying-and-making-statements-about-a-graph-statements.table b/examples/Identifying-and-making-statements-about-a-graph-statements.table index b97391ff..b3f18257 100644 --- a/examples/Identifying-and-making-statements-about-a-graph-statements.table +++ b/examples/Identifying-and-making-statements-about-a-graph-statements.table @@ -12,8 +12,8 @@   http://example.org/foaf-graph prov:generatedAtTime -2012-04-09 -xsd:date +2012-04-09T00:00:00 +xsd:dateTime http://example.org/foaf-graph diff --git a/examples/Identifying-and-making-statements-about-a-graph-trig.trig b/examples/Identifying-and-making-statements-about-a-graph-trig.trig index c9e81f72..fe24537f 100644 --- a/examples/Identifying-and-making-statements-about-a-graph-trig.trig +++ b/examples/Identifying-and-making-statements-about-a-graph-trig.trig @@ -2,7 +2,7 @@ @prefix prov: . @prefix rdf: . @prefix xsd: . - prov:generatedAtTime "2012-04-09"^^xsd:date . + prov:generatedAtTime "2012-04-09T00:00:00"^^xsd:dateTime . { a foaf:Person; foaf:name "Manu Sporny"; diff --git a/examples/Implicitly-named-graph-original.jsonld b/examples/Implicitly-named-graph-compacted.jsonld similarity index 100% rename from examples/Implicitly-named-graph-original.jsonld rename to examples/Implicitly-named-graph-compacted.jsonld diff --git a/examples/In-line-context-definition-original.jsonld b/examples/In-line-context-definition-compacted.jsonld similarity index 100% rename from examples/In-line-context-definition-original.jsonld rename to examples/In-line-context-definition-compacted.jsonld diff --git a/examples/Included-Blocks.jsonld b/examples/Included-Blocks.jsonld new file mode 100644 index 00000000..a91e89ab --- /dev/null +++ b/examples/Included-Blocks.jsonld @@ -0,0 +1,27 @@ +{ + "@context": { + "@version": 1.1, + "@vocab": "http://example.org/", + "classification": {"@type": "@vocab"}, + "service": {"@type": "@vocab"} + }, + "@id": "http://example.org/base/1", + "@type": "Thing-with-Items", + "items": [{ + "@id":"http://example.org/base/2", + "classification": "enum#c6", + "service": "enum#s2" + }, { + "@id": "http://example.org/base/3", + "classification": "enum#c6" + }], + "@included": [{ + "@id": "http://example.org/enum#c6", + "@type": "Type", + "label": "Classification 6" + }, { + "@id": "http://example.org/enum#s2", + "@type": "Service", + "label": "Login Service" + }] +} \ No newline at end of file diff --git a/examples/Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld b/examples/Indexing-data-in-JSON-LD-by-node-identifiers-compacted.jsonld similarity index 88% rename from examples/Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld rename to examples/Indexing-data-in-JSON-LD-by-node-identifiers-compacted.jsonld index dc477270..b44e8d03 100644 --- a/examples/Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld +++ b/examples/Indexing-data-in-JSON-LD-by-node-identifiers-compacted.jsonld @@ -1,6 +1,7 @@ { "@context": { "@version": 1.1, + "@base": "http://example.com/posts/", "schema": "http://schema.org/", "name": "schema:name", "body": "schema:articleBody", @@ -14,11 +15,11 @@ "@type": "schema:Blog", "name": "World Financial News", "post": { - "http://example.com/posts/1/en": { + "1/en": { "body": "World commodities were up today with heavy trading of crude oil...", "words": 1539 }, - "http://example.com/posts/1/de": { + "1/de": { "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", "words": 1204 } diff --git a/examples/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld b/examples/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-compacted.jsonld similarity index 100% rename from examples/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld rename to examples/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-compacted.jsonld diff --git a/examples/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld b/examples/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-compacted.jsonld similarity index 100% rename from examples/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld rename to examples/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-compacted.jsonld diff --git a/examples/Indexing-data-in-JSON-LD-by-type-original.jsonld b/examples/Indexing-data-in-JSON-LD-by-type-compacted.jsonld similarity index 100% rename from examples/Indexing-data-in-JSON-LD-by-type-original.jsonld rename to examples/Indexing-data-in-JSON-LD-by-type-compacted.jsonld diff --git a/examples/Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld b/examples/Indexing-data-in-JSON-LD-by-type-using-none-compacted.jsonld similarity index 100% rename from examples/Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld rename to examples/Indexing-data-in-JSON-LD-by-type-using-none-compacted.jsonld diff --git a/examples/Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld b/examples/Indexing-data-in-JSON-LD-by-type-with-set-representation-compacted.jsonld similarity index 100% rename from examples/Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld rename to examples/Indexing-data-in-JSON-LD-by-type-with-set-representation-compacted.jsonld diff --git a/examples/Indexing-data-in-JSON-LD-compacted.jsonld b/examples/Indexing-data-in-JSON-LD-compacted.jsonld new file mode 100644 index 00000000..0dfe01a3 --- /dev/null +++ b/examples/Indexing-data-in-JSON-LD-compacted.jsonld @@ -0,0 +1,27 @@ +{ + "@context": { + "schema": "http://schema.org/", + "name": "schema:name", + "body": "schema:articleBody", + "athletes": { + "@id": "schema:athlete", + "@container": "@index" + }, + "position": "schema:jobTitle" + }, + "@id": "http://example.com/", + "@type": "schema:SportsTeam", + "name": "San Franciso Giants", + "athletes": { + "catcher": { + "@type": "schema:Person", + "name": "Buster Posey", + "position": "Catcher" + }, + "pitcher": { + "@type": "schema:Person", + "name": "Madison Bumgarner", + "position": "Starting Pitcher" + } + } +} \ No newline at end of file diff --git a/examples/Indexing-data-in-JSON-LD-expanded.jsonld b/examples/Indexing-data-in-JSON-LD-expanded.jsonld index f57e959e..5e643982 100644 --- a/examples/Indexing-data-in-JSON-LD-expanded.jsonld +++ b/examples/Indexing-data-in-JSON-LD-expanded.jsonld @@ -1,22 +1,17 @@ [{ "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [ - {"@value": 1539} - ], - "@index": "en" + "@type": ["http://schema.org/SportsTeam"], + "http://schema.org/name": [{"@value": "San Franciso Giants"}], + "http://schema.org/athlete": [{ + "@type": ["http://schema.org/Person"], + "http://schema.org/name": [{"@value": "Buster Posey"}], + "http://schema.org/jobTitle": [{"@value": "Catcher"}], + "@index": "catcher" }, { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}], - "@index": "de" - }] + "@type": ["http://schema.org/Person"], + "http://schema.org/name": [{"@value": "Madison Bumgarner"}], + "http://schema.org/jobTitle": [{"@value": "Starting Pitcher"}], + "@index": "pitcher" + } + ] }] \ No newline at end of file diff --git a/examples/Indexing-data-in-JSON-LD-original.jsonld b/examples/Indexing-data-in-JSON-LD-original.jsonld deleted file mode 100644 index fa43a8c5..00000000 --- a/examples/Indexing-data-in-JSON-LD-original.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@index" - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - } - } -} \ No newline at end of file diff --git a/examples/Indexing-data-in-JSON-LD-statements.table b/examples/Indexing-data-in-JSON-LD-statements.table index 4f29da57..db294fe2 100644 --- a/examples/Indexing-data-in-JSON-LD-statements.table +++ b/examples/Indexing-data-in-JSON-LD-statements.table @@ -7,53 +7,55 @@ Value Type - - http://example.com/ - rdf:type - schema:Blog - - - - http://example.com/ - schema:name - World Financial News - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/de - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/en - - - - http://example.com/posts/1/de - schema:articleBody - Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - - - - http://example.com/posts/1/de - schema:wordCount - 1204 - xsd:integer - - - http://example.com/posts/1/en - schema:articleBody - World commodities were up today with heavy trading of crude oil... - - - - http://example.com/posts/1/en - schema:wordCount - 1539 - xsd:integer - + +http://example.com/ +rdf:type +schema:SportsTeam + + +http://example.com/ +schema:name +San Franciso Giants + + +_:b0 +rdf:type +schema:Person + + +_:b0 +schema:name +Buster Posey + + +_:b0 +schema:jobTitle +Catcher + + +http://example.com/ +schema:athlete +_:b0 + + +_:b1 +rdf:type +schema:Person + + +_:b1 +schema:name +Madison Bumgarner + + +_:b1 +schema:jobTitle +Starting Pitcher + + +http://example.com/ +schema:athlete +_:b1 + diff --git a/examples/Indexing-data-in-JSON-LD-turtle.ttl b/examples/Indexing-data-in-JSON-LD-turtle.ttl index 3a38ec31..5bddf805 100644 --- a/examples/Indexing-data-in-JSON-LD-turtle.ttl +++ b/examples/Indexing-data-in-JSON-LD-turtle.ttl @@ -1,14 +1,13 @@ @prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - ; - schema:name "World Financial News" . - - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . \ No newline at end of file + a schema:SportsTeam; + schema:name "San Franciso Giants"; + schema:athlete [ + a schema:Person; + schema:jobTitle "Catcher"; + schema:name "Buster Posey" + ], [ + a schema:Person; + schema:jobTitle "Starting Pitcher"; + schema:name "Madison Bumgarner" + ] + . \ No newline at end of file diff --git a/examples/Indexing-data-using-none-compacted.jsonld b/examples/Indexing-data-using-none-compacted.jsonld new file mode 100644 index 00000000..575c5b3f --- /dev/null +++ b/examples/Indexing-data-using-none-compacted.jsonld @@ -0,0 +1,32 @@ +{ + "@context": { + "@version": 1.1, + "schema": "http://schema.org/", + "name": "schema:name", + "body": "schema:articleBody", + "athletes": { + "@id": "schema:athlete", + "@container": "@index" + }, + "position": "schema:jobTitle" + }, + "@id": "http://example.com/", + "@type": "schema:SportsTeam", + "name": "San Franciso Giants", + "athletes": { + "catcher": { + "@type": "schema:Person", + "name": "Buster Posey", + "position": "Catcher" + }, + "pitcher": { + "@type": "schema:Person", + "name": "Madison Bumgarner", + "position": "Starting Pitcher" + }, + "@none": { + "name": "Lou Seal", + "position": "Mascot" + } + } +} \ No newline at end of file diff --git a/examples/Indexing-data-using-none-expanded.jsonld b/examples/Indexing-data-using-none-expanded.jsonld index 66c6c46b..6a8327ff 100644 --- a/examples/Indexing-data-using-none-expanded.jsonld +++ b/examples/Indexing-data-using-none-expanded.jsonld @@ -1,32 +1,20 @@ [{ "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [ - {"@value": "World Financial News"} - ], - "http://schema.org/blogPost": [ - { - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [{"@value": 1539}], - "@index": "en" - }, - { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}], - "@index": "de" - }, - { - "@id": "http://example.com/posts/1/no-language", - "http://schema.org/articleBody": [ - {"@value": "Unindexed description"} - ], - "http://schema.org/wordCount": [{"@value": 20}] - } + "@type": ["http://schema.org/SportsTeam"], + "http://schema.org/name": [{"@value": "San Franciso Giants"}], + "http://schema.org/athlete": [{ + "@type": ["http://schema.org/Person"], + "http://schema.org/name": [{"@value": "Buster Posey"}], + "http://schema.org/jobTitle": [{"@value": "Catcher"}], + "@index": "catcher" + }, { + "@type": ["http://schema.org/Person"], + "http://schema.org/name": [{"@value": "Madison Bumgarner"}], + "http://schema.org/jobTitle": [{"@value": "Starting Pitcher"}], + "@index": "pitcher" + }, { + "http://schema.org/name": [{"@value": "Lou Seal"}], + "http://schema.org/jobTitle": [{"@value": "Mascot"}] + } ] }] \ No newline at end of file diff --git a/examples/Indexing-data-using-none-original.jsonld b/examples/Indexing-data-using-none-original.jsonld deleted file mode 100644 index 628a1843..00000000 --- a/examples/Indexing-data-using-none-original.jsonld +++ /dev/null @@ -1,33 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@index" - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - }, - "@none": { - "@id": "http://example.com/posts/1/no-language", - "body": "Unindexed description", - "words": 20 - } - } -} \ No newline at end of file diff --git a/examples/Indexing-data-using-none-statements.table b/examples/Indexing-data-using-none-statements.table index 3323a5e6..f2035028 100644 --- a/examples/Indexing-data-using-none-statements.table +++ b/examples/Indexing-data-using-none-statements.table @@ -7,71 +7,70 @@ Value Type - - http://example.com/ - rdf:type - schema:Blog - - - - http://example.com/ - schema:name - World Financial News - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/de - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/en - - - - http://example.com/ - schema:blogPost - http://example.com/posts/1/no-language - - - - http://example.com/posts/1/de - schema:articleBody - Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - - - - http://example.com/posts/1/de - schema:wordCount - 1204 - xsd:integer - - - http://example.com/posts/1/en - schema:articleBody - World commodities were up today with heavy trading of crude oil... - - - - http://example.com/posts/1/en - schema:wordCount - 1539 - xsd:integer - - - http://example.com/posts/1/no-language - schema:articleBody - Unindexed description - - - - http://example.com/posts/1/no-language - schema:wordCount - 20 - xsd:integer - + +http://example.com/ +rdf:type +schema:SportsTeam + + +http://example.com/ +schema:name +San Franciso Giants + + +_:b0 +rdf:type +schema:Person + + +_:b0 +schema:name +Buster Posey + + +_:b0 +schema:jobTitle +Catcher + + +http://example.com/ +schema:athlete +_:b0 + + +_:b1 +rdf:type +schema:Person + + +_:b1 +schema:name +Madison Bumgarner + + +_:b1 +schema:jobTitle +Starting Pitcher + + +http://example.com/ +schema:athlete +_:b1 + + +_:b2 +schema:name +Lou Seal + + +_:b2 +schema:jobTitle +Mascot + + +http://example.com/ +schema:athlete +_:b2 + diff --git a/examples/Indexing-data-using-none-turtle.ttl b/examples/Indexing-data-using-none-turtle.ttl index 24f25323..09adadd1 100644 --- a/examples/Indexing-data-using-none-turtle.ttl +++ b/examples/Indexing-data-using-none-turtle.ttl @@ -1,19 +1,16 @@ @prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - , - ; - schema:name "World Financial News" . - - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . - - schema:articleBody - "Unindexed description"; - schema:wordCount 20 . \ No newline at end of file + a schema:SportsTeam; + schema:name "San Franciso Giants"; + schema:athlete [ + a schema:Person; + schema:jobTitle "Catcher"; + schema:name "Buster Posey" + ], [ + a schema:Person; + schema:jobTitle "Starting Pitcher"; + schema:name "Madison Bumgarner" + ], [ + schema:jobTitle "Mascot"; + schema:name "Lou Seal" + ] + . \ No newline at end of file diff --git a/examples/Indexing-graph-data-in-JSON-LD-original.jsonld b/examples/Indexing-graph-data-in-JSON-LD-compacted.jsonld similarity index 100% rename from examples/Indexing-graph-data-in-JSON-LD-original.jsonld rename to examples/Indexing-graph-data-in-JSON-LD-compacted.jsonld diff --git a/examples/Indexing-graphs-using-none-for-no-index-original.jsonld b/examples/Indexing-graphs-using-none-for-no-index-compacted.jsonld similarity index 100% rename from examples/Indexing-graphs-using-none-for-no-index-original.jsonld rename to examples/Indexing-graphs-using-none-for-no-index-compacted.jsonld diff --git a/examples/Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld b/examples/Indexing-languaged-tagged-strings-in-JSON-LD-compacted.jsonld similarity index 100% rename from examples/Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld rename to examples/Indexing-languaged-tagged-strings-in-JSON-LD-compacted.jsonld diff --git a/examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld b/examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-compacted.jsonld similarity index 100% rename from examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld rename to examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-compacted.jsonld diff --git a/examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table b/examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table index 13c25fd0..5dc05438 100644 --- a/examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table +++ b/examples/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table @@ -16,13 +16,13 @@ http://example.com/queen http://example.com/vocab/label -Die Königin +Die Königin de http://example.com/queen http://example.com/vocab/label -Ihre Majestät +Ihre Majestät de diff --git a/examples/Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld b/examples/Indexing-languaged-tagged-strings-using-none-for-no-language-compacted.jsonld similarity index 100% rename from examples/Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld rename to examples/Indexing-languaged-tagged-strings-using-none-for-no-language-compacted.jsonld diff --git a/examples/JSON-Literal-original.jsonld b/examples/JSON-Literal-compacted.jsonld similarity index 100% rename from examples/JSON-Literal-original.jsonld rename to examples/JSON-Literal-compacted.jsonld diff --git a/examples/JSON-Literal-statements.table b/examples/JSON-Literal-statements.table index 8a0b6212..57a0db4d 100644 --- a/examples/JSON-Literal-statements.table +++ b/examples/JSON-Literal-statements.table @@ -1,5 +1,5 @@ - +
diff --git a/examples/Marking-a-context-to-not-propagate-compacted.jsonld b/examples/Marking-a-context-to-not-propagate-compacted.jsonld new file mode 100644 index 00000000..dfb80ae0 --- /dev/null +++ b/examples/Marking-a-context-to-not-propagate-compacted.jsonld @@ -0,0 +1,17 @@ +{ + "@context": { + "@version": 1.1, + "term": { + "@id": "http://example.org/original", + "@context": { + "@propagate": false, + "term": "http://example.org/non-propagated-term" + } + } + }, + "term": { + "term": { + "term": "This term is from the first context" + } + } +} \ No newline at end of file diff --git a/examples/Marking-a-context-to-not-propagate-expanded.jsonld b/examples/Marking-a-context-to-not-propagate-expanded.jsonld new file mode 100644 index 00000000..edaa3af1 --- /dev/null +++ b/examples/Marking-a-context-to-not-propagate-expanded.jsonld @@ -0,0 +1,9 @@ +[{ + "http://example.org/original": [{ + "http://example.org/non-propagated-term": [{ + "http://example.org/original": [ + {"@value": "This term is from the first context"} + ] + }] + }] +}] \ No newline at end of file diff --git a/examples/Marking-a-context-to-not-propagate-statements.table b/examples/Marking-a-context-to-not-propagate-statements.table new file mode 100644 index 00000000..e0eebf4c --- /dev/null +++ b/examples/Marking-a-context-to-not-propagate-statements.table @@ -0,0 +1,25 @@ + +
Subject Property
+ + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
_:b2http://example.org/originalThis term is from the first context
_:b1http://example.org/non-propagated-term_:b2
_:b0http://example.org/original_:b1
diff --git a/examples/Marking-a-context-to-not-propagate-turtle.ttl b/examples/Marking-a-context-to-not-propagate-turtle.ttl new file mode 100644 index 00000000..b9f7a521 --- /dev/null +++ b/examples/Marking-a-context-to-not-propagate-turtle.ttl @@ -0,0 +1,8 @@ +@prefix ex: . +[ + ex:original [ + ex:non-propagated-term [ + ex:original "This term is from the first context" + ] + ] +] . \ No newline at end of file diff --git a/examples/Multiple-array-values-of-different-types-original.jsonld b/examples/Multiple-array-values-of-different-types-compacted.jsonld similarity index 75% rename from examples/Multiple-array-values-of-different-types-original.jsonld rename to examples/Multiple-array-values-of-different-types-compacted.jsonld index cca5ae0b..31ba8b31 100644 --- a/examples/Multiple-array-values-of-different-types-original.jsonld +++ b/examples/Multiple-array-values-of-different-types-compacted.jsonld @@ -1,7 +1,7 @@ { - "@context": {"schema": "http://schema.org/"}, + "@context": {"ex": "http://example.org/"}, "@id": "http://example.org/people#michael", - "schema:name": [ + "ex:name": [ "Michael", {"@value": "Mike"}, {"@value": "Miguel", "@language": "es"}, diff --git a/examples/Multiple-array-values-of-different-types-expanded.jsonld b/examples/Multiple-array-values-of-different-types-expanded.jsonld index 764c8ce1..7bc5a9db 100644 --- a/examples/Multiple-array-values-of-different-types-expanded.jsonld +++ b/examples/Multiple-array-values-of-different-types-expanded.jsonld @@ -1,6 +1,6 @@ [{ "@id": "http://example.org/people#michael", - "http://schema.org/name": [ + "http://example.org/name": [ {"@value": "Michael"}, {"@value": "Mike"}, {"@value": "Miguel", "@language": "es"}, diff --git a/examples/Multiple-array-values-of-different-types-statements.table b/examples/Multiple-array-values-of-different-types-statements.table index 2e9edc51..cde36299 100644 --- a/examples/Multiple-array-values-of-different-types-statements.table +++ b/examples/Multiple-array-values-of-different-types-statements.table @@ -10,35 +10,35 @@ http://example.org/people#michael - schema:name + http://example.org/name Michael http://example.org/people#michael - schema:name + http://example.org/name Mike http://example.org/people#michael - schema:name + http://example.org/name Miguel es http://example.org/people#michael - schema:name + http://example.org/name https://www.wikidata.org/wiki/Q4927524 http://example.org/people#michael - schema:name + http://example.org/name 42   xsd:integer diff --git a/examples/Multiple-array-values-of-different-types-turtle.ttl b/examples/Multiple-array-values-of-different-types-turtle.ttl index 33949c1f..a00feb2b 100644 --- a/examples/Multiple-array-values-of-different-types-turtle.ttl +++ b/examples/Multiple-array-values-of-different-types-turtle.ttl @@ -1,5 +1,5 @@ -@prefix schema: . - schema:name +@prefix ex: . + ex:name "Michael", "Mike", "Miguel"@es, diff --git a/examples/Multiple-values-with-no-inherent-order-original.jsonld b/examples/Multiple-values-with-no-inherent-order-compacted.jsonld similarity index 100% rename from examples/Multiple-values-with-no-inherent-order-original.jsonld rename to examples/Multiple-values-with-no-inherent-order-compacted.jsonld diff --git a/examples/Nested-properties-original.jsonld b/examples/Nested-properties-compacted.jsonld similarity index 100% rename from examples/Nested-properties-original.jsonld rename to examples/Nested-properties-compacted.jsonld diff --git a/examples/Nested-properties-folded-into-containing-object-original.jsonld b/examples/Nested-properties-folded-into-containing-object-compacted.jsonld similarity index 100% rename from examples/Nested-properties-folded-into-containing-object-original.jsonld rename to examples/Nested-properties-folded-into-containing-object-compacted.jsonld diff --git a/examples/Overriding-default-language-and-default-base-direction-using-an-expanded-value.jsonld b/examples/Overriding-default-language-and-default-base-direction-using-an-expanded-value.jsonld new file mode 100644 index 00000000..61c108ef --- /dev/null +++ b/examples/Overriding-default-language-and-default-base-direction-using-an-expanded-value.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "@language": "ar-EG", + "@direction": "rtl" + }, + "title": "HTML و CSS: تصميم و إنشاء مواقع الويب", + "author": { + "@value": "Jon Duckett", + "@language": "en", + "@direction": null + } +} \ No newline at end of file diff --git a/examples/Overriding-permitted-if-both-definitions-are-identical-statements.table b/examples/Overriding-permitted-if-both-definitions-are-identical-statements.table new file mode 100644 index 00000000..a1cd499f --- /dev/null +++ b/examples/Overriding-permitted-if-both-definitions-are-identical-statements.table @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
https://digitalbazaar.com/rdf:typehttp://example.org/orga/Organization
https://digitalbazaar.com/http://example.org/orga/memberhttp://manu.sporny.org/about#manu
http://manu.sporny.org/about#manurdf:typeschema:Person
http://manu.sporny.org/about#manuschema:nameManu Sporny
diff --git a/examples/Prefix-expansion-original.jsonld b/examples/Prefix-expansion-compacted.jsonld similarity index 100% rename from examples/Prefix-expansion-original.jsonld rename to examples/Prefix-expansion-compacted.jsonld diff --git a/examples/Property-based-data-indexing-compacted.jsonld b/examples/Property-based-data-indexing-compacted.jsonld new file mode 100644 index 00000000..2c7b13a5 --- /dev/null +++ b/examples/Property-based-data-indexing-compacted.jsonld @@ -0,0 +1,26 @@ +{ + "@context": { + "@version": 1.1, + "schema": "http://schema.org/", + "name": "schema:name", + "body": "schema:articleBody", + "athletes": { + "@id": "schema:athlete", + "@container": "@index", + "@index": "schema:jobTitle" + } + }, + "@id": "http://example.com/", + "@type": "schema:SportsTeam", + "name": "San Franciso Giants", + "athletes": { + "Catcher": { + "@type": "schema:Person", + "name": "Buster Posey" + }, + "Starting Pitcher": { + "@type": "schema:Person", + "name": "Madison Bumgarner" + } + } +} \ No newline at end of file diff --git a/examples/Property-based-data-indexing-original.jsonld b/examples/Property-based-data-indexing-original.jsonld deleted file mode 100644 index cff3d861..00000000 --- a/examples/Property-based-data-indexing-original.jsonld +++ /dev/null @@ -1,30 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "dc11": "http://purl.org/dc/elements/1.1/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@index", - "@index": "dc11:language" - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - } - } -} \ No newline at end of file diff --git a/examples/Referencing-Objects-on-the-Web-original.jsonld b/examples/Referencing-Objects-on-the-Web-compacted.jsonld similarity index 100% rename from examples/Referencing-Objects-on-the-Web-original.jsonld rename to examples/Referencing-Objects-on-the-Web-compacted.jsonld diff --git a/examples/Referencing-a-Context-in-an-HTML-document-expanded.jsonld b/examples/Referencing-a-Context-in-an-HTML-document-expanded.jsonld deleted file mode 100644 index 9fabe3e7..00000000 --- a/examples/Referencing-a-Context-in-an-HTML-document-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[{ - "@id": "http://dbpedia.org/resource/John_Lennon", - "http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}], - "http://schema.org/birthDate": [ - {"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"} - ], - "http://schema.org/spouse": [ - {"@id": "http://dbpedia.org/resource/Cynthia_Lennon"} - ] -}] \ No newline at end of file diff --git a/examples/Referencing-a-Context-in-an-HTML-document-original.jsonld b/examples/Referencing-a-Context-in-an-HTML-document-original.jsonld deleted file mode 100644 index f67c945f..00000000 --- a/examples/Referencing-a-Context-in-an-HTML-document-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": "https://json-ld.org/contexts/person.html", - "@id": "http://dbpedia.org/resource/John_Lennon", - "name": "John Lennon", - "born": "1940-10-09", - "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" -} \ No newline at end of file diff --git a/examples/Referencing-a-Context-in-an-HTML-document-statements.table b/examples/Referencing-a-Context-in-an-HTML-document-statements.table deleted file mode 100644 index d4586ec6..00000000 --- a/examples/Referencing-a-Context-in-an-HTML-document-statements.table +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://dbpedia.org/resource/John_Lennonfoaf:nameJohn Lennon 
http://dbpedia.org/resource/John_Lennonschema:birthDate1940-10-09xsd:date
http://dbpedia.org/resource/John_Lennonschema:spousehttp://dbpedia.org/resource/Cynthia_Lennon 
diff --git a/examples/Referencing-a-Context-in-an-HTML-document-turtle.ttl b/examples/Referencing-a-Context-in-an-HTML-document-turtle.ttl deleted file mode 100644 index 58774790..00000000 --- a/examples/Referencing-a-Context-in-an-HTML-document-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix schema: . -@prefix xsd: . - foaf:name "John Lennon"; - schema:birthDate "1940-10-09"^^xsd:date; - schema:spouse . \ No newline at end of file diff --git a/examples/Referencing-a-JSON-LD-context-original.jsonld b/examples/Referencing-a-JSON-LD-context-compacted.jsonld similarity index 100% rename from examples/Referencing-a-JSON-LD-context-original.jsonld rename to examples/Referencing-a-JSON-LD-context-compacted.jsonld diff --git a/examples/Referencing-an-unidentified-node-original.jsonld b/examples/Referencing-an-unidentified-node-compacted.jsonld similarity index 100% rename from examples/Referencing-an-unidentified-node-original.jsonld rename to examples/Referencing-an-unidentified-node-compacted.jsonld diff --git a/examples/Referencing-named-graphs-using-an-id-map-original.jsonld b/examples/Referencing-named-graphs-using-an-id-map-compacted.jsonld similarity index 82% rename from examples/Referencing-named-graphs-using-an-id-map-original.jsonld rename to examples/Referencing-named-graphs-using-an-id-map-compacted.jsonld index 49023c23..b9363781 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-original.jsonld +++ b/examples/Referencing-named-graphs-using-an-id-map-compacted.jsonld @@ -3,7 +3,7 @@ "@version": 1.1, "generatedAt": { "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", @@ -17,15 +17,15 @@ } }, "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", + "generatedAt": "2012-04-09T00:00:00", "graphMap": { - "http://manu.sporny.org/about#manu": { + "http://manu.sporny.org/about": { "@id": "http://manu.sporny.org/about#manu", "@type": "Person", "name": "Manu Sporny", "knows": "https://greggkellogg.net/foaf#me" }, - "https://greggkellogg.net/foaf#me": { + "https://greggkellogg.net/foaf": { "@id": "https://greggkellogg.net/foaf#me", "@type": "Person", "name": "Gregg Kellogg", diff --git a/examples/Referencing-named-graphs-using-an-id-map-expanded.jsonld b/examples/Referencing-named-graphs-using-an-id-map-expanded.jsonld index a128d222..76d811ad 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-expanded.jsonld +++ b/examples/Referencing-named-graphs-using-an-id-map-expanded.jsonld @@ -1,8 +1,8 @@ [{ "@id": "http://example.org/foaf-graph", "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" + "@value": "2012-04-09T00:00:00", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }], "http://example.org/graphMap": [{ "@graph": [{ @@ -15,7 +15,7 @@ {"@value": "Manu Sporny"} ] }], - "@id": "http://manu.sporny.org/about#manu" + "@id": "http://manu.sporny.org/about" }, { "@graph": [{ "@id": "https://greggkellogg.net/foaf#me", @@ -27,6 +27,6 @@ {"@value": "Gregg Kellogg"} ] }], - "@id": "https://greggkellogg.net/foaf#me" + "@id": "https://greggkellogg.net/foaf" }] }] \ No newline at end of file diff --git a/examples/Referencing-named-graphs-using-an-id-map-statements.table b/examples/Referencing-named-graphs-using-an-id-map-statements.table index 4d593191..545319fd 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-statements.table +++ b/examples/Referencing-named-graphs-using-an-id-map-statements.table @@ -12,60 +12,60 @@   http://example.org/foaf-graph http://example.org/graphMap -https://greggkellogg.net/foaf#me +https://greggkellogg.net/foaf     http://example.org/foaf-graph http://example.org/graphMap -http://manu.sporny.org/about#manu +http://manu.sporny.org/about     http://example.org/foaf-graph prov:generatedAtTime -2012-04-09 -xsd:date +2012-04-09T00:00:00 +xsd:dateTime -https://greggkellogg.net/foaf#me +https://greggkellogg.net/foaf https://greggkellogg.net/foaf#me rdf:type foaf:Person   -https://greggkellogg.net/foaf#me +https://greggkellogg.net/foaf https://greggkellogg.net/foaf#me foaf:name Gregg Kellogg   -https://greggkellogg.net/foaf#me +https://greggkellogg.net/foaf https://greggkellogg.net/foaf#me foaf:knows http://manu.sporny.org/about#manu   -http://manu.sporny.org/about#manu +http://manu.sporny.org/about http://manu.sporny.org/about#manu rdf:type foaf:Person   -http://manu.sporny.org/about#manu +http://manu.sporny.org/about http://manu.sporny.org/about#manu foaf:name Manu Sporny   -http://manu.sporny.org/about#manu +http://manu.sporny.org/about http://manu.sporny.org/about#manu foaf:knows https://greggkellogg.net/foaf#me diff --git a/examples/Referencing-named-graphs-using-an-id-map-trig.trig b/examples/Referencing-named-graphs-using-an-id-map-trig.trig index f2d11d87..2f357b82 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-trig.trig +++ b/examples/Referencing-named-graphs-using-an-id-map-trig.trig @@ -4,15 +4,15 @@ @prefix xsd: . - , - ; - prov:generatedAtTime "2012-04-09"^^xsd:date . - { + , + ; + prov:generatedAtTime "2012-04-09T00:00:00"^^xsd:dateTime . + { a foaf:Person; foaf:knows ; foaf:name "Gregg Kellogg" . } - { + { a foaf:Person; foaf:knows ; foaf:name "Manu Sporny" . diff --git a/examples/Referencing-named-graphs-using-an-id-map-with-none-original.jsonld b/examples/Referencing-named-graphs-using-an-id-map-with-none-compacted.jsonld similarity index 89% rename from examples/Referencing-named-graphs-using-an-id-map-with-none-original.jsonld rename to examples/Referencing-named-graphs-using-an-id-map-with-none-compacted.jsonld index 2f2bad69..3669e7e8 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-with-none-original.jsonld +++ b/examples/Referencing-named-graphs-using-an-id-map-with-none-compacted.jsonld @@ -3,7 +3,7 @@ "@version": 1.1, "generatedAt": { "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", @@ -14,7 +14,7 @@ } }, "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", + "generatedAt": "2012-04-09T00:00:00", "graphMap": { "@none": [{ "@id": "http://manu.sporny.org/about#manu", diff --git a/examples/Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld b/examples/Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld index 3bc8fef0..65012332 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld +++ b/examples/Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld @@ -1,8 +1,8 @@ [{ "@id": "http://example.org/foaf-graph", "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" + "@value": "2012-04-09T00:00:00", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }], "http://example.org/graphMap": [{ "@graph": [{ diff --git a/examples/Referencing-named-graphs-using-an-id-map-with-none-statements.table b/examples/Referencing-named-graphs-using-an-id-map-with-none-statements.table index 15719108..c6984762 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-with-none-statements.table +++ b/examples/Referencing-named-graphs-using-an-id-map-with-none-statements.table @@ -12,8 +12,8 @@   http://example.org/foaf-graph prov:generatedAtTime -2012-04-09 -xsd:date +2012-04-09T00:00:00 +xsd:dateTime   diff --git a/examples/Referencing-named-graphs-using-an-id-map-with-none-trig.trig b/examples/Referencing-named-graphs-using-an-id-map-with-none-trig.trig index 83e24d8c..d7716918 100644 --- a/examples/Referencing-named-graphs-using-an-id-map-with-none-trig.trig +++ b/examples/Referencing-named-graphs-using-an-id-map-with-none-trig.trig @@ -3,7 +3,7 @@ @prefix rdf: . @prefix xsd: . _:b0, _:b1; - prov:generatedAtTime "2012-04-09"^^xsd:date . + prov:generatedAtTime "2012-04-09T00:00:00"^^xsd:dateTime . _:b0 { a foaf:Person; foaf:name "Manu Sporny"; diff --git a/examples/Referencing-node-objects-original.jsonld b/examples/Referencing-node-objects-compacted.jsonld similarity index 100% rename from examples/Referencing-node-objects-original.jsonld rename to examples/Referencing-node-objects-compacted.jsonld diff --git a/examples/Result-of-sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.jsonld b/examples/Result-of-sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.jsonld new file mode 100644 index 00000000..5b03349d --- /dev/null +++ b/examples/Result-of-sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.jsonld @@ -0,0 +1,16 @@ +{ + "@context": { + "@version": 1.1, + "MyType": { + "@id": "http://example.com/vocab#MyType", + "@context": { + "@version": 1.1, + "Type1": "http://example.com/vocab/Type1", + "Type2": "http://example.com/vocab/Type2", + "term1": "http://example.com/vocab#term1", + "term2": "http://example.com/vocab#term2", + "@propagate": true + } + } + } +} \ No newline at end of file diff --git a/examples/Result-of-sourcing-a-context-to-modify-vocab-and-a-term-definition.jsonld b/examples/Result-of-sourcing-a-context-to-modify-vocab-and-a-term-definition.jsonld new file mode 100644 index 00000000..6ecf9b1f --- /dev/null +++ b/examples/Result-of-sourcing-a-context-to-modify-vocab-and-a-term-definition.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "Type1": "http://example.com/vocab/Type1", + "Type2": "http://example.com/vocab/Type2", + "term1": { + "@id": "http://example.org/vocab#term1", + "@type": "http://www.w3.org/2001/XMLSchema#integer" + }, + "term2": "http://example.com/vocab#term2", + "@vocab": "http://example.org/vocab#" + } +} \ No newline at end of file diff --git a/examples/Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld b/examples/Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld index bf62038f..cfcc147e 100644 --- a/examples/Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld +++ b/examples/Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld @@ -2,8 +2,8 @@ { "@id": "http://purl.oreilly.com/works/45U8QJGZSQKDH8N", "@type": "http://purl.org/vocab/frbr/core#Work", - "http://purl.org/dc/terms/title": "Just a Geek", - "http://purl.org/dc/terms/creator": "Wil Wheaton", + "http://purl.org/dc/elements/1.1/title": "Just a Geek", + "http://purl.org/dc/elements/1.1/creator": "Wil Wheaton", "http://purl.org/vocab/frbr/core#realization": [ {"@id": "http://purl.oreilly.com/products/9780596007683.BOOK"}, @@ -12,10 +12,10 @@ }, { "@id": "http://purl.oreilly.com/products/9780596007683.BOOK", "@type": "http://purl.org/vocab/frbr/core#Expression", - "http://purl.org/dc/terms/type": {"@id": "http://purl.oreilly.com/product-types/BOOK"} + "http://purl.org/dc/elements/1.1/type": {"@id": "http://purl.oreilly.com/product-types/BOOK"} }, { "@id": "http://purl.oreilly.com/products/9780596802189.EBOOK", "@type": "http://purl.org/vocab/frbr/core#Expression", - "http://purl.org/dc/terms/type": {"@id": "http://purl.oreilly.com/product-types/EBOOK"} + "http://purl.org/dc/elements/1.1/type": {"@id": "http://purl.oreilly.com/product-types/EBOOK"} } ] \ No newline at end of file diff --git a/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-compacted.jsonld b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-compacted.jsonld new file mode 100644 index 00000000..fb809dab --- /dev/null +++ b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-compacted.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "title": "http://example.org/title", + "publisher": "http://example.org/publisher", + "@language": "ar-EG", + "@direction": "rtl" + }, + "title": "HTML و CSS: تصميم و إنشاء مواقع الويب", + "publisher": "مكتبة" +} \ No newline at end of file diff --git a/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-expanded.jsonld b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-expanded.jsonld new file mode 100644 index 00000000..0092c7ab --- /dev/null +++ b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "http://example.org/title": [{"@value": "HTML و CSS: تصميم و إنشاء مواقع الويب", "@language": "ar-eg", "@direction": "rtl"}], + "http://example.org/publisher": [{"@value": "مكتبة", "@language": "ar-eg", "@direction": "rtl"}] +}] \ No newline at end of file diff --git a/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-statements.table b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-statements.table new file mode 100644 index 00000000..a3e58634 --- /dev/null +++ b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-statements.table @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValueLanguageDirection
_:b0http://example.org/titleHTML و CSS: تصميم و إنشاء مواقع الويبar-egrtl
_:b0http://example.org/publisherمكتبةar-egrtl
diff --git a/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-turtle.ttl b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-turtle.ttl new file mode 100644 index 00000000..b590f46e --- /dev/null +++ b/examples/Setting-the-default-base-direction-of-a-JSON-LD-document-turtle.ttl @@ -0,0 +1,6 @@ +@prefix ex: . +# Note that this version drops the base direction. +[ + ex:title "HTML و CSS: تصميم و إنشاء مواقع الويب"@ar-eg; + ex:publisher "مكتبة"@ar-eg +] . \ No newline at end of file diff --git a/examples/Setting-the-default-language-of-a-JSON-LD-document-original.jsonld b/examples/Setting-the-default-language-of-a-JSON-LD-document-compacted.jsonld similarity index 100% rename from examples/Setting-the-default-language-of-a-JSON-LD-document-original.jsonld rename to examples/Setting-the-default-language-of-a-JSON-LD-document-compacted.jsonld diff --git a/examples/Setting-the-default-language-of-a-JSON-LD-document-statements.table b/examples/Setting-the-default-language-of-a-JSON-LD-document-statements.table index db22e713..1cc92afe 100644 --- a/examples/Setting-the-default-language-of-a-JSON-LD-document-statements.table +++ b/examples/Setting-the-default-language-of-a-JSON-LD-document-statements.table @@ -10,13 +10,13 @@ _:b0 http://example.org/name -花澄 +花澄 ja _:b0 http://example.org/occupation -科学者 +科学者 ja diff --git a/examples/Setting-the-document-base-in-a-document-original.jsonld b/examples/Setting-the-document-base-in-a-document-compacted.jsonld similarity index 100% rename from examples/Setting-the-document-base-in-a-document-original.jsonld rename to examples/Setting-the-document-base-in-a-document-compacted.jsonld diff --git a/examples/Sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.jsonld b/examples/Sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.jsonld new file mode 100644 index 00000000..c3931ad1 --- /dev/null +++ b/examples/Sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@version": 1.1, + "MyType": { + "@id": "http://example.com/vocab#MyType", + "@context": { + "@version": 1.1, + "@import": "https://json-ld.org/contexts/remote-context.jsonld", + "@propagate": true + } + } + } +} \ No newline at end of file diff --git a/examples/Sourcing-a-context-to-modify-vocab-and-a-term-definition.jsonld b/examples/Sourcing-a-context-to-modify-vocab-and-a-term-definition.jsonld new file mode 100644 index 00000000..699bae11 --- /dev/null +++ b/examples/Sourcing-a-context-to-modify-vocab-and-a-term-definition.jsonld @@ -0,0 +1,11 @@ +{ + "@context": { + "@version": 1.1, + "@import": "https://json-ld.org/contexts/remote-context.jsonld", + "@vocab": "http://example.org/vocab#", + "term1": { + "@id": "http://example.org/vocab#term1", + "@type": "http://www.w3.org/2001/XMLSchema#integer" + } + } +} \ No newline at end of file diff --git a/examples/Specifying-a-local-blank-node-identifier-original.jsonld b/examples/Specifying-a-local-blank-node-identifier-compacted.jsonld similarity index 100% rename from examples/Specifying-a-local-blank-node-identifier-original.jsonld rename to examples/Specifying-a-local-blank-node-identifier-compacted.jsonld diff --git a/examples/Specifying-multiple-types-for-a-node-original.jsonld b/examples/Specifying-multiple-types-for-a-node-compacted.jsonld similarity index 100% rename from examples/Specifying-multiple-types-for-a-node-original.jsonld rename to examples/Specifying-multiple-types-for-a-node-compacted.jsonld diff --git a/examples/Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld b/examples/Specifying-that-a-collection-is-ordered-in-the-context-compacted.jsonld similarity index 100% rename from examples/Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld rename to examples/Specifying-that-a-collection-is-ordered-in-the-context-compacted.jsonld diff --git a/examples/Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld b/examples/Specifying-that-a-collection-is-unordered-in-the-context-compacted.jsonld similarity index 100% rename from examples/Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld rename to examples/Specifying-that-a-collection-is-unordered-in-the-context-compacted.jsonld diff --git a/examples/Specifying-the-type-for-a-node-original.jsonld b/examples/Specifying-the-type-for-a-node-compacted.jsonld similarity index 100% rename from examples/Specifying-the-type-for-a-node-original.jsonld rename to examples/Specifying-the-type-for-a-node-compacted.jsonld diff --git a/examples/Statements-associated-with-expanded-term-definition-with-language-and-direction.table b/examples/Statements-associated-with-expanded-term-definition-with-language-and-direction.table new file mode 100644 index 00000000..6c7f6b0f --- /dev/null +++ b/examples/Statements-associated-with-expanded-term-definition-with-language-and-direction.table @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValueLanguageDirection
_:b0http://example.com/vocab/publisherمكتبةar-eg
_:b0http://example.com/vocab/titleHTML و CSS: تصميم و إنشاء مواقع الويبar-egrtl
_:b0http://example.com/vocab/titleHTML and CSS: Design and Build Websitesenltr
diff --git a/examples/Targeting-a-specific-script-element-by-id-original.html b/examples/Targeting-a-specific-script-element-by-id-compacted.html similarity index 100% rename from examples/Targeting-a-specific-script-element-by-id-original.html rename to examples/Targeting-a-specific-script-element-by-id-compacted.html diff --git a/examples/Targeting-a-specific-script-element-by-id-statements.table b/examples/Targeting-a-specific-script-element-by-id-statements.table index e9c53337..72f64c57 100644 --- a/examples/Targeting-a-specific-script-element-by-id-statements.table +++ b/examples/Targeting-a-specific-script-element-by-id-statements.table @@ -1,5 +1,5 @@ - +
diff --git a/examples/Term-definitions-using-compact-and-absolute-IRIs-original.jsonld b/examples/Term-definitions-using-compact-and-absolute-IRIs-compacted.jsonld similarity index 100% rename from examples/Term-definitions-using-compact-and-absolute-IRIs-original.jsonld rename to examples/Term-definitions-using-compact-and-absolute-IRIs-compacted.jsonld diff --git a/examples/Terms-not-expanded-when-document-relative-original.jsonld b/examples/Term-expansion-for-values-not-identifiers-compacted.jsonld similarity index 72% rename from examples/Terms-not-expanded-when-document-relative-original.jsonld rename to examples/Term-expansion-for-values-not-identifiers-compacted.jsonld index 5ff3deb4..535df253 100644 --- a/examples/Terms-not-expanded-when-document-relative-original.jsonld +++ b/examples/Term-expansion-for-values-not-identifiers-compacted.jsonld @@ -2,9 +2,10 @@ "@context": { "@base": "http://example1.com/", "@vocab": "http://example2.com/", - "fred": {"@type": "@id"} + "knows": {"@type": "@vocab"} }, - "fred": [ + "@id": "fred", + "knows": [ {"@id": "barney", "mnemonic": "the sidekick"}, "barney" ] diff --git a/examples/Term-expansion-for-values-not-identifiers-expanded.jsonld b/examples/Term-expansion-for-values-not-identifiers-expanded.jsonld index 51d8ae3f..27b79f47 100644 --- a/examples/Term-expansion-for-values-not-identifiers-expanded.jsonld +++ b/examples/Term-expansion-for-values-not-identifiers-expanded.jsonld @@ -1,11 +1,9 @@ [{ - "http://example2.com/fred": [ - { - "@id": "http://example1.com/barney", - "http://example2.com/mnemonic": [{"@value": "the sidekick"}] - }, - { - "@id": "http://example2.com/barney" - } - ] + "@id": "http://example1.com/fred", + "http://example2.com/knows": [{ + "@id": "http://example1.com/barney", + "http://example2.com/mnemonic": [{"@value": "the sidekick"}] + }, { + "@id": "http://example2.com/barney" + }] }] \ No newline at end of file diff --git a/examples/Term-expansion-for-values-not-identifiers-statements.table b/examples/Term-expansion-for-values-not-identifiers-statements.table index 21efa626..da1650dd 100644 --- a/examples/Term-expansion-for-values-not-identifiers-statements.table +++ b/examples/Term-expansion-for-values-not-identifiers-statements.table @@ -12,13 +12,13 @@ - - + + - - + + diff --git a/examples/Term-expansion-for-values-not-identifiers-turtle.ttl b/examples/Term-expansion-for-values-not-identifiers-turtle.ttl index abf5bdea..01cc3550 100644 --- a/examples/Term-expansion-for-values-not-identifiers-turtle.ttl +++ b/examples/Term-expansion-for-values-not-identifiers-turtle.ttl @@ -2,4 +2,4 @@ @prefix ex1: . @prefix ex2: . ex1:barney ex2:mnemonic "the sidekick" . -[ ex2:fred ex2:barney, ex1:barney] . \ No newline at end of file +ex1:fred ex2:knows ex1:barney, ex2:barney . \ No newline at end of file diff --git a/examples/Term-expansion-from-context-definition-original.jsonld b/examples/Term-expansion-from-context-definition-compacted.jsonld similarity index 100% rename from examples/Term-expansion-from-context-definition-original.jsonld rename to examples/Term-expansion-from-context-definition-compacted.jsonld diff --git a/examples/Term-expansion-for-values-not-identifiers-original.jsonld b/examples/Terms-not-expanded-when-document-relative-compacted.jsonld similarity index 73% rename from examples/Term-expansion-for-values-not-identifiers-original.jsonld rename to examples/Terms-not-expanded-when-document-relative-compacted.jsonld index 474b14ca..4b147ddf 100644 --- a/examples/Term-expansion-for-values-not-identifiers-original.jsonld +++ b/examples/Terms-not-expanded-when-document-relative-compacted.jsonld @@ -2,9 +2,10 @@ "@context": { "@base": "http://example1.com/", "@vocab": "http://example2.com/", - "fred": {"@type": "@vocab"} + "knows": {"@type": "@id"} }, - "fred": [ + "@id": "fred", + "knows": [ {"@id": "barney", "mnemonic": "the sidekick"}, "barney" ] diff --git a/examples/Terms-not-expanded-when-document-relative-expanded.jsonld b/examples/Terms-not-expanded-when-document-relative-expanded.jsonld index 8c1d79cc..8b923b0f 100644 --- a/examples/Terms-not-expanded-when-document-relative-expanded.jsonld +++ b/examples/Terms-not-expanded-when-document-relative-expanded.jsonld @@ -1,11 +1,9 @@ [{ - "http://example2.com/fred": [ - { - "@id": "http://example1.com/barney", - "http://example2.com/mnemonic": [{"@value": "the sidekick"}] - }, - { - "@id": "http://example1.com/barney" - } - ] + "@id": "http://example1.com/fred", + "http://example2.com/knows": [{ + "@id": "http://example1.com/barney", + "http://example2.com/mnemonic": [{"@value": "the sidekick"}] + }, { + "@id": "http://example1.com/barney" + }] }] \ No newline at end of file diff --git a/examples/Terms-not-expanded-when-document-relative-turtle.ttl b/examples/Terms-not-expanded-when-document-relative-turtle.ttl index 8556f62e..ebfc86b8 100644 --- a/examples/Terms-not-expanded-when-document-relative-turtle.ttl +++ b/examples/Terms-not-expanded-when-document-relative-turtle.ttl @@ -2,4 +2,4 @@ @prefix ex1: . @prefix ex2: . ex1:barney ex2:mnemonic "the sidekick" . -[] ex2:fred ex1:barney, ex1:barney. \ No newline at end of file +ex1:fred ex2:knows ex1:barney, ex1:barney . \ No newline at end of file diff --git a/examples/Type-coercion-original.jsonld b/examples/Type-coercion-compacted.jsonld similarity index 100% rename from examples/Type-coercion-original.jsonld rename to examples/Type-coercion-compacted.jsonld diff --git a/examples/Using-a-default-vocabulary-original.jsonld b/examples/Using-a-default-vocabulary-compacted.jsonld similarity index 100% rename from examples/Using-a-default-vocabulary-original.jsonld rename to examples/Using-a-default-vocabulary-compacted.jsonld diff --git a/examples/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-original.jsonld b/examples/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-compacted.jsonld similarity index 100% rename from examples/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-original.jsonld rename to examples/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-compacted.jsonld diff --git a/examples/Using-a-term-to-specify-the-type-original.jsonld b/examples/Using-a-term-to-specify-the-type-compacted.jsonld similarity index 100% rename from examples/Using-a-term-to-specify-the-type-original.jsonld rename to examples/Using-a-term-to-specify-the-type-compacted.jsonld diff --git a/examples/Using-an-expanded-form-to-set-multiple-values-original.jsonld b/examples/Using-an-expanded-form-to-set-multiple-values-compacted.jsonld similarity index 100% rename from examples/Using-an-expanded-form-to-set-multiple-values-original.jsonld rename to examples/Using-an-expanded-form-to-set-multiple-values-compacted.jsonld diff --git a/examples/Using-an-expanded-form-to-set-multiple-values-statements.table b/examples/Using-an-expanded-form-to-set-multiple-values-statements.table index c0ef7dbc..bb814a9c 100644 --- a/examples/Using-an-expanded-form-to-set-multiple-values-statements.table +++ b/examples/Using-an-expanded-form-to-set-multiple-values-statements.table @@ -10,7 +10,7 @@ - + diff --git a/examples/Using-as-the-vocabulary-mapping-expanded-statements.table b/examples/Using-as-the-vocabulary-mapping-expanded-statements.table index 835492dd..833703e3 100644 --- a/examples/Using-as-the-vocabulary-mapping-expanded-statements.table +++ b/examples/Using-as-the-vocabulary-mapping-expanded-statements.table @@ -1,20 +1,20 @@ -
Subject Propertythe sidekick
_:b0http://example2.com/fredhttp://example1.com/fredhttp://example2.com/knows http://example1.com/barney
_:b0http://example2.com/fredhttp://example1.com/fredhttp://example2.com/knows http://example2.com/barney
http://example.org/articles/8 dcterms:titleDas KapitalDas Kapital de
- +
+ - - + + - + - -
Subject Property Value
http://example.org/places#BrewEats rdf:type http://example/document#Restaurant
http://example.org/places#BrewEats http://example/document#name Brew Eats
+ + diff --git a/examples/Using-graph-to-explicitly-express-the-default-graph-original.jsonld b/examples/Using-graph-to-explicitly-express-the-default-graph-compacted.jsonld similarity index 100% rename from examples/Using-graph-to-explicitly-express-the-default-graph-original.jsonld rename to examples/Using-graph-to-explicitly-express-the-default-graph-compacted.jsonld diff --git a/examples/Using-multiple-contexts-original.jsonld b/examples/Using-multiple-contexts-compacted.jsonld similarity index 100% rename from examples/Using-multiple-contexts-original.jsonld rename to examples/Using-multiple-contexts-compacted.jsonld diff --git a/examples/Using-reverse-to-define-reverse-properties-original.jsonld b/examples/Using-reverse-to-define-reverse-properties-compacted.jsonld similarity index 100% rename from examples/Using-reverse-to-define-reverse-properties-original.jsonld rename to examples/Using-reverse-to-define-reverse-properties-compacted.jsonld diff --git a/examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-original.html b/examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-compacted.html similarity index 100% rename from examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-original.html rename to examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-compacted.html diff --git a/examples/Using-the-null-keyword-to-ignore-data-original.jsonld b/examples/Using-the-null-keyword-to-ignore-data-compacted.jsonld similarity index 100% rename from examples/Using-the-null-keyword-to-ignore-data-original.jsonld rename to examples/Using-the-null-keyword-to-ignore-data-compacted.jsonld diff --git a/examples/Using-vocabularies-original.jsonld b/examples/Using-vocabularies-compacted.jsonld similarity index 100% rename from examples/Using-vocabularies-original.jsonld rename to examples/Using-vocabularies-compacted.jsonld diff --git a/examples/overriding-permitted-in-property-scoped-context-original.jsonld b/examples/overriding-permitted-in-property-scoped-context-compacted.jsonld similarity index 89% rename from examples/overriding-permitted-in-property-scoped-context-original.jsonld rename to examples/overriding-permitted-in-property-scoped-context-compacted.jsonld index 6619da61..28879bcf 100644 --- a/examples/overriding-permitted-in-property-scoped-context-original.jsonld +++ b/examples/overriding-permitted-in-property-scoped-context-compacted.jsonld @@ -26,9 +26,7 @@ "@type": "Organization", "name": "Digital Bazaar", "employee" : { - "name": "Sporny" - }, - "location": { - "name": "Blacksburg, Virginia" + "name": "Sporny", + "location": {"name": "Blacksburg, Virginia"} } } \ No newline at end of file diff --git a/examples/overriding-permitted-in-property-scoped-context-statements.table b/examples/overriding-permitted-in-property-scoped-context-statements.table index 36dbe2c0..9480784b 100644 --- a/examples/overriding-permitted-in-property-scoped-context-statements.table +++ b/examples/overriding-permitted-in-property-scoped-context-statements.table @@ -27,7 +27,7 @@ Sporny -_:b0 +_:b1 foaf:based_near _:b2 diff --git a/examples/overriding-permitted-in-property-scoped-context-turtle.ttl b/examples/overriding-permitted-in-property-scoped-context-turtle.ttl index e3ffd968..1e90fcba 100644 --- a/examples/overriding-permitted-in-property-scoped-context-turtle.ttl +++ b/examples/overriding-permitted-in-property-scoped-context-turtle.ttl @@ -4,9 +4,9 @@ a schema:Organization; schema:name "Digital Bazaar"; schema:employee [ - schema:familyName "Sporny" - ]; - foaf:based_near [ - foaf:name "Blacksburg, Virginia" + schema:familyName "Sporny"; + foaf:based_near [ + foaf:name "Blacksburg, Virginia" + ]; ]; ] . \ No newline at end of file diff --git a/index.html b/index.html index 50dbf364..5bf80f5b 100644 --- a/index.html +++ b/index.html @@ -522,6 +522,11 @@

Syntax Tokens and Keywords

developers to express specific identifiers in a compact manner. The @context keyword is described in detail in . +
@direction
+
Used to set the base direction of a JSON-LD value, + which are not typed values (e.g. strings, or language-tagged strings). + This keyword is described in + .
@id
Used to uniquely identify node objects that are being described in the document with IRIs or @@ -669,6 +674,10 @@

Syntax Tokens and Keywords

prov http://www.w3.org/ns/prov# + + i18n + https://www.w3.org/ns/i18n# + rdf http://www.w3.org/1999/02/22-rdf-syntax-ns# @@ -4460,7 +4469,7 @@

Using the Document Base for the Default Vocabulary

When transformed into RDF, the JSON literal will have a lexical form based on a specific serialization of the JSON, - as described in Compaction algorithm of [[JSON-LD11-API]] + as described in Compaction algorithm of [[JSON-LD11-API]] and the JSON datatype.

The following example shows an example of a JSON Literal contained as the @@ -4944,7 +4953,6 @@

Using the Document Base for the Default Vocabulary

String Internationalization

-

At times, it is important to annotate a string with its language. In JSON-LD this is possible in a variety of ways. First, it is possible to define a default language for a JSON-LD document @@ -4988,8 +4996,8 @@

Using the Document Base for the Default Vocabulary

data-to-rdf> SubjectPropertyValueLanguage - _:b0http://example.org/name花澄ja - _:b0http://example.org/occupation科学者ja + _:b0http://example.org/name花澄ja + _:b0http://example.org/occupation科学者ja
Using the Document Base for the Default Vocabulary
   
 
   

The example above would associate the ja language - code with the two strings 花澄 and 科学者. - Languages codes are defined in [[BCP47]]. The default language applies to all + tag with the two strings 花澄 and 科学者 + Languages tags are defined in [[BCP47]]. + The default language applies to all string values that are not type coerced.

To clear the default language for a subtree, @language can @@ -5062,11 +5071,11 @@

Using the Document Base for the Default Vocabulary

-->
-

The example above would associate 忍者 with the specified default - language code ja, Ninja with the language code - en, and Nindža with the language code cs. - The value of name, Yagyū Muneyoshi wouldn't be - associated with any language code since @language was reset to +

The example above would associate 忍者 with the specified default + language tag ja, Ninja with the language tag + en, and Nindža with the language tag cs. + The value of name, Yagyū Muneyoshi wouldn't be + associated with any language tag since @language was reset to null in the expanded term definition.

Language associations are only applied to plain @@ -5156,6 +5165,216 @@

Using the Document Base for the Default Vocabulary

See for a description of using language maps to set the language of mapped values.

+ +

Base Direction

+

It is also possible to annotate a string, or language-tagged string, + with its base direction. + As with language, it is possible to define a default base direction for a JSON-LD document + by setting the `@direction` key in the context:

+ + + +

The example above would associate the ar-EG language tag + and "rtl" base direction + with the two strings + HTML و CSS: تصميم و إنشاء مواقع الويب and مكتبة. + The default base direction applies to all + string values that are not type coerced.

+ +

To clear the default base direction for a subtree, @direction can + be set to null in an intervening context, such as a scoped context as follows:

+ +
+  
+  
+ +

Second, it is possible to associate a base direction with a specific term + using an expanded term definition:

+ +
+  
+  
+ +

The example above would create three properties:

+ + + + + + + +
SubjectPropertyValueLanguageDirection
_:b0http://example.com/vocab/publisherمكتبةar-eg
_:b0http://example.com/vocab/titleHTML و CSS: تصميم و إنشاء مواقع الويبar-egrtl
_:b0http://example.com/vocab/titleHTML and CSS: Design and Build Websitesenltr
+ +

Base direction associations are only applied to plain + strings and language-tagged strings. + Typed values or values that are subject to type coercion + are not given a base direction.

+ +

Third, it is possible to override the default base direction by using a + value object:

+ +
+  
+  
+ +

See [[[string-meta]]] [[string-meta]] for a deeper discussion of base direction.

+
@@ -5298,7 +5517,7 @@

Using the Document Base for the Default Vocabulary

http://example.org/articles/8 dcterms:title - Das Kapital + Das Kapital de @@ -7335,8 +7554,8 @@

Using the Document Base for the Default Vocabulary

SubjectPropertyValueLanguage http://example.com/queenhttp://example.com/vocab/labelThe Queenen - http://example.com/queenhttp://example.com/vocab/labelDie Königinde - http://example.com/queenhttp://example.com/vocab/labelIhre Majestätde + http://example.com/queenhttp://example.com/vocab/labelDie Königinde + http://example.com/queenhttp://example.com/vocab/labelIhre Majestätde
Data Model
   

JSON-LD is a serialization format for Linked Data based on JSON. It is therefore important to distinguish between the syntax, which is defined by JSON in [[RFC8259]], and the data model which is - an extension of the RDF data model [[RDF11-CONCEPTS]]. The precise - details of how JSON-LD relates to the RDF data model are given in + an extension of the RDF data model [[RDF11-CONCEPTS]]. + The precise details of how JSON-LD relates to the RDF data model are given in .

To ease understanding for developers unfamiliar with the RDF model, the @@ -11320,6 +11539,9 @@

Data Model

The language tag MUST be well-formed according to section 2.2.9 Classes of Conformance of [[BCP47]]. +
  • Either strings, or language-tagged strings may include + a base direction, which represents an extension to the underlying + RDF data model.
  • A list is a sequence of zero or more IRIs, blank nodes, and JSON-LD values. Lists are interpreted as @@ -11744,13 +11966,17 @@

    Graph Objects

    Value Objects

    A value object is used to explicitly associate a type or a - language with a value to create a typed value or a language-tagged - string.

    + language with a value to create a typed value or a language-tagged string + and possibly associate a base direction.

    A value object MUST be a map containing the @value key. It MAY also contain an @type, - an @language, an @index, or an @context key but MUST NOT contain - both an @type and an @language key at the same time. + an @language, + an `@direction`, + an @index, or an @context key but MUST NOT contain + both an @type and either @language + or `@direction` + keys at the same time. A value object MUST NOT contain any other keys that expand to an absolute IRI or keyword.

    @@ -11771,6 +11997,9 @@

    Value Objects

    The value associated with the @language key MUST have the lexical form described in [[BCP47]], or be null.

    +

    The value associated with the @direction key MUST be + one of "ltr" or "rtl", or be null.

    +

    The value associated with the @index key MUST be a string.

    @@ -11786,10 +12015,15 @@

    Value Patterns

    extends a value object to allow entries used specifically for framing.

    @@ -11846,7 +12080,7 @@

    Language Maps

    or an array containing both @language and @set . The keys of a language map MUST be strings representing - [[BCP47]] language codes, the keyword @none, + [[BCP47]] language tags, the keyword @none, or a term which expands to @none, and the values MUST be any of the following types:

    @@ -12381,6 +12615,14 @@

    Relationship to RDF

    and false. The JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] defines the conversion rules between JSON's native data types and RDF's counterparts to allow round-tripping.
  • +
  • As an extension to the RDF data model, + literals without an explicit datatype + MAY include a base direction. + As there is currently no standardized mechanism for representing the base direction + of RDF literals, the JSON-LD to standard RDF transformation loses the base direction. + However, the Deserialize JSON-LD to RDF Algorithm + provides a means of representing base direction + using mechanisms which will preserve round-tripping through non-standard RDF.
  • The use of blank node identifiers to label properties is obsolete, @@ -12597,6 +12839,108 @@

    Serializing/Deserializing RDF

    + +

    The `i18n` Namespace

    +

    The `i18n` namespace is used for describing combinations of language tag and base direction in RDF literals. + It is used as an alternative mechanism for describing the [[BCP47]] language tag and base direction + of RDF literals that would otherwise use the `xsd:string` or `rdf:langString` datatypes.

    +

    Datatypes based on this namespace allow round-tripping of JSON-LD documents using base direction, + although the mechanism is not otherwise standardized.

    +

    The Deserialize JSON-LD to RDF Algorithm + can be used with the rdfDirection option + set to `i18n-datatype` to generate RDF literals using the `i18n` base to create an IRI + encoding the base direction along with optional language tag from + value objects containing `@direction` by appending to `https://www.w3.org/ns/i18n#` + the value of `@language`, if any, followed by an underscore (`"_"`) followed + by the value of `@direction`.

    + +

    This feature is experimental, as RDF does not have a + standard way to represent base direction in RDF literals. + A future RDF Working Group may support base direction differently. + The JSON-LD Working Group solicits feedback from the community on the + usefulness of these transformations.

    + +

    The following example shows two statements with literal values of `i18n:ar-EG_rtl`, + which encodes the language tag `ar-EG` and the base direction `rtl`.

    +
    +    
    +    
    +

    See for more details + on using base direction for strings.

    +
    + +

    The `rdf:CompoundLiteral` class and the `rdf:language` and `rdf:direction` properties

    +

    This specification defines the `rdf:CompoundLiteral` class, which is in the domain + of `rdf:language` and `rdf:direction` to be used for describing RDF literal values + containing base direction and a possible language tag to be associated with the + string value of `rdf:value` on the same subject.

    + +
    +
    `rdf:CompoundLiteral`
    +
    A class representing a compound literal.
    +
    `rdf:language`
    +
    An RDF property. + The range of the property is an `rdfs:Literal`, whose value MUST be a well-formed [[BCP47]] language tag. + The domain of the property is `rdf:CompoundLiteral`.
    +
    `rdf:direction`
    +
    An RDF property. + The range of the property is an `rdfs:Literal`, whose value MUST be either `"ltr"` or `"rtl"`. + The domain of the property is `rdf:CompoundLiteral`.
    +
    + +

    The Deserialize JSON-LD to RDF Algorithm + can be used with the rdfDirection option + set to `compound-literal` to generate RDF literals using these properties to + describe the base direction and optional language tag from + value objects containing `@direction` and optionally `@language`.

    + +

    This feature is experimental, as RDF does not have a + standard way to represent base direction in RDF literals. + A future RDF Working Group may support base direction differently. + The JSON-LD Working Group solicits feedback from the community on the + usefulness of these transformations.

    + +

    The following example shows two statements with compoud literals + representing strings with the language tag `ar-EG` and base direction `rtl`.

    +
    +    
    +    
    +

    See for more details + on using base direction for strings.

    +
    @@ -12625,23 +12969,23 @@

    Internationalization Considerations

    properly record JSON-LD Values which are strings with left-to-right or right-to-left direction indicators. Both JSON-LD and RDF provide a mechanism for specifying the language associated with a string (language-tagged string), but do not provide a means of indicating - the base direction of the string.

    + the base direction of the string.

    Unicode provides a mechanism for signaling direction within a string (see [[[UAX9]]] [[UAX9]]), - however, when a string has an overall base direction which cannot be determined by the + however, when a string has an overall base direction which cannot be determined by the beginning of the string, an external indicator is required, such as the [[HTML]] dir attribute, which currently has no counterpart for RDF literals.

    -

    The issue of properly representing text direction in RDF is not something that +

    The issue of properly representing base direction in RDF is not something that this Working Group can handle, as it is a limitation or the core RDF data model. This Working Group expects that a future RDF Working Group will consider the matter - and add the ability to specify the text direction of language-tagged strings.

    + and add the ability to specify the base direction of language-tagged strings.

    Until a more comprehensive solution can be addressed in a future version of this specification, publishers should consider this issue when representing strings - where the text direction of the string cannot otherwise be correctly inferred + where the base direction of the string cannot otherwise be correctly inferred based on the content of the string. See [[?string-meta]] for a discussion best practices for identifying language and base direction for strings used on the Web.

    @@ -13271,6 +13615,8 @@

    Changes since JSON-LD Community Group Final Report

    are not embedded as values of the containing node object.
  • The `alternate` link relation can be used to supply an alternate location for retrieving a JSON-LD document when the returned document is not JSON.
  • +
  • Value objects, and associated context and term definitions have been updated to + support `@direction` for setting the base direction of strings.
  • diff --git a/yaml/A-document-with-children-linking-to-their-parent-original.yaml b/yaml/A-document-with-children-linking-to-their-parent-compacted.yaml similarity index 79% rename from yaml/A-document-with-children-linking-to-their-parent-original.yaml rename to yaml/A-document-with-children-linking-to-their-parent-compacted.yaml index efa241bb..7fb420ae 100644 --- a/yaml/A-document-with-children-linking-to-their-parent-original.yaml +++ b/yaml/A-document-with-children-linking-to-their-parent-compacted.yaml @@ -1,4 +1,4 @@ -Example 094: A document with children linking to their parent-original +Example 111: A document with children linking to their parent-compacted --- - "@id": "#homer" http://example.com/vocab#name: Homer diff --git a/yaml/A-document-with-children-linking-to-their-parent-expanded.yaml b/yaml/A-document-with-children-linking-to-their-parent-expanded.yaml index bfd4d218..024318bc 100644 --- a/yaml/A-document-with-children-linking-to-their-parent-expanded.yaml +++ b/yaml/A-document-with-children-linking-to-their-parent-expanded.yaml @@ -1,4 +1,4 @@ -Example 094: A document with children linking to their parent-expanded +Example 111: A document with children linking to their parent-expanded --- - "@id": http://example.org/#homer http://example.com/vocab#name: diff --git a/yaml/A-person-and-its-children-using-a-reverse-property-original.yaml b/yaml/A-person-and-its-children-using-a-reverse-property-compacted.yaml similarity index 75% rename from yaml/A-person-and-its-children-using-a-reverse-property-original.yaml rename to yaml/A-person-and-its-children-using-a-reverse-property-compacted.yaml index 6683dbfb..6ee42b0a 100644 --- a/yaml/A-person-and-its-children-using-a-reverse-property-original.yaml +++ b/yaml/A-person-and-its-children-using-a-reverse-property-compacted.yaml @@ -1,4 +1,4 @@ -Example 095: A person and its children using a reverse property-original +Example 112: A person and its children using a reverse property-compacted --- "@id": "#homer" http://example.com/vocab#name: Homer diff --git a/yaml/A-person-and-its-children-using-a-reverse-property-expanded.yaml b/yaml/A-person-and-its-children-using-a-reverse-property-expanded.yaml index 0ebc53b1..1488600e 100644 --- a/yaml/A-person-and-its-children-using-a-reverse-property-expanded.yaml +++ b/yaml/A-person-and-its-children-using-a-reverse-property-expanded.yaml @@ -1,4 +1,4 @@ -Example 095: A person and its children using a reverse property-expanded +Example 112: A person and its children using a reverse property-expanded --- - "@id": http://example.org/#homer http://example.com/vocab#name: diff --git a/yaml/A-person-and-its-children-using-a-reverse-property-flattened.yaml b/yaml/A-person-and-its-children-using-a-reverse-property-flattened.yaml index 0310581f..1a850cb3 100644 --- a/yaml/A-person-and-its-children-using-a-reverse-property-flattened.yaml +++ b/yaml/A-person-and-its-children-using-a-reverse-property-flattened.yaml @@ -1,4 +1,4 @@ -Example 095: A person and its children using a reverse property-flattened +Example 112: A person and its children using a reverse property-flattened --- - "@id": http://example.org/#homer http://example.com/vocab#name: diff --git a/yaml/A-protected-context-with-an-exception-original.yaml b/yaml/A-protected-context-with-an-exception-compacted.yaml similarity index 83% rename from yaml/A-protected-context-with-an-exception-original.yaml rename to yaml/A-protected-context-with-an-exception-compacted.yaml index c43180ba..c02b16e2 100644 --- a/yaml/A-protected-context-with-an-exception-original.yaml +++ b/yaml/A-protected-context-with-an-exception-compacted.yaml @@ -1,4 +1,4 @@ -Example 048: A protected @context with an exception-original +Example 055: A protected @context with an exception-compacted --- "@context": - "@version": 1.1 diff --git a/yaml/A-protected-context-with-an-exception-expanded.yaml b/yaml/A-protected-context-with-an-exception-expanded.yaml index 27039b05..12987051 100644 --- a/yaml/A-protected-context-with-an-exception-expanded.yaml +++ b/yaml/A-protected-context-with-an-exception-expanded.yaml @@ -1,4 +1,4 @@ -Example 048: A protected @context with an exception-expanded +Example 055: A protected @context with an exception-expanded --- - http://schema.org/name: - "@value": Digital Bazaar diff --git a/yaml/A-remote-context-to-be-imported-in-a-type-scoped-context.yaml b/yaml/A-remote-context-to-be-imported-in-a-type-scoped-context.yaml new file mode 100644 index 00000000..3d4a6282 --- /dev/null +++ b/yaml/A-remote-context-to-be-imported-in-a-type-scoped-context.yaml @@ -0,0 +1,7 @@ +Example 049: A remote context to be imported in a type-scoped context +--- +"@context": + Type1: http://example.com/vocab/Type1 + Type2: http://example.com/vocab/Type2 + term1: http://example.com/vocab#term1 + term2: http://example.com/vocab#term2 diff --git a/yaml/Aliasing-keywords-original.yaml b/yaml/Aliasing-keywords-compacted.yaml similarity index 80% rename from yaml/Aliasing-keywords-original.yaml rename to yaml/Aliasing-keywords-compacted.yaml index 4e0478fb..202363be 100644 --- a/yaml/Aliasing-keywords-original.yaml +++ b/yaml/Aliasing-keywords-compacted.yaml @@ -1,4 +1,4 @@ -Example 037: Aliasing keywords-original +Example 037: Aliasing keywords-compacted --- "@context": url: "@id" diff --git a/yaml/An-ordered-collection-of-values-in-JSON-LD-original.yaml b/yaml/An-ordered-collection-of-values-in-JSON-LD-compacted.yaml similarity index 67% rename from yaml/An-ordered-collection-of-values-in-JSON-LD-original.yaml rename to yaml/An-ordered-collection-of-values-in-JSON-LD-compacted.yaml index 452c764e..9022bb3e 100644 --- a/yaml/An-ordered-collection-of-values-in-JSON-LD-original.yaml +++ b/yaml/An-ordered-collection-of-values-in-JSON-LD-compacted.yaml @@ -1,4 +1,4 @@ -Example 068: An ordered collection of values in JSON-LD-original +Example 080: An ordered collection of values in JSON-LD-compacted --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/An-ordered-collection-of-values-in-JSON-LD-expanded.yaml b/yaml/An-ordered-collection-of-values-in-JSON-LD-expanded.yaml index e0102eae..22ca1947 100644 --- a/yaml/An-ordered-collection-of-values-in-JSON-LD-expanded.yaml +++ b/yaml/An-ordered-collection-of-values-in-JSON-LD-expanded.yaml @@ -1,4 +1,4 @@ -Example 068: An ordered collection of values in JSON-LD-expanded +Example 080: An ordered collection of values in JSON-LD-expanded --- - "@id": http://example.org/people#joebob http://xmlns.com/foaf/0.1/nick: diff --git a/yaml/An-unordered-collection-of-values-in-JSON-LD-original.yaml b/yaml/An-unordered-collection-of-values-in-JSON-LD-compacted.yaml similarity index 67% rename from yaml/An-unordered-collection-of-values-in-JSON-LD-original.yaml rename to yaml/An-unordered-collection-of-values-in-JSON-LD-compacted.yaml index 7685b558..772549c2 100644 --- a/yaml/An-unordered-collection-of-values-in-JSON-LD-original.yaml +++ b/yaml/An-unordered-collection-of-values-in-JSON-LD-compacted.yaml @@ -1,4 +1,4 @@ -Example 072: An unordered collection of values in JSON-LD-original +Example 084: An unordered collection of values in JSON-LD-compacted --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/An-unordered-collection-of-values-in-JSON-LD-expanded.yaml b/yaml/An-unordered-collection-of-values-in-JSON-LD-expanded.yaml index 7607d5a3..ff9cff32 100644 --- a/yaml/An-unordered-collection-of-values-in-JSON-LD-expanded.yaml +++ b/yaml/An-unordered-collection-of-values-in-JSON-LD-expanded.yaml @@ -1,4 +1,4 @@ -Example 072: An unordered collection of values in JSON-LD-expanded +Example 084: An unordered collection of values in JSON-LD-expanded --- - "@id": http://example.org/people#joebob http://xmlns.com/foaf/0.1/nick: diff --git a/yaml/Clearing-default-language.yaml b/yaml/Clearing-default-language.yaml index 93e9ebd0..02873372 100644 --- a/yaml/Clearing-default-language.yaml +++ b/yaml/Clearing-default-language.yaml @@ -1,9 +1,13 @@ -Example 060: Clearing default language +Example 074: Clearing default language --- "@context": - "@language": ja -name: 花澄 + "@version": 1.1 + "@vocab": http://example.com/ + "@language": ar-EG + "@direction": rtl + details: + "@context": + "@direction": +title: 'HTML و CSS: تصميم و إنشاء مواقع الويب' details: - "@context": - "@language": - occupation: Ninja + genre: Technical Publication diff --git a/yaml/Coercing-Values-to-Strings-compacted.yaml b/yaml/Coercing-Values-to-Strings-compacted.yaml index b4cb8247..9c453807 100644 --- a/yaml/Coercing-Values-to-Strings-compacted.yaml +++ b/yaml/Coercing-Values-to-Strings-compacted.yaml @@ -1,4 +1,4 @@ -Example 112: Coercing Values to Strings-compacted +Example 129: Coercing Values to Strings-compacted --- "@context": "@vocab": http://example.com/ diff --git a/yaml/Coercing-Values-to-Strings-context.yaml b/yaml/Coercing-Values-to-Strings-context.yaml index 4c378881..27558548 100644 --- a/yaml/Coercing-Values-to-Strings-context.yaml +++ b/yaml/Coercing-Values-to-Strings-context.yaml @@ -1,4 +1,4 @@ -Example 112: Coercing Values to Strings-context +Example 129: Coercing Values to Strings-context --- "@context": "@vocab": http://example.com/ diff --git a/yaml/Coercing-Values-to-Strings-expanded.yaml b/yaml/Coercing-Values-to-Strings-expanded.yaml index caeb6b49..0627ac41 100644 --- a/yaml/Coercing-Values-to-Strings-expanded.yaml +++ b/yaml/Coercing-Values-to-Strings-expanded.yaml @@ -1,4 +1,4 @@ -Example 112: Coercing Values to Strings-expanded +Example 129: Coercing Values to Strings-expanded --- - http://example.com/plain: - "@value": string diff --git a/yaml/Combining-external-and-local-contexts-original.yaml b/yaml/Combining-external-and-local-contexts-compacted.yaml similarity index 55% rename from yaml/Combining-external-and-local-contexts-original.yaml rename to yaml/Combining-external-and-local-contexts-compacted.yaml index aa22977b..a5cd9f67 100644 --- a/yaml/Combining-external-and-local-contexts-original.yaml +++ b/yaml/Combining-external-and-local-contexts-compacted.yaml @@ -1,8 +1,10 @@ -Example 021: Combining external and local contexts-original +Example 021: Combining external and local contexts-compacted --- "@context": - https://json-ld.org/contexts/person.jsonld -- pic: http://xmlns.com/foaf/0.1/depiction +- pic: + "@id": http://xmlns.com/foaf/0.1/depiction + "@type": "@id" name: Manu Sporny homepage: http://manu.sporny.org/ pic: http://twitter.com/account/profile_image/manusporny diff --git a/yaml/Combining-external-and-local-contexts-expanded.yaml b/yaml/Combining-external-and-local-contexts-expanded.yaml index 26e87bb0..f12fbf60 100644 --- a/yaml/Combining-external-and-local-contexts-expanded.yaml +++ b/yaml/Combining-external-and-local-contexts-expanded.yaml @@ -5,4 +5,4 @@ Example 021: Combining external and local contexts-expanded http://xmlns.com/foaf/0.1/homepage: - "@id": http://manu.sporny.org/ http://xmlns.com/foaf/0.1/depiction: - - "@value": http://twitter.com/account/profile_image/manusporny + - "@id": http://twitter.com/account/profile_image/manusporny diff --git a/yaml/Compact-form-of-the-sample-document-once-sample-context-has-been-applied-original.yaml b/yaml/Compact-form-of-the-sample-document-once-sample-context-has-been-applied-original.yaml index e2462698..19da9994 100644 --- a/yaml/Compact-form-of-the-sample-document-once-sample-context-has-been-applied-original.yaml +++ b/yaml/Compact-form-of-the-sample-document-once-sample-context-has-been-applied-original.yaml @@ -1,4 +1,4 @@ -Example 109: Compact form of the sample document once sample context has been applied-original +Example 126: Compact form of the sample document once sample context has been applied-original --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/Compacting-using-a-base-IRI-compacted.yaml b/yaml/Compacting-using-a-base-IRI-compacted.yaml index be5d534f..f0f445e6 100644 --- a/yaml/Compacting-using-a-base-IRI-compacted.yaml +++ b/yaml/Compacting-using-a-base-IRI-compacted.yaml @@ -1,4 +1,4 @@ -Example 111: Compacting using a base IRI-compacted +Example 128: Compacting using a base IRI-compacted --- "@context": "@base": http://example.com/ diff --git a/yaml/Compacting-using-a-base-IRI-context.yaml b/yaml/Compacting-using-a-base-IRI-context.yaml index 9fdac99f..a37e0352 100644 --- a/yaml/Compacting-using-a-base-IRI-context.yaml +++ b/yaml/Compacting-using-a-base-IRI-context.yaml @@ -1,4 +1,4 @@ -Example 111: Compacting using a base IRI-context +Example 128: Compacting using a base IRI-context --- "@context": "@base": http://example.com/ diff --git a/yaml/Compacting-using-a-base-IRI-expanded.yaml b/yaml/Compacting-using-a-base-IRI-expanded.yaml index 90763312..ca68434d 100644 --- a/yaml/Compacting-using-a-base-IRI-expanded.yaml +++ b/yaml/Compacting-using-a-base-IRI-expanded.yaml @@ -1,4 +1,4 @@ -Example 111: Compacting using a base IRI-expanded +Example 128: Compacting using a base IRI-expanded --- - "@id": http://example.com/document.jsonld http://www.w3.org/2000/01/rdf-schema#label: diff --git a/yaml/Compacting-using-a-default-vocabulary-compacted.yaml b/yaml/Compacting-using-a-default-vocabulary-compacted.yaml index c20b5d44..79ac6331 100644 --- a/yaml/Compacting-using-a-default-vocabulary-compacted.yaml +++ b/yaml/Compacting-using-a-default-vocabulary-compacted.yaml @@ -1,7 +1,7 @@ -Example 110: Compacting using a default vocabulary-compacted +Example 127: Compacting using a default vocabulary-compacted --- "@context": - "@vocab": http://xmlns.com/foaf/0.1/ + "@vocab": http://example.org/ "@id": http://example.org/places#BrewEats "@type": Restaurant name: Brew Eats diff --git a/yaml/Compacting-using-a-default-vocabulary-context.yaml b/yaml/Compacting-using-a-default-vocabulary-context.yaml index 916a8b48..9f376ff1 100644 --- a/yaml/Compacting-using-a-default-vocabulary-context.yaml +++ b/yaml/Compacting-using-a-default-vocabulary-context.yaml @@ -1,4 +1,4 @@ -Example 110: Compacting using a default vocabulary-context +Example 127: Compacting using a default vocabulary-context --- "@context": - "@vocab": http://xmlns.com/foaf/0.1/ + "@vocab": http://example.org/ diff --git a/yaml/Compacting-using-a-default-vocabulary-expanded.yaml b/yaml/Compacting-using-a-default-vocabulary-expanded.yaml index 1a940086..9bee70e1 100644 --- a/yaml/Compacting-using-a-default-vocabulary-expanded.yaml +++ b/yaml/Compacting-using-a-default-vocabulary-expanded.yaml @@ -1,7 +1,7 @@ -Example 110: Compacting using a default vocabulary-expanded +Example 127: Compacting using a default vocabulary-expanded --- - "@id": http://example.org/places#BrewEats "@type": - - http://xmlns.com/foaf/0.1/Restaurant - http://xmlns.com/foaf/0.1/name: + - http://example.org/Restaurant + http://example.org/name: - "@value": Brew Eats diff --git a/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-original.yaml b/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-compacted.yaml similarity index 84% rename from yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-original.yaml rename to yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-compacted.yaml index 34734e46..74057271 100644 --- a/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-original.yaml +++ b/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-compacted.yaml @@ -1,4 +1,4 @@ -Example 099: Context needs to be duplicated if @graph is not used-original +Example 116: Context needs to be duplicated if @graph is not used-compacted --- - "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yaml b/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yaml index 55cc782a..3ae9252c 100644 --- a/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yaml +++ b/yaml/Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yaml @@ -1,4 +1,4 @@ -Example 099: Context needs to be duplicated if @graph is not used-expanded +Example 116: Context needs to be duplicated if @graph is not used-expanded --- - "@id": http://manu.sporny.org/about#manu "@type": diff --git a/yaml/Coordinates-expressed-in-GeoJSON.yaml b/yaml/Coordinates-expressed-in-GeoJSON.yaml index 6350fc72..d21abe57 100644 --- a/yaml/Coordinates-expressed-in-GeoJSON.yaml +++ b/yaml/Coordinates-expressed-in-GeoJSON.yaml @@ -1,4 +1,4 @@ -Example 070: Coordinates expressed in GeoJSON +Example 082: Coordinates expressed in GeoJSON --- type: Feature bbox: diff --git a/yaml/Coordinates-expressed-in-JSON-LD-original.yaml b/yaml/Coordinates-expressed-in-JSON-LD-compacted.yaml similarity index 86% rename from yaml/Coordinates-expressed-in-JSON-LD-original.yaml rename to yaml/Coordinates-expressed-in-JSON-LD-compacted.yaml index 045ffcf1..4a494cf5 100644 --- a/yaml/Coordinates-expressed-in-JSON-LD-original.yaml +++ b/yaml/Coordinates-expressed-in-JSON-LD-compacted.yaml @@ -1,4 +1,4 @@ -Example 071: Coordinates expressed in JSON-LD-original +Example 083: Coordinates expressed in JSON-LD-compacted --- "@context": "@vocab": https://purl.org/geojson/vocab# diff --git a/yaml/Coordinates-expressed-in-JSON-LD-expanded.yaml b/yaml/Coordinates-expressed-in-JSON-LD-expanded.yaml index 1ad1cc29..d8d71bf5 100644 --- a/yaml/Coordinates-expressed-in-JSON-LD-expanded.yaml +++ b/yaml/Coordinates-expressed-in-JSON-LD-expanded.yaml @@ -1,4 +1,4 @@ -Example 071: Coordinates expressed in JSON-LD-expanded +Example 083: Coordinates expressed in JSON-LD-expanded --- - "@type": - https://purl.org/geojson/vocab#Feature diff --git a/yaml/Defining-an-context-within-a-term-definition-original.yaml b/yaml/Defining-an-context-within-a-term-definition-compacted.yaml similarity index 80% rename from yaml/Defining-an-context-within-a-term-definition-original.yaml rename to yaml/Defining-an-context-within-a-term-definition-compacted.yaml index eb8d3c7c..7edf2548 100644 --- a/yaml/Defining-an-context-within-a-term-definition-original.yaml +++ b/yaml/Defining-an-context-within-a-term-definition-compacted.yaml @@ -1,4 +1,4 @@ -Example 044: Defining an @context within a term definition-original +Example 044: Defining an @context within a term definition-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Defining-an-context-within-a-term-definition-used-on-type-original.yaml b/yaml/Defining-an-context-within-a-term-definition-used-on-type-compacted.yaml similarity index 96% rename from yaml/Defining-an-context-within-a-term-definition-used-on-type-original.yaml rename to yaml/Defining-an-context-within-a-term-definition-used-on-type-compacted.yaml index f76db69e..200b2dce 100644 --- a/yaml/Defining-an-context-within-a-term-definition-used-on-type-original.yaml +++ b/yaml/Defining-an-context-within-a-term-definition-used-on-type-compacted.yaml @@ -1,4 +1,4 @@ -Example 045: Defining an @context within a term definition used on @type-original +Example 045: Defining an @context within a term definition used on @type-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Defining-property-nesting-Context.yaml b/yaml/Defining-property-nesting-Context.yaml new file mode 100644 index 00000000..d72e9626 --- /dev/null +++ b/yaml/Defining-property-nesting-Context.yaml @@ -0,0 +1,15 @@ +Example 090: Defining property nesting - Context +--- +"@context": + "@version": 1.1 + skos: http://www.w3.org/2004/02/skos/core# + labels: "@nest" + main_label: + "@id": skos:prefLabel + "@nest": labels + other_label: + "@id": skos:altLabel + "@nest": labels + homepage: + "@id": http://xmlns.com/foaf/0.1/homepage + "@type": "@id" diff --git a/yaml/Defining-property-nesting-expanded.yaml b/yaml/Defining-property-nesting-Expanded-Input.yaml similarity index 84% rename from yaml/Defining-property-nesting-expanded.yaml rename to yaml/Defining-property-nesting-Expanded-Input.yaml index 51a3c02e..bd61a5ac 100644 --- a/yaml/Defining-property-nesting-expanded.yaml +++ b/yaml/Defining-property-nesting-Expanded-Input.yaml @@ -1,4 +1,4 @@ -Example 077: Defining property nesting-expanded +Example 089: Defining property nesting - Expanded Input --- - "@id": http://example.org/myresource http://xmlns.com/foaf/0.1/homepage: diff --git a/yaml/Defining-property-nesting-original.yaml b/yaml/Defining-property-nesting-compacted.yaml similarity index 90% rename from yaml/Defining-property-nesting-original.yaml rename to yaml/Defining-property-nesting-compacted.yaml index 6c94a74a..ad28470a 100644 --- a/yaml/Defining-property-nesting-original.yaml +++ b/yaml/Defining-property-nesting-compacted.yaml @@ -1,4 +1,4 @@ -Example 077: Defining property nesting-original +Example 091: Defining property nesting-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Describing-disconnected-nodes-with-graph-original.yaml b/yaml/Describing-disconnected-nodes-with-graph-compacted.yaml similarity index 87% rename from yaml/Describing-disconnected-nodes-with-graph-original.yaml rename to yaml/Describing-disconnected-nodes-with-graph-compacted.yaml index 6c86a0a5..a14064ea 100644 --- a/yaml/Describing-disconnected-nodes-with-graph-original.yaml +++ b/yaml/Describing-disconnected-nodes-with-graph-compacted.yaml @@ -1,4 +1,4 @@ -Example 019: Describing disconnected nodes with @graph-original +Example 019: Describing disconnected nodes with @graph-compacted --- "@context": - https://json-ld.org/contexts/person.jsonld diff --git a/yaml/Describing-disconnected-nodes-with-included-compacted.yaml b/yaml/Describing-disconnected-nodes-with-included-compacted.yaml new file mode 100644 index 00000000..a3d90ec0 --- /dev/null +++ b/yaml/Describing-disconnected-nodes-with-included-compacted.yaml @@ -0,0 +1,17 @@ +Example 110: Describing disconnected nodes with @included-compacted +--- +"@context": + Person: http://xmlns.com/foaf/0.1/Person + name: http://xmlns.com/foaf/0.1/name + knows: + "@id": http://xmlns.com/foaf/0.1/knows + "@type": "@id" +"@included": +- "@id": http://manu.sporny.org/about#manu + "@type": Person + name: Manu Sporny + knows: https://greggkellogg.net/foaf#me +- "@id": https://greggkellogg.net/foaf#me + "@type": Person + name: Gregg Kellogg + knows: http://manu.sporny.org/about#manu diff --git a/yaml/Describing-disconnected-nodes-with-included-expanded.yaml b/yaml/Describing-disconnected-nodes-with-included-expanded.yaml new file mode 100644 index 00000000..c3d9b52d --- /dev/null +++ b/yaml/Describing-disconnected-nodes-with-included-expanded.yaml @@ -0,0 +1,17 @@ +Example 110: Describing disconnected nodes with @included-expanded +--- +- "@included": + - "@id": http://manu.sporny.org/about#manu + "@type": + - http://xmlns.com/foaf/0.1/Person + http://xmlns.com/foaf/0.1/name: + - "@value": Manu Sporny + http://xmlns.com/foaf/0.1/knows: + - "@id": https://greggkellogg.net/foaf#me + - "@id": https://greggkellogg.net/foaf#me + "@type": + - http://xmlns.com/foaf/0.1/Person + http://xmlns.com/foaf/0.1/name: + - "@value": Gregg Kellogg + http://xmlns.com/foaf/0.1/knows: + - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/Describing-disconnected-nodes-with-included-flattened.yaml b/yaml/Describing-disconnected-nodes-with-included-flattened.yaml new file mode 100644 index 00000000..06a94e41 --- /dev/null +++ b/yaml/Describing-disconnected-nodes-with-included-flattened.yaml @@ -0,0 +1,16 @@ +Example 110: Describing disconnected nodes with @included-flattened +--- +- "@id": http://manu.sporny.org/about#manu + "@type": + - http://xmlns.com/foaf/0.1/Person + http://xmlns.com/foaf/0.1/name: + - "@value": Manu Sporny + http://xmlns.com/foaf/0.1/knows: + - "@id": https://greggkellogg.net/foaf#me +- "@id": https://greggkellogg.net/foaf#me + "@type": + - http://xmlns.com/foaf/0.1/Person + http://xmlns.com/foaf/0.1/name: + - "@value": Gregg Kellogg + http://xmlns.com/foaf/0.1/knows: + - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/Embedded-contexts-within-node-objects-original.yaml b/yaml/Embedded-contexts-within-node-objects-compacted.yaml similarity index 79% rename from yaml/Embedded-contexts-within-node-objects-original.yaml rename to yaml/Embedded-contexts-within-node-objects-compacted.yaml index c32f3c35..a3726f11 100644 --- a/yaml/Embedded-contexts-within-node-objects-original.yaml +++ b/yaml/Embedded-contexts-within-node-objects-compacted.yaml @@ -1,4 +1,4 @@ -Example 020: Embedded contexts within node objects-original +Example 020: Embedded contexts within node objects-compacted --- "@context": name: http://example.com/person#name diff --git a/yaml/Embedding-JSON-LD-containing-HTML-in-HTML-expanded.yaml b/yaml/Embedding-JSON-LD-containing-HTML-in-HTML-expanded.yaml index f2d82fc6..6f55175b 100644 --- a/yaml/Embedding-JSON-LD-containing-HTML-in-HTML-expanded.yaml +++ b/yaml/Embedding-JSON-LD-containing-HTML-in-HTML-expanded.yaml @@ -1,4 +1,4 @@ -Example 128: Embedding JSON-LD containing HTML in HTML-expanded +Example 146: Embedding JSON-LD containing HTML in HTML-expanded --- - "@type": - http://schema.org/WebPageElement diff --git a/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml b/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml index 6c29e665..019e0a76 100644 --- a/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml +++ b/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml @@ -1,4 +1,4 @@ -Example 125: Embedding JSON-LD in HTML-expanded +Example 143: Embedding JSON-LD in HTML-expanded --- - "@id": http://dbpedia.org/resource/John_Lennon http://xmlns.com/foaf/0.1/name: diff --git a/yaml/Embedding-Objects-original.yaml b/yaml/Embedding-Objects-compacted.yaml similarity index 84% rename from yaml/Embedding-Objects-original.yaml rename to yaml/Embedding-Objects-compacted.yaml index 486ca0d9..82f2607f 100644 --- a/yaml/Embedding-Objects-original.yaml +++ b/yaml/Embedding-Objects-compacted.yaml @@ -1,4 +1,4 @@ -Example 017: Embedding Objects-original +Example 017: Embedding Objects-compacted --- "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-original.yaml b/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-compacted.yaml similarity index 66% rename from yaml/Embedding-a-node-object-as-property-value-of-another-node-object-original.yaml rename to yaml/Embedding-a-node-object-as-property-value-of-another-node-object-compacted.yaml index 8bc8d321..8af9d4b7 100644 --- a/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-original.yaml +++ b/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-compacted.yaml @@ -1,4 +1,4 @@ -Example 079: Embedding a node object as property value of another node object-original +Example 093: Embedding a node object as property value of another node object-compacted --- "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yaml b/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yaml index c7477312..1b55900c 100644 --- a/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yaml +++ b/yaml/Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yaml @@ -1,4 +1,4 @@ -Example 079: Embedding a node object as property value of another node object-expanded +Example 093: Embedding a node object as property value of another node object-expanded --- - "@type": - http://xmlns.com/foaf/0.1/Person diff --git a/yaml/Example-demonstrating-the-context-sensitivity-for-type.yaml b/yaml/Example-demonstrating-the-context-sensitivity-for-type.yaml index 37a1938d..e540c918 100644 --- a/yaml/Example-demonstrating-the-context-sensitivity-for-type.yaml +++ b/yaml/Example-demonstrating-the-context-sensitivity-for-type.yaml @@ -1,4 +1,4 @@ -Example 052: Example demonstrating the context-sensitivity for @type +Example 060: Example demonstrating the context-sensitivity for @type --- "@id": http://example.org/posts#TripToWestVirginia "@type": http://schema.org/BlogPosting diff --git a/yaml/Expanded-form-for-the-previous-example-expanded.yaml b/yaml/Expanded-form-for-the-previous-example-expanded.yaml index 619c74b4..8c0736ca 100644 --- a/yaml/Expanded-form-for-the-previous-example-expanded.yaml +++ b/yaml/Expanded-form-for-the-previous-example-expanded.yaml @@ -1,4 +1,4 @@ -Example 106: Expanded form for the previous example-expanded +Example 123: Expanded form for the previous example-expanded --- - http://xmlns.com/foaf/0.1/name: - "@value": Manu Sporny diff --git a/yaml/Expanded-term-definition-with-language-and-direction.yaml b/yaml/Expanded-term-definition-with-language-and-direction.yaml new file mode 100644 index 00000000..f27eae04 --- /dev/null +++ b/yaml/Expanded-term-definition-with-language-and-direction.yaml @@ -0,0 +1,19 @@ +Example 075: Expanded term definition with language and direction +--- +"@context": + "@version": 1.1 + "@language": ar-EG + "@direction": rtl + ex: http://example.com/vocab/ + publisher: + "@id": ex:publisher + "@direction": + title: + "@id": ex:title + title_en: + "@id": ex:title + "@language": en + "@direction": ltr +publisher: مكتبة +title: 'HTML و CSS: تصميم و إنشاء مواقع الويب' +title_en: 'HTML and CSS: Design and Build Websites' diff --git a/yaml/Expanded-term-definition-with-language.yaml b/yaml/Expanded-term-definition-with-language.yaml index 31c18748..1e88c20c 100644 --- a/yaml/Expanded-term-definition-with-language.yaml +++ b/yaml/Expanded-term-definition-with-language.yaml @@ -1,4 +1,4 @@ -Example 061: Expanded term definition with language +Example 069: Expanded term definition with language --- "@context": ex: http://example.com/vocab/ diff --git a/yaml/Expanded-term-definition-with-type-coercion-original.yaml b/yaml/Expanded-term-definition-with-type-coercion-compacted.yaml similarity index 74% rename from yaml/Expanded-term-definition-with-type-coercion-original.yaml rename to yaml/Expanded-term-definition-with-type-coercion-compacted.yaml index 99abc6f2..27fe7d47 100644 --- a/yaml/Expanded-term-definition-with-type-coercion-original.yaml +++ b/yaml/Expanded-term-definition-with-type-coercion-compacted.yaml @@ -1,4 +1,4 @@ -Example 050: Expanded term definition with type coercion-original +Example 058: Expanded term definition with type coercion-compacted --- "@context": modified: diff --git a/yaml/Expanded-term-definition-with-type-coercion-expanded.yaml b/yaml/Expanded-term-definition-with-type-coercion-expanded.yaml index da74e18b..5c1b89cb 100644 --- a/yaml/Expanded-term-definition-with-type-coercion-expanded.yaml +++ b/yaml/Expanded-term-definition-with-type-coercion-expanded.yaml @@ -1,4 +1,4 @@ -Example 050: Expanded term definition with type coercion-expanded +Example 058: Expanded term definition with type coercion-expanded --- - "@id": http://example.com/docs/1 http://purl.org/dc/terms/modified: diff --git a/yaml/Expanded-term-definition-with-types-original.yaml b/yaml/Expanded-term-definition-with-types-compacted.yaml similarity index 86% rename from yaml/Expanded-term-definition-with-types-original.yaml rename to yaml/Expanded-term-definition-with-types-compacted.yaml index 1287f344..dd034e52 100644 --- a/yaml/Expanded-term-definition-with-types-original.yaml +++ b/yaml/Expanded-term-definition-with-types-compacted.yaml @@ -1,4 +1,4 @@ -Example 055: Expanded term definition with types-original +Example 063: Expanded term definition with types-compacted --- "@context": xsd: http://www.w3.org/2001/XMLSchema# diff --git a/yaml/Expanded-term-definition-with-types-expanded.yaml b/yaml/Expanded-term-definition-with-types-expanded.yaml index 33af32bd..be91e0fa 100644 --- a/yaml/Expanded-term-definition-with-types-expanded.yaml +++ b/yaml/Expanded-term-definition-with-types-expanded.yaml @@ -1,4 +1,4 @@ -Example 055: Expanded term definition with types-expanded +Example 063: Expanded term definition with types-expanded --- - "@id": http://example.com/people#john http://xmlns.com/foaf/0.1/name: diff --git a/yaml/Expanded-value-with-type-original.yaml b/yaml/Expanded-value-with-type-compacted.yaml similarity index 78% rename from yaml/Expanded-value-with-type-original.yaml rename to yaml/Expanded-value-with-type-compacted.yaml index b5b29b2a..a9c60aea 100644 --- a/yaml/Expanded-value-with-type-original.yaml +++ b/yaml/Expanded-value-with-type-compacted.yaml @@ -1,4 +1,4 @@ -Example 051: Expanded value with type-original +Example 059: Expanded value with type-compacted --- "@context": modified: diff --git a/yaml/Expanded-value-with-type-expanded.yaml b/yaml/Expanded-value-with-type-expanded.yaml index dd90490c..6e29ef78 100644 --- a/yaml/Expanded-value-with-type-expanded.yaml +++ b/yaml/Expanded-value-with-type-expanded.yaml @@ -1,4 +1,4 @@ -Example 051: Expanded value with type-expanded +Example 059: Expanded value with type-expanded --- - http://purl.org/dc/terms/modified: - "@type": http://www.w3.org/2001/XMLSchema#dateTime diff --git a/yaml/Expansion-using-embedded-and-scoped-contexts-embedding-equivalent-.yaml b/yaml/Expansion-using-embedded-and-scoped-contexts-embedding-equivalent-.yaml new file mode 100644 index 00000000..72eef9f8 --- /dev/null +++ b/yaml/Expansion-using-embedded-and-scoped-contexts-embedding-equivalent-.yaml @@ -0,0 +1,20 @@ +Example 047: Expansion using embedded and scoped contexts (embedding equivalent) +--- +"@context": + "@vocab": http://example.com/vocab/ + property: http://example.com/vocab/property + Type1: http://example.com/vocab/Type1 + Type2: http://example.com/vocab/Type2 +property: + "@context": + - term1: http://example.com/vocab/term1 + - term2: http://example.com/vocab/term2 + - term3: http://example.com/vocab/term3 + - term4: http://example.com/vocab/term4 + "@type": + - Type2 + - Type1 + term1: a + term2: b + term3: c + term4: d diff --git a/yaml/Expansion-using-embedded-and-scoped-contexts.yaml b/yaml/Expansion-using-embedded-and-scoped-contexts.yaml new file mode 100644 index 00000000..a495016a --- /dev/null +++ b/yaml/Expansion-using-embedded-and-scoped-contexts.yaml @@ -0,0 +1,27 @@ +Example 046: Expansion using embedded and scoped contexts +--- +"@context": + "@version": 1.1 + "@vocab": http://example.com/vocab/ + property: + "@id": http://example.com/vocab/property + "@context": + term1: http://example.com/vocab/term1 + Type1: + "@id": http://example.com/vocab/Type1 + "@context": + term3: http://example.com/vocab/term3 + Type2: + "@id": http://example.com/vocab/Type2 + "@context": + term4: http://example.com/vocab/term4 +property: + "@context": + term2: http://example.com/vocab/term2 + "@type": + - Type2 + - Type1 + term1: a + term2: b + term3: c + term4: d diff --git a/yaml/Flattened-and-compacted-form-for-the-previous-example-original.yaml b/yaml/Flattened-and-compacted-form-for-the-previous-example-original.yaml index f3602389..27863472 100644 --- a/yaml/Flattened-and-compacted-form-for-the-previous-example-original.yaml +++ b/yaml/Flattened-and-compacted-form-for-the-previous-example-original.yaml @@ -1,4 +1,4 @@ -Example 120: Flattened and compacted form for the previous example-original +Example 137: Flattened and compacted form for the previous example-original --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/Flattened-and-expanded-form-for-the-previous-example.yaml b/yaml/Flattened-and-expanded-form-for-the-previous-example.yaml index caed2b36..9cf3cc52 100644 --- a/yaml/Flattened-and-expanded-form-for-the-previous-example.yaml +++ b/yaml/Flattened-and-expanded-form-for-the-previous-example.yaml @@ -1,4 +1,4 @@ -Example 135: Flattened and expanded form for the previous example +Example 151: Flattened and expanded form for the previous example --- - "@id": _:b0 http://xmlns.com/foaf/0.1/name: Dave Longley diff --git a/yaml/Flattened-form-for-included-blocks-flattened.yaml b/yaml/Flattened-form-for-included-blocks-flattened.yaml new file mode 100644 index 00000000..5a629856 --- /dev/null +++ b/yaml/Flattened-form-for-included-blocks-flattened.yaml @@ -0,0 +1,26 @@ +Example 109: Flattened form for included blocks-flattened +--- +- "@id": http://example.org/base/1 + "@type": + - http://example.org/Thing-with-Items + http://example.org/items: + - "@id": http://example.org/base/2 + - "@id": http://example.org/base/3 +- "@id": http://example.org/enum#c6 + "@type": + - http://example.org/Type + http://example.org/label: + - "@value": Classification 6 +- "@id": http://example.org/enum#s2 + "@type": + - http://example.org/Service + http://example.org/label: + - "@value": Login Service +- "@id": http://example.org/base/2 + http://example.org/classification: + - "@id": http://example.org/enum#c6 + http://example.org/service: + - "@id": http://example.org/enum#s2 +- "@id": http://example.org/base/3 + http://example.org/classification: + - "@id": http://example.org/enum#c6 diff --git a/yaml/Flattened-library-objects.yaml b/yaml/Flattened-library-objects.yaml index ff2dc3e1..53a3e499 100644 --- a/yaml/Flattened-library-objects.yaml +++ b/yaml/Flattened-library-objects.yaml @@ -1,4 +1,4 @@ -Example 122: Flattened library objects +Example 139: Flattened library objects --- "@context": "@vocab": http://example.org/ diff --git a/yaml/Forcing-Object-Values-compacted.yaml b/yaml/Forcing-Object-Values-compacted.yaml index c7a7663a..d5a45899 100644 --- a/yaml/Forcing-Object-Values-compacted.yaml +++ b/yaml/Forcing-Object-Values-compacted.yaml @@ -1,4 +1,4 @@ -Example 116: Forcing Object Values-compacted +Example 133: Forcing Object Values-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Forcing-Object-Values-context.yaml b/yaml/Forcing-Object-Values-context.yaml index 478e168a..6817aa63 100644 --- a/yaml/Forcing-Object-Values-context.yaml +++ b/yaml/Forcing-Object-Values-context.yaml @@ -1,4 +1,4 @@ -Example 116: Forcing Object Values-context +Example 133: Forcing Object Values-context --- "@context": "@version": 1.1 diff --git a/yaml/Forcing-Object-Values-expanded.yaml b/yaml/Forcing-Object-Values-expanded.yaml index c9bda9b3..16814bd8 100644 --- a/yaml/Forcing-Object-Values-expanded.yaml +++ b/yaml/Forcing-Object-Values-expanded.yaml @@ -1,4 +1,4 @@ -Example 116: Forcing Object Values-expanded +Example 133: Forcing Object Values-expanded --- - http://example.com/notype: - "@value": string diff --git a/yaml/Framed-library-objects-original.yaml b/yaml/Framed-library-objects-original.yaml index e3ce5f94..434eb4b4 100644 --- a/yaml/Framed-library-objects-original.yaml +++ b/yaml/Framed-library-objects-original.yaml @@ -1,4 +1,4 @@ -Example 123: Framed library objects-original +Example 140: Framed library objects-original --- "@context": "@version": 1.1 diff --git a/yaml/Identifying-a-node-original.yaml b/yaml/Identifying-a-node-compacted.yaml similarity index 72% rename from yaml/Identifying-a-node-original.yaml rename to yaml/Identifying-a-node-compacted.yaml index a29338bb..ae34f07c 100644 --- a/yaml/Identifying-a-node-original.yaml +++ b/yaml/Identifying-a-node-compacted.yaml @@ -1,4 +1,4 @@ -Example 012: Identifying a node-original +Example 012: Identifying a node-compacted --- "@context": name: http://schema.org/name diff --git a/yaml/Identifying-and-making-statements-about-a-graph-original.yaml b/yaml/Identifying-and-making-statements-about-a-graph-compacted.yaml similarity index 76% rename from yaml/Identifying-and-making-statements-about-a-graph-original.yaml rename to yaml/Identifying-and-making-statements-about-a-graph-compacted.yaml index 9851ff25..f8cb0b50 100644 --- a/yaml/Identifying-and-making-statements-about-a-graph-original.yaml +++ b/yaml/Identifying-and-making-statements-about-a-graph-compacted.yaml @@ -1,16 +1,16 @@ -Example 097: Identifying and making statements about a graph-original +Example 114: Identifying and making statements about a graph-compacted --- "@context": generatedAt: "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date + "@type": http://www.w3.org/2001/XMLSchema#dateTime Person: http://xmlns.com/foaf/0.1/Person name: http://xmlns.com/foaf/0.1/name knows: "@id": http://xmlns.com/foaf/0.1/knows "@type": "@id" "@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' +generatedAt: '2012-04-09T00:00:00' "@graph": - "@id": http://manu.sporny.org/about#manu "@type": Person diff --git a/yaml/Identifying-and-making-statements-about-a-graph-expanded.yaml b/yaml/Identifying-and-making-statements-about-a-graph-expanded.yaml index 70634046..91582d8a 100644 --- a/yaml/Identifying-and-making-statements-about-a-graph-expanded.yaml +++ b/yaml/Identifying-and-making-statements-about-a-graph-expanded.yaml @@ -1,9 +1,9 @@ -Example 097: Identifying and making statements about a graph-expanded +Example 114: Identifying and making statements about a graph-expanded --- - "@id": http://example.org/foaf-graph http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date + - "@value": '2012-04-09T00:00:00' + "@type": http://www.w3.org/2001/XMLSchema#dateTime "@graph": - "@id": http://manu.sporny.org/about#manu "@type": diff --git a/yaml/Implicitly-named-graph-original.yaml b/yaml/Implicitly-named-graph-compacted.yaml similarity index 85% rename from yaml/Implicitly-named-graph-original.yaml rename to yaml/Implicitly-named-graph-compacted.yaml index 8c9b26bc..bf56df1b 100644 --- a/yaml/Implicitly-named-graph-original.yaml +++ b/yaml/Implicitly-named-graph-compacted.yaml @@ -1,4 +1,4 @@ -Example 100: Implicitly named graph-original +Example 117: Implicitly named graph-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Implicitly-named-graph-expanded.yaml b/yaml/Implicitly-named-graph-expanded.yaml index 6c049888..da544ef8 100644 --- a/yaml/Implicitly-named-graph-expanded.yaml +++ b/yaml/Implicitly-named-graph-expanded.yaml @@ -1,4 +1,4 @@ -Example 100: Implicitly named graph-expanded +Example 117: Implicitly named graph-expanded --- - "@id": http://dbpedia.org/resource/William_Shakespeare http://example.com/wrote: diff --git a/yaml/In-line-context-definition-original.yaml b/yaml/In-line-context-definition-compacted.yaml similarity index 84% rename from yaml/In-line-context-definition-original.yaml rename to yaml/In-line-context-definition-compacted.yaml index 728f774e..ab1967b0 100644 --- a/yaml/In-line-context-definition-original.yaml +++ b/yaml/In-line-context-definition-compacted.yaml @@ -1,4 +1,4 @@ -Example 006: In-line context definition-original +Example 006: In-line context definition-compacted --- "@context": name: http://schema.org/name diff --git a/yaml/Included-Blocks.yaml b/yaml/Included-Blocks.yaml new file mode 100644 index 00000000..a67d3979 --- /dev/null +++ b/yaml/Included-Blocks.yaml @@ -0,0 +1,24 @@ +Example 108: Included Blocks +--- +"@context": + "@version": 1.1 + "@vocab": http://example.org/ + classification: + "@type": "@vocab" + service: + "@type": "@vocab" +"@id": http://example.org/base/1 +"@type": Thing-with-Items +items: +- "@id": http://example.org/base/2 + classification: enum#c6 + service: enum#s2 +- "@id": http://example.org/base/3 + classification: enum#c6 +"@included": +- "@id": http://example.org/enum#c6 + "@type": Type + label: Classification 6 +- "@id": http://example.org/enum#s2 + "@type": Service + label: Login Service diff --git a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-original.yaml b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-compacted.yaml similarity index 78% rename from yaml/Indexing-data-in-JSON-LD-by-node-identifiers-original.yaml rename to yaml/Indexing-data-in-JSON-LD-by-node-identifiers-compacted.yaml index efa4de1a..07c13c8d 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-original.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-compacted.yaml @@ -1,7 +1,8 @@ -Example 088: Indexing data in JSON-LD by node identifiers-original +Example 102: Indexing data in JSON-LD by node identifiers-compacted --- "@context": "@version": 1.1 + "@base": http://example.com/posts/ schema: http://schema.org/ name: schema:name body: schema:articleBody @@ -13,9 +14,9 @@ Example 088: Indexing data in JSON-LD by node identifiers-original "@type": schema:Blog name: World Financial News post: - http://example.com/posts/1/en: + 1/en: body: World commodities were up today with heavy trading of crude oil... words: 1539 - http://example.com/posts/1/de: + 1/de: body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... words: 1204 diff --git a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yaml index 1bd7bedc..c8368946 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yaml @@ -1,4 +1,4 @@ -Example 088: Indexing data in JSON-LD by node identifiers-expanded +Example 102: Indexing data in JSON-LD by node identifiers-expanded --- - "@id": http://example.com/ "@type": diff --git a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yaml b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-compacted.yaml similarity index 88% rename from yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yaml rename to yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-compacted.yaml index d0874b3c..f4f03ec7 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-compacted.yaml @@ -1,4 +1,4 @@ -Example 090: Indexing data in JSON-LD by node identifiers using @none-original +Example 104: Indexing data in JSON-LD by node identifiers using @none-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yaml index b6a043af..c0d8e95a 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yaml @@ -1,4 +1,4 @@ -Example 090: Indexing data in JSON-LD by node identifiers using @none-expanded +Example 104: Indexing data in JSON-LD by node identifiers using @none-expanded --- - "@id": http://example.com/ "@type": diff --git a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yaml b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-compacted.yaml similarity index 85% rename from yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yaml rename to yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-compacted.yaml index 9f56a24b..96587759 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-compacted.yaml @@ -1,4 +1,4 @@ -Example 089: Indexing data in JSON-LD by node identifiers with @set representation-original +Example 103: Indexing data in JSON-LD by node identifiers with @set representation-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yaml index b6b8d4bb..b2fe66fd 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yaml @@ -1,4 +1,4 @@ -Example 089: Indexing data in JSON-LD by node identifiers with @set representation-expanded +Example 103: Indexing data in JSON-LD by node identifiers with @set representation-expanded --- - "@id": http://example.com/ "@type": diff --git a/yaml/Indexing-data-in-JSON-LD-by-type-original.yaml b/yaml/Indexing-data-in-JSON-LD-by-type-compacted.yaml similarity index 86% rename from yaml/Indexing-data-in-JSON-LD-by-type-original.yaml rename to yaml/Indexing-data-in-JSON-LD-by-type-compacted.yaml index dfa7d5d9..5180e8e2 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-type-original.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-type-compacted.yaml @@ -1,4 +1,4 @@ -Example 091: Indexing data in JSON-LD by type-original +Example 105: Indexing data in JSON-LD by type-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-data-in-JSON-LD-by-type-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-by-type-expanded.yaml index fd688ce9..4445f8f9 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-type-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-type-expanded.yaml @@ -1,4 +1,4 @@ -Example 091: Indexing data in JSON-LD by type-expanded +Example 105: Indexing data in JSON-LD by type-expanded --- - http://schema.org/name: - "@value": Manu Sporny diff --git a/yaml/Indexing-data-in-JSON-LD-by-type-using-none-original.yaml b/yaml/Indexing-data-in-JSON-LD-by-type-using-none-compacted.yaml similarity index 86% rename from yaml/Indexing-data-in-JSON-LD-by-type-using-none-original.yaml rename to yaml/Indexing-data-in-JSON-LD-by-type-using-none-compacted.yaml index e555ac46..013f2be2 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-type-using-none-original.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-type-using-none-compacted.yaml @@ -1,4 +1,4 @@ -Example 093: Indexing data in JSON-LD by type using @none-original +Example 107: Indexing data in JSON-LD by type using @none-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-data-in-JSON-LD-by-type-using-none-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-by-type-using-none-expanded.yaml index 792a3245..e141cf07 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-type-using-none-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-type-using-none-expanded.yaml @@ -1,4 +1,4 @@ -Example 093: Indexing data in JSON-LD by type using @none-expanded +Example 107: Indexing data in JSON-LD by type using @none-expanded --- - http://schema.org/name: - "@value": Manu Sporny diff --git a/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yaml b/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-compacted.yaml similarity index 82% rename from yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yaml rename to yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-compacted.yaml index 60f524d3..8e5b04db 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-compacted.yaml @@ -1,4 +1,4 @@ -Example 092: Indexing data in JSON-LD by type with @set representation-original +Example 106: Indexing data in JSON-LD by type with @set representation-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yaml index d49a1bd7..0f965bc7 100644 --- a/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yaml @@ -1,4 +1,4 @@ -Example 092: Indexing data in JSON-LD by type with @set representation-expanded +Example 106: Indexing data in JSON-LD by type with @set representation-expanded --- - http://schema.org/name: - "@value": Manu Sporny diff --git a/yaml/Indexing-data-in-JSON-LD-compacted.yaml b/yaml/Indexing-data-in-JSON-LD-compacted.yaml new file mode 100644 index 00000000..02498634 --- /dev/null +++ b/yaml/Indexing-data-in-JSON-LD-compacted.yaml @@ -0,0 +1,22 @@ +Example 096: Indexing data in JSON-LD-compacted +--- +"@context": + schema: http://schema.org/ + name: schema:name + body: schema:articleBody + athletes: + "@id": schema:athlete + "@container": "@index" + position: schema:jobTitle +"@id": http://example.com/ +"@type": schema:SportsTeam +name: San Franciso Giants +athletes: + catcher: + "@type": schema:Person + name: Buster Posey + position: Catcher + pitcher: + "@type": schema:Person + name: Madison Bumgarner + position: Starting Pitcher diff --git a/yaml/Indexing-data-in-JSON-LD-expanded.yaml b/yaml/Indexing-data-in-JSON-LD-expanded.yaml index a1b27d9c..01f16660 100644 --- a/yaml/Indexing-data-in-JSON-LD-expanded.yaml +++ b/yaml/Indexing-data-in-JSON-LD-expanded.yaml @@ -1,21 +1,22 @@ -Example 082: Indexing data in JSON-LD-expanded +Example 096: Indexing data in JSON-LD-expanded --- - "@id": http://example.com/ "@type": - - http://schema.org/Blog + - http://schema.org/SportsTeam http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - "@index": en - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 - "@index": de + - "@value": San Franciso Giants + http://schema.org/athlete: + - "@type": + - http://schema.org/Person + http://schema.org/name: + - "@value": Buster Posey + http://schema.org/jobTitle: + - "@value": Catcher + "@index": catcher + - "@type": + - http://schema.org/Person + http://schema.org/name: + - "@value": Madison Bumgarner + http://schema.org/jobTitle: + - "@value": Starting Pitcher + "@index": pitcher diff --git a/yaml/Indexing-data-in-JSON-LD-original.yaml b/yaml/Indexing-data-in-JSON-LD-original.yaml deleted file mode 100644 index 87bfb559..00000000 --- a/yaml/Indexing-data-in-JSON-LD-original.yaml +++ /dev/null @@ -1,22 +0,0 @@ -Example 082: Indexing data in JSON-LD-original ---- -"@context": - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@index" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - de: - "@id": http://example.com/posts/1/de - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/Indexing-data-using-none-compacted.yaml b/yaml/Indexing-data-using-none-compacted.yaml new file mode 100644 index 00000000..8a299658 --- /dev/null +++ b/yaml/Indexing-data-using-none-compacted.yaml @@ -0,0 +1,26 @@ +Example 097: Indexing data using @none-compacted +--- +"@context": + "@version": 1.1 + schema: http://schema.org/ + name: schema:name + body: schema:articleBody + athletes: + "@id": schema:athlete + "@container": "@index" + position: schema:jobTitle +"@id": http://example.com/ +"@type": schema:SportsTeam +name: San Franciso Giants +athletes: + catcher: + "@type": schema:Person + name: Buster Posey + position: Catcher + pitcher: + "@type": schema:Person + name: Madison Bumgarner + position: Starting Pitcher + "@none": + name: Lou Seal + position: Mascot diff --git a/yaml/Indexing-data-using-none-expanded.yaml b/yaml/Indexing-data-using-none-expanded.yaml index 6a045327..c42423e6 100644 --- a/yaml/Indexing-data-using-none-expanded.yaml +++ b/yaml/Indexing-data-using-none-expanded.yaml @@ -1,26 +1,26 @@ -Example 083: Indexing data using @none-expanded +Example 097: Indexing data using @none-expanded --- - "@id": http://example.com/ "@type": - - http://schema.org/Blog + - http://schema.org/SportsTeam http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - "@index": en - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 - "@index": de - - "@id": http://example.com/posts/1/no-language - http://schema.org/articleBody: - - "@value": Unindexed description - http://schema.org/wordCount: - - "@value": 20 + - "@value": San Franciso Giants + http://schema.org/athlete: + - "@type": + - http://schema.org/Person + http://schema.org/name: + - "@value": Buster Posey + http://schema.org/jobTitle: + - "@value": Catcher + "@index": catcher + - "@type": + - http://schema.org/Person + http://schema.org/name: + - "@value": Madison Bumgarner + http://schema.org/jobTitle: + - "@value": Starting Pitcher + "@index": pitcher + - http://schema.org/name: + - "@value": Lou Seal + http://schema.org/jobTitle: + - "@value": Mascot diff --git a/yaml/Indexing-data-using-none-original.yaml b/yaml/Indexing-data-using-none-original.yaml deleted file mode 100644 index 9e886f24..00000000 --- a/yaml/Indexing-data-using-none-original.yaml +++ /dev/null @@ -1,27 +0,0 @@ -Example 083: Indexing data using @none-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@index" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - de: - "@id": http://example.com/posts/1/de - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 - "@none": - "@id": http://example.com/posts/1/no-language - body: Unindexed description - words: 20 diff --git a/yaml/Indexing-graph-data-in-JSON-LD-original.yaml b/yaml/Indexing-graph-data-in-JSON-LD-compacted.yaml similarity index 91% rename from yaml/Indexing-graph-data-in-JSON-LD-original.yaml rename to yaml/Indexing-graph-data-in-JSON-LD-compacted.yaml index c3487a92..15e076d3 100644 --- a/yaml/Indexing-graph-data-in-JSON-LD-original.yaml +++ b/yaml/Indexing-graph-data-in-JSON-LD-compacted.yaml @@ -1,4 +1,4 @@ -Example 101: Indexing graph data in JSON-LD-original +Example 118: Indexing graph data in JSON-LD-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-graph-data-in-JSON-LD-expanded.yaml b/yaml/Indexing-graph-data-in-JSON-LD-expanded.yaml index 123c1788..ec2747cb 100644 --- a/yaml/Indexing-graph-data-in-JSON-LD-expanded.yaml +++ b/yaml/Indexing-graph-data-in-JSON-LD-expanded.yaml @@ -1,4 +1,4 @@ -Example 101: Indexing graph data in JSON-LD-expanded +Example 118: Indexing graph data in JSON-LD-expanded --- - "@id": http://example.com/ "@type": diff --git a/yaml/Indexing-graphs-using-none-for-no-index-original.yaml b/yaml/Indexing-graphs-using-none-for-no-index-compacted.yaml similarity index 90% rename from yaml/Indexing-graphs-using-none-for-no-index-original.yaml rename to yaml/Indexing-graphs-using-none-for-no-index-compacted.yaml index d2eca4d1..00fcb1f9 100644 --- a/yaml/Indexing-graphs-using-none-for-no-index-original.yaml +++ b/yaml/Indexing-graphs-using-none-for-no-index-compacted.yaml @@ -1,4 +1,4 @@ -Example 102: Indexing graphs using @none for no index-original +Example 119: Indexing graphs using @none for no index-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-graphs-using-none-for-no-index-expanded.yaml b/yaml/Indexing-graphs-using-none-for-no-index-expanded.yaml index eecd3ef1..ecf3b19b 100644 --- a/yaml/Indexing-graphs-using-none-for-no-index-expanded.yaml +++ b/yaml/Indexing-graphs-using-none-for-no-index-expanded.yaml @@ -1,4 +1,4 @@ -Example 102: Indexing graphs using @none for no index-expanded +Example 119: Indexing graphs using @none for no index-expanded --- - "@id": http://example.com/ "@type": diff --git a/yaml/Indexing-language-tagged-strings-and-set-compacted.yaml b/yaml/Indexing-language-tagged-strings-and-set-compacted.yaml index b522719d..a6ef8100 100644 --- a/yaml/Indexing-language-tagged-strings-and-set-compacted.yaml +++ b/yaml/Indexing-language-tagged-strings-and-set-compacted.yaml @@ -1,4 +1,4 @@ -Example 117: Indexing language-tagged strings and @set-compacted +Example 134: Indexing language-tagged strings and @set-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-language-tagged-strings-and-set-context.yaml b/yaml/Indexing-language-tagged-strings-and-set-context.yaml index ca3422fc..38a34c55 100644 --- a/yaml/Indexing-language-tagged-strings-and-set-context.yaml +++ b/yaml/Indexing-language-tagged-strings-and-set-context.yaml @@ -1,4 +1,4 @@ -Example 117: Indexing language-tagged strings and @set-context +Example 134: Indexing language-tagged strings and @set-context --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-language-tagged-strings-and-set-expanded.yaml b/yaml/Indexing-language-tagged-strings-and-set-expanded.yaml index c30335be..eeb2bbc2 100644 --- a/yaml/Indexing-language-tagged-strings-and-set-expanded.yaml +++ b/yaml/Indexing-language-tagged-strings-and-set-expanded.yaml @@ -1,4 +1,4 @@ -Example 117: Indexing language-tagged strings and @set-expanded +Example 134: Indexing language-tagged strings and @set-expanded --- - "@id": http://example.com/queen http://example.com/vocab/label: diff --git a/yaml/Indexing-language-tagged-strings-compacted.yaml b/yaml/Indexing-language-tagged-strings-compacted.yaml index a7112f39..cbcd9d4e 100644 --- a/yaml/Indexing-language-tagged-strings-compacted.yaml +++ b/yaml/Indexing-language-tagged-strings-compacted.yaml @@ -1,4 +1,4 @@ -Example 115: Indexing language-tagged strings-compacted +Example 132: Indexing language-tagged strings-compacted --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/Indexing-language-tagged-strings-context.yaml b/yaml/Indexing-language-tagged-strings-context.yaml index 4c92240b..a45336b4 100644 --- a/yaml/Indexing-language-tagged-strings-context.yaml +++ b/yaml/Indexing-language-tagged-strings-context.yaml @@ -1,4 +1,4 @@ -Example 115: Indexing language-tagged strings-context +Example 132: Indexing language-tagged strings-context --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/Indexing-language-tagged-strings-expanded.yaml b/yaml/Indexing-language-tagged-strings-expanded.yaml index d4a4ba4f..4a65f244 100644 --- a/yaml/Indexing-language-tagged-strings-expanded.yaml +++ b/yaml/Indexing-language-tagged-strings-expanded.yaml @@ -1,4 +1,4 @@ -Example 115: Indexing language-tagged strings-expanded +Example 132: Indexing language-tagged strings-expanded --- - "@id": http://example.com/queen http://example.com/vocab/label: diff --git a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-original.yaml b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-compacted.yaml similarity index 75% rename from yaml/Indexing-languaged-tagged-strings-in-JSON-LD-original.yaml rename to yaml/Indexing-languaged-tagged-strings-in-JSON-LD-compacted.yaml index b858a9f6..3d8f44d0 100644 --- a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-original.yaml +++ b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-compacted.yaml @@ -1,4 +1,4 @@ -Example 085: Indexing languaged-tagged strings in JSON-LD-original +Example 099: Indexing languaged-tagged strings in JSON-LD-compacted --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yaml b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yaml index 01e9d2df..373097b7 100644 --- a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yaml +++ b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yaml @@ -1,4 +1,4 @@ -Example 085: Indexing languaged-tagged strings in JSON-LD-expanded +Example 099: Indexing languaged-tagged strings in JSON-LD-expanded --- - "@id": http://example.com/queen http://example.com/vocab/label: diff --git a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yaml b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-compacted.yaml similarity index 72% rename from yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yaml rename to yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-compacted.yaml index b39ef620..81cd9c04 100644 --- a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yaml +++ b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-compacted.yaml @@ -1,4 +1,4 @@ -Example 086: Indexing languaged-tagged strings in JSON-LD with @set representation-original +Example 100: Indexing languaged-tagged strings in JSON-LD with @set representation-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yaml b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yaml index 4d430b77..712212fa 100644 --- a/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yaml +++ b/yaml/Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yaml @@ -1,4 +1,4 @@ -Example 086: Indexing languaged-tagged strings in JSON-LD with @set representation-expanded +Example 100: Indexing languaged-tagged strings in JSON-LD with @set representation-expanded --- - "@id": http://example.com/queen http://example.com/vocab/label: diff --git a/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-original.yaml b/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-compacted.yaml similarity index 73% rename from yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-original.yaml rename to yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-compacted.yaml index 4a4f16c0..42c6e357 100644 --- a/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-original.yaml +++ b/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-compacted.yaml @@ -1,4 +1,4 @@ -Example 087: Indexing languaged-tagged strings using @none for no language-original +Example 101: Indexing languaged-tagged strings using @none for no language-compacted --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yaml b/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yaml index aaf4f246..49b4ec4d 100644 --- a/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yaml +++ b/yaml/Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yaml @@ -1,4 +1,4 @@ -Example 087: Indexing languaged-tagged strings using @none for no language-expanded +Example 101: Indexing languaged-tagged strings using @none for no language-expanded --- - "@id": http://example.com/queen http://example.com/vocab/label: diff --git a/yaml/JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yaml b/yaml/JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yaml index 0943697a..d900bce6 100644 --- a/yaml/JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yaml +++ b/yaml/JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yaml @@ -1,4 +1,4 @@ -Example 141: JSON-LD using native data types for numbers and boolean values +Example 157: JSON-LD using native data types for numbers and boolean values --- "@context": ex: http://example.com/vocab# diff --git a/yaml/JSON-Literal-original.yaml b/yaml/JSON-Literal-compacted.yaml similarity index 79% rename from yaml/JSON-Literal-original.yaml rename to yaml/JSON-Literal-compacted.yaml index 10c160cf..6a71627b 100644 --- a/yaml/JSON-Literal-original.yaml +++ b/yaml/JSON-Literal-compacted.yaml @@ -1,4 +1,4 @@ -Example 054: JSON Literal-original +Example 062: JSON Literal-compacted --- "@context": "@version": 1.1 diff --git a/yaml/JSON-Literal-expanded.yaml b/yaml/JSON-Literal-expanded.yaml index cd4b89ee..1b669575 100644 --- a/yaml/JSON-Literal-expanded.yaml +++ b/yaml/JSON-Literal-expanded.yaml @@ -1,4 +1,4 @@ -Example 054: JSON Literal-expanded +Example 062: JSON Literal-expanded --- - http://example.com/vocab/json: - "@value": diff --git a/yaml/Language-map-expressing-a-property-in-three-languages.yaml b/yaml/Language-map-expressing-a-property-in-three-languages.yaml index d70c17c6..732ad23d 100644 --- a/yaml/Language-map-expressing-a-property-in-three-languages.yaml +++ b/yaml/Language-map-expressing-a-property-in-three-languages.yaml @@ -1,4 +1,4 @@ -Example 062: Language map expressing a property in three languages +Example 070: Language map expressing a property in three languages --- "@context": occupation: diff --git a/yaml/Linked-Data-Dataset-compacted.yaml b/yaml/Linked-Data-Dataset-compacted.yaml index 8fd49c82..fff7074a 100644 --- a/yaml/Linked-Data-Dataset-compacted.yaml +++ b/yaml/Linked-Data-Dataset-compacted.yaml @@ -1,4 +1,4 @@ -Example 133: Linked Data Dataset-compacted +Example 149: Linked Data Dataset-compacted --- "@context": - http://schema.org/ diff --git a/yaml/Linked-Data-Dataset-expanded.yaml b/yaml/Linked-Data-Dataset-expanded.yaml index 778b88f3..3149e614 100644 --- a/yaml/Linked-Data-Dataset-expanded.yaml +++ b/yaml/Linked-Data-Dataset-expanded.yaml @@ -1,4 +1,4 @@ -Example 133: Linked Data Dataset-expanded +Example 149: Linked Data Dataset-expanded --- - "@id": http://example.com/people/alice http://schema.org/name: diff --git a/yaml/Marking-a-context-to-not-propagate-compacted.yaml b/yaml/Marking-a-context-to-not-propagate-compacted.yaml new file mode 100644 index 00000000..f6d9e134 --- /dev/null +++ b/yaml/Marking-a-context-to-not-propagate-compacted.yaml @@ -0,0 +1,12 @@ +Example 048: Marking a context to not propagate-compacted +--- +"@context": + "@version": 1.1 + term: + "@id": http://example.org/original + "@context": + "@propagate": false + term: http://example.org/non-propagated-term +term: + term: + term: This term is from the first context diff --git a/yaml/Marking-a-context-to-not-propagate-expanded.yaml b/yaml/Marking-a-context-to-not-propagate-expanded.yaml new file mode 100644 index 00000000..99846739 --- /dev/null +++ b/yaml/Marking-a-context-to-not-propagate-expanded.yaml @@ -0,0 +1,6 @@ +Example 048: Marking a context to not propagate-expanded +--- +- http://example.org/original: + - http://example.org/non-propagated-term: + - http://example.org/original: + - "@value": This term is from the first context diff --git a/yaml/Multiple-array-values-of-different-types-original.yaml b/yaml/Multiple-array-values-of-different-types-compacted.yaml similarity index 62% rename from yaml/Multiple-array-values-of-different-types-original.yaml rename to yaml/Multiple-array-values-of-different-types-compacted.yaml index 63da73dd..707c6bf8 100644 --- a/yaml/Multiple-array-values-of-different-types-original.yaml +++ b/yaml/Multiple-array-values-of-different-types-compacted.yaml @@ -1,9 +1,9 @@ -Example 067: Multiple array values of different types-original +Example 079: Multiple array values of different types-compacted --- "@context": - schema: http://schema.org/ + ex: http://example.org/ "@id": http://example.org/people#michael -schema:name: +ex:name: - Michael - "@value": Mike - "@value": Miguel diff --git a/yaml/Multiple-array-values-of-different-types-expanded.yaml b/yaml/Multiple-array-values-of-different-types-expanded.yaml index b9e00159..d3cd7c65 100644 --- a/yaml/Multiple-array-values-of-different-types-expanded.yaml +++ b/yaml/Multiple-array-values-of-different-types-expanded.yaml @@ -1,7 +1,7 @@ -Example 067: Multiple array values of different types-expanded +Example 079: Multiple array values of different types-expanded --- - "@id": http://example.org/people#michael - http://schema.org/name: + http://example.org/name: - "@value": Michael - "@value": Mike - "@value": Miguel diff --git a/yaml/Multiple-values-with-no-inherent-order-original.yaml b/yaml/Multiple-values-with-no-inherent-order-compacted.yaml similarity index 65% rename from yaml/Multiple-values-with-no-inherent-order-original.yaml rename to yaml/Multiple-values-with-no-inherent-order-compacted.yaml index f30ec6cd..1937a7ed 100644 --- a/yaml/Multiple-values-with-no-inherent-order-original.yaml +++ b/yaml/Multiple-values-with-no-inherent-order-compacted.yaml @@ -1,4 +1,4 @@ -Example 065: Multiple values with no inherent order-original +Example 077: Multiple values with no inherent order-compacted --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/Multiple-values-with-no-inherent-order-expanded.yaml b/yaml/Multiple-values-with-no-inherent-order-expanded.yaml index 77ac1a7e..ac27a531 100644 --- a/yaml/Multiple-values-with-no-inherent-order-expanded.yaml +++ b/yaml/Multiple-values-with-no-inherent-order-expanded.yaml @@ -1,4 +1,4 @@ -Example 065: Multiple values with no inherent order-expanded +Example 077: Multiple values with no inherent order-expanded --- - "@id": http://example.org/people#joebob http://xmlns.com/foaf/0.1/nick: diff --git a/yaml/Nested-properties-original.yaml b/yaml/Nested-properties-compacted.yaml similarity index 91% rename from yaml/Nested-properties-original.yaml rename to yaml/Nested-properties-compacted.yaml index d86a8220..64d52f86 100644 --- a/yaml/Nested-properties-original.yaml +++ b/yaml/Nested-properties-compacted.yaml @@ -1,4 +1,4 @@ -Example 075: Nested properties-original +Example 087: Nested properties-compacted --- "@context": "@version": 1.1 diff --git a/yaml/Nested-properties-expanded.yaml b/yaml/Nested-properties-expanded.yaml index b6f6b895..1df8b00c 100644 --- a/yaml/Nested-properties-expanded.yaml +++ b/yaml/Nested-properties-expanded.yaml @@ -1,4 +1,4 @@ -Example 075: Nested properties-expanded +Example 087: Nested properties-expanded --- - "@id": http://example.org/myresource http://xmlns.com/foaf/0.1/homepage: diff --git a/yaml/Nested-properties-folded-into-containing-object-original.yaml b/yaml/Nested-properties-folded-into-containing-object-compacted.yaml similarity index 83% rename from yaml/Nested-properties-folded-into-containing-object-original.yaml rename to yaml/Nested-properties-folded-into-containing-object-compacted.yaml index 47755bc8..bb8aeafa 100644 --- a/yaml/Nested-properties-folded-into-containing-object-original.yaml +++ b/yaml/Nested-properties-folded-into-containing-object-compacted.yaml @@ -1,4 +1,4 @@ -Example 076: Nested properties folded into containing object-original +Example 088: Nested properties folded into containing object-compacted --- "@context": skos: http://www.w3.org/2004/02/skos/core# diff --git a/yaml/Nested-properties-folded-into-containing-object-expanded.yaml b/yaml/Nested-properties-folded-into-containing-object-expanded.yaml index c4f115ab..a2e7e2e4 100644 --- a/yaml/Nested-properties-folded-into-containing-object-expanded.yaml +++ b/yaml/Nested-properties-folded-into-containing-object-expanded.yaml @@ -1,4 +1,4 @@ -Example 076: Nested properties folded into containing object-expanded +Example 088: Nested properties folded into containing object-expanded --- - "@id": http://example.org/myresource http://xmlns.com/foaf/0.1/homepage: diff --git a/yaml/Overriding-default-language-and-default-base-direction-using-an-expanded-value.yaml b/yaml/Overriding-default-language-and-default-base-direction-using-an-expanded-value.yaml new file mode 100644 index 00000000..4a2675ca --- /dev/null +++ b/yaml/Overriding-default-language-and-default-base-direction-using-an-expanded-value.yaml @@ -0,0 +1,10 @@ +Example 076: Overriding default language and default base direction using an expanded value +--- +"@context": + "@language": ar-EG + "@direction": rtl +title: 'HTML و CSS: تصميم و إنشاء مواقع الويب' +author: + "@value": Jon Duckett + "@language": en + "@direction": diff --git a/yaml/Overriding-default-language-using-an-expanded-value.yaml b/yaml/Overriding-default-language-using-an-expanded-value.yaml index 575fac9d..3c9ec23e 100644 --- a/yaml/Overriding-default-language-using-an-expanded-value.yaml +++ b/yaml/Overriding-default-language-using-an-expanded-value.yaml @@ -1,4 +1,4 @@ -Example 063: Overriding default language using an expanded value +Example 071: Overriding default language using an expanded value --- "@context": "@language": ja diff --git a/yaml/Prefix-expansion-original.yaml b/yaml/Prefix-expansion-compacted.yaml similarity index 70% rename from yaml/Prefix-expansion-original.yaml rename to yaml/Prefix-expansion-compacted.yaml index a8062d54..77d333ee 100644 --- a/yaml/Prefix-expansion-original.yaml +++ b/yaml/Prefix-expansion-compacted.yaml @@ -1,4 +1,4 @@ -Example 030: Prefix expansion-original +Example 030: Prefix expansion-compacted --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/Property-based-data-indexing-compacted.yaml b/yaml/Property-based-data-indexing-compacted.yaml new file mode 100644 index 00000000..3d8e3223 --- /dev/null +++ b/yaml/Property-based-data-indexing-compacted.yaml @@ -0,0 +1,21 @@ +Example 098: Property-based data indexing-compacted +--- +"@context": + "@version": 1.1 + schema: http://schema.org/ + name: schema:name + body: schema:articleBody + athletes: + "@id": schema:athlete + "@container": "@index" + "@index": schema:jobTitle +"@id": http://example.com/ +"@type": schema:SportsTeam +name: San Franciso Giants +athletes: + Catcher: + "@type": schema:Person + name: Buster Posey + Starting Pitcher: + "@type": schema:Person + name: Madison Bumgarner diff --git a/yaml/Property-based-data-indexing-original.yaml b/yaml/Property-based-data-indexing-original.yaml deleted file mode 100644 index 3fb2f686..00000000 --- a/yaml/Property-based-data-indexing-original.yaml +++ /dev/null @@ -1,25 +0,0 @@ -Example 084: Property-based data indexing-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - dc11: http://purl.org/dc/elements/1.1/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@index" - "@index": dc11:language -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - de: - "@id": http://example.com/posts/1/de - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/Referencing-Objects-on-the-Web-original.yaml b/yaml/Referencing-Objects-on-the-Web-compacted.yaml similarity index 78% rename from yaml/Referencing-Objects-on-the-Web-original.yaml rename to yaml/Referencing-Objects-on-the-Web-compacted.yaml index 304fd97f..1f6a3737 100644 --- a/yaml/Referencing-Objects-on-the-Web-original.yaml +++ b/yaml/Referencing-Objects-on-the-Web-compacted.yaml @@ -1,4 +1,4 @@ -Example 016: Referencing Objects on the Web-original +Example 016: Referencing Objects on the Web-compacted --- "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Referencing-a-Context-in-an-HTML-document-expanded.yaml b/yaml/Referencing-a-Context-in-an-HTML-document-expanded.yaml deleted file mode 100644 index 18fbe6d7..00000000 --- a/yaml/Referencing-a-Context-in-an-HTML-document-expanded.yaml +++ /dev/null @@ -1,10 +0,0 @@ -Example 131: Referencing a Context in an HTML document-expanded ---- -- "@id": http://dbpedia.org/resource/John_Lennon - http://xmlns.com/foaf/0.1/name: - - "@value": John Lennon - http://schema.org/birthDate: - - "@value": '1940-10-09' - "@type": http://www.w3.org/2001/XMLSchema#date - http://schema.org/spouse: - - "@id": http://dbpedia.org/resource/Cynthia_Lennon diff --git a/yaml/Referencing-a-Context-in-an-HTML-document-original.yaml b/yaml/Referencing-a-Context-in-an-HTML-document-original.yaml deleted file mode 100644 index a2c3fdd9..00000000 --- a/yaml/Referencing-a-Context-in-an-HTML-document-original.yaml +++ /dev/null @@ -1,7 +0,0 @@ -Example 131: Referencing a Context in an HTML document-original ---- -"@context": https://json-ld.org/contexts/person.html -"@id": http://dbpedia.org/resource/John_Lennon -name: John Lennon -born: '1940-10-09' -spouse: http://dbpedia.org/resource/Cynthia_Lennon diff --git a/yaml/Referencing-a-JSON-LD-context-original.yaml b/yaml/Referencing-a-JSON-LD-context-compacted.yaml similarity index 74% rename from yaml/Referencing-a-JSON-LD-context-original.yaml rename to yaml/Referencing-a-JSON-LD-context-compacted.yaml index df60bc08..dd99b052 100644 --- a/yaml/Referencing-a-JSON-LD-context-original.yaml +++ b/yaml/Referencing-a-JSON-LD-context-compacted.yaml @@ -1,4 +1,4 @@ -Example 005: Referencing a JSON-LD context-original +Example 005: Referencing a JSON-LD context-compacted --- "@context": https://json-ld.org/contexts/person.jsonld name: Manu Sporny diff --git a/yaml/Referencing-an-unidentified-node-original.yaml b/yaml/Referencing-an-unidentified-node-compacted.yaml similarity index 79% rename from yaml/Referencing-an-unidentified-node-original.yaml rename to yaml/Referencing-an-unidentified-node-compacted.yaml index 937d7faa..9d34b70c 100644 --- a/yaml/Referencing-an-unidentified-node-original.yaml +++ b/yaml/Referencing-an-unidentified-node-compacted.yaml @@ -1,4 +1,4 @@ -Example 080: Referencing an unidentified node-original +Example 094: Referencing an unidentified node-compacted --- "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Referencing-an-unidentified-node-expanded.yaml b/yaml/Referencing-an-unidentified-node-expanded.yaml index bff59416..28177a25 100644 --- a/yaml/Referencing-an-unidentified-node-expanded.yaml +++ b/yaml/Referencing-an-unidentified-node-expanded.yaml @@ -1,4 +1,4 @@ -Example 080: Referencing an unidentified node-expanded +Example 094: Referencing an unidentified node-expanded --- - "@id": _:b0 "@type": diff --git a/yaml/Referencing-named-graphs-using-an-id-map-original.yaml b/yaml/Referencing-named-graphs-using-an-id-map-compacted.yaml similarity index 75% rename from yaml/Referencing-named-graphs-using-an-id-map-original.yaml rename to yaml/Referencing-named-graphs-using-an-id-map-compacted.yaml index 8428bd39..2cac21fd 100644 --- a/yaml/Referencing-named-graphs-using-an-id-map-original.yaml +++ b/yaml/Referencing-named-graphs-using-an-id-map-compacted.yaml @@ -1,10 +1,10 @@ -Example 103: Referencing named graphs using an id map-original +Example 120: Referencing named graphs using an id map-compacted --- "@context": "@version": 1.1 generatedAt: "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date + "@type": http://www.w3.org/2001/XMLSchema#dateTime Person: http://xmlns.com/foaf/0.1/Person name: http://xmlns.com/foaf/0.1/name knows: @@ -16,14 +16,14 @@ Example 103: Referencing named graphs using an id map-original - "@graph" - "@id" "@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' +generatedAt: '2012-04-09T00:00:00' graphMap: - http://manu.sporny.org/about#manu: + http://manu.sporny.org/about: "@id": http://manu.sporny.org/about#manu "@type": Person name: Manu Sporny knows: https://greggkellogg.net/foaf#me - https://greggkellogg.net/foaf#me: + https://greggkellogg.net/foaf: "@id": https://greggkellogg.net/foaf#me "@type": Person name: Gregg Kellogg diff --git a/yaml/Referencing-named-graphs-using-an-id-map-expanded.yaml b/yaml/Referencing-named-graphs-using-an-id-map-expanded.yaml index 113c390f..80087c0c 100644 --- a/yaml/Referencing-named-graphs-using-an-id-map-expanded.yaml +++ b/yaml/Referencing-named-graphs-using-an-id-map-expanded.yaml @@ -1,9 +1,9 @@ -Example 103: Referencing named graphs using an id map-expanded +Example 120: Referencing named graphs using an id map-expanded --- - "@id": http://example.org/foaf-graph http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date + - "@value": '2012-04-09T00:00:00' + "@type": http://www.w3.org/2001/XMLSchema#dateTime http://example.org/graphMap: - "@graph": - "@id": http://manu.sporny.org/about#manu @@ -13,7 +13,7 @@ Example 103: Referencing named graphs using an id map-expanded - "@id": https://greggkellogg.net/foaf#me http://xmlns.com/foaf/0.1/name: - "@value": Manu Sporny - "@id": http://manu.sporny.org/about#manu + "@id": http://manu.sporny.org/about - "@graph": - "@id": https://greggkellogg.net/foaf#me "@type": @@ -22,4 +22,4 @@ Example 103: Referencing named graphs using an id map-expanded - "@id": http://manu.sporny.org/about#manu http://xmlns.com/foaf/0.1/name: - "@value": Gregg Kellogg - "@id": https://greggkellogg.net/foaf#me + "@id": https://greggkellogg.net/foaf diff --git a/yaml/Referencing-named-graphs-using-an-id-map-with-none-original.yaml b/yaml/Referencing-named-graphs-using-an-id-map-with-none-compacted.yaml similarity index 80% rename from yaml/Referencing-named-graphs-using-an-id-map-with-none-original.yaml rename to yaml/Referencing-named-graphs-using-an-id-map-with-none-compacted.yaml index fe63a73e..b3f224de 100644 --- a/yaml/Referencing-named-graphs-using-an-id-map-with-none-original.yaml +++ b/yaml/Referencing-named-graphs-using-an-id-map-with-none-compacted.yaml @@ -1,10 +1,10 @@ -Example 104: Referencing named graphs using an id map with @none-original +Example 121: Referencing named graphs using an id map with @none-compacted --- "@context": "@version": 1.1 generatedAt: "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date + "@type": http://www.w3.org/2001/XMLSchema#dateTime Person: http://xmlns.com/foaf/0.1/Person name: http://xmlns.com/foaf/0.1/name knows: @@ -16,7 +16,7 @@ Example 104: Referencing named graphs using an id map with @none-original - "@graph" - "@id" "@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' +generatedAt: '2012-04-09T00:00:00' graphMap: "@none": - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/Referencing-named-graphs-using-an-id-map-with-none-expanded.yaml b/yaml/Referencing-named-graphs-using-an-id-map-with-none-expanded.yaml index 77e1f07d..99483927 100644 --- a/yaml/Referencing-named-graphs-using-an-id-map-with-none-expanded.yaml +++ b/yaml/Referencing-named-graphs-using-an-id-map-with-none-expanded.yaml @@ -1,9 +1,9 @@ -Example 104: Referencing named graphs using an id map with @none-expanded +Example 121: Referencing named graphs using an id map with @none-expanded --- - "@id": http://example.org/foaf-graph http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date + - "@value": '2012-04-09T00:00:00' + "@type": http://www.w3.org/2001/XMLSchema#dateTime http://example.org/graphMap: - "@graph": - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/Referencing-node-objects-original.yaml b/yaml/Referencing-node-objects-compacted.yaml similarity index 84% rename from yaml/Referencing-node-objects-original.yaml rename to yaml/Referencing-node-objects-compacted.yaml index 51cf9137..5c8a143c 100644 --- a/yaml/Referencing-node-objects-original.yaml +++ b/yaml/Referencing-node-objects-compacted.yaml @@ -1,4 +1,4 @@ -Example 078: Referencing node objects-original +Example 092: Referencing node objects-compacted --- "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Referencing-node-objects-expanded.yaml b/yaml/Referencing-node-objects-expanded.yaml index 78df4146..9e803bd4 100644 --- a/yaml/Referencing-node-objects-expanded.yaml +++ b/yaml/Referencing-node-objects-expanded.yaml @@ -1,4 +1,4 @@ -Example 078: Referencing node objects-expanded +Example 092: Referencing node objects-expanded --- - "@type": - http://xmlns.com/foaf/0.1/Person diff --git a/yaml/Removing-language-information-using-an-expanded-value.yaml b/yaml/Removing-language-information-using-an-expanded-value.yaml index f07afa79..a78d4f38 100644 --- a/yaml/Removing-language-information-using-an-expanded-value.yaml +++ b/yaml/Removing-language-information-using-an-expanded-value.yaml @@ -1,4 +1,4 @@ -Example 064: Removing language information using an expanded value +Example 072: Removing language information using an expanded value --- "@context": "@language": ja diff --git a/yaml/Result-of-sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.yaml b/yaml/Result-of-sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.yaml new file mode 100644 index 00000000..d9a2441c --- /dev/null +++ b/yaml/Result-of-sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.yaml @@ -0,0 +1,13 @@ +Example 051: Result of sourcing a context in a type-scoped context and setting it to propagate +--- +"@context": + "@version": 1.1 + MyType: + "@id": http://example.com/vocab#MyType + "@context": + "@version": 1.1 + Type1: http://example.com/vocab/Type1 + Type2: http://example.com/vocab/Type2 + term1: http://example.com/vocab#term1 + term2: http://example.com/vocab#term2 + "@propagate": true diff --git a/yaml/Result-of-sourcing-a-context-to-modify-vocab-and-a-term-definition.yaml b/yaml/Result-of-sourcing-a-context-to-modify-vocab-and-a-term-definition.yaml new file mode 100644 index 00000000..f3ab5801 --- /dev/null +++ b/yaml/Result-of-sourcing-a-context-to-modify-vocab-and-a-term-definition.yaml @@ -0,0 +1,11 @@ +Example 053: Result of sourcing a context to modify @vocab and a term definition +--- +"@context": + "@version": 1.1 + Type1: http://example.com/vocab/Type1 + Type2: http://example.com/vocab/Type2 + term1: + "@id": http://example.org/vocab#term1 + "@type": http://www.w3.org/2001/XMLSchema#integer + term2: http://example.com/vocab#term2 + "@vocab": http://example.org/vocab# diff --git a/yaml/Reversing-Node-Relationships-compacted.yaml b/yaml/Reversing-Node-Relationships-compacted.yaml index 0ab68a95..28c73b4e 100644 --- a/yaml/Reversing-Node-Relationships-compacted.yaml +++ b/yaml/Reversing-Node-Relationships-compacted.yaml @@ -1,4 +1,4 @@ -Example 114: Reversing Node Relationships-compacted +Example 131: Reversing Node Relationships-compacted --- "@context": name: http://example.com/vocab#name diff --git a/yaml/Reversing-Node-Relationships-context.yaml b/yaml/Reversing-Node-Relationships-context.yaml index 843917fd..3d714556 100644 --- a/yaml/Reversing-Node-Relationships-context.yaml +++ b/yaml/Reversing-Node-Relationships-context.yaml @@ -1,4 +1,4 @@ -Example 114: Reversing Node Relationships-context +Example 131: Reversing Node Relationships-context --- "@context": name: http://example.com/vocab#name diff --git a/yaml/Reversing-Node-Relationships-expanded.yaml b/yaml/Reversing-Node-Relationships-expanded.yaml index 632fd62b..d843f913 100644 --- a/yaml/Reversing-Node-Relationships-expanded.yaml +++ b/yaml/Reversing-Node-Relationships-expanded.yaml @@ -1,4 +1,4 @@ -Example 114: Reversing Node Relationships-expanded +Example 131: Reversing Node Relationships-expanded --- - "@id": http://example.org/#homer http://example.com/vocab#name: diff --git a/yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml b/yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml index 42358a61..ee5125ff 100644 --- a/yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml +++ b/yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml @@ -1,17 +1,17 @@ -Example 148: Same book description in JSON-LD (avoiding contexts) +Example 164: Same book description in JSON-LD (avoiding contexts) --- - "@id": http://purl.oreilly.com/works/45U8QJGZSQKDH8N "@type": http://purl.org/vocab/frbr/core#Work - http://purl.org/dc/terms/title: Just a Geek - http://purl.org/dc/terms/creator: Wil Wheaton + http://purl.org/dc/elements/1.1/title: Just a Geek + http://purl.org/dc/elements/1.1/creator: Wil Wheaton http://purl.org/vocab/frbr/core#realization: - "@id": http://purl.oreilly.com/products/9780596007683.BOOK - "@id": http://purl.oreilly.com/products/9780596802189.EBOOK - "@id": http://purl.oreilly.com/products/9780596007683.BOOK "@type": http://purl.org/vocab/frbr/core#Expression - http://purl.org/dc/terms/type: + http://purl.org/dc/elements/1.1/type: "@id": http://purl.oreilly.com/product-types/BOOK - "@id": http://purl.oreilly.com/products/9780596802189.EBOOK "@type": http://purl.org/vocab/frbr/core#Expression - http://purl.org/dc/terms/type: + http://purl.org/dc/elements/1.1/type: "@id": http://purl.oreilly.com/product-types/EBOOK diff --git a/yaml/Same-description-in-JSON-LD-context-shared-among-node-objects-.yaml b/yaml/Same-description-in-JSON-LD-context-shared-among-node-objects-.yaml index 03324a38..cdcc5f88 100644 --- a/yaml/Same-description-in-JSON-LD-context-shared-among-node-objects-.yaml +++ b/yaml/Same-description-in-JSON-LD-context-shared-among-node-objects-.yaml @@ -1,4 +1,4 @@ -Example 146: Same description in JSON-LD (context shared among node objects) +Example 162: Same description in JSON-LD (context shared among node objects) --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/Same-embedding-example-in-JSON-LD.yaml b/yaml/Same-embedding-example-in-JSON-LD.yaml index 531b7d8b..2a1fd42d 100644 --- a/yaml/Same-embedding-example-in-JSON-LD.yaml +++ b/yaml/Same-embedding-example-in-JSON-LD.yaml @@ -1,4 +1,4 @@ -Example 140: Same embedding example in JSON-LD +Example 156: Same embedding example in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/Same-example-with-a-list-of-values-in-JSON-LD.yaml b/yaml/Same-example-with-a-list-of-values-in-JSON-LD.yaml index 67516479..37fb6e74 100644 --- a/yaml/Same-example-with-a-list-of-values-in-JSON-LD.yaml +++ b/yaml/Same-example-with-a-list-of-values-in-JSON-LD.yaml @@ -1,4 +1,4 @@ -Example 144: Same example with a list of values in JSON-LD +Example 160: Same example with a list of values in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/Sample-JSON-LD-document-to-be-expanded.yaml b/yaml/Sample-JSON-LD-document-to-be-expanded.yaml index c3254db3..e0a5ccb4 100644 --- a/yaml/Sample-JSON-LD-document-to-be-expanded.yaml +++ b/yaml/Sample-JSON-LD-document-to-be-expanded.yaml @@ -1,4 +1,4 @@ -Example 105: Sample JSON-LD document to be expanded +Example 122: Sample JSON-LD document to be expanded --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/Sample-JSON-LD-document-to-be-flattened.yaml b/yaml/Sample-JSON-LD-document-to-be-flattened.yaml index 391d9f02..1786be2e 100644 --- a/yaml/Sample-JSON-LD-document-to-be-flattened.yaml +++ b/yaml/Sample-JSON-LD-document-to-be-flattened.yaml @@ -1,4 +1,4 @@ -Example 119: Sample JSON-LD document to be flattened +Example 136: Sample JSON-LD document to be flattened --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/Sample-JSON-LD-document.yaml b/yaml/Sample-JSON-LD-document.yaml index cafbc84c..80400a06 100644 --- a/yaml/Sample-JSON-LD-document.yaml +++ b/yaml/Sample-JSON-LD-document.yaml @@ -1,4 +1,4 @@ -Example 134: Sample JSON-LD document +Example 150: Sample JSON-LD document --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/Sample-context.yaml b/yaml/Sample-context.yaml index 973debc1..6b5a94b7 100644 --- a/yaml/Sample-context.yaml +++ b/yaml/Sample-context.yaml @@ -1,4 +1,4 @@ -Example 108: Sample context +Example 125: Sample context --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/Sample-expanded-JSON-LD-document.yaml b/yaml/Sample-expanded-JSON-LD-document.yaml index 7f5e5977..aad62710 100644 --- a/yaml/Sample-expanded-JSON-LD-document.yaml +++ b/yaml/Sample-expanded-JSON-LD-document.yaml @@ -1,4 +1,4 @@ -Example 107: Sample expanded JSON-LD document +Example 124: Sample expanded JSON-LD document --- - http://xmlns.com/foaf/0.1/name: - Manu Sporny diff --git a/yaml/Sample-library-frame.yaml b/yaml/Sample-library-frame.yaml index e7a7e900..5c97d525 100644 --- a/yaml/Sample-library-frame.yaml +++ b/yaml/Sample-library-frame.yaml @@ -1,4 +1,4 @@ -Example 121: Sample library frame +Example 138: Sample library frame --- "@context": "@version": 1.1 diff --git a/yaml/Setting-container-set-on-type.yaml b/yaml/Setting-container-set-on-type.yaml index ca3a1c6d..a43c0c4d 100644 --- a/yaml/Setting-container-set-on-type.yaml +++ b/yaml/Setting-container-set-on-type.yaml @@ -1,4 +1,4 @@ -Example 074: Setting @container: @set on @type +Example 086: Setting @container: @set on @type --- "@context": "@version": 1.1 diff --git a/yaml/Setting-the-default-base-direction-of-a-JSON-LD-document-compacted.yaml b/yaml/Setting-the-default-base-direction-of-a-JSON-LD-document-compacted.yaml new file mode 100644 index 00000000..d3265dd9 --- /dev/null +++ b/yaml/Setting-the-default-base-direction-of-a-JSON-LD-document-compacted.yaml @@ -0,0 +1,9 @@ +Example 073: Setting the default base direction of a JSON-LD document-compacted +--- +"@context": + title: http://example.org/title + publisher: http://example.org/publisher + "@language": ar-EG + "@direction": rtl +title: 'HTML و CSS: تصميم و إنشاء مواقع الويب' +publisher: مكتبة diff --git a/yaml/Setting-the-default-base-direction-of-a-JSON-LD-document-expanded.yaml b/yaml/Setting-the-default-base-direction-of-a-JSON-LD-document-expanded.yaml new file mode 100644 index 00000000..060ffa20 --- /dev/null +++ b/yaml/Setting-the-default-base-direction-of-a-JSON-LD-document-expanded.yaml @@ -0,0 +1,10 @@ +Example 073: Setting the default base direction of a JSON-LD document-expanded +--- +- http://example.org/title: + - "@value": 'HTML و CSS: تصميم و إنشاء مواقع الويب' + "@language": ar-eg + "@direction": rtl + http://example.org/publisher: + - "@value": مكتبة + "@language": ar-eg + "@direction": rtl diff --git a/yaml/Setting-the-default-language-of-a-JSON-LD-document-original.yaml b/yaml/Setting-the-default-language-of-a-JSON-LD-document-compacted.yaml similarity index 66% rename from yaml/Setting-the-default-language-of-a-JSON-LD-document-original.yaml rename to yaml/Setting-the-default-language-of-a-JSON-LD-document-compacted.yaml index 70421ccf..f2535be2 100644 --- a/yaml/Setting-the-default-language-of-a-JSON-LD-document-original.yaml +++ b/yaml/Setting-the-default-language-of-a-JSON-LD-document-compacted.yaml @@ -1,4 +1,4 @@ -Example 059: Setting the default language of a JSON-LD document-original +Example 067: Setting the default language of a JSON-LD document-compacted --- "@context": name: http://example.org/name diff --git a/yaml/Setting-the-default-language-of-a-JSON-LD-document-expanded.yaml b/yaml/Setting-the-default-language-of-a-JSON-LD-document-expanded.yaml index ad25efc6..a7d1ac87 100644 --- a/yaml/Setting-the-default-language-of-a-JSON-LD-document-expanded.yaml +++ b/yaml/Setting-the-default-language-of-a-JSON-LD-document-expanded.yaml @@ -1,4 +1,4 @@ -Example 059: Setting the default language of a JSON-LD document-expanded +Example 067: Setting the default language of a JSON-LD document-expanded --- - http://example.org/name: - "@value": 花澄 diff --git a/yaml/Setting-the-document-base-in-a-document-original.yaml b/yaml/Setting-the-document-base-in-a-document-compacted.yaml similarity index 70% rename from yaml/Setting-the-document-base-in-a-document-original.yaml rename to yaml/Setting-the-document-base-in-a-document-compacted.yaml index bf912c0a..3483a016 100644 --- a/yaml/Setting-the-document-base-in-a-document-original.yaml +++ b/yaml/Setting-the-document-base-in-a-document-compacted.yaml @@ -1,4 +1,4 @@ -Example 029: Setting the document base in a document-original +Example 027: Setting the document base in a document-compacted --- "@context": "@base": http://example.com/document.jsonld diff --git a/yaml/Setting-the-document-base-in-a-document-expanded.yaml b/yaml/Setting-the-document-base-in-a-document-expanded.yaml index 257a86ea..b3debd70 100644 --- a/yaml/Setting-the-document-base-in-a-document-expanded.yaml +++ b/yaml/Setting-the-document-base-in-a-document-expanded.yaml @@ -1,4 +1,4 @@ -Example 029: Setting the document base in a document-expanded +Example 027: Setting the document base in a document-expanded --- - "@id": http://example.com/document.jsonld http://www.w3.org/2000/01/rdf-schema#label: diff --git a/yaml/Sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.yaml b/yaml/Sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.yaml new file mode 100644 index 00000000..36250f48 --- /dev/null +++ b/yaml/Sourcing-a-context-in-a-type-scoped-context-and-setting-it-to-propagate.yaml @@ -0,0 +1,10 @@ +Example 050: Sourcing a context in a type-scoped context and setting it to propagate +--- +"@context": + "@version": 1.1 + MyType: + "@id": http://example.com/vocab#MyType + "@context": + "@version": 1.1 + "@import": https://json-ld.org/contexts/remote-context.jsonld + "@propagate": true diff --git a/yaml/Sourcing-a-context-to-modify-vocab-and-a-term-definition.yaml b/yaml/Sourcing-a-context-to-modify-vocab-and-a-term-definition.yaml new file mode 100644 index 00000000..7a073f2c --- /dev/null +++ b/yaml/Sourcing-a-context-to-modify-vocab-and-a-term-definition.yaml @@ -0,0 +1,9 @@ +Example 052: Sourcing a context to modify @vocab and a term definition +--- +"@context": + "@version": 1.1 + "@import": https://json-ld.org/contexts/remote-context.jsonld + "@vocab": http://example.org/vocab# + term1: + "@id": http://example.org/vocab#term1 + "@type": http://www.w3.org/2001/XMLSchema#integer diff --git a/yaml/Specifying-a-local-blank-node-identifier-original.yaml b/yaml/Specifying-a-local-blank-node-identifier-compacted.yaml similarity index 65% rename from yaml/Specifying-a-local-blank-node-identifier-original.yaml rename to yaml/Specifying-a-local-blank-node-identifier-compacted.yaml index ce51f110..dcacca55 100644 --- a/yaml/Specifying-a-local-blank-node-identifier-original.yaml +++ b/yaml/Specifying-a-local-blank-node-identifier-compacted.yaml @@ -1,4 +1,4 @@ -Example 081: Specifying a local blank node identifier-original +Example 095: Specifying a local blank node identifier-compacted --- "@context": http://schema.org/ "@id": _:n1 diff --git a/yaml/Specifying-a-local-blank-node-identifier-expanded.yaml b/yaml/Specifying-a-local-blank-node-identifier-expanded.yaml index 89e246e8..c1421900 100644 --- a/yaml/Specifying-a-local-blank-node-identifier-expanded.yaml +++ b/yaml/Specifying-a-local-blank-node-identifier-expanded.yaml @@ -1,4 +1,4 @@ -Example 081: Specifying a local blank node identifier-expanded +Example 095: Specifying a local blank node identifier-expanded --- - "@id": _:n1 http://schema.org/name: diff --git a/yaml/Specifying-multiple-types-for-a-node-original.yaml b/yaml/Specifying-multiple-types-for-a-node-compacted.yaml similarity index 65% rename from yaml/Specifying-multiple-types-for-a-node-original.yaml rename to yaml/Specifying-multiple-types-for-a-node-compacted.yaml index 83efa979..c19913f3 100644 --- a/yaml/Specifying-multiple-types-for-a-node-original.yaml +++ b/yaml/Specifying-multiple-types-for-a-node-compacted.yaml @@ -1,4 +1,4 @@ -Example 014: Specifying multiple types for a node-original +Example 014: Specifying multiple types for a node-compacted --- "@id": http://me.markus-lanthaler.com/ "@type": diff --git a/yaml/Specifying-that-a-collection-is-ordered-in-the-context-original.yaml b/yaml/Specifying-that-a-collection-is-ordered-in-the-context-compacted.yaml similarity index 67% rename from yaml/Specifying-that-a-collection-is-ordered-in-the-context-original.yaml rename to yaml/Specifying-that-a-collection-is-ordered-in-the-context-compacted.yaml index d6fea70a..ad72995a 100644 --- a/yaml/Specifying-that-a-collection-is-ordered-in-the-context-original.yaml +++ b/yaml/Specifying-that-a-collection-is-ordered-in-the-context-compacted.yaml @@ -1,4 +1,4 @@ -Example 069: Specifying that a collection is ordered in the context-original +Example 081: Specifying that a collection is ordered in the context-compacted --- "@context": nick: diff --git a/yaml/Specifying-that-a-collection-is-ordered-in-the-context-expanded.yaml b/yaml/Specifying-that-a-collection-is-ordered-in-the-context-expanded.yaml index dfb3e451..39c41897 100644 --- a/yaml/Specifying-that-a-collection-is-ordered-in-the-context-expanded.yaml +++ b/yaml/Specifying-that-a-collection-is-ordered-in-the-context-expanded.yaml @@ -1,4 +1,4 @@ -Example 069: Specifying that a collection is ordered in the context-expanded +Example 081: Specifying that a collection is ordered in the context-expanded --- - "@id": http://example.org/people#joebob http://xmlns.com/foaf/0.1/nick: diff --git a/yaml/Specifying-that-a-collection-is-unordered-in-the-context-original.yaml b/yaml/Specifying-that-a-collection-is-unordered-in-the-context-compacted.yaml similarity index 66% rename from yaml/Specifying-that-a-collection-is-unordered-in-the-context-original.yaml rename to yaml/Specifying-that-a-collection-is-unordered-in-the-context-compacted.yaml index ff3d0337..1ec03c0e 100644 --- a/yaml/Specifying-that-a-collection-is-unordered-in-the-context-original.yaml +++ b/yaml/Specifying-that-a-collection-is-unordered-in-the-context-compacted.yaml @@ -1,4 +1,4 @@ -Example 073: Specifying that a collection is unordered in the context-original +Example 085: Specifying that a collection is unordered in the context-compacted --- "@context": nick: diff --git a/yaml/Specifying-that-a-collection-is-unordered-in-the-context-expanded.yaml b/yaml/Specifying-that-a-collection-is-unordered-in-the-context-expanded.yaml index 4b4b62b0..16d58f88 100644 --- a/yaml/Specifying-that-a-collection-is-unordered-in-the-context-expanded.yaml +++ b/yaml/Specifying-that-a-collection-is-unordered-in-the-context-expanded.yaml @@ -1,4 +1,4 @@ -Example 073: Specifying that a collection is unordered in the context-expanded +Example 085: Specifying that a collection is unordered in the context-expanded --- - "@id": http://example.org/people#joebob http://xmlns.com/foaf/0.1/nick: diff --git a/yaml/Specifying-the-type-for-a-node-original.yaml b/yaml/Specifying-the-type-for-a-node-compacted.yaml similarity index 79% rename from yaml/Specifying-the-type-for-a-node-original.yaml rename to yaml/Specifying-the-type-for-a-node-compacted.yaml index 9467d00a..1b97dfce 100644 --- a/yaml/Specifying-the-type-for-a-node-original.yaml +++ b/yaml/Specifying-the-type-for-a-node-compacted.yaml @@ -1,4 +1,4 @@ -Example 013: Specifying the type for a node-original +Example 013: Specifying the type for a node-compacted --- "@context": givenName: http://schema.org/givenName diff --git a/yaml/Term-Selection-compacted.yaml b/yaml/Term-Selection-compacted.yaml index df38d4a9..1ef74636 100644 --- a/yaml/Term-Selection-compacted.yaml +++ b/yaml/Term-Selection-compacted.yaml @@ -1,4 +1,4 @@ -Example 118: Term Selection-compacted +Example 135: Term Selection-compacted --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/Term-Selection-context.yaml b/yaml/Term-Selection-context.yaml index b516db14..14f47931 100644 --- a/yaml/Term-Selection-context.yaml +++ b/yaml/Term-Selection-context.yaml @@ -1,4 +1,4 @@ -Example 118: Term Selection-context +Example 135: Term Selection-context --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/Term-Selection-expanded.yaml b/yaml/Term-Selection-expanded.yaml index cad57cb2..50bd3248 100644 --- a/yaml/Term-Selection-expanded.yaml +++ b/yaml/Term-Selection-expanded.yaml @@ -1,4 +1,4 @@ -Example 118: Term Selection-expanded +Example 135: Term Selection-expanded --- - http://example.com/vocab/property: - "@value": string diff --git a/yaml/Term-definitions-using-compact-and-absolute-IRIs-original.yaml b/yaml/Term-definitions-using-compact-and-absolute-IRIs-compacted.yaml similarity index 83% rename from yaml/Term-definitions-using-compact-and-absolute-IRIs-original.yaml rename to yaml/Term-definitions-using-compact-and-absolute-IRIs-compacted.yaml index e36261fe..6c13f0ef 100644 --- a/yaml/Term-definitions-using-compact-and-absolute-IRIs-original.yaml +++ b/yaml/Term-definitions-using-compact-and-absolute-IRIs-compacted.yaml @@ -1,4 +1,4 @@ -Example 058: Term definitions using compact and absolute IRIs-original +Example 066: Term definitions using compact and absolute IRIs-compacted --- "@context": xsd: http://www.w3.org/2001/XMLSchema# diff --git a/yaml/Term-definitions-using-compact-and-absolute-IRIs-expanded.yaml b/yaml/Term-definitions-using-compact-and-absolute-IRIs-expanded.yaml index a0be50e4..27aefedb 100644 --- a/yaml/Term-definitions-using-compact-and-absolute-IRIs-expanded.yaml +++ b/yaml/Term-definitions-using-compact-and-absolute-IRIs-expanded.yaml @@ -1,4 +1,4 @@ -Example 058: Term definitions using compact and absolute IRIs-expanded +Example 066: Term definitions using compact and absolute IRIs-expanded --- - http://xmlns.com/foaf/0.1/age: - "@type": http://www.w3.org/2001/XMLSchema#integer diff --git a/yaml/Term-expansion-for-values-not-identifiers-original.yaml b/yaml/Term-expansion-for-values-not-identifiers-compacted.yaml similarity index 61% rename from yaml/Term-expansion-for-values-not-identifiers-original.yaml rename to yaml/Term-expansion-for-values-not-identifiers-compacted.yaml index de45de35..897edaa0 100644 --- a/yaml/Term-expansion-for-values-not-identifiers-original.yaml +++ b/yaml/Term-expansion-for-values-not-identifiers-compacted.yaml @@ -1,11 +1,12 @@ -Example 056: Term expansion for values, not identifiers-original +Example 064: Term expansion for values, not identifiers-compacted --- "@context": "@base": http://example1.com/ "@vocab": http://example2.com/ - fred: + knows: "@type": "@vocab" -fred: +"@id": fred +knows: - "@id": barney mnemonic: the sidekick - barney diff --git a/yaml/Term-expansion-for-values-not-identifiers-expanded.yaml b/yaml/Term-expansion-for-values-not-identifiers-expanded.yaml index 33b2b398..c447e80b 100644 --- a/yaml/Term-expansion-for-values-not-identifiers-expanded.yaml +++ b/yaml/Term-expansion-for-values-not-identifiers-expanded.yaml @@ -1,6 +1,7 @@ -Example 056: Term expansion for values, not identifiers-expanded +Example 064: Term expansion for values, not identifiers-expanded --- -- http://example2.com/fred: +- "@id": http://example1.com/fred + http://example2.com/knows: - "@id": http://example1.com/barney http://example2.com/mnemonic: - "@value": the sidekick diff --git a/yaml/Term-expansion-from-context-definition-original.yaml b/yaml/Term-expansion-from-context-definition-compacted.yaml similarity index 56% rename from yaml/Term-expansion-from-context-definition-original.yaml rename to yaml/Term-expansion-from-context-definition-compacted.yaml index 6ce32c7e..404c5a5a 100644 --- a/yaml/Term-expansion-from-context-definition-original.yaml +++ b/yaml/Term-expansion-from-context-definition-compacted.yaml @@ -1,4 +1,4 @@ -Example 010: Term expansion from context definition-original +Example 010: Term expansion from context definition-compacted --- "@context": name: http://schema.org/name diff --git a/yaml/Terms-not-expanded-when-document-relative-original.yaml b/yaml/Terms-not-expanded-when-document-relative-compacted.yaml similarity index 61% rename from yaml/Terms-not-expanded-when-document-relative-original.yaml rename to yaml/Terms-not-expanded-when-document-relative-compacted.yaml index 915b9b0f..cac8c1c7 100644 --- a/yaml/Terms-not-expanded-when-document-relative-original.yaml +++ b/yaml/Terms-not-expanded-when-document-relative-compacted.yaml @@ -1,11 +1,12 @@ -Example 057: Terms not expanded when document-relative-original +Example 065: Terms not expanded when document-relative-compacted --- "@context": "@base": http://example1.com/ "@vocab": http://example2.com/ - fred: + knows: "@type": "@id" -fred: +"@id": fred +knows: - "@id": barney mnemonic: the sidekick - barney diff --git a/yaml/Terms-not-expanded-when-document-relative-expanded.yaml b/yaml/Terms-not-expanded-when-document-relative-expanded.yaml index 70b663da..44618559 100644 --- a/yaml/Terms-not-expanded-when-document-relative-expanded.yaml +++ b/yaml/Terms-not-expanded-when-document-relative-expanded.yaml @@ -1,6 +1,7 @@ -Example 057: Terms not expanded when document-relative-expanded +Example 065: Terms not expanded when document-relative-expanded --- -- http://example2.com/fred: +- "@id": http://example1.com/fred + http://example2.com/knows: - "@id": http://example1.com/barney http://example2.com/mnemonic: - "@value": the sidekick diff --git a/yaml/The-same-set-of-statements-serialized-in-JSON-LD.yaml b/yaml/The-same-set-of-statements-serialized-in-JSON-LD.yaml index e0d03543..f13fe8a8 100644 --- a/yaml/The-same-set-of-statements-serialized-in-JSON-LD.yaml +++ b/yaml/The-same-set-of-statements-serialized-in-JSON-LD.yaml @@ -1,4 +1,4 @@ -Example 138: The same set of statements serialized in JSON-LD +Example 154: The same set of statements serialized in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/Type-coercion-original.yaml b/yaml/Type-coercion-compacted.yaml similarity index 75% rename from yaml/Type-coercion-original.yaml rename to yaml/Type-coercion-compacted.yaml index bb3327ca..9f293a07 100644 --- a/yaml/Type-coercion-original.yaml +++ b/yaml/Type-coercion-compacted.yaml @@ -1,4 +1,4 @@ -Example 011: Type coercion-original +Example 011: Type coercion-compacted --- "@context": homepage: diff --git a/yaml/Use-a-relative-IRI-as-node-identifier.yaml b/yaml/Use-a-relative-IRI-as-node-identifier.yaml index 71ba3738..2fdcf759 100644 --- a/yaml/Use-a-relative-IRI-as-node-identifier.yaml +++ b/yaml/Use-a-relative-IRI-as-node-identifier.yaml @@ -1,4 +1,4 @@ -Example 028: Use a relative IRI as node identifier +Example 026: Use a relative IRI as node identifier --- "@context": label: http://www.w3.org/2000/01/rdf-schema#label diff --git a/yaml/Using-Arrays-for-Lists-compacted.yaml b/yaml/Using-Arrays-for-Lists-compacted.yaml index 8f06d271..39b13e24 100644 --- a/yaml/Using-Arrays-for-Lists-compacted.yaml +++ b/yaml/Using-Arrays-for-Lists-compacted.yaml @@ -1,4 +1,4 @@ -Example 113: Using Arrays for Lists-compacted +Example 130: Using Arrays for Lists-compacted --- "@context": nick: diff --git a/yaml/Using-Arrays-for-Lists-context.yaml b/yaml/Using-Arrays-for-Lists-context.yaml index 9acb16e2..8fb4f08d 100644 --- a/yaml/Using-Arrays-for-Lists-context.yaml +++ b/yaml/Using-Arrays-for-Lists-context.yaml @@ -1,4 +1,4 @@ -Example 113: Using Arrays for Lists-context +Example 130: Using Arrays for Lists-context --- "@context": nick: diff --git a/yaml/Using-Arrays-for-Lists-expanded.yaml b/yaml/Using-Arrays-for-Lists-expanded.yaml index 1f4b0dcb..4ec2837d 100644 --- a/yaml/Using-Arrays-for-Lists-expanded.yaml +++ b/yaml/Using-Arrays-for-Lists-expanded.yaml @@ -1,4 +1,4 @@ -Example 113: Using Arrays for Lists-expanded +Example 130: Using Arrays for Lists-expanded --- - http://xmlns.com/foaf/0.1/nick: - "@list": diff --git a/yaml/Using-a-default-vocabulary-original.yaml b/yaml/Using-a-default-vocabulary-compacted.yaml similarity index 72% rename from yaml/Using-a-default-vocabulary-original.yaml rename to yaml/Using-a-default-vocabulary-compacted.yaml index 78895fc8..cdb5b68d 100644 --- a/yaml/Using-a-default-vocabulary-original.yaml +++ b/yaml/Using-a-default-vocabulary-compacted.yaml @@ -1,4 +1,4 @@ -Example 023: Using a default vocabulary-original +Example 023: Using a default vocabulary-compacted --- "@context": "@vocab": http://example.com/vocab/ diff --git a/yaml/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-original.yaml b/yaml/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-compacted.yaml similarity index 89% rename from yaml/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-original.yaml rename to yaml/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-compacted.yaml index 59c02402..db889dc6 100644 --- a/yaml/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-original.yaml +++ b/yaml/Using-a-default-vocabulary-relative-to-a-previous-default-vocabulary-compacted.yaml @@ -1,4 +1,4 @@ -Example 025: Using a default vocabulary relative to a previous default vocabulary-original +Example 025: Using a default vocabulary relative to a previous default vocabulary-compacted --- "@context": - "@vocab": http://example.com/ diff --git a/yaml/Using-a-term-to-specify-the-type-original.yaml b/yaml/Using-a-term-to-specify-the-type-compacted.yaml similarity index 66% rename from yaml/Using-a-term-to-specify-the-type-original.yaml rename to yaml/Using-a-term-to-specify-the-type-compacted.yaml index 28b00fe4..312ada45 100644 --- a/yaml/Using-a-term-to-specify-the-type-original.yaml +++ b/yaml/Using-a-term-to-specify-the-type-compacted.yaml @@ -1,4 +1,4 @@ -Example 015: Using a term to specify the type-original +Example 015: Using a term to specify the type-compacted --- "@context": Person: http://schema.org/Person diff --git a/yaml/Using-an-expanded-form-to-set-multiple-values-original.yaml b/yaml/Using-an-expanded-form-to-set-multiple-values-compacted.yaml similarity index 72% rename from yaml/Using-an-expanded-form-to-set-multiple-values-original.yaml rename to yaml/Using-an-expanded-form-to-set-multiple-values-compacted.yaml index 9af5117a..91de88b2 100644 --- a/yaml/Using-an-expanded-form-to-set-multiple-values-original.yaml +++ b/yaml/Using-an-expanded-form-to-set-multiple-values-compacted.yaml @@ -1,4 +1,4 @@ -Example 066: Using an expanded form to set multiple values-original +Example 078: Using an expanded form to set multiple values-compacted --- "@context": dcterms: http://purl.org/dc/terms/ diff --git a/yaml/Using-an-expanded-form-to-set-multiple-values-expanded.yaml b/yaml/Using-an-expanded-form-to-set-multiple-values-expanded.yaml index 5db83a32..99f1f5c8 100644 --- a/yaml/Using-an-expanded-form-to-set-multiple-values-expanded.yaml +++ b/yaml/Using-an-expanded-form-to-set-multiple-values-expanded.yaml @@ -1,4 +1,4 @@ -Example 066: Using an expanded form to set multiple values-expanded +Example 078: Using an expanded form to set multiple values-expanded --- - "@id": http://example.org/articles/8 http://purl.org/dc/terms/title: diff --git a/yaml/Using-as-the-vocabulary-mapping-expanded-expanded.yaml b/yaml/Using-as-the-vocabulary-mapping-expanded-expanded.yaml index beba999d..0e4cf3a1 100644 --- a/yaml/Using-as-the-vocabulary-mapping-expanded-expanded.yaml +++ b/yaml/Using-as-the-vocabulary-mapping-expanded-expanded.yaml @@ -1,4 +1,4 @@ -Example 027: Using "" as the vocabulary mapping (expanded)-expanded +Example 029: Using "#" as the vocabulary mapping (expanded)-expanded --- - "@id": http://example.org/places#BrewEats "@type": diff --git a/yaml/Using-as-the-vocabulary-mapping.yaml b/yaml/Using-as-the-vocabulary-mapping.yaml index 347c12b4..b60c48b9 100644 --- a/yaml/Using-as-the-vocabulary-mapping.yaml +++ b/yaml/Using-as-the-vocabulary-mapping.yaml @@ -1,4 +1,4 @@ -Example 026: Using "#" as the vocabulary mapping +Example 028: Using "#" as the vocabulary mapping --- "@context": "@version": 1.1 diff --git a/yaml/Using-graph-to-explicitly-express-the-default-graph-original.yaml b/yaml/Using-graph-to-explicitly-express-the-default-graph-compacted.yaml similarity index 81% rename from yaml/Using-graph-to-explicitly-express-the-default-graph-original.yaml rename to yaml/Using-graph-to-explicitly-express-the-default-graph-compacted.yaml index 94e76901..2fdf59aa 100644 --- a/yaml/Using-graph-to-explicitly-express-the-default-graph-original.yaml +++ b/yaml/Using-graph-to-explicitly-express-the-default-graph-compacted.yaml @@ -1,4 +1,4 @@ -Example 098: Using @graph to explicitly express the default graph-original +Example 115: Using @graph to explicitly express the default graph-compacted --- "@context": "@vocab": http://xmlns.com/foaf/0.1/ diff --git a/yaml/Using-graph-to-explicitly-express-the-default-graph-expanded.yaml b/yaml/Using-graph-to-explicitly-express-the-default-graph-expanded.yaml index 30ba7de5..0ed36d5e 100644 --- a/yaml/Using-graph-to-explicitly-express-the-default-graph-expanded.yaml +++ b/yaml/Using-graph-to-explicitly-express-the-default-graph-expanded.yaml @@ -1,4 +1,4 @@ -Example 098: Using @graph to explicitly express the default graph-expanded +Example 115: Using @graph to explicitly express the default graph-expanded --- - "@id": http://manu.sporny.org/about#manu "@type": diff --git a/yaml/Using-multiple-contexts-original.yaml b/yaml/Using-multiple-contexts-compacted.yaml similarity index 89% rename from yaml/Using-multiple-contexts-original.yaml rename to yaml/Using-multiple-contexts-compacted.yaml index 2bd327d5..84829cb2 100644 --- a/yaml/Using-multiple-contexts-original.yaml +++ b/yaml/Using-multiple-contexts-compacted.yaml @@ -1,4 +1,4 @@ -Example 018: Using multiple contexts-original +Example 018: Using multiple contexts-compacted --- - "@context": https://json-ld.org/contexts/person.jsonld name: Manu Sporny diff --git a/yaml/Using-reverse-to-define-reverse-properties-original.yaml b/yaml/Using-reverse-to-define-reverse-properties-compacted.yaml similarity index 75% rename from yaml/Using-reverse-to-define-reverse-properties-original.yaml rename to yaml/Using-reverse-to-define-reverse-properties-compacted.yaml index c74a82ac..cddbb3fc 100644 --- a/yaml/Using-reverse-to-define-reverse-properties-original.yaml +++ b/yaml/Using-reverse-to-define-reverse-properties-compacted.yaml @@ -1,4 +1,4 @@ -Example 096: Using @reverse to define reverse properties-original +Example 113: Using @reverse to define reverse properties-compacted --- "@context": name: http://example.com/vocab#name diff --git a/yaml/Using-reverse-to-define-reverse-properties-expanded.yaml b/yaml/Using-reverse-to-define-reverse-properties-expanded.yaml index c4252f98..b3ee8cdc 100644 --- a/yaml/Using-reverse-to-define-reverse-properties-expanded.yaml +++ b/yaml/Using-reverse-to-define-reverse-properties-expanded.yaml @@ -1,4 +1,4 @@ -Example 096: Using @reverse to define reverse properties-expanded +Example 113: Using @reverse to define reverse properties-expanded --- - "@id": http://example.org/#homer http://example.com/vocab#name: diff --git a/yaml/Using-reverse-to-define-reverse-properties-flattened.yaml b/yaml/Using-reverse-to-define-reverse-properties-flattened.yaml index e1580cef..0c5cf575 100644 --- a/yaml/Using-reverse-to-define-reverse-properties-flattened.yaml +++ b/yaml/Using-reverse-to-define-reverse-properties-flattened.yaml @@ -1,4 +1,4 @@ -Example 096: Using @reverse to define reverse properties-flattened +Example 113: Using @reverse to define reverse properties-flattened --- - "@id": http://example.org/#homer http://example.com/vocab#name: diff --git a/yaml/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.yaml b/yaml/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.yaml index 98652c93..cd83a938 100644 --- a/yaml/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.yaml +++ b/yaml/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.yaml @@ -1,4 +1,4 @@ -Example 127: Using the document base URL to establish the default base IRI-expanded +Example 145: Using the document base URL to establish the default base IRI-expanded --- - "@id": http://dbpedia.org/resource/John_Lennon http://xmlns.com/foaf/0.1/name: diff --git a/yaml/Using-the-null-keyword-to-ignore-data-original.yaml b/yaml/Using-the-null-keyword-to-ignore-data-compacted.yaml similarity index 73% rename from yaml/Using-the-null-keyword-to-ignore-data-original.yaml rename to yaml/Using-the-null-keyword-to-ignore-data-compacted.yaml index 20f66252..98597adc 100644 --- a/yaml/Using-the-null-keyword-to-ignore-data-original.yaml +++ b/yaml/Using-the-null-keyword-to-ignore-data-compacted.yaml @@ -1,4 +1,4 @@ -Example 024: Using the null keyword to ignore data-original +Example 024: Using the null keyword to ignore data-compacted --- "@context": "@vocab": http://example.com/vocab/ diff --git a/yaml/Using-vocabularies-original.yaml b/yaml/Using-vocabularies-compacted.yaml similarity index 90% rename from yaml/Using-vocabularies-original.yaml rename to yaml/Using-vocabularies-compacted.yaml index f03be45b..43bb2d6a 100644 --- a/yaml/Using-vocabularies-original.yaml +++ b/yaml/Using-vocabularies-compacted.yaml @@ -1,4 +1,4 @@ -Example 031: Using vocabularies-original +Example 031: Using vocabularies-compacted --- "@context": "@version": 1.1 diff --git a/yaml/overriding-permitted-in-property-scoped-context-original.yaml b/yaml/overriding-permitted-in-property-scoped-context-compacted.yaml similarity index 80% rename from yaml/overriding-permitted-in-property-scoped-context-original.yaml rename to yaml/overriding-permitted-in-property-scoped-context-compacted.yaml index de12066e..fdcd6591 100644 --- a/yaml/overriding-permitted-in-property-scoped-context-original.yaml +++ b/yaml/overriding-permitted-in-property-scoped-context-compacted.yaml @@ -1,4 +1,4 @@ -Example 049: overriding permitted in property scoped context-original +Example 057: overriding permitted in property scoped context-compacted --- "@context": - "@version": 1.1 @@ -19,5 +19,5 @@ Example 049: overriding permitted in property scoped context-original name: Digital Bazaar employee: name: Sporny -location: - name: Blacksburg, Virginia + location: + name: Blacksburg, Virginia