Skip to content

Commit b302439

Browse files
committed
Update most examples with tabbed navigation to display the results of compacting and turning into RDF (both tabular, Turtle/TriG representations).
Fixes #26.
1 parent b7bc4e3 commit b302439

File tree

566 files changed

+10208
-3510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

566 files changed

+10208
-3510
lines changed

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ GEM
99
colorize (0.8.1)
1010
concurrent-ruby (1.0.5)
1111
connection_pool (2.2.2)
12-
ebnf (1.1.2)
13-
rdf (>= 2.2, < 4.0)
12+
ebnf (1.1.3)
13+
rdf (~> 3.0)
1414
sxp (~> 1.0)
1515
equivalent-xml (0.6.0)
1616
nokogiri (>= 1.4.3)
@@ -22,11 +22,11 @@ GEM
2222
htmlentities (4.3.4)
2323
i18n (1.1.0)
2424
concurrent-ruby (~> 1.0)
25-
json-ld (3.0.0)
25+
json-ld (3.0.1)
2626
multi_json (~> 1.12)
2727
rdf (>= 2.2.8, < 4.0)
28-
json-ld-preloaded (3.0.0)
29-
json-ld (>= 2.2, < 4.0)
28+
json-ld-preloaded (3.0.1)
29+
json-ld (~> 3.0)
3030
multi_json (~> 1.12)
3131
rdf (~> 3.0)
3232
ld-patch (0.3.3)
@@ -71,7 +71,7 @@ GEM
7171
nokogiri
7272
public_suffix (3.0.3)
7373
rake (12.3.1)
74-
rdf (3.0.2)
74+
rdf (3.0.3)
7575
hamster (~> 3.0)
7676
link_header (~> 0.0, >= 0.0.8)
7777
rdf-aggregate-repo (2.2.1)
@@ -85,7 +85,7 @@ GEM
8585
nokogiri (~> 1.8)
8686
rdf (>= 2.2.8, < 4.0)
8787
rdf-xsd (>= 2.2, < 4.0)
88-
rdf-n3 (3.0.0)
88+
rdf-n3 (3.0.1)
8989
rdf (~> 3.0)
9090
rdf-normalize (0.3.3)
9191
rdf (>= 2.2, < 4.0)
@@ -111,18 +111,18 @@ GEM
111111
rdf (>= 2.2, < 4.0)
112112
rdf-vocab (>= 2.2, < 4.0)
113113
rdf-xsd (>= 2.2, < 4.0)
114-
rdf-trig (2.2.0)
115-
ebnf (~> 1.0, >= 1.0.1)
116-
rdf (>= 2.2, < 4.0)
117-
rdf-turtle (>= 2.2, < 4.0)
114+
rdf-trig (3.0.0)
115+
ebnf (~> 1.1)
116+
rdf (~> 3.0)
117+
rdf-turtle (~> 3.0, >= 3.0.2)
118118
rdf-trix (2.2.1)
119119
rdf (>= 2.2, < 4.0)
120-
rdf-turtle (3.0.1)
120+
rdf-turtle (3.0.2)
121121
ebnf (~> 1.1)
122122
rdf (~> 3.0)
123123
rdf-vocab (3.0.3)
124124
rdf (~> 3.0)
125-
rdf-xsd (3.0.0)
125+
rdf-xsd (3.0.1)
126126
rdf (~> 3.0)
127127
shex (0.5.2)
128128
ebnf (~> 1.1)
@@ -132,7 +132,7 @@ GEM
132132
rdf-xsd (>= 2.2, < 4.0)
133133
sparql (>= 2.2, < 4.0)
134134
sxp (~> 1.0)
135-
sparql (3.0.1)
135+
sparql (3.0.2)
136136
builder (~> 3.2)
137137
ebnf (~> 1.1)
138138
rdf (~> 3.0)
@@ -158,4 +158,4 @@ DEPENDENCIES
158158
rake
159159

