Skip to content

Commit cc6bad5

Browse files
committed
Add extracted examples.
1 parent 8161474 commit cc6bad5

File tree

359 files changed

+4117
-8
lines changed

Some content is hidden

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

359 files changed

+4117
-8
lines changed

Gemfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ GEM
2020
hamster (3.0.0)
2121
concurrent-ruby (~> 1.0)
2222
htmlentities (4.3.4)
23-
i18n (1.0.1)
23+
i18n (1.1.0)
2424
concurrent-ruby (~> 1.0)
25-
json-ld (2.2.1)
25+
json-ld (3.0.0)
2626
multi_json (~> 1.12)
2727
rdf (>= 2.2.8, < 4.0)
28-
json-ld-preloaded (2.2.3)
28+
json-ld-preloaded (3.0.0)
2929
json-ld (>= 2.2, < 4.0)
3030
multi_json (~> 1.12)
31-
rdf (>= 2.2, < 4.0)
31+
rdf (~> 3.0)
3232
ld-patch (0.3.3)
3333
ebnf (~> 1.1)
3434
rdf (>= 2.2, < 4.0)
@@ -65,11 +65,11 @@ GEM
6565
multi_json (1.13.1)
6666
net-http-persistent (3.0.0)
6767
connection_pool (~> 2.2)
68-
nokogiri (1.8.2)
68+
nokogiri (1.8.4)
6969
mini_portile2 (~> 2.3.0)
7070
nokogumbo (1.5.0)
7171
nokogiri
72-
public_suffix (3.0.2)
72+
public_suffix (3.0.3)
7373
rake (12.3.1)
7474
rdf (3.0.2)
7575
hamster (~> 3.0)
@@ -120,7 +120,7 @@ GEM
120120
rdf-turtle (3.0.1)
121121
ebnf (~> 1.1)
122122
rdf (~> 3.0)
123-
rdf-vocab (3.0.2)
123+
rdf-vocab (3.0.3)
124124
rdf (~> 3.0)
125125
rdf-xsd (3.0.0)
126126
rdf (~> 3.0)

Rakefile

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

