1
- <!DOCTYPE html>
1
+ <!DOCTYPE html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< title > JSON-LD 1.1</ title >
75
75
companyURL : "https://digitalbazaar.com/" ,
76
76
note : "v1.0" } ,
77
77
{ name : "Dave Longley" ,
78
- url : "https://digitalbazaar.com/" ,
78
+ url : "https://digitalbazaar.com/author/dlongley/ " ,
79
79
company : "Digital Bazaar" ,
80
80
companyURL : "https://digitalbazaar.com/" ,
81
81
note : "v1.0" } ,
@@ -8493,19 +8493,19 @@ <h3>Graph Containers</h3>
8493
8493
< pre class ="original selected " data-transform ="updateExample "
8494
8494
data-content-type ="text/html ">
8495
8495
<!--
8496
- <p>Data described using FOAF </p>
8496
+ <p>Data describing Dave </p>
8497
8497
<script type="application/ld+json">
8498
8498
{
8499
8499
"@context": {
8500
- "@vocab": "http://xmlns.com/foaf/0.1 /"
8500
+ "@vocab": "http://schema.org /"
8501
8501
},
8502
- "@id": "http ://greggkellogg.net/foaf#me ",
8502
+ "@id": "https ://digitalbazaar.com/author/dlongley/ ",
8503
8503
"@type": "Person",
8504
- "name": "Gregg Kellogg "
8504
+ "name": "Dave Longley "
8505
8505
}
8506
8506
</script>
8507
8507
8508
- <p>Data described using schema.org </p>
8508
+ <p>Data describing Gregg </p>
8509
8509
<script type="application/ld+json">
8510
8510
{
8511
8511
"@context": {
@@ -8518,14 +8518,15 @@ <h3>Graph Containers</h3>
8518
8518
</script>
8519
8519
-->
8520
8520
</ pre >
8521
+ </ pre >
8521
8522
< table class ="statements "
8522
8523
data-result-for ="Combining multiple JSON-LD script elements into a single dataset-original "
8523
8524
data-to-rdf >
8524
8525
< thead > < tr > < th > Subject</ th > < th > Property</ th > < th > Value</ th > </ tr > </ thead >
8525
8526
< tbody >
8526
- < tr > < td > http://greggkellogg.net/foaf#me</ td > < td > rdf:type</ td > < td > foaf:Person</ td > </ tr >
8527
+ < tr > < td > https://digitalbazaar.com/author/dlongley/</ td > < td > rdf:type</ td > < td > schema:Person</ td > </ tr >
8528
+ < tr > < td > https://digitalbazaar.com/author/dlongley/</ td > < td > schema:name</ td > < td > Dave Longley</ td > </ tr >
8527
8529
< tr > < td > http://greggkellogg.net/foaf#me</ td > < td > rdf:type</ td > < td > schema:Person</ td > </ tr >
8528
- < tr > < td > http://greggkellogg.net/foaf#me</ td > < td > foaf:name</ td > < td > Gregg Kellogg</ td > </ tr >
8529
8530
< tr > < td > http://greggkellogg.net/foaf#me</ td > < td > schema:name</ td > < td > Gregg Kellogg</ td > </ tr >
8530
8531
</ tbody >
8531
8532
</ table >
@@ -8535,11 +8536,12 @@ <h3>Graph Containers</h3>
8535
8536
data-result-for ="Combining multiple JSON-LD script elements into a single dataset-original "
8536
8537
data-to-rdf >
8537
8538
<!--
8538
- @prefix foaf: <http://xmlns.com/foaf/0.1/> .
8539
8539
@prefix schema: <http://schema.org/> .
8540
8540
8541
- <http://greggkellogg.net/foaf#me> a foaf:Person, schema:Person;
8542
- foaf:name "Gregg Kellogg";
8541
+ <https://digitalbazaar.com/author/dlongley/> a schema:Person;
8542
+ schema:name "Dave Longley" .
8543
+
8544
+ <http://greggkellogg.net/foaf#me> a schema:Person;
8543
8545
schema:name "Gregg Kellogg" .
8544
8546
-->
8545
8547
</ pre >
@@ -8562,8 +8564,8 @@ <h3>Graph Containers</h3>
8562
8564
a fragment identifier matching the < a data-cite ="DOM#concept-id "> unique identifier</ a >
8563
8565
of the script element within the HTML document located by a URL (see [[!DOM]]).</ p >
8564
8566
< p > For example, given an HTML document located at < code > http://example.com/document</ code > ,
8565
- a script element identified by "schema " can be targeted using the URL
8566
- < code > http://example.com/document#schema </ code > .</ p >
8567
+ a script element identified by "name " can be targeted using the URL
8568
+ < code > http://example.com/document#name </ code > .</ p >
8567
8569
8568
8570
< aside class ="example ds-selector-tabs "
8569
8571
title ="Targeting a specific script element by id ">
@@ -8572,24 +8574,24 @@ <h3>Graph Containers</h3>
8572
8574
< button data-selects ="statements "> Statements</ button >
8573
8575
< button data-selects ="turtle "> Turtle</ button >
8574
8576
</ div >
8575
- < p > Targeting a script element with id "schema "</ p >
8577
+ < p > Targeting a script element with id "gregg "</ p >
8576
8578
< pre class ="original selected nohighlight " data-transform ="updateExample "
8577
8579
data-content-type ="text/html ">
8578
8580
<!--
8579
- <p>Data described using FOAF </p>
8580
- <script ****id="foaf "**** type="application/ld+json">
8581
+ <p>Data describing Dave </p>
8582
+ <script ****id="dave "**** type="application/ld+json">
8581
8583
{
8582
8584
"@context": {
8583
- "@vocab": "http://xmlns.com/foaf/0.1 /"
8585
+ "@vocab": "http://schema.org /"
8584
8586
},
8585
- "@id": "http ://greggkellogg.net/foaf#me ",
8587
+ "@id": "https ://digitalbazaar.com/author/dlongley/ ",
8586
8588
"@type": "Person",
8587
- "name": "Gregg Kellogg "
8589
+ "name": "Dave Longley "
8588
8590
}
8589
8591
</script>
8590
8592
8591
- <p>Data described using schema.org </p>
8592
- <script ****id="schema "**** type="application/ld+json">
8593
+ <p>Data describing Gregg </p>
8594
+ <script ****id="gregg "**** type="application/ld+json">
8593
8595
{
8594
8596
"@context": {
8595
8597
"@vocab": "http://schema.org/"
@@ -8604,7 +8606,7 @@ <h3>Graph Containers</h3>
8604
8606
< table class ="statements "
8605
8607
data-result-for ="Targeting a specific script element by id-original "
8606
8608
data-to-rdf
8607
- data-target ="#schema ">
8609
+ data-target ="#gregg ">
8608
8610
< thead > < tr > < th > Subject</ th > < th > Property</ th > < th > Value</ th > </ tr > </ thead >
8609
8611
< tbody >
8610
8612
< tr > < td > http://greggkellogg.net/foaf#me</ td > < td > rdf:type</ td > < td > schema:Person</ td > </ tr >
@@ -8616,7 +8618,7 @@ <h3>Graph Containers</h3>
8616
8618
data-transform ="updateExample "
8617
8619
data-result-for ="Targeting a specific script element by id-original "
8618
8620
data-to-rdf
8619
- data-target ="#schema ">
8621
+ data-target ="#gregg ">
8620
8622
<!--
8621
8623
@prefix schema: <http://schema.org/> .
8622
8624
0 commit comments