160160
BUNDLED WITH
161-
1.16.1
161+
1.16.4

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ end
77

88
desc "Extract Examples"
99
task :examples do
10-
sh %(rm -rf examples yaml trig)
11-
sh %(bundle exec common/extract-examples.rb --example-dir examples --yaml-dir yaml --trig-dir trig index.html)
10+
sh %(rm -rf examples yaml)
11+
sh %(bundle exec common/extract-examples.rb --example-dir examples --yaml-dir yaml index.html)
1212
end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<table class="statements" data-result-for="Sample JSON-LD document using full IRIs instead of terms-expanded">
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>_:b0</td>
10+
<td>schema:image</td>
11+
<td>http://manu.sporny.org/images/manu.png</td>
12+
</tr>
13+
<tr>
14+
<td>_:b0</td>
15+
<td>schema:name</td>
16+
<td>Manu Sporny</td>
17+
</tr>
18+
<tr>
19+
<td>_:b0</td>
20+
<td>schema:url</td>
21+
<td>http://manu.sporny.org/</td>
22+
</tr>
23+
</tbody>
24+
</table>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@prefix schema: <http://schema.org/> .
22
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3-
43
[
54
schema:image <http://manu.sporny.org/images/manu.png>;
65
schema:name "Manu Sporny";
76
schema:url <http://manu.sporny.org/>
8-
] .
7+
] .
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[{
2+
"http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}],
3+
"http://xmlns.com/foaf/0.1/homepage": [{ "@id": "http://manu.sporny.org/" }],
4+
"http://xmlns.com/foaf/0.1/img": [{ "@id": "http://manu.sporny.org/images/manu.png" }]
5+
}]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<table class="statements" data-result-for="Referencing a JSON-LD context-expanded">
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>_:b0</td>
10+
<td>foaf:name</td>
11+
<td>Manu Sporny</td>
12+
</tr>
13+
<tr>
14+
<td>_:b0</td>
15+
<td>foaf:homepage</td>
16+
<td>http://manu.sporny.org/</td>
17+
</tr>
18+
<tr>
19+
<td>_:b0</td>
20+
<td>foaf:img</td>
21+
<td>http://manu.sporny.org/images/manu.png</td>
22+
</tr>
23+
</tbody>
24+
</table>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
22
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3-
43
[
4+
foaf:name "Manu Sporny";
55
foaf:homepage <http://manu.sporny.org/>;
6-
foaf:name "Manu Sporny"
7-
] .
6+
foaf:img <http://manu.sporny.org/images/manu.png>
7+
] .
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[{
2+
"http://schema.org/name": [{"@value": "Manu Sporny"}],
3+
"http://schema.org/url": [{ "@id": "http://manu.sporny.org/" }],
4+
"http://schema.org/image": [{ "@id": "http://manu.sporny.org/images/manu.png" }]
5+
}]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<table class="statements" data-result-for="In-line context definition-expanded">
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>_:b0</td>
10+
<td>schema:image</td>
11+
<td>http://manu.sporny.org/images/manu.png</td>
12+
</tr>
13+
<tr>
14+
<td>_:b0</td>
15+
<td>schema:name</td>
16+
<td>Manu Sporny</td>
17+
</tr>
18+
<tr>
19+
<td>_:b0</td>
20+
<td>schema:url</td>
21+
<td>http://manu.sporny.org/</td>
22+
</tr>
23+
</tbody>
24+
</table>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@prefix schema: <http://schema.org/> .
22
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3-
43
[
54
schema:image <http://manu.sporny.org/images/manu.png>;
65
schema:name "Manu Sporny";
76
schema:url <http://manu.sporny.org/>
8-
] .
7+
] .
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[{
2+
"http://schema.org/name": [{"@value": "Manu Sporny"}]
3+
}]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<table class="statements" data-result-for="Term expansion from context definition-expanded">
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>_:b0</td>
10+
<td>schema:name</td>
11+
<td>Manu Sporny</td>
12+
</tr>
13+
</tbody>
14+
</table>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@prefix schema: <http://schema.org/> .
22
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3-
4-
[ schema:name "Manu Sporny"] .
3+
[
4+
schema:name "Manu Sporny"
5+
] .
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[{
2+
"http://schema.org/url": [{"@id": "http://manu.sporny.org/"}]
3+
}]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<table class="statements" data-result-for="Type coercion-expanded">
2+
<thead><tr>
3+
<th>Subject</th>
4+
<th>Property</th>
5+
<th>Value</th>
6+
</tr></thead>
7+
<tbody>
8+
<tr>
9+
<td>_:b0</td>
10+
<td>schema:url</td>
11+
<td>http://manu.sporny.org/</td>
12+
</tr>
13+
</tbody>
14+
</table>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@prefix schema: <http://schema.org/> .
22
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3-
4-
[ schema:name "Manu Sporny"] .
3+
[
4+
schema:url <http://manu.sporny.org/>
5+
] .
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[{
2+
"@id": "http://me.markus-lanthaler.com/",
3+
"http://schema.org/name": [{"@value": "Markus Lanthaler"}]
4+
}]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<table class="statements" data-result-for="Identifying a node-expanded">
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://me.markus-lanthaler.com/</td>
10+
<td>schema:name</td>
11+
<td>Markus Lanthaler</td>
12+
</tr>
13+
</tbody>
14+
</table>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
@prefix schema: <http://schema.org/> .
22
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3-
4-
<http://me.markus-lanthaler.com/> schema:name "Markus Lanthaler" .
3+
<http://me.markus-lanthaler.com/> schema:name "Markus Lanthaler" .
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[{
2+
"@id": "http://me.markus-lanthaler.com/",
3+
"@type": ["http://schema.org/Person"],
4+
"http://schema.org/givenName": [{"@value": "Markus"}],
5+
"http://schema.org/familyName": [{"@value": "Lanthaler"}]
6+
}]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<table class="statements" data-result-for="Specifying the type for a node-expanded">
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://me.markus-lanthaler.com/</td>
10+
<td>rdf:type</td>
11+
<td>schema:Person</td>
12+
</tr>
13+
<tr>
14+
<td>http://me.markus-lanthaler.com/</td>
15+
<td>schema:givenName</td>
16+
<td>Markus</td>
17+
</tr>
18+
<tr>
19+
<td>http://me.markus-lanthaler.com/</td>
20+
<td>schema:familyName</td>
21+
<td>Lanthaler</td>
22+
</tr>
23+
</tbody>
24+
</table>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
21
@prefix schema: <http://schema.org/> .
32
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4-
53
<http://me.markus-lanthaler.com/> a schema:Person;
6-
schema:familyName "Lanthaler";
7-
schema:givenName "Markus" .
4+
schema:givenName "Markus";
5+
schema:familyName "Lanthaler" .
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[{
2+
"@id": "http://me.markus-lanthaler.com/",
3+
"@type": ["http://schema.org/Person", "http://xmlns.com/foaf/0.1/Person"]
4+
}]
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="Specifying multiple types for a node-expanded">
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://me.markus-lanthaler.com/</td>
10+
<td>rdf:type</td>
11+
<td>schema:Person</td>
12+
</tr>
13+
<tr>
14+
<td>http://me.markus-lanthaler.com/</td>
15+
<td>rdf:type</td>
16+
<td>foaf:Person</td>
17+
</tr>
18+
</tbody>
19+
</table>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@prefix schema: <http://schema.org/> .
2+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
<http://me.markus-lanthaler.com/> a schema:Person, foaf:Person.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[{
2+
"@id": "http://example.org/places#BrewEats",
3+
"@type": ["http://schema.org/Person"]
4+
}]

0 commit comments

Comments
 (0)