Skip to content

Commit 9f2ef52

Browse files
committed
Remove bits about resolving to HTML base element to be added in a separate PR for #23.
1 parent 5516c21 commit 9f2ef52

16 files changed

+12
-158
lines changed

examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.jsonld

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-original.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-statements.table

Lines changed: 0 additions & 28 deletions
This file was deleted.

examples/Using-the-document-base-URL-to-establish-the-default-base-IRI-turtle.ttl

Lines changed: 0 additions & 7 deletions
This file was deleted.

index.html

Lines changed: 2 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -8560,92 +8560,10 @@ <h3>Graph Containers</h3>
85608560

85618561
<p>When processing a JSON-LD
85628562
<a data-cite="HTML52/semantics-scripting.html#the-script-element">script element</a>,
8563-
the <a data-cite="HTML52/infrastructure.html#document-base-url">Document Base URL</a>
8564-
of the containing HTML document,
8565-
as defined in [[HTML52]],
8566-
is used to establish the default <a>base IRI</a> of the enclosed
8563+
only the resolved document location of the
8564+
containing HTML document is used to establish the default <a>base IRI</a> of the enclosed
85678565
JSON-LD content.</p>
85688566

8569-
<aside class="example ds-selector-tabs"
8570-
title="Using the document base URL to establish the default base IRI">
8571-
<div class="selectors">
8572-
<button class="selected" data-selects="original">Original</button>
8573-
<button data-selects="expanded">Expanded</button>
8574-
<button data-selects="statements">Statements</button>
8575-
<button data-selects="turtle">Turtle</button>
8576-
</div>
8577-
<pre class="original selected" data-transform="updateExample"
8578-
data-content-type="text/html">
8579-
<!--
8580-
****<html>
8581-
<head>
8582-
<base href="http://dbpedia.org/resource/"/>****
8583-
<script type="application/ld+json">
8584-
< !--
8585-
{
8586-
"@context": "https://json-ld.org/contexts/person.jsonld",
8587-
"@id": ****"John_Lennon"****,
8588-
"name": "John Lennon",
8589-
"born": "1940-10-09",
8590-
"spouse": ****"Cynthia_Lennon"****
8591-
}
8592-
-- >
8593-
</script>
8594-
****</head>
8595-
</html>****
8596-
-->
8597-
</pre>
8598-
<pre class="expanded"
8599-
data-transform="updateExample"
8600-
data-result-for="Using the document base URL to establish the default base IRI-original">
8601-
<!--
8602-
[{
8603-
"@id": "http://dbpedia.org/resource/John_Lennon",
8604-
"http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}],
8605-
"http://schema.org/birthDate": [
8606-
{"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"}
8607-
],
8608-
"http://schema.org/spouse": [
8609-
{"@id": "http://dbpedia.org/resource/Cynthia_Lennon"}
8610-
]
8611-
}]
8612-
-->
8613-
</pre>
8614-
<table class="statements"
8615-
data-result-for="Using the document base URL to establish the default base IRI-expanded"
8616-
data-to-rdf>
8617-
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Value Type</th></tr></thead>
8618-
<tbody>
8619-
<tr><td>http://dbpedia.org/resource/John_Lennon</td><td>foaf:name</td><td>John Lennon</td><td>&nbsp;</td></tr>
8620-
<tr><td>http://dbpedia.org/resource/John_Lennon</td><td>schema:birthDate</td><td>1940-10-09</td><td>xsd:date</td></tr>
8621-
<tr><td>http://dbpedia.org/resource/John_Lennon</td><td>schema:spouse</td><td>http://dbpedia.org/resource/Cynthia_Lennon</td><td>&nbsp;</td></tr>
8622-
</tbody>
8623-
</table>
8624-
<pre class="turtle"
8625-
data-content-type="text/turtle"
8626-
data-transform="updateExample"
8627-
data-result-for="Using the document base URL to establish the default base IRI-expanded"
8628-
data-to-rdf>
8629-
<!--
8630-
@base <http://dbpedia.org/resource/> .
8631-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
8632-
@prefix schema: <http://schema.org/> .
8633-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
8634-
8635-
<John_Lennon> foaf:name "John Lennon";
8636-
schema:birthDate "1940-10-09"^^xsd:date;
8637-
schema:spouse <Cynthia_Lennon> .
8638-
-->
8639-
</pre>
8640-
</aside>
8641-
8642-
<p>HTML allows for <a data-cite="HTML52/infrastructure.html#dynamic-changes-to-base-urls">Dynamic changes to base URLs</a>.
8643-
This specification does not require any specific behavior,
8644-
and to ensure that all systems process the <a>base IRI</a> equivalently, authors SHOULD
8645-
either use <a>absolute IRIs</a>, or explicitly as defined in <a href="#base-iri" class="sectionRef"></a>.
8646-
Implementations (particularly those natively operating in the [[!DOM]]) MAY take into consideration
8647-
<a data-cite="HTML52/infrastructure.html#dynamic-changes-to-base-urls">Dynamic changes to base URLs</a>.</p>
8648-
86498567
<section><h3>Locating a Specific JSON-LD Script Element</h3>
86508568
<p>A specific
86518569
<a data-cite="HTML52/semantics-scripting.html#the-script-element">script element</a>

