<!-- This sample is based on examples of TriX documents 
    (Stickler and Carroll, 2004).
    It is simplified to omit the named graphs extenstion to RDF.
    And made more complicated by allowing xml:base arbitrarily.
-->

<trix xmlns:g="http://www.w3.org/2003/g/data-view#"
  g:transformation="trix2rdfxml">
<graph xml:base="http://example.org/">
   <triple>
      <uri  xml:base="aBook"></uri>
      <uri namespace="http://purl.org/dc/elements/1.1/">title</uri>
      <typedLiteral  xml:base="aBook" datatype="http://www.w3.org/2000/01/rdf-schema#XMLLiteral">&lt;title&gt;A Good Book&lt;/title&gt;</typedLiteral>
   </triple>
   <triple  xml:base="aBook">
      <uri></uri>
      <uri namespace="http://www.w3.org/2000/01/rdf-schema#">comment</uri>
      <plainLiteral xml:lang="en" xml:base="..">This is a really good book!</plainLiteral>
   </triple>
   <triple>
      <id xml:base="http://example.org/book-description.rdf">binfo</id>
      <uri  namespace="http://example.org/">source</uri>
      <uri xml:base="http://example.org/book-description.rdf"></uri>
   </triple>
   <triple xml:base="book-description.rdf">
      <uri></uri>
      <uri  namespace="http://example.org/">authority</uri>
      <uri xml:base="..">Bob</uri>
   </triple>
</graph>
</trix>