<!-- $Id: fml.xml,v 1.1 2005/01/19 11:17:04 connolly Exp $ -->
<data
  xmlns="http://www.w3.org/2000/10/swap/util/data#"
  xmlns:d="http://www.w3.org/2000/10/swap/util/data#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:s="http://www.w3.org/2000/01/rdf-schema#"
  >

<!-- examples from N3 Primer
    http://www.w3.org/2000/10/swap/Primer.html
    v 1.57 2004/05/16 18:58:25
  -->

 <!-- basic statement -->
 <thing ref="#pat">
   <rel ref="#child">
     <thing ref="#al"/>
   </rel>
 </thing>

 <!-- reverse the sense of the relationship -->
 <thing ref="#al">
   <rev ref="#child">
     <thing ref="#al"/>
   </rev>
 </thing>

 <!-- int literal value -->
 <thing ref="#pat">
   <rel ref="#age">
     <val int="24"/>
   </rel>
 </thing>

 <!-- abbreviate repeated subject, predicate -->
 <thing ref="#pat">
  <rel ref="#child">
    <thing ref="#al"/>
    <thing ref="#chaz"/>
    <thing ref="#mo"/>
  </rel>
  <rel ref="#age"><val int="24"/></rel>
  <rel ref="#eyecolor"><str>blue</str></rel>
 </thing>

 <!-- ala a table -->
 <thing ref="#pat">
   <rel ref="#age"><val int="24"/></rel>
   <rel ref="#eyecolor"><str>blue</str></rel>
 </thing>
 <thing ref="#al">
   <rel ref="#age"><val int="3"/></rel>
   <rel ref="#eyecolor"><str>green</str></rel>
 </thing>
 <thing ref="#jo">
   <rel ref="#age"><val int="5"/></rel>
   <rel ref="#eyecolor"><str>green</str></rel>
 </thing>


 <!-- anonymous things -->
 <thing ref="#pat">
   <rel ref="#child">
    <thing><rel ref="#age"><val int="4"/></rel></thing>
    <thing><rel ref="#age"><val int="3"/></rel></thing>
   </rel>
 </thing>

 <!-- string names rather than URI names -->
 <thing>
  <rel ref="#name"><str>Pat</str></rel>
  <rel ref="#age"><val int="24"/></rel>
  <rel ref="#eyecolor"><str>blue</str></rel>
 </thing>
 <thing>
  <rel ref="#name"><str>Al</str></rel>
  <rel ref="#age"><val int="3"/></rel>
  <rel ref="#eyecolor"><str>green</str></rel>
 </thing>
 <thing>
  <rel ref="#name"><str>Jo</str></rel>
  <rel ref="#age"><val int="5"/></rel>
  <rel ref="#eyecolor"><str>green</str></rel>
 </thing>


 <!-- sharing concepts -->
 <thing ref="">
  <rel ref="#title"><str>A simple example of N3</str></rel>
 </thing>


 <!-- dublin core -->
 <thing ref="">
  <rel ref="http://purl.org/dc/elements/1.1/title">
    <str>Primer - Getting into the Semantic Web and RDF using N3</str>
  </rel>
 </thing>

 <!-- qnames -->
 <thing
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   ref="">
  <prop><dc:title/>
    <str>Primer - Getting into the Semantic Web and RDF using N3</str>
  </prop>
 </thing>


 <d:item xmlns="http://example/fmla-doc#"><pat/>
  <d:prop><child/>
   <d:thing><d:prop><age/><d:val int="4"/></d:prop></d:thing>
   <d:thing><d:prop><age/><d:val int="3"/></d:prop></d:thing>
  </d:prop>
 </d:item>

 <d:item  xmlns="http://example/fmla-doc#"><Person/>
  <d:prop><r:type/><d:item><s:Class/></d:item></d:prop>
 </d:item>

 <d:item xmlns="http://example/fmla-doc#"><Pat/>
  <d:prop><r:type/><d:item><Person/></d:item></d:prop>
 </d:item>

 <d:item xmlns="http://example/fmla-doc#"><Woman/>
  <d:prop><r:type/><d:item><s:Class/></d:item></d:prop>
  <d:prop><s:subClassOf/><d:item><Person/></d:item></d:prop>
 </d:item>

 <d:item xmlns="http://example/fmla-doc#"><sister/>
  <d:prop><r:type/><d:item><r:Property/></d:item></d:prop>
 </d:item>

 <d:item xmlns="http://example/fmla-doc#"><sister/>
  <d:prop><s:domain/><d:item><Person/></d:item></d:prop>
  <d:prop><s:range/><d:item><Woman/></d:item></d:prop>
 </d:item>

<!-- .... -->

 <thing ref="#me">
   <prop><foaf:interest/>
     <thing ref="../../Addressing/"/>
     <thing ref="/2004/OWL/"/>
   </prop>
   <prop>
     <foaf:homepage/>
     <thing ref="http://www.w3.org/People/Connolly/">
       <prop>
	 <dc:title/>
	 <str>Dan Connolly, W3C</str>
       </prop>
     </thing>
   </prop>
 </thing>

 <item><foaf:homepage/>
  <prop><r:type/><item><r:Property/></item></prop>
  <prop><s:label/><str>homepage</str></prop>
  <prop><s:comment/><str>relates a person, event, etc. to its homepage.</str></prop>
 </item>

<!-- @@todo: XML Literal values -->
<!-- @@todo: XML lang -->
<!-- @@todo: literal subjects? -->

</data>

