Skip to content

Commit 51117f5

Browse files
committed
Update HTML examples per comment.
1 parent 5c2e1dd commit 51117f5

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

index.html

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
companyURL: "https://digitalbazaar.com/",
7777
note: "v1.0" },
7878
{ name: "Dave Longley",
79-
url: "https://digitalbazaar.com/",
79+
url: "https://digitalbazaar.com/author/dlongley/",
8080
company: "Digital Bazaar",
8181
companyURL: "https://digitalbazaar.com/",
8282
note: "v1.0" },
@@ -8498,19 +8498,19 @@ <h3>Graph Containers</h3>
84988498
<pre class="original selected" data-transform="updateExample"
84998499
data-content-type="text/html">
85008500
<!--
8501-
<p>Data described using FOAF</p>
8501+
<p>Data describing Dave</p>
85028502
<script type="application/ld+json">
85038503
{
85048504
"@context": {
8505-
"@vocab": "http://xmlns.com/foaf/0.1/"
8505+
"@vocab": "http://schema.org/"
85068506
},
8507-
"@id": "http://greggkellogg.net/foaf#me",
8507+
"@id": "https://digitalbazaar.com/author/dlongley/",
85088508
"@type": "Person",
8509-
"name": "Gregg Kellogg"
8509+
"name": "Dave Longley"
85108510
}
85118511
</script>
85128512
8513-
<p>Data described using schema.org</p>
8513+
<p>Data describing Gregg</p>
85148514
<script type="application/ld+json">
85158515
{
85168516
"@context": {
@@ -8523,14 +8523,15 @@ <h3>Graph Containers</h3>
85238523
</script>
85248524
-->
85258525
</pre>
8526+
</pre>
85268527
<table class="statements"
85278528
data-result-for="Combining multiple JSON-LD script elements into a single dataset-original"
85288529
data-to-rdf>
85298530
<thead><tr><th>Subject</th><th>Property</th><th>Value</th></tr></thead>
85308531
<tbody>
8531-
<tr><td>http://greggkellogg.net/foaf#me</td><td>rdf:type</td><td>foaf:Person</td></tr>
8532+
<tr><td>https://digitalbazaar.com/author/dlongley/</td><td>rdf:type</td><td>schema:Person</td></tr>
8533+
<tr><td>https://digitalbazaar.com/author/dlongley/</td><td>schema:name</td><td>Dave Longley</td></tr>
85328534
<tr><td>http://greggkellogg.net/foaf#me</td><td>rdf:type</td><td>schema:Person</td></tr>
8533-
<tr><td>http://greggkellogg.net/foaf#me</td><td>foaf:name</td><td>Gregg Kellogg</td></tr>
85348535
<tr><td>http://greggkellogg.net/foaf#me</td><td>schema:name</td><td>Gregg Kellogg</td></tr>
85358536
</tbody>
85368537
</table>
@@ -8540,11 +8541,12 @@ <h3>Graph Containers</h3>
85408541
data-result-for="Combining multiple JSON-LD script elements into a single dataset-original"
85418542
data-to-rdf>
85428543
<!--
8543-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
85448544
@prefix schema: <http://schema.org/> .
85458545
8546-
<http://greggkellogg.net/foaf#me> a foaf:Person, schema:Person;
8547-
foaf:name "Gregg Kellogg";
8546+
<https://digitalbazaar.com/author/dlongley/> a schema:Person;
8547+
schema:name "Dave Longley" .
8548+
8549+
<http://greggkellogg.net/foaf#me> a schema:Person;
85488550
schema:name "Gregg Kellogg" .
85498551
-->
85508552
</pre>
@@ -8567,8 +8569,8 @@ <h3>Graph Containers</h3>
85678569
a fragment identifier matching the <a data-cite="DOM#concept-id">unique identifier</a>
85688570
of the script element within the HTML document located by a URL (see [[!DOM]]).</p>
85698571
<p>For example, given an HTML document located at <code>http://example.com/document</code>,
8570-
a script element identified by "schema" can be targeted using the URL
8571-
<code>http://example.com/document#schema</code>.</p>
8572+
a script element identified by "name" can be targeted using the URL
8573+
<code>http://example.com/document#name</code>.</p>
85728574

85738575
<aside class="example ds-selector-tabs"
85748576
title="Targeting a specific script element by id">
@@ -8577,24 +8579,24 @@ <h3>Graph Containers</h3>
85778579
<button data-selects="statements">Statements</button>
85788580
<button data-selects="turtle">Turtle</button>
85798581
</div>
8580-
<p>Targeting a script element with id "schema"</p>
8582+
<p>Targeting a script element with id "gregg"</p>
85818583
<pre class="original selected nohighlight" data-transform="updateExample"
85828584
data-content-type="text/html">
85838585
<!--
8584-
<p>Data described using FOAF</p>
8585-
<script ****id="foaf"**** type="application/ld+json">
8586+
<p>Data describing Dave</p>
8587+
<script ****id="dave"**** type="application/ld+json">
85868588
{
85878589
"@context": {
8588-
"@vocab": "http://xmlns.com/foaf/0.1/"
8590+
"@vocab": "http://schema.org/"
85898591
},
8590-
"@id": "http://greggkellogg.net/foaf#me",
8592+
"@id": "https://digitalbazaar.com/author/dlongley/",
85918593
"@type": "Person",
8592-
"name": "Gregg Kellogg"
8594+
"name": "Dave Longley"
85938595
}
85948596
</script>
85958597
8596-
<p>Data described using schema.org</p>
8597-
<script ****id="schema"**** type="application/ld+json">
8598+
<p>Data describing Gregg</p>
8599+
<script ****id="gregg"**** type="application/ld+json">
85988600
{
85998601
"@context": {
86008602
"@vocab": "http://schema.org/"
@@ -8609,7 +8611,7 @@ <h3>Graph Containers</h3>
86098611
<table class="statements"
86108612
data-result-for="Targeting a specific script element by id-original"
86118613
data-to-rdf
8612-
data-target="#schema">
8614+
data-target="#gregg">
86138615
<thead><tr><th>Subject</th><th>Property</th><th>Value</th></tr></thead>
86148616
<tbody>
86158617
<tr><td>http://greggkellogg.net/foaf#me</td><td>rdf:type</td><td>schema:Person</td></tr>
@@ -8621,7 +8623,7 @@ <h3>Graph Containers</h3>
86218623
data-transform="updateExample"
86228624
data-result-for="Targeting a specific script element by id-original"
86238625
data-to-rdf
8624-
data-target="#schema">
8626+
data-target="#gregg">
86258627
<!--
86268628
@prefix schema: <http://schema.org/> .
86278629

0 commit comments

Comments
 (0)