JSON-LD example
authorYves Raimond <yves.raimond@bbc.co.uk>
Wed, 14 Aug 2013 12:37:59 +0100
changeset 995 8b9b6d1212d8
parent 994 3e6a8624025c
child 996 83460d4d7810
JSON-LD example
rdf-primer/index.html
--- a/rdf-primer/index.html	Tue Aug 13 21:55:22 2013 +0100
+++ b/rdf-primer/index.html	Wed Aug 14 12:37:59 2013 +0100
@@ -426,23 +426,29 @@
     "foaf": "http://xmlns.com/foaf/0.1/",
     "xsd": "http://www.w3.org/2001/XMLSchema#",
     "schema": "http://schema.org/",
-    "@vocab": "http://example.org/#",
-    "@base": "http://example.org/#"
+    "dcterms": "http://purl.org/dc/terms/",
+    "wd": "http://www.wikidata.org/entity/",
+    "@base": "http://example.org/",
+    "subject_of": {"@reverse": "dcterms:subject"}
   },
-  "@id": "bob",
+  "@id": "bob#me",
   "@type": "foaf:Person",
-  "schema:birthDate": { 
-    "@value": "1990-07-04", 
+  "schema:birthDate": {
+    "@value": "1990-07-04",
     "@type": "xsd:date"
   },
   "foaf:knows": {
-    "@id": "alice",
-    "@type": "foaf:Person"
+    "@id": "alice#me"
   },
-  "likes": {
-    "@id": "the-mona-lisa",
-    "on-display-in": {
-      "@id": "the-louvre"
+  "foaf:topic_interest": {
+    "@id": "wd:Q12418",
+    "subject_of": {
+        "@id": "http://data.europeana.eu/item/04802/243FA8618938F4117025F17A8B813C5F9AA4D619"
+    },
+    "foaf:maker": {
+      "@id": "http://viaf.org/viaf/24604287/",
+      "@type": "foaf:Person",
+      "foaf:name": "Leonardo da Vinci"
     }
   }
 }