@@ -8579,99 +8579,101 @@ <h3>Graph Containers</h3>
8579
8579
</ pre >
8580
8580
</ aside >
8581
8581
8582
- < p > When processing a JSON-LD
8583
- < a data-cite ="HTML52/semantics-scripting.html#the-script-element "> script element</ a > ,
8584
- the < a data-cite ="HTML52/infrastructure.html#document-base-url "> Document Base URL</ a >
8585
- of the containing HTML document,
8586
- as defined in [[HTML52]],
8587
- is used to establish the default < a > base IRI</ a > of the enclosed
8588
- JSON-LD content.</ p >
8589
-
8590
- < p class ="issue atrisk " data-number ="23 ">
8591
- The use of the < a data-cite ="HTML52/infrastructure.html#document-base-url "> Document Base URL</ a >
8592
- from [[HTML52]] for setting the < a > base IRI</ a > of the enclosed JSON-LD
8593
- is an experimental feature, which may be changed in a future version of this specification.
8594
- </ p >
8582
+ < section > < h3 > Inheriting base IRI from HTML's < code > base</ code > element</ h3 >
8583
+ < p > When processing a JSON-LD
8584
+ < a data-cite ="HTML52/semantics-scripting.html#the-script-element "> script element</ a > ,
8585
+ the < a data-cite ="HTML52/infrastructure.html#document-base-url "> Document Base URL</ a >
8586
+ of the containing HTML document,
8587
+ as defined in [[HTML52]],
8588
+ is used to establish the default < a > base IRI</ a > of the enclosed
8589
+ JSON-LD content.</ p >
8590
+
8591
+ < p class ="issue atrisk " data-number ="23 ">
8592
+ The use of the < a data-cite ="HTML52/infrastructure.html#document-base-url "> Document Base URL</ a >
8593
+ from [[HTML52]] for setting the < a > base IRI</ a > of the enclosed JSON-LD
8594
+ is an experimental feature, which may be changed in a future version of this specification.
8595
+ </ p >
8595
8596
8596
- < aside class ="example ds-selector-tabs "
8597
- title ="Using the document base URL to establish the default base IRI ">
8598
- < div class ="selectors ">
8599
- < button class ="selected " data-selects ="original "> Original</ button >
8600
- < button data-selects ="expanded "> Expanded</ button >
8601
- < button data-selects ="statements "> Statements</ button >
8602
- < button data-selects ="turtle "> Turtle</ button >
8603
- </ div >
8604
- < pre class ="original selected " data-transform ="updateExample "
8605
- data-content-type ="text/html ">
8606
- <!--
8607
- ****<html>
8608
- <head>
8609
- <base href="http://dbpedia.org/resource/"/>****
8610
- <script type="application/ld+json">
8611
- < ! - -
8612
- {
8613
- "@context": "https://json-ld.org/contexts/person.jsonld",
8614
- "@id": ****"John_Lennon"****,
8615
- "name": "John Lennon",
8616
- "born": "1940-10-09",
8617
- "spouse": ****"Cynthia_Lennon"****
8618
- }
8619
- - - >
8620
- </script>
8621
- ****</head>
8622
- </html>****
8623
- -->
8624
- </ pre >
8625
- < pre class ="expanded "
8626
- data-transform ="updateExample "
8627
- data-result-for ="Using the document base URL to establish the default base IRI-original ">
8628
- <!--
8629
- [{
8630
- "@id": "http://dbpedia.org/resource/John_Lennon",
8631
- "http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}],
8632
- "http://schema.org/birthDate": [
8633
- {"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"}
8634
- ],
8635
- "http://schema.org/spouse": [
8636
- {"@id": "http://dbpedia.org/resource/Cynthia_Lennon"}
8637
- ]
8638
- }]
8639
- -->
8640
- </ pre >
8641
- < table class ="statements "
8597
+ < aside class ="example ds-selector-tabs "
8598
+ title ="Using the document base URL to establish the default base IRI ">
8599
+ < div class ="selectors ">
8600
+ < button class ="selected " data-selects ="original "> Original</ button >
8601
+ < button data-selects ="expanded "> Expanded</ button >
8602
+ < button data-selects ="statements "> Statements</ button >
8603
+ < button data-selects ="turtle "> Turtle</ button >
8604
+ </ div >
8605
+ < pre class ="original selected " data-transform ="updateExample "
8606
+ data-content-type ="text/html ">
8607
+ <!--
8608
+ ****<html>
8609
+ <head>
8610
+ <base href="http://dbpedia.org/resource/"/>****
8611
+ <script type="application/ld+json">
8612
+ < ! - -
8613
+ {
8614
+ "@context": "https://json-ld.org/contexts/person.jsonld",
8615
+ "@id": ****"John_Lennon"****,
8616
+ "name": "John Lennon",
8617
+ "born": "1940-10-09",
8618
+ "spouse": ****"Cynthia_Lennon"****
8619
+ }
8620
+ - - >
8621
+ </script>
8622
+ ****</head>
8623
+ </html>****
8624
+ -->
8625
+ </ pre >
8626
+ < pre class ="expanded "
8627
+ data-transform ="updateExample "
8628
+ data-result-for ="Using the document base URL to establish the default base IRI-original ">
8629
+ <!--
8630
+ [{
8631
+ "@id": "http://dbpedia.org/resource/John_Lennon",
8632
+ "http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}],
8633
+ "http://schema.org/birthDate": [
8634
+ {"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"}
8635
+ ],
8636
+ "http://schema.org/spouse": [
8637
+ {"@id": "http://dbpedia.org/resource/Cynthia_Lennon"}
8638
+ ]
8639
+ }]
8640
+ -->
8641
+ </ pre >
8642
+ < table class ="statements "
8643
+ data-result-for ="Using the document base URL to establish the default base IRI-expanded "
8644
+ data-to-rdf >
8645
+ < thead > < tr > < th > Subject</ th > < th > Property</ th > < th > Value</ th > < th > Value Type</ th > </ tr > </ thead >
8646
+ < tbody >
8647
+ < tr > < td > http://dbpedia.org/resource/John_Lennon</ td > < td > foaf:name</ td > < td > John Lennon</ td > < td > </ td > </ tr >
8648
+ < tr > < td > http://dbpedia.org/resource/John_Lennon</ td > < td > schema:birthDate</ td > < td > 1940-10-09</ td > < td > xsd:date</ td > </ tr >
8649
+ < tr > < td > http://dbpedia.org/resource/John_Lennon</ td > < td > schema:spouse</ td > < td > http://dbpedia.org/resource/Cynthia_Lennon</ td > < td > </ td > </ tr >
8650
+ </ tbody >
8651
+ </ table >
8652
+ < pre class ="turtle "
8653
+ data-content-type ="text/turtle "
8654
+ data-transform ="updateExample "
8642
8655
data-result-for ="Using the document base URL to establish the default base IRI-expanded "
8643
8656
data-to-rdf >
8644
- < thead > < tr > < th > Subject</ th > < th > Property</ th > < th > Value</ th > < th > Value Type</ th > </ tr > </ thead >
8645
- < tbody >
8646
- < tr > < td > http://dbpedia.org/resource/John_Lennon</ td > < td > foaf:name</ td > < td > John Lennon</ td > < td > </ td > </ tr >
8647
- < tr > < td > http://dbpedia.org/resource/John_Lennon</ td > < td > schema:birthDate</ td > < td > 1940-10-09</ td > < td > xsd:date</ td > </ tr >
8648
- < tr > < td > http://dbpedia.org/resource/John_Lennon</ td > < td > schema:spouse</ td > < td > http://dbpedia.org/resource/Cynthia_Lennon</ td > < td > </ td > </ tr >
8649
- </ tbody >
8650
- </ table >
8651
- < pre class ="turtle "
8652
- data-content-type ="text/turtle "
8653
- data-transform ="updateExample "
8654
- data-result-for ="Using the document base URL to establish the default base IRI-expanded "
8655
- data-to-rdf >
8656
- <!--
8657
- @base <http://dbpedia.org/resource/> .
8658
- @prefix foaf: <http://xmlns.com/foaf/0.1/> .
8659
- @prefix schema: <http://schema.org/> .
8660
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
8657
+ <!--
8658
+ @base <http://dbpedia.org/resource/> .
8659
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
8660
+ @prefix schema: <http://schema.org/> .
8661
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
8661
8662
8662
- <John_Lennon> foaf:name "John Lennon";
8663
- schema:birthDate "1940-10-09"^^xsd:date;
8664
- schema:spouse <Cynthia_Lennon> .
8665
- -->
8666
- </ pre >
8667
- </ aside >
8663
+ <John_Lennon> foaf:name "John Lennon";
8664
+ schema:birthDate "1940-10-09"^^xsd:date;
8665
+ schema:spouse <Cynthia_Lennon> .
8666
+ -->
8667
+ </ pre >
8668
+ </ aside >
8668
8669
8669
- < p > HTML allows for < a data-cite ="HTML52/infrastructure.html#dynamic-changes-to-base-urls "> Dynamic changes to base URLs</ a > .
8670
- This specification does not require any specific behavior,
8671
- and to ensure that all systems process the < a > base IRI</ a > equivalently, authors SHOULD
8672
- either use < a > absolute IRIs</ a > , or explicitly as defined in < a href ="#base-iri " class ="sectionRef "> </ a > .
8673
- Implementations (particularly those natively operating in the [[!DOM]]) MAY take into consideration
8674
- < a data-cite ="HTML52/infrastructure.html#dynamic-changes-to-base-urls "> Dynamic changes to base URLs</ a > .</ p >
8670
+ < p > HTML allows for < a data-cite ="HTML52/infrastructure.html#dynamic-changes-to-base-urls "> Dynamic changes to base URLs</ a > .
8671
+ This specification does not require any specific behavior,
8672
+ and to ensure that all systems process the < a > base IRI</ a > equivalently, authors SHOULD
8673
+ either use < a > absolute IRIs</ a > , or explicitly as defined in < a href ="#base-iri " class ="sectionRef "> </ a > .
8674
+ Implementations (particularly those natively operating in the [[!DOM]]) MAY take into consideration
8675
+ < a data-cite ="HTML52/infrastructure.html#dynamic-changes-to-base-urls "> Dynamic changes to base URLs</ a > .</ p >
8676
+ </ section >
8675
8677
8676
8678
< section > < h3 > Restrictions for contents of JSON-LD < code > script</ code > elements</ h3 >
8677
8679
< p class ="issue atrisk "> This section adds additional requirements for escaping
0 commit comments