Added example for setting multiple types for a subject.
authorManu Sporny <msporny@digitalbazaar.com>
Sun, 19 Aug 2012 11:45:19 -0400
changeset 827 49103fb9c560
parent 826 bedf0511a12f
child 828 d2ad17452b11
Added example for setting multiple types for a subject.
spec/latest/json-ld-syntax/index.html
--- a/spec/latest/json-ld-syntax/index.html	Sun Aug 19 10:19:55 2012 -0400
+++ b/spec/latest/json-ld-syntax/index.html	Sun Aug 19 11:45:19 2012 -0400
@@ -1063,7 +1063,7 @@
 an <tref>IRI</tref>.</p>
 
 <pre class="example" data-transform="updateExample"
-     title="Specifying the Type">
+     title="Specifying the type for a subject">
 <!--
 {
 ...
@@ -1073,6 +1073,23 @@
 }
 -->
 </pre>
+
+<p>A subject can be assigned more than one type by using the following markup
+pattern:</p>
+
+<pre class="example" data-transform="updateExample"
+     title="Specifying multiple types for a subject">
+<!--
+{
+...
+  "@id": "http://example.org/places#BrewEats",
+  "****@type****": ****["http://schema.org/Restaurant", "http://schema.org/Brewery"]****
+...
+}
+-->
+</pre>
+
+
 </section>
 
 <section>