Skip to content

Commit 75814b8

Browse files
committed
Update HTML examples per comment.
1 parent 563a3f8 commit 75814b8

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

index.html

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<title>JSON-LD 1.1</title>
@@ -75,7 +75,7 @@
7575
companyURL: "https://digitalbazaar.com/",
7676
note: "v1.0" },
7777
{ name: "Dave Longley",
78-
url: "https://digitalbazaar.com/",
78+
url: "https://digitalbazaar.com/author/dlongley/",
7979
company: "Digital Bazaar",
8080
companyURL: "https://digitalbazaar.com/",
8181
note: "v1.0" },
@@ -8493,19 +8493,19 @@ <h3>Graph Containers</h3>
84938493
<pre class="original selected" data-transform="updateExample"
84948494
data-content-type="text/html">
84958495
<!--
8496-
<p>Data described using FOAF</p>
8496+
<p>Data describing Dave</p>
84978497
<script type="application/ld+json">
84988498
{
84998499
"@context": {
8500-
"@vocab": "http://xmlns.com/foaf/0.1/"
8500+
"@vocab": "http://schema.org/"
85018501
},
8502-
"@id": "http://greggkellogg.net/foaf#me",
8502+
"@id": "https://digitalbazaar.com/author/dlongley/",
85038503
"@type": "Person",
8504-
"name": "Gregg Kellogg"
8504+
"name": "Dave Longley"
85058505
}
85068506
</script>
85078507
8508-
<p>Data described using schema.org</p>
8508+
<p>Data describing Gregg</p>
85098509
<script type="application/ld+json">
85108510
{
85118511
"@context": {
@@ -8518,14 +8518,15 @@ <h3>Graph Containers</h3>
85188518
</script>
85198519
-->
85208520
</pre>
8521+
</pre>
85218522
<table class="statements"
85228523
data-result-for="Combining multiple JSON-LD script elements into a single dataset-original"
85238524
data-to-rdf>
85248525
<thead><tr><th>Subject</th><th>Property</th><th>Value</th></tr></thead>
85258526
<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>
85278529
<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>
85298530
<tr><td>http://greggkellogg.net/foaf#me</td><td>schema:name</td><td>Gregg Kellogg</td></tr>
85308531
</tbody>
85318532
</table>
@@ -8535,11 +8536,12 @@ <h3>Graph Containers</h3>
85358536
data-result-for="Combining multiple JSON-LD script elements into a single dataset-original"
85368537
data-to-rdf>
85378538
<!--
8538-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
85398539
@prefix schema: <http://schema.org/> .
85408540
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;
85438545
schema:name "Gregg Kellogg" .
85448546
-->
85458547
</pre>
@@ -8562,8 +8564,8 @@ <h3>Graph Containers</h3>
85628564
a fragment identifier matching the <a data-cite="DOM#concept-id">unique identifier</a>
85638565
of the script element within the HTML document located by a URL (see [[!DOM]]).</p>
85648566
<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>
85678569

85688570
<aside class="example ds-selector-tabs"
85698571
title="Targeting a specific script element by id">
@@ -8572,24 +8574,24 @@ <h3>Graph Containers</h3>
85728574
<button data-selects="statements">Statements</button>
85738575
<button data-selects="turtle">Turtle</button>
85748576
</div>
8575-
<p>Targeting a script element with id "schema"</p>
8577+
<p>Targeting a script element with id "gregg"</p>
85768578
<pre class="original selected nohighlight" data-transform="updateExample"
85778579
data-content-type="text/html">
85788580
<!--
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">
85818583
{
85828584
"@context": {
8583-
"@vocab": "http://xmlns.com/foaf/0.1/"
8585+
"@vocab": "http://schema.org/"
85848586
},
8585-
"@id": "http://greggkellogg.net/foaf#me",
8587+
"@id": "https://digitalbazaar.com/author/dlongley/",
85868588
"@type": "Person",
8587-
"name": "Gregg Kellogg"
8589+
"name": "Dave Longley"
85888590
}
85898591
</script>
85908592
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">
85938595
{
85948596
"@context": {
85958597
"@vocab": "http://schema.org/"
@@ -8604,7 +8606,7 @@ <h3>Graph Containers</h3>
86048606
<table class="statements"
86058607
data-result-for="Targeting a specific script element by id-original"
86068608
data-to-rdf
8607-
data-target="#schema">
8609+
data-target="#gregg">
86088610
<thead><tr><th>Subject</th><th>Property</th><th>Value</th></tr></thead>
86098611
<tbody>
86108612
<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>
86168618
data-transform="updateExample"
86178619
data-result-for="Targeting a specific script element by id-original"
86188620
data-to-rdf
8619-
data-target="#schema">
8621+
data-target="#gregg">
86208622
<!--
86218623
@prefix schema: <http://schema.org/> .
86228624

0 commit comments

Comments
 (0)