88
desc "Extract Examples"
99
task :examples do
10-
sh %(bundle exec common/extract-examples.rb --example-dir examples index.html)
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)
1112
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Manu Sporny",
3+
"homepage": "http://manu.sporny.org/",
4+
"image": "http://manu.sporny.org/images/manu.png"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"http://schema.org/name": "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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"@context": {
3+
"name": "http://schema.org/name",
4+
"image": {
5+
"@id": "http://schema.org/image",
6+
"@type": "@id"
7+
},
8+
"homepage": {
9+
"@id": "http://schema.org/url",
10+
"@type": "@id"
11+
}
12+
}
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"@context": "https://json-ld.org/contexts/person.jsonld",
3+
"name": "Manu Sporny",
4+
"homepage": "http://manu.sporny.org/",
5+
"image": "http://manu.sporny.org/images/manu.png"
6+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"@context": {
3+
"name": "http://schema.org/name",
4+
"image": {
5+
"@id": "http://schema.org/image",
6+
"@type": "@id"
7+
},
8+
"homepage": {
9+
"@id": "http://schema.org/url",
10+
"@type": "@id"
11+
}
12+
},
13+
"name": "Manu Sporny",
14+
"homepage": "http://manu.sporny.org/",
15+
"image": "http://manu.sporny.org/images/manu.png"
16+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"homepage": { "@id": "http://example.com/" }
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"homepage": { "@id": "../" }
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"http://schema.org/name": "Manu Sporny"
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": {
3+
"name": "http://schema.org/name"
4+
},
5+
"name": "Manu Sporny",
6+
"status": "trollin'"
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"@context": {
3+
"homepage": {
4+
"@id": "http://schema.org/url",
5+
"@type": "@id"
6+
}
7+
},
8+
"homepage": "http://manu.sporny.org/"
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": {
3+
"name": "http://schema.org/name"
4+
},
5+
"@id": "http://me.markus-lanthaler.com/",
6+
"name": "Markus Lanthaler"
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"givenName": "http://schema.org/givenName",
4+
"familyName": "http://schema.org/familyName"
5+
},
6+
"@id": "http://me.markus-lanthaler.com/",
7+
"@type": "http://schema.org/Person",
8+
"givenName": "Markus",
9+
"familyName": "Lanthaler"
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@id": "http://me.markus-lanthaler.com/",
3+
"@type": [
4+
"http://schema.org/Person",
5+
"http://xmlns.com/foaf/0.1/Person"
6+
]
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": {
3+
"Person": "http://schema.org/Person"
4+
},
5+
"@id": "http://example.org/places#BrewEats",
6+
"@type": "Person"
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://schema.org/",
4+
"knows": {"@type": "@id"}
5+
},
6+
"@id": "http://manu.sporny.org/about#manu",
7+
"@type": "Person",
8+
"name": "Manu Sporny",
9+
"knows": "http://greggkellogg.net/foaf#me"
10+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://schema.org/"
4+
},
5+
"@id": "http://manu.sporny.org/about#manu",
6+
"@type": "Person",
7+
"name": "Manu Sporny",
8+
"knows": {
9+
"@id": "http://greggkellogg.net/foaf#me",
10+
"@type": "Person",
11+
"name": "Gregg Kellogg"
12+
}
13+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"@context": "https://json-ld.org/contexts/person.jsonld",
4+
"name": "Manu Sporny",
5+
"homepage": "http://manu.sporny.org/",
6+
"depiction": "http://twitter.com/account/profile_image/manusporny"
7+
},
8+
{
9+
"@context": "https://json-ld.org/contexts/place.jsonld",
10+
"name": "The Empire State Building",
11+
"description": "The Empire State Building is a 102-story landmark in New York City.",
12+
"geo": {
13+
"latitude": "40.75",
14+
"longitude": "73.98"
15+
}
16+
}
17+
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"@context": {
3+
"name": "http://example.com/person#name",
4+
"details": "http://example.com/person#details"
5+
},
6+
"name": "Markus Lanthaler",
7+
"details": {
8+
"@context": {
9+
"name": "http://example.com/organization#name"
10+
},
11+
"name": "Graz University of Technology"
12+
}
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"@context": [
3+
"https://json-ld.org/contexts/person.jsonld",
4+
{
5+
"pic": "http://xmlns.com/foaf/0.1/depiction"
6+
}
7+
],
8+
"name": "Manu Sporny",
9+
"homepage": "http://manu.sporny.org/",
10+
"pic": "http://twitter.com/account/profile_image/manusporny"
11+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"@context": {
3+
"@version": 1.1
4+
}
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://schema.org/"
4+
},
5+
"@id": "http://example.org/places#BrewEats",
6+
"@type": "Restaurant",
7+
"name": "Brew Eats"
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"@vocab": "http://schema.org/",
4+
"databaseId": null
5+
},
6+
"@id": "http://example.org/places#BrewEats",
7+
"@type": "Restaurant",
8+
"name": "Brew Eats",
9+
"databaseId": "23987520"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"@version": 1.1,
4+
"@base": "http://example/document",
5+
"@vocab": ""
6+
},
7+
"@id": "http://example.org/places#BrewEats",
8+
"@type": "#Restaurant",
9+
"#name": "Brew Eats"
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[{
2+
"@id": "http://example.org/places#BrewEats",
3+
"@type": ["http://example/document#Restaurant"],
4+
"http://example/document#name": [{"@value": "Brew Eats"}]
5+
}]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": {
3+
"label": "http://www.w3.org/2000/01/rdf-schema#label"
4+
},
5+
"@id": "",
6+
"label": "Just a simple document"
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"@context": {
3+
"@base": "http://example.com/document.jsonld",
4+
"label": "http://www.w3.org/2000/01/rdf-schema#label"
5+
},
6+
"@id": "",
7+
"label": "Just a simple document"
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": {
3+
"foaf": "http://xmlns.com/foaf/0.1/"
4+
},
5+
"@type": "foaf:Person",
6+
"foaf:name": "Dave Longley"
7+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"@context": {
3+
"@version": 1.1,
4+
"xsd": "http://www.w3.org/2001/XMLSchema#",
5+
"foaf": "http://xmlns.com/foaf/0.1/",
6+
"foaf:homepage": { "@type": "@id" },
7+
"picture": { "@id": "foaf:depiction", "@type": "@id" }
8+
},
9+
"@id": "http://me.markus-lanthaler.com/",
10+
"@type": "foaf:Person",
11+
"foaf:name": "Markus Lanthaler",
12+
"foaf:homepage": "http://www.markus-lanthaler.com/",
13+
"picture": "http://twitter.com/account/profile_image/markuslanthaler"
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true},
4+
"property": "http://example.com/property"
5+
},
6+
"property": {
7+
"@id": "compact-iris:are-considered",
8+
"property": "@prefix does not require a gen-delim"
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"@context": {
3+
"url": "@id",
4+
"a": "@type",
5+
"name": "http://xmlns.com/foaf/0.1/name"
6+
},
7+
"url": "http://example.com/about#gregg",
8+
"a": "http://xmlns.com/foaf/0.1/Person",
9+
"name": "Gregg Kellogg"
10+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"@context": {
3+
"xsd": "http://www.w3.org/2001/XMLSchema#",
4+
"name": "http://xmlns.com/foaf/0.1/name",
5+
"age": {
6+
"@id": "http://xmlns.com/foaf/0.1/age",
7+
"@type": "xsd:integer"
8+
},
9+
"homepage": {
10+
"@id": "http://xmlns.com/foaf/0.1/homepage",
11+
"@type": "@id"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)