<?xml-stylesheet type="text/xml" href="datatypes-20090122.xslt" ?>
<?xml-stylesheet type="text/xml" href="curies-20090122.xslt" ?>
<TriX xmlns="http://www.w3.org/2004/03/trix/trix-1/">
  <graph xmlns:eg="http://example.com/">
    <uri>http://example.com/graph1</uri>

    <triple>
      <curie>eg:subject</curie>
      <uri>http://example.com/predicate0</uri>
      <decimal>10.1</decimal>
    </triple>

    <!-- The following will deliberately trigger an error. -->
    <triple>
      <curie>ex:subject</curie>
      <uri>http://example.com/predicate1</uri>
      <decimal>10.1</decimal>
    </triple>

    <triple>
      <curie>eg:subject</curie>
      <uri>http://example.com/predicate2</uri>
      <typedLiteral datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">
       <foo><bar><baz/></bar></foo>
      </typedLiteral>
    </triple>

    <triple>
      <curie>eg:subject</curie>
      <uri>http://example.com/predicate3</uri>
      <typedLiteral datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral">
       &lt;foo>&lt;bar>&lt;baz/>&lt;/bar>&lt;/foo>
      </typedLiteral>
    </triple>

    <triple>
      <curie>eg:subject</curie>
      <uri>http://example.com/predicate4</uri>
      <plainLiteral xml:lang="fr">Bonjour tout la monde!</plainLiteral>
    </triple>

    <triple>
      <id>bob</id>
      <curie xmlns:foaf="http://xmlns.com/foaf/0.1/">foaf:name</curie>
      <plainLiteral>Bob</plainLiteral>
    </triple>

  </graph>

  <graph>
    <!-- This is another graph, so _:bob is a different node. -->
    <triple>
      <id>bob</id>
      <curie xmlns:foaf="http://xmlns.com/foaf/0.1/">foaf:name</curie>
      <plainLiteral>Fred</plainLiteral>
    </triple>

  </graph>
</TriX>
