<!--
RDF model that is created by this document definition, using the RIL
notation, where {} identify a resource and -xxx-> a predicate.
Simple strings represent literals.

{CustomerURI} -#order-> {purchaseURI} -#id-> purchaseID
                                      -rdf:type-> {#Purchase}

-->
<DocDef
  xmlns="http://xmlns.4suite.org/reserved"
  xmlns:bb="http://uche.ogbuji.net/example/buyerbase"
  xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
>
  <RdfMappings>
    <RdfMapping>
      <Subject>/bb:purchase/bb:customer/@id</Subject>
      <Predicate>'http://uche.ogbuji.net/example/buyerbase/schema#order'</Predicate>
      <Object>$uri</Object>
    </RdfMapping>
    <RdfMapping>
      <Subject>$uri</Subject>
      <Predicate>'http://uche.ogbuji.net/example/buyerbase/schema#id'</Predicate>
      <Object>/bb:purchase/@id</Object>
    </RdfMapping>
    <RdfMapping>
      <Subject>$uri</Subject>
      <Predicate>'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'</Predicate>
      <Object  type='rdf:Resource'>'http://uche.ogbuji.net/example/buyerbase/schema#Purchase'</Object>
    </RdfMapping>
  </RdfMappings>
</DocDef>