yaml/Flattened-and-expanded-form-for-the-previous-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 109: Flattened and expanded form for the previous example
1+
Example 108: Flattened and expanded form for the previous example
22
---
33
- "@id": _:b0
44
http://xmlns.com/foaf/0.1/name: Dave Longley

yaml/JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 115: JSON-LD using native data types for numbers and boolean values
1+
Example 114: JSON-LD using native data types for numbers and boolean values
22
---
33
"@context":
44
ex: http://example.com/vocab#

yaml/Linked-Data-Dataset-compacted.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 107: Linked Data Dataset-compacted
1+
Example 106: Linked Data Dataset-compacted
22
---
33
"@context":
44
- http://schema.org/

yaml/Linked-Data-Dataset-expanded.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 107: Linked Data Dataset-expanded
1+
Example 106: Linked Data Dataset-expanded
22
---
33
- "@id": http://example.com/people/alice
44
http://schema.org/name:

yaml/Same-book-description-in-JSON-LD-avoiding-contexts-.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 122: Same book description in JSON-LD (avoiding contexts)
1+
Example 121: Same book description in JSON-LD (avoiding contexts)
22
---
33
- "@id": http://purl.oreilly.com/works/45U8QJGZSQKDH8N
44
"@type": http://purl.org/vocab/frbr/core#Work

yaml/Same-description-in-JSON-LD-context-shared-among-node-objects-.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 120: Same description in JSON-LD (context shared among node objects)
1+
Example 119: Same description in JSON-LD (context shared among node objects)
22
---
33
"@context":
44
foaf: http://xmlns.com/foaf/0.1/

yaml/Same-embedding-example-in-JSON-LD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 114: Same embedding example in JSON-LD
1+
Example 113: Same embedding example in JSON-LD
22
---
33
"@context":
44
foaf: http://xmlns.com/foaf/0.1/

yaml/Same-example-with-a-list-of-values-in-JSON-LD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 118: Same example with a list of values in JSON-LD
1+
Example 117: Same example with a list of values in JSON-LD
22
---
33
"@context":
44
foaf: http://xmlns.com/foaf/0.1/

yaml/Sample-JSON-LD-document.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 108: Sample JSON-LD document
1+
Example 107: Sample JSON-LD document
22
---
33
"@context":
44
name: http://xmlns.com/foaf/0.1/name

yaml/The-same-set-of-statements-serialized-in-JSON-LD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Example 112: The same set of statements serialized in JSON-LD
1+
Example 111: The same set of statements serialized in JSON-LD
22
---
33
"@context":
44
foaf: http://xmlns.com/foaf/0.1/

yaml/Using-the-document-base-URL-to-establish-the-default-base-IRI-expanded.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)