--- a/rdf-primer/index.html Fri Nov 29 15:30:42 2013 +0000
+++ b/rdf-primer/index.html Fri Nov 29 15:38:15 2013 +0000
@@ -992,26 +992,26 @@
<p>Single-graph example:</p>
<pre class="example" id="rdfa-example">
-<div prefix="
- rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
- foaf: http://xmlns.com/foaf/0.1/
- wd: http://www.wikidata.org/entity/
- dcterms: http://purl.org/dc/terms/
- xsd: http://www.w3.org/2001/XMLSchema#">
- <div typeof="foaf:Person" about="http://example.org/bob#me">
- <p>
- Bob knows <a rel="foaf:knows" href="http://example.org/alice#me">Alice</a>
- and was born on the <span property="schema:birthDate" datatype="xsd:date">1990-07-04</span>.
- </p>
- <p>
- Bob is interested in <a rel="foaf:topic_interest" resource="wd:Q12418">the Mona Lisa</a>.
- </p>
- <div about="wd:Q12418">
- The Mona Lisa was painted by <a rel="dcterms:creator" typeof="foaf:Person" href="http://dbpedia.org/resource/Leonardo_da_Vinci"><span property="foaf:name">Leonardo da Vinci</span></a>
- and is the subject of the video <a rev="dcterms:subject" href="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619">'La Joconde à Washington'</a>.
- </div>
- </div>
-</div>
+01 <div prefix="
+02 rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
+03 foaf: http://xmlns.com/foaf/0.1/
+04 wd: http://www.wikidata.org/entity/
+05 dcterms: http://purl.org/dc/terms/
+06 xsd: http://www.w3.org/2001/XMLSchema#">
+07 <div typeof="foaf:Person" about="http://example.org/bob#me">
+08 <p>
+09 Bob knows <a rel="foaf:knows" href="http://example.org/alice#me">Alice</a>
+10 and was born on the <span property="schema:birthDate" datatype="xsd:date">1990-07-04</span>.
+11 </p>
+12 <p>
+13 Bob is interested in <a rel="foaf:topic_interest" resource="wd:Q12418">the Mona Lisa</a>.
+14 </p>
+15 <div about="wd:Q12418">
+16 The Mona Lisa was painted by <a rel="dcterms:creator" typeof="foaf:Person" href="http://dbpedia.org/resource/Leonardo_da_Vinci"><span property="foaf:name">Leonardo da Vinci</span></a>
+17 and is the subject of the video <a rev="dcterms:subject" href="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619">'La Joconde à Washington'</a>.
+18 </div>
+19 </div>
+20 </div>
</pre>
</section>
@@ -1023,93 +1023,93 @@
Single-graph example:
<pre class="example" id="json-ld-example-signle">
-{
- "@context": {
- "foaf": "http://xmlns.com/foaf/0.1/",
- "xsd": "http://www.w3.org/2001/XMLSchema#",
- "schema": "http://schema.org/",
- "dcterms": "http://purl.org/dc/terms/",
- "wd": "http://www.wikidata.org/entity/",
- "@base": "http://example.org/",
- "subject_of": {"@reverse": "dcterms:subject"}
- },
- "@id": "bob#me",
- "@type": "foaf:Person",
- "schema:birthDate": {
- "@value": "1990-07-04",
- "@type": "xsd:date"
- },
- "foaf:knows": {
- "@id": "alice#me"
- },
- "foaf:topic_interest": {
- "@id": "wd:Q12418",
- "subject_of": {
- "@id": "http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"
- },
- "dcterms:creator": {
- "@id": "http://dbpedia.org/resource/Leonardo_da_Vinci",
- "@type": "foaf:Person",
- "foaf:name": "Leonardo da Vinci"
- }
- }
-}
+01 {
+02 "@context": {
+03 "foaf": "http://xmlns.com/foaf/0.1/",
+04 "xsd": "http://www.w3.org/2001/XMLSchema#",
+05 "schema": "http://schema.org/",
+06 "dcterms": "http://purl.org/dc/terms/",
+07 "wd": "http://www.wikidata.org/entity/",
+08 "@base": "http://example.org/",
+09 "subject_of": {"@reverse": "dcterms:subject"}
+10 },
+11 "@id": "bob#me",
+12 "@type": "foaf:Person",
+13 "schema:birthDate": {
+14 "@value": "1990-07-04",
+15 "@type": "xsd:date"
+16 },
+17 "foaf:knows": {
+18 "@id": "alice#me"
+19 },
+20 "foaf:topic_interest": {
+21 "@id": "wd:Q12418",
+22 "subject_of": {
+23 "@id": "http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"
+24 },
+25 "dcterms:creator": {
+26 "@id": "http://dbpedia.org/resource/Leonardo_da_Vinci",
+27 "@type": "foaf:Person",
+28 "foaf:name": "Leonardo da Vinci"
+29 }
+30 }
+31 }
</pre>
<p>Multiple-graphs example:</p>
<pre class="example" id="json-ld-example-multiple">
-{
- "@context": {
- "foaf": "http://xmlns.com/foaf/0.1/",
- "schema": "http://schema.org/",
- "xsd": "http://www.w3.org/2001/XMLSchema#",
- "dcterms": "http://purl.org/dc/terms/"
- },
- "@graph": [
- {
- "@id": "http://example.org/bob",
- "@graph": [
- {
- "@id": "http://example.org/bob#me",
- "@type": "foaf:Person",
- "foaf:knows": {
- "@id": "http://example.org/alice#me"
- },
- "foaf:topic_interest": {
- "@id": "http://www.wikidata.org/entity/Q12418"
- },
- "schema:birthDate": {
- "@value": "1990-07-04",
- "@type": "xsd:date"
- }
- }
- ],
- "dcterms:publisher": {
- "@id": "http://example.org"
- },
- "dcterms:rights": {
- "@id": "http://creativecommons.org/licenses/by/3.0/"
- }
- },
- {
- "@id": "https://www.wikidata.org/wiki/Special:EntityData/Q12418",
- "@graph": [
- {
- "@id": "http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619",
- "dcterms:subject": {
- "@id": "http://www.wikidata.org/entity/Q12418",
- "dcterms:creator": {
- "@id": "http://dbpedia.org/resource/Leonardo_da_Vinci",
- "@type": "foaf:Person",
- "foaf:name": "Leonardo da Vinci"
- }
- }
- }
- ]
- }
- ]
-}
+01 {
+02 "@context": {
+03 "foaf": "http://xmlns.com/foaf/0.1/",
+04 "schema": "http://schema.org/",
+05 "xsd": "http://www.w3.org/2001/XMLSchema#",
+06 "dcterms": "http://purl.org/dc/terms/"
+07 },
+08 "@graph": [
+09 {
+10 "@id": "http://example.org/bob",
+11 "@graph": [
+12 {
+13 "@id": "http://example.org/bob#me",
+14 "@type": "foaf:Person",
+15 "foaf:knows": {
+16 "@id": "http://example.org/alice#me"
+17 },
+18 "foaf:topic_interest": {
+19 "@id": "http://www.wikidata.org/entity/Q12418"
+20 },
+21 "schema:birthDate": {
+22 "@value": "1990-07-04",
+23 "@type": "xsd:date"
+24 }
+25 }
+26 ],
+27 "dcterms:publisher": {
+28 "@id": "http://example.org"
+29 },
+30 "dcterms:rights": {
+31 "@id": "http://creativecommons.org/licenses/by/3.0/"
+32 }
+33 },
+34 {
+35 "@id": "https://www.wikidata.org/wiki/Special:EntityData/Q12418",
+36 "@graph": [
+37 {
+38 "@id": "http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619",
+39 "dcterms:subject": {
+40 "@id": "http://www.wikidata.org/entity/Q12418",
+41 "dcterms:creator": {
+42 "@id": "http://dbpedia.org/resource/Leonardo_da_Vinci",
+43 "@type": "foaf:Person",
+44 "foaf:name": "Leonardo da Vinci"
+45 }
+46 }
+47 }
+48 ]
+49 }
+50 ]
+51 }
</pre>
</section>
@@ -1122,14 +1122,14 @@
<p>Single-graph example: </p>
<pre class="example" id="n-triples-example">
-<http://example.org/bob#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>.
-<http://example.org/bob#me> <http://xmlns.com/foaf/0.1/knows> <http://example.org/alice#me>.
-<http://example.org/bob#me> <http://schema.org/birthDate> "1990-07-04"^^<http://www.w3.org/2001/XMLSchema#date>.
-<http://example.org/bob#me> <http://xmlns.com/foaf/0.1/topic_interest> <http://www.wikidata.org/entity/Q12418>.
-<http://dbpedia.org/resource/Leonardo_da_Vinci> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>.
-<http://dbpedia.org/resource/Leonardo_da_Vinci> <http://xmlns.com/foaf/0.1/name> "Leonardo da Vinci".
-<http://www.wikidata.org/entity/Q12418> <http://purl.org/dc/terms/creator> <http://dbpedia.org/resource/Leonardo_da_Vinci>.
-<http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619> <http://purl.org/dc/terms/subject> <http://www.wikidata.org/entity/Q12418>.
+01 <http://example.org/bob#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>.
+02 <http://example.org/bob#me> <http://xmlns.com/foaf/0.1/knows> <http://example.org/alice#me>.
+03 <http://example.org/bob#me> <http://schema.org/birthDate> "1990-07-04"^^<http://www.w3.org/2001/XMLSchema#date>.
+04 <http://example.org/bob#me> <http://xmlns.com/foaf/0.1/topic_interest> <http://www.wikidata.org/entity/Q12418>.
+05 <http://dbpedia.org/resource/Leonardo_da_Vinci> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person>.
+06 <http://dbpedia.org/resource/Leonardo_da_Vinci> <http://xmlns.com/foaf/0.1/name> "Leonardo da Vinci".
+07 <http://www.wikidata.org/entity/Q12418> <http://purl.org/dc/terms/creator> <http://dbpedia.org/resource/Leonardo_da_Vinci>.
+08 <http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619> <http://purl.org/dc/terms/subject> <http://www.wikidata.org/entity/Q12418>.
</pre>
</section>
@@ -1141,16 +1141,16 @@
<p>Multiple-graph example:</p>
<pre class="example" id="n-quads-example">
-<http://example.org/bob#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> <http://example.org/bob> .
-<http://example.org/bob#me> <http://xmlns.com/foaf/0.1/knows> <http://example.org/alice#me> <http://example.org/bob> .
-<http://example.org/bob#me> <http://schema.org/birthDate> "1990-07-04"^^<http://www.w3.org/2001/XMLSchema#date> <http://example.org/bob> .
-<http://example.org/bob#me> <http://xmlns.com/foaf/0.1/topic_interest> <http://www.wikidata.org/entity/Q12418> <http://example.org/bob> .
-<http://dbpedia.org/resource/Leonardo_da_Vinci> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
-<http://dbpedia.org/resource/Leonardo_da_Vinci> <http://xmlns.com/foaf/0.1/name> "Leonardo da Vinci" <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
-<http://www.wikidata.org/entity/Q12418> <http://purl.org/dc/terms/creator> <http://dbpedia.org/resource/Leonardo_da_Vinci> <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
-<http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619> <http://purl.org/dc/terms/subject> <http://www.wikidata.org/entity/Q12418> <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
-<http://example.org/bob> <http://purl.org/dc/terms/publisher> <http://example.org> .
-<http://example.org/bob> <http://purl.org/dc/terms/rights> <http://creativecommons.org/licenses/by/3.0/> .
+01 <http://example.org/bob#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> <http://example.org/bob> .
+02 <http://example.org/bob#me> <http://xmlns.com/foaf/0.1/knows> <http://example.org/alice#me> <http://example.org/bob> .
+03 <http://example.org/bob#me> <http://schema.org/birthDate> "1990-07-04"^^<http://www.w3.org/2001/XMLSchema#date> <http://example.org/bob> .
+04 <http://example.org/bob#me> <http://xmlns.com/foaf/0.1/topic_interest> <http://www.wikidata.org/entity/Q12418> <http://example.org/bob> .
+05 <http://dbpedia.org/resource/Leonardo_da_Vinci> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
+06 <http://dbpedia.org/resource/Leonardo_da_Vinci> <http://xmlns.com/foaf/0.1/name> "Leonardo da Vinci" <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
+07 <http://www.wikidata.org/entity/Q12418> <http://purl.org/dc/terms/creator> <http://dbpedia.org/resource/Leonardo_da_Vinci> <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
+08 <http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619> <http://purl.org/dc/terms/subject> <http://www.wikidata.org/entity/Q12418> <https://www.wikidata.org/wiki/Special:EntityData/Q12418> .
+09 <http://example.org/bob> <http://purl.org/dc/terms/publisher> <http://example.org> .
+10 <http://example.org/bob> <http://purl.org/dc/terms/rights> <http://creativecommons.org/licenses/by/3.0/> .
</pre>
</section>
@@ -1162,29 +1162,29 @@
<p>Single-graph example:</p>
<pre class="example" id="rdf-xml-example">
-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF
- xmlns:dcterms="http://purl.org/dc/terms/"
- xmlns:foaf="http://xmlns.com/foaf/0.1/"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:schema="http://schema.org/"
- xmlns:wd="http://www.wikidata.org/entity/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
- <foaf:Person rdf:about="http://example.org/bob#me">
- <schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date">1990-07-04</schema:birthDate>
- <foaf:knows rdf:resource="http://example.org/alice#me"/>
- <foaf:topic_interest rdf:resource="http://www.wikidata.org/entity/Q12418"/>
- </foaf:Person>
- <foaf:Person rdf:about="http://dbpedia.org/resource/Leonardo_da_Vinci">
- <foaf:name>Leonardo da Vinci</foaf:name>
- </foaf:Person>
- <rdf:Description rdf:about="http://www.wikidata.org/entity/Q12418">
- <dcterms:creator rdf:resource="http://dbpedia.org/resource/Leonardo_da_Vinci"/>
- </rdf:Description>
- <rdf:Description rdf:about="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619">
- <dcterms:subject rdf:resource="http://www.wikidata.org/entity/Q12418"/>
- </rdf:Description>
-</rdf:RDF>
+01 <?xml version="1.0" encoding="utf-8"?>
+02 <rdf:RDF
+03 xmlns:dcterms="http://purl.org/dc/terms/"
+04 xmlns:foaf="http://xmlns.com/foaf/0.1/"
+05 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+06 xmlns:schema="http://schema.org/"
+07 xmlns:wd="http://www.wikidata.org/entity/"
+08 xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
+09 <foaf:Person rdf:about="http://example.org/bob#me">
+10 <schema:birthDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date">1990-07-04</schema:birthDate>
+11 <foaf:knows rdf:resource="http://example.org/alice#me"/>
+12 <foaf:topic_interest rdf:resource="http://www.wikidata.org/entity/Q12418"/>
+13 </foaf:Person>
+14 <foaf:Person rdf:about="http://dbpedia.org/resource/Leonardo_da_Vinci">
+15 <foaf:name>Leonardo da Vinci</foaf:name>
+16 </foaf:Person>
+17 <rdf:Description rdf:about="http://www.wikidata.org/entity/Q12418">
+18 <dcterms:creator rdf:resource="http://dbpedia.org/resource/Leonardo_da_Vinci"/>
+19 </rdf:Description>
+20 <rdf:Description rdf:about="http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619">
+21 <dcterms:subject rdf:resource="http://www.wikidata.org/entity/Q12418"/>
+22 </rdf:Description>
+23 </rdf:RDF>
</pre>
</section>