Skip to content

Commit 9e071c9

Browse files
committed
Update extracted examples.
1 parent 51117f5 commit 9e071c9

26 files changed

+208
-10
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
{
3+
"@context": {
4+
"@vocab": "http://schema.org/"
5+
},
6+
"@id": "https://digitalbazaar.com/author/dlongley/",
7+
"@type": "Person",
8+
"name": "Dave Longley"
9+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<table class="statements" data-result-for="Combining multiple JSON-LD script elements into a single dataset-original" data-to-rdf>
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>https://digitalbazaar.com/author/dlongley/</td>
10+
<td>rdf:type</td>
11+
<td>schema:Person</td>
12+
</tr>
13+
<tr>
14+
<td>https://digitalbazaar.com/author/dlongley/</td>
15+
<td>schema:name</td>
16+
<td>Dave Longley</td>
17+
</tr>
18+
<tr>
19+
<td>http://greggkellogg.net/foaf#me</td>
20+
<td>rdf:type</td>
21+
<td>schema:Person</td>
22+
</tr>
23+
<tr>
24+
<td>http://greggkellogg.net/foaf#me</td>
25+
<td>schema:name</td>
26+
<td>Gregg Kellogg</td>
27+
</tr>
28+
</tbody>
29+
</table>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@prefix schema: <http://schema.org/> .
2+
<https://digitalbazaar.com/author/dlongley/> a schema:Person;
3+
schema:name "Dave Longley" .
4+
<http://greggkellogg.net/foaf#me> a schema:Person;
5+
schema:name "Gregg Kellogg" .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[{
2+
"@id": "http://dbpedia.org/resource/John_Lennon",
3+
"http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}],
4+
"http://schema.org/birthDate": [
5+
{"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"}
6+
],
7+
"http://schema.org/spouse": [
8+
{"@id": "http://dbpedia.org/resource/Cynthia_Lennon"}
9+
]
10+
}]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
{
3+
"@context": "https://json-ld.org/contexts/person.jsonld",
4+
"@id": "http://dbpedia.org/resource/John_Lennon",
5+
"name": "John Lennon",
6+
"born": "1940-10-09",
7+
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
8+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<table class="statements" data-result-for="Embedding JSON-LD in HTML-expanded" data-to-rdf>
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
<th>Value Type</th>
7+
</tr></thead>
8+
<tbody>
9+
<tr>
10+
<td>http://dbpedia.org/resource/John_Lennon</td>
11+
<td>foaf:name</td>
12+
<td>John Lennon</td>
13+
<td> </td>
14+
</tr>
15+
<tr>
16+
<td>http://dbpedia.org/resource/John_Lennon</td>
17+
<td>schema:birthDate</td>
18+
<td>1940-10-09</td>
19+
<td>xsd:date</td>
20+
</tr>
21+
<tr>
22+
<td>http://dbpedia.org/resource/John_Lennon</td>
23+
<td>schema:spouse</td>
24+
<td>http://dbpedia.org/resource/Cynthia_Lennon</td>
25+
<td> </td>
26+
</tr>
27+
</tbody>
28+
</table>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
2+
@prefix schema: <http://schema.org/> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
<http://dbpedia.org/resource/John_Lennon> foaf:name "John Lennon";
5+
schema:birthDate "1940-10-09"^^xsd:date;
6+
schema:spouse <http://dbpedia.org/resource/Cynthia_Lennon> .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[{
2+
"@id": "http://dbpedia.org/resource/John_Lennon",
3+
"http://xmlns.com/foaf/0.1/name": [{"@value": "John Lennon"}],
4+
"http://schema.org/birthDate": [
5+
{"@value": "1940-10-09", "@type": "http://www.w3.org/2001/XMLSchema#date"}
6+
],
7+
"http://schema.org/spouse": [
8+
{"@id": "http://dbpedia.org/resource/Cynthia_Lennon"}
9+
]
10+
}]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
{
3+
"@context": "https://json-ld.org/contexts/person.jsonld",
4+
"@id": "http://dbpedia.org/resource/John_Lennon",
5+
"name": "John Lennon",
6+
"born": "1940-10-09",
7+
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
8+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<table class="statements" data-result-for="Embedding JSON-LD in HTML with comments-expanded" data-to-rdf>
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
<th>Value Type</th>
7+
</tr></thead>
8+
<tbody>
9+
<tr>
10+
<td>http://dbpedia.org/resource/John_Lennon</td>
11+
<td>foaf:name</td>
12+
<td>John Lennon</td>
13+
<td> </td>
14+
</tr>
15+
<tr>
16+
<td>http://dbpedia.org/resource/John_Lennon</td>
17+
<td>schema:birthDate</td>
18+
<td>1940-10-09</td>
19+
<td>xsd:date</td>
20+
</tr>
21+
<tr>
22+
<td>http://dbpedia.org/resource/John_Lennon</td>
23+
<td>schema:spouse</td>
24+
<td>http://dbpedia.org/resource/Cynthia_Lennon</td>
25+
<td> </td>
26+
</tr>
27+
</tbody>
28+
</table>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
2+
@prefix schema: <http://schema.org/> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
<http://dbpedia.org/resource/John_Lennon> foaf:name "John Lennon";
5+
schema:birthDate "1940-10-09"^^xsd:date;
6+
schema:spouse <http://dbpedia.org/resource/Cynthia_Lennon> .
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
{
3+
"@context": {
4+
"@vocab": "http://schema.org/"
5+
},
6+
"@id": "https://digitalbazaar.com/author/dlongley/",
7+
"@type": "Person",
8+
"name": "Dave Longley"
9+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<table class="statements" data-result-for="Targeting a specific script element by id-original" data-to-rdf data-target="#gregg">
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>http://greggkellogg.net/foaf#me</td>
10+
<td>rdf:type</td>
11+
<td>schema:Person</td>
12+
</tr>
13+
<tr>
14+
<td>http://greggkellogg.net/foaf#me</td>
15+
<td>schema:name</td>
16+
<td>Gregg Kellogg</td>
17+
</tr>
18+
</tbody>
19+
</table>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@prefix schema: <http://schema.org/> .
2+
<http://greggkellogg.net/foaf#me> a schema:Person;
3+
schema:name "Gregg Kellogg" .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Example 101: Embedding JSON-LD in HTML-expanded
2+
---
3+
- "@id": http://dbpedia.org/resource/John_Lennon
4+
http://xmlns.com/foaf/0.1/name:
5+
- "@value": John Lennon
6+
http://schema.org/birthDate:
7+
- "@value": '1940-10-09'
8+
"@type": http://www.w3.org/2001/XMLSchema#date
9+
http://schema.org/spouse:
10+
- "@id": http://dbpedia.org/resource/Cynthia_Lennon
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Example 102: Embedding JSON-LD in HTML with comments-expanded
2+
---
3+
- "@id": http://dbpedia.org/resource/John_Lennon
4+
http://xmlns.com/foaf/0.1/name:
5+
- "@value": John Lennon
6+
http://schema.org/birthDate:
7+
- "@value": '1940-10-09'
8+
"@type": http://www.w3.org/2001/XMLSchema#date
9+
http://schema.org/spouse:
10+
- "@id": http://dbpedia.org/resource/Cynthia_Lennon

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 105: 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 111: 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 103: 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 103: 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 118: 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 116: 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 110: 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 114: 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 104: 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 108: 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/

0 commit comments

Comments
 (0)