Minor improvements (Specifying the Type)
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 21 Jan 2013 19:05:09 +0100
changeset 1146 8dbbdf096a9e
parent 1145 137686e06d32
child 1147 34f9fd59fce4
Minor improvements (Specifying the Type)
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-syntax/index.html	Mon Jan 21 18:58:44 2013 +0100
+++ b/spec/latest/json-ld-syntax/index.html	Mon Jan 21 19:05:09 2013 +0100
@@ -959,11 +959,10 @@
         "@id": "http://xmlns.com/foaf/0.1/homepage",
         "@type": "@id"
       }
-      ...
     },
     "****@id****": "****http://example.org/people#joebob****",
     "homepage": "http://manu.sporny.org/",
-  ...
+    ...
   }
   -->
   </pre>
@@ -991,8 +990,7 @@
 -->
 </pre>
 
-<p>A node can be assigned more than one type by using the following markup
-pattern:</p>
+<p>A node can be assigned more than one type by using <tref title="array">arrays</tref>:</p>
 
 <pre class="example" data-transform="updateExample"
      title="Specifying multiple types for a node">
@@ -1000,7 +998,7 @@
 {
 ...
   "@id": "http://example.org/places#BrewEats",
-  "****@type****": ****["http://schema.org/Restaurant", "http://schema.org/Brewery"]****
+  "****@type****": ****[ "http://schema.org/Restaurant", "http://schema.org/Brewery" ]****
 ...
 }
 -->
@@ -1011,12 +1009,13 @@
      title="Using a term to specify the type">
 <!--
 {
-  "@context": "http://json-ld.org/contexts/person.jsonld",
+  "@context": {
+    ...
+    ****"Person": "http://xmlns.com/foaf/0.1/Person"****
+  }
   "@id": "http://manu.sporny.org/i/public",
   ****"@type": "Person"****,
-  "name": "Manu Sporny",
-  "homepage": "http://manu.sporny.org/",
-  "depiction": "http://twitter.com/account/profile_image/manusporny"
+  ...
 }
 -->
 </pre>