diff --git a/common/common.js b/common/common.js index b9e93ab1..14be9d70 100644 --- a/common/common.js +++ b/common/common.js @@ -271,6 +271,6 @@ function unComment(doc, content) { return content .replace(//, '') - .replace(/< !--/g, ''); + .replace(/< !\s*-\s*-/g, ''); } diff --git a/common/extract-examples.rb b/common/extract-examples.rb index 89fb6edb..5035f657 100755 --- a/common/extract-examples.rb +++ b/common/extract-examples.rb @@ -319,13 +319,18 @@ def save_example(examples:, element:, title:, example_number:, error:, warn:) $stdout.write "F".colorize(:red) next end + + # Get base from document, if present + html_base = doc.at_xpath('/html/head/base/@href') + ex[:base] = html_base.to_s if html_base + script_content = doc.at_xpath(xpath) if script_content # Remove (faked) XML comments and unescape sequences content = script_content .inner_html - .sub(/^\s*< !--/, '') - .sub(/-- >\s*$/, '') + .sub(/^\s*< !\s*-\s*-/, '') + .sub(/-\s*- >\s*$/, '') .gsub(/</, '<') end @@ -438,7 +443,15 @@ def save_example(examples:, element:, title:, example_number:, error:, warn:) # Set argument to referenced content to be parsed args[0] = if examples[ex[:result_for]][:ext] == 'html' && method == :expand # If we are expanding, and the reference is HTML, find the first script element. - doc = Nokogiri::HTML.parse(examples[ex[:result_for]][:content]) + doc = Nokogiri::HTML.parse( + examples[ex[:result_for]][:content] + .sub(/^\s*< !\s*-\s*-/, '') + .sub(/-\s*- >\s*$/, '')) + + # Get base from document, if present + html_base = doc.at_xpath('/html/head/base/@href') + options[:base] = html_base.to_s if html_base + script_content = doc.at_xpath(xpath) unless script_content errors << "Example #{ex[:number]} at line #{ex[:line]} references example #{ex[:result_for].inspect} with no JSON-LD script element" @@ -447,12 +460,13 @@ def save_example(examples:, element:, title:, example_number:, error:, warn:) end StringIO.new(script_content .inner_html - .sub(/^\s*< !--/, '') - .sub(/-- >\s*$/, '') .gsub(/</, '<')) elsif examples[ex[:result_for]][:ext] == 'html' && ex[:target] # Only use the targeted script - doc = Nokogiri::HTML.parse(examples[ex[:result_for]][:content]) + doc = Nokogiri::HTML.parse( + examples[ex[:result_for]][:content] + .sub(/^\s*< !\s*-\s*-/, '') + .sub(/-\s*- >\s*$/, '')) script_content = doc.at_xpath(xpath) unless script_content errors << "Example #{ex[:number]} at line #{ex[:line]} references example #{ex[:result_for].inspect} with no JSON-LD script element" @@ -461,8 +475,6 @@ def save_example(examples:, element:, title:, example_number:, error:, warn:) end StringIO.new(script_content .to_html - .sub(/^\s*< !--/, '') - .sub(/-- >\s*$/, '') .gsub(/</, '<')) else StringIO.new(examples[ex[:result_for]][:content]) 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-original.html new file mode 100644 index 00000000..cf0107e2 --- /dev/null +++ b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-original.html @@ -0,0 +1,9 @@ + +{ + "@context": { + "@vocab": "http://schema.org/" + }, + "@id": "https://digitalbazaar.com/author/dlongley/", + "@type": "Person", + "name": "Dave Longley" +} 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 new file mode 100644 index 00000000..82a2bdd7 --- /dev/null +++ b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-statements.table @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
https://digitalbazaar.com/author/dlongley/rdf:typeschema:Person
https://digitalbazaar.com/author/dlongley/schema:nameDave Longley
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
\ No newline at end of file diff --git a/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-turtle.ttl b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-turtle.ttl new file mode 100644 index 00000000..5793eb08 --- /dev/null +++ b/examples/Combining-multiple-JSON-LD-script-elements-into-a-single-dataset-turtle.ttl @@ -0,0 +1,5 @@ +@prefix schema: . + a schema:Person; + schema:name "Dave Longley" . + a schema:Person; + schema:name "Gregg Kellogg" . \ No newline at end of file diff --git a/examples/Embedding-JSON-LD-in-HTML-expanded.jsonld b/examples/Embedding-JSON-LD-in-HTML-expanded.jsonld new file mode 100644 index 00000000..9fabe3e7 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "@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/Embedding-JSON-LD-in-HTML-original.html b/examples/Embedding-JSON-LD-in-HTML-original.html new file mode 100644 index 00000000..95f8ba88 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-original.html @@ -0,0 +1,8 @@ + +{ + "@context": "https://json-ld.org/contexts/person.jsonld", + "@id": "http://dbpedia.org/resource/John_Lennon", + "name": "John Lennon", + "born": "1940-10-09", + "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" +} diff --git a/examples/Embedding-JSON-LD-in-HTML-statements.table b/examples/Embedding-JSON-LD-in-HTML-statements.table new file mode 100644 index 00000000..18ca3036 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-statements.table @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 
\ No newline at end of file diff --git a/examples/Embedding-JSON-LD-in-HTML-turtle.ttl b/examples/Embedding-JSON-LD-in-HTML-turtle.ttl new file mode 100644 index 00000000..58774790 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-turtle.ttl @@ -0,0 +1,6 @@ +@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/Embedding-JSON-LD-in-HTML-with-comments-expanded.jsonld b/examples/Embedding-JSON-LD-in-HTML-with-comments-expanded.jsonld new file mode 100644 index 00000000..9fabe3e7 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-with-comments-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "@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/Embedding-JSON-LD-in-HTML-with-comments-original.html b/examples/Embedding-JSON-LD-in-HTML-with-comments-original.html new file mode 100644 index 00000000..95f8ba88 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-with-comments-original.html @@ -0,0 +1,8 @@ + +{ + "@context": "https://json-ld.org/contexts/person.jsonld", + "@id": "http://dbpedia.org/resource/John_Lennon", + "name": "John Lennon", + "born": "1940-10-09", + "spouse": "http://dbpedia.org/resource/Cynthia_Lennon" +} diff --git a/examples/Embedding-JSON-LD-in-HTML-with-comments-statements.table b/examples/Embedding-JSON-LD-in-HTML-with-comments-statements.table new file mode 100644 index 00000000..6c6a21bc --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-with-comments-statements.table @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 
\ No newline at end of file diff --git a/examples/Embedding-JSON-LD-in-HTML-with-comments-turtle.ttl b/examples/Embedding-JSON-LD-in-HTML-with-comments-turtle.ttl new file mode 100644 index 00000000..58774790 --- /dev/null +++ b/examples/Embedding-JSON-LD-in-HTML-with-comments-turtle.ttl @@ -0,0 +1,6 @@ +@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/Targeting-a-specific-script-element-by-id-original.html b/examples/Targeting-a-specific-script-element-by-id-original.html new file mode 100644 index 00000000..cf0107e2 --- /dev/null +++ b/examples/Targeting-a-specific-script-element-by-id-original.html @@ -0,0 +1,9 @@ + +{ + "@context": { + "@vocab": "http://schema.org/" + }, + "@id": "https://digitalbazaar.com/author/dlongley/", + "@type": "Person", + "name": "Dave Longley" +} diff --git a/examples/Targeting-a-specific-script-element-by-id-statements.table b/examples/Targeting-a-specific-script-element-by-id-statements.table new file mode 100644 index 00000000..4a9e7924 --- /dev/null +++ b/examples/Targeting-a-specific-script-element-by-id-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
\ No newline at end of file diff --git a/examples/Targeting-a-specific-script-element-by-id-turtle.ttl b/examples/Targeting-a-specific-script-element-by-id-turtle.ttl new file mode 100644 index 00000000..7e8e4a64 --- /dev/null +++ b/examples/Targeting-a-specific-script-element-by-id-turtle.ttl @@ -0,0 +1,3 @@ +@prefix schema: . + a schema:Person; + schema:name "Gregg Kellogg" . \ No newline at end of file diff --git a/index.html b/index.html index 5b6d0540..fa4f4b26 100644 --- a/index.html +++ b/index.html @@ -77,7 +77,7 @@ companyURL: "https://digitalbazaar.com/", note: "v1.0" }, { name: "Dave Longley", - url: "https://digitalbazaar.com/", + url: "https://digitalbazaar.com/author/dlongley/", company: "Digital Bazaar", companyURL: "https://digitalbazaar.com/", note: "v1.0" }, @@ -8329,41 +8329,344 @@

Graph Containers

ignored for such documents.

-

Embedding JSON-LD in HTML Documents

+

Embedding JSON-LD in HTML Documents

HTML script elements can be used to embed blocks of data in documents. This way, JSON-LD content can be easily embedded in HTML [[HTML52]] by placing it in a script element with the type attribute set to application/ld+json.

-
-  
-  
+

Defining how such data may be used is beyond the scope of this specification. The embedded JSON-LD document might be extracted as is or, e.g., be interpreted as RDF.

-

If JSON-LD content is extracted as RDF [[RDF11-CONCEPTS]], it should be expanded into an +

If JSON-LD content is extracted as RDF [[RDF11-CONCEPTS]], it MUST be expanded into an RDF Dataset using the Deserialize JSON-LD to RDF Algorithm - [[JSON-LD11-API]].

+ [[JSON-LD11-API]]. Unless a specific script is targeted + (see ), + all script elements + with type application/ld+json MUST be processed and merged + into a single dataset with equivalent blank node identifiers contained in + separate script elements treated as if they were in a single document (i.e., + blank nodes are shared between different JSON-LD script elements).

+ + + +

Otherwise, unless a specific script is targeted + (see ), + only the first script element of type application/ld+json is used.

+ +

When processing a JSON-LD + script element, + only the resolved document location of the + containing HTML document is used to establish the default base IRI of the enclosed + JSON-LD content.

+ +

Restrictions for contents of JSON-LD script elements

+

As HTML entities and comments are not allowable in + JSON, the use of comments, escapes, + and HTML Character references + is subject to further discussion in the Working Group.

+ +

Depending on how the HTML document is served, certain strings may need + to be escaped. In particular, the content MAY be enclosed + in the HTML comment-open (<!--) and comment-close (-->) text sequences.

+

As described in HTML Restrictions for contents of <script> elements + the textContent of a script element may include balanced comments + and other text which complicate extracting the JSON-LD content from a data blocks. + JSON-LD places further restrictions on the contents of + script elements containing JSON-LD.

+

A JSON-LD script element MAY begin with an optional comment-open surrounded by any amount of space characters, + followed by valid JSON and ending with an optional comment-close surrounded by any amount of space characters. + Any content within the JSON content which can be confused with a comment-open, script-open, + comment-close, or script-close MUST be escaped using a REVERSE SOLIDUS (\) character + as follows:

+
    +
  • <!--<\!--
  • +
  • <script<\script
  • +
  • -->--\>
  • +
  • </script<\/script
  • +
+

Additionally, content of a script element MAY be escaped using HTML Character references, such as the following:

+
    +
  • &amp; → & (ampersand, U+0026)
  • +
  • &lt; → < (less-than sign, U+003C)
  • +
  • &gt; → > (greater-than sign, U+003E)
  • +
  • &quot; → " (quotation mark, U+0022)
  • +
  • &apos; → ' (apostrophe, U+0027)
  • +
+

JSON-LD Processors MUST remove surrounding comment-open and comment-close + sequences, unescape any escaped comment-open, comment-close, + script-open, and script-close sequences, + and turn HTML Character references into the corresponding Unicode. +

+ + +
+ +

Locating a Specific JSON-LD Script Element

+

A specific + script element + within an HTML document may be located using + a fragment identifier matching the unique identifier + of the script element within the HTML document located by a URL (see [[!DOM]]).

+

For example, given an HTML document located at http://example.com/document, + a script element identified by "name" can be targeted using the URL + http://example.com/document#name.

+ + +
@@ -9795,18 +10098,12 @@

Security Considerations

Open Issues

The following is a list of issues open at the time of publication.

Consider using "@type": "@json" to describe native values in the compact form.

-

Allows a term definition to include an @values block to describe structured values, such as for GeoJSON.

When requesting JSON-LD from an HTTP endpoint, it would be useful to provide a reference to a context or frame which should be used by the server to put the results into the proper format.

Provide a means for refering to a remote context without without requiring it to be downloaded.

-

Consider a container type, similar to @list for encoding things like schema:ItemList serializations, when the values are schema:ListItem and order is set through schema:position.

-

Consider the opposite of "@container": "@set"; this would be when there is exactly one entry in an @list, instead of compacting to an array, compact to a single item.

-

It would be useful if JSON-LD recognized both value (rdf:nil) and list ([]).

Consider a mechanism such as Microdata's @itemref for including objects within another referencing node.

Mechinism to allow freezing terms so that additional contexts don't override them.

Should consider html>head>base@href and xml:base, as appropriate.

Update terminology in the spec from IRI to URL.

-

For every example, there should be an equivalent of the example in the expanded form, in a table with the triples, in [[Turtle]] (as close to the JSON-LD structure as possible) and, possibly, as graphs. Not all of them would appear on the screen at the same time but, rather, the reader could choose what to see with some tabs.

-

Proposal is to start from scratch, ie, deprecating @graph and replacing the functionality with something cleaner.

    @@ -9816,16 +10113,16 @@

    Open Issues

  • Extend the @version keyword to take an array, where you can specify experimental extensions. For example: "@version": [1.1, "amazingExtensionFoo", "nicheExtensionBar"] - processors throw if they don't understand every extension listed.
-

Ensure that the output is consistent in shape. Thus if there can ever be multiple values, the structure is always an array.

-

-

-

-

+

Consider documentation best practices.

Consider issues surrounding confusion of differing expansion rules for @id, @type, and dictionary members.

-

Require JSON-LD processors to be able to identify and extract JSON-LD from a script tag with type application/ld+json within an HTML document.

-

- Instead of normatively requiring an initial context, such as RDFa does, instead JSON-LD has the ability to import contexts. This approach means that the existing context rules are followed, and the best practice context can be updated over time as new norms emerge in the community. If the best practice context is not useful to a particular community, then they don't need to import it. -

+

+

+

+

Node Types in @context.

+

+

+

+

diff --git a/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml b/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml new file mode 100644 index 00000000..1d681695 --- /dev/null +++ b/yaml/Embedding-JSON-LD-in-HTML-expanded.yaml @@ -0,0 +1,10 @@ +Example 101: Embedding JSON-LD in HTML-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/Embedding-JSON-LD-in-HTML-with-comments-expanded.yaml b/yaml/Embedding-JSON-LD-in-HTML-with-comments-expanded.yaml new file mode 100644 index 00000000..5aa85067 --- /dev/null +++ b/yaml/Embedding-JSON-LD-in-HTML-with-comments-expanded.yaml @@ -0,0 +1,10 @@ +Example 103: Embedding JSON-LD in HTML with comments-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/Flattened-and-expanded-form-for-the-previous-example.yaml b/yaml/Flattened-and-expanded-form-for-the-previous-example.yaml index ef837018..4004cbea 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 105: Flattened and expanded form for the previous example +Example 108: Flattened and expanded form for the previous example --- - "@id": _:b0 http://xmlns.com/foaf/0.1/name: Dave Longley 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 d2dccefb..65e8f1cb 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 111: JSON-LD using native data types for numbers and boolean values +Example 114: JSON-LD using native data types for numbers and boolean values --- "@context": ex: http://example.com/vocab# diff --git a/yaml/Linked-Data-Dataset-compacted.yaml b/yaml/Linked-Data-Dataset-compacted.yaml index fc675d4a..b3f0d9fa 100644 --- a/yaml/Linked-Data-Dataset-compacted.yaml +++ b/yaml/Linked-Data-Dataset-compacted.yaml @@ -1,4 +1,4 @@ -Example 103: Linked Data Dataset-compacted +Example 106: 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 f4c8b494..05e82d7f 100644 --- a/yaml/Linked-Data-Dataset-expanded.yaml +++ b/yaml/Linked-Data-Dataset-expanded.yaml @@ -1,4 +1,4 @@ -Example 103: Linked Data Dataset-expanded +Example 106: Linked Data Dataset-expanded --- - "@id": http://example.com/people/alice http://schema.org/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 d56a2c61..0ee44e68 100644 --- a/yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml +++ b/yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml @@ -1,4 +1,4 @@ -Example 118: Same book description in JSON-LD (avoiding contexts) +Example 121: Same book description in JSON-LD (avoiding contexts) --- - "@id": http://purl.oreilly.com/works/45U8QJGZSQKDH8N "@type": http://purl.org/vocab/frbr/core#Work 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 f1998131..7aa5bed4 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 116: Same description in JSON-LD (context shared among node objects) +Example 119: 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 808b4b20..6ccd9f0d 100644 --- a/yaml/Same-embedding-example-in-JSON-LD.yaml +++ b/yaml/Same-embedding-example-in-JSON-LD.yaml @@ -1,4 +1,4 @@ -Example 110: Same embedding example in JSON-LD +Example 113: 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 be1e5ed5..a5ba0744 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 114: Same example with a list of values in JSON-LD +Example 117: 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.yaml b/yaml/Sample-JSON-LD-document.yaml index e5096fac..9d68f325 100644 --- a/yaml/Sample-JSON-LD-document.yaml +++ b/yaml/Sample-JSON-LD-document.yaml @@ -1,4 +1,4 @@ -Example 104: Sample JSON-LD document +Example 107: Sample JSON-LD document --- "@context": name: http://xmlns.com/foaf/0.1/name 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 6c96ff54..a6832a50 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 108: The same set of statements serialized in JSON-LD +Example 111: The same set of statements serialized in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/