# Example SAWSDL schemaMapping file -- XSD to RDF via SPDL.

@prefix spat:  <http://www.w3.org/2007/01/SPAT/ns#> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix order: <http://www.w3.org/2002/ws/sawsdl/spec/examples/wsdl/PurchaseOrderService#> .
@prefix :      <http://org1.example.com/ontologies/PurchaseOrder#> .
@prefix xsd1:  <http://types.example/commerce#> .

# SPARQL annotations:

:OReq spat:SPAT
   '_:req :hasCustomer
     [ a :Customer;
       :hasCustomerName
         [ a :Name;
           :hasLexicalRespresentation xpath(concat(order:firstName, " ", order:lastName)) ] ] .' .
:item spat:SPAT
   '_:req a :OrderRequest;
          :hasLineItems
            [ a :LineItem;
              :hasPart 
                [ a :part;
                    :hasPartCode
                  [ a :partNum;
                      :hasLexicalRespresentation xpath(order:itemCode) ] ];
              :hasDueDate
                [ a :date;
                  :hasLexicalRespresentation xpath(order:dueDate) ];
              :hasQuantity xpath(order:quantity)^^xsd:float;
              :hasBillingInfo xpath(order:billingInfo)^^xsd1:POBilling; ] .' .

