added people 2 rooms example
authorMichael Hausenblas http://sw-app.org/mic.xhtml#i
Sun, 29 Jan 2012 17:09:56 +0000
changeset 43 1de0ed739563
parent 42 31153b6f35eb
child 44 9b68c524d297
added people 2 rooms example
people/index.html
--- a/people/index.html	Sun Jan 29 15:41:58 2012 +0000
+++ b/people/index.html	Sun Jan 29 17:09:56 2012 +0000
@@ -55,7 +55,7 @@
 <h2 id="characteristics">What is a person?</h2>
 <p>The core concept we are dealing with in this document is that of a person. A <dfn>person</dfn> in the context of this specification is defined as an entity of type <code><a href="http://xmlns.com/foaf/spec/#term_Person" title="FOAF Vocabulary Specification">foaf:Person</a></code>.</p>
 <p>If only the person's name is known <code><a href="http://xmlns.com/foaf/spec/#term_name" title="FOAF Vocabulary Specification">foaf:name</a></code> MUST be used.</p>
-<pre class='example'>
+<pre class="example">
  &lt;http://data.sccgov.org/people/björkg&gt; rdf:type foaf:Person ;
                                         foaf:name "Björk Guðmundsdóttir" .
 </pre>
@@ -79,7 +79,7 @@
 	</li>
 	<li>the link type used between a person and a contact information MUST be <code><a href="#gldp-terms-card">gldp:card</a></code>. <p class="editorsnote"><a href="https://www.w3.org/2011/gld/track/issues/24">ISSUE-24</a></p></li>
 </ol>
-<pre class='example'>
+<pre class="example">
  @prefix gldp: &lt;http://www.w3.org/ns/people#&gt; .
  @prefix : &lt;http://colcids.com/person/&gt; .
 	
@@ -100,7 +100,7 @@
 	<li>To state that one person knows another person, <code><a href="http://xmlns.com/foaf/spec/#term_knows" title="FOAF Vocabulary Specification">foaf:knows</a></code> MUST be used.</li>
 	<li>To state other relationships between people, the <a href="http://vocab.org/relationship/" title="RELATIONSHIP: A vocabulary for describing relationships between people">RELATIONSHIP vocabulary</a> SHOULD be used.</li>
 </ul>
-<pre class='example'>
+<pre class="example">
  &lt;http://colcids.com/person/42&gt; foaf:knows &lt;http://opendataguru.net/me&gt; .
 </pre>
 
@@ -113,7 +113,7 @@
 <section>
 <h3 id="relations-to-org">Relating a person to an organization</h3>
 <p>In order to relate a person to an organization one MUST use the <a href="http://www.w3.org/ns/org#">Organization Ontology</a>.</p>
-<pre class='example'>
+<pre class="example">
  &lt;http://colcids.com/company&gt; a org:FormalOrganization .
 
  &lt;http://colcids.com/person/42&gt; a foaf:Person .
@@ -128,6 +128,19 @@
 <section>
 <h3 id="relations-to-building-room">Relating a person to a building or room</h3>
 <p>In order to relate a person to a building or room one MUST use the <a href="http://vocab.deri.ie/rooms#">Buildings and Rooms Vocabulary</a>.</p>
+<p>To state that a person is located in a building or room <code><a href="http://vocab.deri.ie/rooms#occupant" title="Buildings and Rooms Vocabulary">rooms:occupant</a></code> MUST be used.</p>
+<pre class="example">
+ @prefix rooms: &lt;http://vocab.deri.ie/rooms#&gt; .
+ @prefix :  &lt;&gt;.
+
+ &lt;http://colcids.com/person/42&gt; a foaf:Person .
+
+ :CCHQ a rooms:Building ;
+       rooms:contains :r101 .
+
+ :r101 a rooms:Room ;
+       rooms:occupant &lt;http://colcids.com/person/42&gt; .
+</pre>
 <p class="editorsnote"><a href="https://www.w3.org/2011/gld/track/issues/23">ISSUE-23</a></p>
 </section>