@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix ns5: <http://creativecommons.org/ns#> .
@prefix wdrs: <http://www.w3.org/2007/05/powder-s#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix ns9: <http://open.vocab.org/terms/> .
@prefix schema: <http://schema.org/> .
@prefix ns11: <http://www.openlinksw.com/ontology/purchases#> .

<http://www.openlinksw.com/DAV/data/turtle/purchases.ttl>
    ns5:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
    dcterms:created "2014-05-18T13:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:modified "2015-03-20T13:38:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:subject <http://www.openlinksw.com/ontology/purchases#> ;
    schema:about <http://www.openlinksw.com/ontology/purchases#> ;
    schema:creator <http://www.openlinksw.com/dataspace/organization/openlink#this> ;
    a schema:TechArticle, rdfs:Resource, <http://www.w3.org/ns/ldp#Resource>, foaf:Document ;
    xhv:canonical <http://www.openlinksw.com/ontology/purchases> ;
    xhv:describes <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:comment "This is a turtle document that uses Linked Data oriented content to describe an OpenLink ontology for Purchases."@en ;
    rdfs:label "OpenLink Purchases Ontology Description Document (Turtle)"^^<http://www.w3.org/2001/XMLSchema#string> ;
    foaf:primaryTopic <http://www.openlinksw.com/ontology/purchases#> .

<http://www.openlinksw.com/data/turtle/purchases.ttl>
    ns5:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
    dcterms:created "2014-05-18T13:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:modified "2015-03-20T13:38:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:subject <http://www.openlinksw.com/ontology/purchases#> ;
    schema:about <http://www.openlinksw.com/ontology/purchases#> ;
    schema:creator <http://www.openlinksw.com/dataspace/organization/openlink#this> ;
    a schema:TechArticle, foaf:Document ;
    xhv:canonical <http://www.openlinksw.com/ontology/purchases> ;
    xhv:describes <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:comment "This is a turtle document that uses Linked Data oriented content to describe the OpenLink Purchases Ontology."@en ;
    rdfs:label "OpenLink Purchases Ontology Description Document (Turtle)"^^<http://www.w3.org/2001/XMLSchema#string> ;
    rdfs:seeAlso <http://uda.openlinksw.com/offers/>, <http://virtuoso.openlinksw.com/offers/>, <http://www.openlinksw.com/data/turtle/contracts.ttl>, <http://www.openlinksw.com/data/turtle/features.ttl>, <http://www.openlinksw.com/data/turtle/licenses.ttl>, <http://www.openlinksw.com/data/turtle/machines.ttl>, <http://www.openlinksw.com/data/turtle/offers.ttl>, <http://www.openlinksw.com/data/turtle/payments.ttl>, <http://www.openlinksw.com/data/turtle/products.ttl>, <http://www.openlinksw.com/data/turtle/shop.ttl>, <http://www.openlinksw.com/data/turtle/software.ttl>, <http://www.openlinksw.com/data/turtle/vendors.ttl> ;
    foaf:primaryTopic <http://www.openlinksw.com/ontology/purchases#> .

<http://www.openlinksw.com/ontology/purchases>
    ns5:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
    dcterms:created "2014-05-18T13:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:modified "2015-03-20T13:38:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:subject <http://www.openlinksw.com/ontology/purchases#> ;
    schema:creator <http://www.openlinksw.com/dataspace/organization/openlink#this> ;
    a schema:TechArticle, foaf:Document ;
    rdfs:comment "This is a document that uses Linked Data oriented content to describe OpenLink Purchases Ontology."@en ;
    rdfs:label "OpenLink Purchases Ontology Description Document"^^<http://www.w3.org/2001/XMLSchema#string> ;
    foaf:primaryTopic <http://www.openlinksw.com/ontology/purchases#> ;
    foaf:topic ns11:ClientAccessCertificateFile, ns11:CopiedToUserStorage, ns11:CreditCardPayment, ns11:FailedPayment, ns11:InvoiceGenerated, ns11:LicencesGenerated, ns11:LicenseFile, ns11:PaymentCompleted, ns11:PaymentFailed, ns11:PaymentPending, ns11:Purchase, ns11:PurchaseCompleted, ns11:PurchaseEndState, ns11:PurchaseState, ns11:PurchasedFile, ns11:PurchasedItem, ns11:SupportCertificateFile, ns11:contains, ns11:containsFile, ns11:customerPurchaseId, ns11:hasFollowingState, ns11:hasInvoice, ns11:hasOffering, ns11:hasPreceedingState, ns11:hasProcessMessage, ns11:hasSource, ns11:hasTotalPrice, ns11:lastUsedBillingAgent, ns11:lastUsedCustomerAgent, ns11:lastUsedShippingAgent, ns11:madePurchase, ns11:paymentDetails, ns11:purchaseDate, ns11:purchaseNumber, ns11:purchaseState, ns11:serialNumber, ns11:transactionId, ns11:usedBillingAgent, ns11:usedCreditCard, ns11:usedCustomerAgent, ns11:usedShippingAgent .

<http://www.openlinksw.com/ontology/purchases#>
    ns9:defines ns11:ClientAccessCertificateFile, ns11:CopiedToUserStorage, ns11:CreditCardPayment, ns11:FailedPayment, ns11:InvoiceGenerated, ns11:LicencesGenerated, ns11:LicenseFile, ns11:PaymentCompleted, ns11:PaymentFailed, ns11:PaymentPending, ns11:Purchase, ns11:PurchaseCompleted, ns11:PurchaseEndState, ns11:PurchaseState, ns11:PurchasedFile, ns11:PurchasedItem, ns11:SupportCertificateFile, ns11:contains, ns11:containsFile, ns11:customerPurchaseId, ns11:hasFollowingState, ns11:hasInvoice, ns11:hasOffering, ns11:hasPreceedingState, ns11:hasProcessMessage, ns11:hasSource, ns11:hasTotalPrice, ns11:lastUsedBillingAgent, ns11:lastUsedCustomerAgent, ns11:lastUsedShippingAgent, ns11:madePurchase, ns11:paymentDetails, ns11:purchaseDate, ns11:purchaseNumber, ns11:purchaseState, ns11:serialNumber, ns11:transactionId, ns11:usedBillingAgent, ns11:usedCreditCard, ns11:usedCustomerAgent, ns11:usedShippingAgent ;
    dcterms:created "2014-05-18T13:00:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    dcterms:modified "2015-03-20T13:38:00-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
    schema:about ns11:ClientAccessCertificateFile, ns11:CopiedToUserStorage, ns11:CreditCardPayment, ns11:FailedPayment, ns11:InvoiceGenerated, ns11:LicencesGenerated, ns11:LicenseFile, ns11:PaymentCompleted, ns11:PaymentFailed, ns11:PaymentPending, ns11:Purchase, ns11:PurchaseCompleted, ns11:PurchaseEndState, ns11:PurchaseState, ns11:PurchasedFile, ns11:PurchasedItem, ns11:SupportCertificateFile, ns11:contains, ns11:containsFile, ns11:customerPurchaseId, ns11:hasFollowingState, ns11:hasInvoice, ns11:hasOffering, ns11:hasPreceedingState, ns11:hasProcessMessage, ns11:hasSource, ns11:hasTotalPrice, ns11:lastUsedBillingAgent, ns11:lastUsedCustomerAgent, ns11:lastUsedShippingAgent, ns11:madePurchase, ns11:paymentDetails, ns11:purchaseDate, ns11:purchaseNumber, ns11:purchaseState, ns11:serialNumber, ns11:transactionId, ns11:usedBillingAgent, ns11:usedCreditCard, ns11:usedCustomerAgent, ns11:usedShippingAgent ;
    schema:creator <http://www.openlinksw.com/dataspace/organization/openlink#this> ;
    a owl:Ontology ;
    rdfs:comment """Ontology that defines entity and relation types used to describe purchases. Examples include states,
  licenses files, purchase date etc."""@en ;
    rdfs:label "OpenLink Purchases Ontology"^^<http://www.w3.org/2001/XMLSchema#string> ;
    owl:imports <http://purl.org/dc/terms/>, <http://purl.org/goodrelations/v1>, <http://www.w3.org/1999/02/22-rdf-syntax-ns#>, <http://www.w3.org/2002/07/owl#>, <http://www.w3.org/2006/vcard/> ;
    owl:versionInfo "1.4.0"^^<http://www.w3.org/2001/XMLSchema#string> ;
    wdrs:describedby <http://www.openlinksw.com/ontology/purchases> .

ns11:ClientAccessCertificateFile
    a owl:Class ;
    rdfs:comment "Entity type of resource representing purchased client access certificate files (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Client Access Certificate" ;
    rdfs:subClassOf ns11:PurchasedFile ;
    skos:altLabel "Client Access Certificate" .

ns11:CopiedToUserStorage
    ns11:hasFollowingState ns11:PurchaseCompleted ;
    ns11:hasPreceedingState ns11:LicencesGenerated ;
    ns11:hasProcessMessage "Your Purchase is being completed." ;
    a ns11:PurchaseState ;
    rdfs:comment "The purchase details have been written to the user's storage space."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "CopiedToUserStorage" ;
    skos:altLabel "Copied to User Storage" .

ns11:CreditCardPayment
    a owl:Class ;
    rdfs:comment "Entity type of resource representing credit card payments (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Credit card payment" ;
    rdfs:subClassOf <http://reference.data.gov.uk/def/payment#Payment> ;
    skos:altLabel "Credit card payment" .

ns11:FailedPayment
    a owl:Class ;
    rdfs:comment "Entity type of resource representing failed payments (Class). This is typically used as a marker class, i.e. in combination with other Payment sub-classes like CreditCardPayment."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Failed payment" ;
    rdfs:subClassOf <http://reference.data.gov.uk/def/payment#Payment> ;
    skos:altLabel "Failed payment" .

ns11:InvoiceGenerated
    ns11:hasFollowingState ns11:LicensesGenerated ;
    ns11:hasPreceedingState ns11:PaymentCompleted ;
    ns11:hasProcessMessage "The Licenses are being generated and saved." ;
    a ns11:PurchaseState ;
    rdfs:comment "The purchase invoice has been created and stored in the customer's storage space."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "InvoiceGenerated" ;
    skos:altLabel "Invoice Generated" .

ns11:LicenseFile
    a owl:Class ;
    rdfs:comment "Entity type of resource representing purchased license files (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "License" ;
    rdfs:subClassOf ns11:PurchasedFile ;
    skos:altLabel "License" .

ns11:LicensesGenerated
    ns11:hasFollowingState ns11:CopiedToUserStorage ;
    ns11:hasPreceedingState ns11:InvoiceGenerated ;
    ns11:hasProcessMessage "Your purchase is being copied into your ODS profile." ;
    a ns11:PurchaseState ;
    rdfs:comment "The purchased licenses have been generated and stored in the customer's storage space."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "LicencesGenerated" ;
    skos:altLabel "Licences Generated" .

ns11:PaymentCompleted
    ns11:hasFollowingState ns11:InvoiceGenerated ;
    ns11:hasPreceedingState ns11:PaymentPending ;
    ns11:hasProcessMessage "Your invoice is being generated and saved." ;
    a ns11:PurchaseState ;
    rdfs:comment "This purchase has already been payed for. Post-processing like license generation is still pending."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Payment completed" ;
    skos:altLabel "Payment completed" .

ns11:PaymentFailed
    ns11:hasPreceedingState ns11:PaymentPending ;
    ns11:hasProcessMessage "The payment failed." ;
    a ns11:PurchaseEndState, ns11:PurchaseState ;
    rdfs:comment "This purchase has not been completed, the payment has failed."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Payment failed" ;
    skos:altLabel "Payment failed" .

ns11:PaymentPending
    ns11:hasFollowingState ns11:PaymentCompleted, ns11:PaymentFailed ;
    ns11:hasProcessMessage "The payment is being processed." ;
    a ns11:PurchaseState ;
    rdfs:comment "This purchase has not been completed yet, the payment is still pending."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Payment pending" ;
    skos:altLabel "Payment pending" .

ns11:Purchase
    a owl:Class ;
    rdfs:comment "Entity type of resources representing a Purchase (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Purchase" ;
    rdfs:subClassOf <http://rdfs.org/sioc/ns#Container>, <http://reference.data.gov.uk/def/payment#Purchase> ;
    skos:altLabel "Purchase"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:PurchaseCompleted
    ns11:hasPreceedingState ns11:CopiedToUserStorage ;
    ns11:hasProcessMessage "Your purchase is complete." ;
    a ns11:PurchaseEndState, ns11:PurchaseState ;
    rdfs:comment "This purchase has been completed, all license files have been generated, notification have been sent, etc.."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Purchase completed" ;
    skos:altLabel "Purchase completed" .

ns11:PurchaseEndState
    a owl:Class ;
    rdfs:comment "A purchase end state marks a purchase as finsished, either successful or not."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "PurchaseEndState state" ;
    rdfs:subClassOf ns11:PurchaseState ;
    skos:label "Purchase end state" .

ns11:PurchaseState
    a owl:Class ;
    rdfs:comment "Entity type of resources representing the state of a purchase (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Purchase state" ;
    skos:label "Purchase state" .

ns11:PurchasedFile
    a owl:Class ;
    rdfs:comment "Entity type of resource representing purchased files (Class). Typically more specific sub-classes are used."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Purchased File" ;
    skos:altLabel "Purchased File" .

ns11:PurchasedItem
    a owl:Class ;
    rdfs:comment "Entity type of resources representing a purchased item (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Purchased Item" ;
    rdfs:subClassOf <http://rdfs.org/sioc/ns#Item> ;
    skos:altLabel "Purchased Item"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:SupportCertificateFile
    a owl:Class ;
    rdfs:comment "Entity type of resource representing purchased support certificate files (Class)."@en ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "Support Certificate" ;
    rdfs:subClassOf ns11:PurchasedFile ;
    skos:altLabel "Support Certificate" .

ns11:contains
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Associates a Purchase with one or more Purchased Items."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "contains" ;
    rdfs:range ns11:PurchasedItem ;
    rdfs:subPropertyOf <http://rdfs.org/sioc/ns#container_of> ;
    skos:altLabel "Contains"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:containsFile
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "The files that are contained in a purchase, i.e. the files the customer purchased."@en ;
    rdfs:domain ns11:PurchasedItem ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "containsFile" ;
    rdfs:range ns11:PurchasedFile ;
    skos:altLabel "Contains File"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:customerPurchaseId
    a rdf:Property, owl:DatatypeProperty ;
    rdfs:comment "An optional purchase order ID provided by the customer and printed on the invoice. It allows the customer to easier map the invoice."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "customerPurchaseId" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#string> ;
    skos:altLabel "Customer Purchase ID" .

ns11:hasFollowingState
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Identified the valid states a purchase can be in after this state."@en ;
    rdfs:domain ns11:PurchaseState ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasFollowingState" ;
    rdfs:range ns11:PurchaseState ;
    owl:inverseOf ns11:hasPreceedingState ;
    skos:altLabel "Following State"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:hasInvoice
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Associates a Purchase with the invoice file."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasInvoice" ;
    rdfs:range rdfs:Resource ;
    skos:altLabel "Invoice"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:hasOffering
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Associates a PurchasedItem with the schema:Offer that has been purchased."@en ;
    rdfs:domain ns11:PurchasedItem ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasOffering" ;
    rdfs:range schema:Offer ;
    skos:altLabel "Offering"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:hasPreceedingState
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Identified the valid states a purchase can be in before entering this state."@en ;
    rdfs:domain ns11:PurchaseState ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasPreceedingState" ;
    rdfs:range ns11:PurchaseState ;
    owl:inverseOf ns11:hasFollowingState ;
    skos:altLabel "Preceeding State"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:hasProcessMessage
    a rdf:Property, owl:DatatypeProperty ;
    rdfs:comment "A message that can be shown to the user while a shop system processes a purchase in the given state."@en ;
    rdfs:domain ns11:PurchaseState ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasProcessMessage" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#string> ;
    skos:altLabel "Process message" .

ns11:hasSource
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "The Resource a purchased file is based on. This can be for example the license description used to generate a license file."@en ;
    rdfs:domain ns11:PurchasedFile ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasSource" ;
    rdfs:range rdfs:Resource ;
    skos:altLabel "Source"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:hasTotalPrice
    a rdf:Property, owl:DatatypeProperty ;
    rdfs:comment "Associates a Purchase with total price."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "hasTotalPrice" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#decimal> ;
    skos:altLabel "TotalPrice"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:lastUsedBillingAgent
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Relates the user account with the last used billing agent, i.e. the default billing address."@en ;
    rdfs:domain foaf:Agent ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "lastUsedBillingAgent" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Last Used Billing Agent"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:lastUsedCustomerAgent
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Relates the user account with the last used customer agent, i.e. the default customer address that will actually get the purchased items."@en ;
    rdfs:domain foaf:Agent ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "lastUsedCustomerAgent" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Last Used Customer Agent"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:lastUsedShippingAgent
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Relates the user account with the last used shipping agent, i.e. the default shipping address."@en ;
    rdfs:domain foaf:Agent ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "lastUsedShippingAgent" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Last Used Shipping Agent"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:madePurchase
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Associates a Purchase with the agent (Organization, Person or Bot) that actually made the Purchase, i.e. the owner of the purchased items."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "madePurchase" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Made Purchase"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:paymentDetails
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Associates a Purchase with its payment details."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "paymentDetails" ;
    rdfs:range <http://reference.data.gov.uk/def/payment#Payment> ;
    owl:inverseOf <http://reference.data.gov.uk/def/payment#purchase> ;
    skos:altLabel "Payment details"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:purchaseDate
    a rdf:Property, owl:DatatypeProperty ;
    rdfs:comment "The date and time the Purchase was completed."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "purchaseDate" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#dateTime> ;
    skos:altLabel "Purchase Date"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:purchaseNumber
    a rdf:Property, owl:DatatypeProperty ;
    rdfs:comment "The Purchase number, an internal identifier for the purchase."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "purchaseNumber" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#string> ;
    skos:altLabel "Purchase Number"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:purchaseState
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "The state of a purchase indicates the processing step it is currently in."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "purchaseState" ;
    rdfs:range ns11:PurchaseState ;
    skos:altLabel "Purchase state" .

ns11:serialNumber
    a rdf:Property, owl:DatatypeProperty, owl:InverseFunctionalProperty ;
    rdfs:comment "The serial number, an internal identifier for the purchased item, also used for license file creation."@en ;
    rdfs:domain ns11:PurchasedItem ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "serialNumber" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#string> ;
    skos:altLabel "Serial Number"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:transactionId
    a rdf:Property, owl:DatatypeProperty ;
    rdfs:comment "The transaction ID of a credit card payment."@en ;
    rdfs:domain ns11:CreditCardPayment ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "transactionId" ;
    rdfs:range <http://www.w3.org/2001/XMLSchema#string> ;
    skos:altLabel "Transaction ID" .

ns11:usedBillingAgent
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "The billing agent used for a particular purchase."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "usedBillingAgent" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Used Billing Agent"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:usedCreditCard
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "Associates a CreditCardPayment with the used credit card."@en ;
    rdfs:domain ns11:CreditCardPayment ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "usedCreditCard" ;
    rdfs:range <http://www.openlinksw.com/ontology/creditcards#CreditCard> ;
    skos:altLabel "Used Credit card"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:usedCustomerAgent
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "The customer agent (the person initiating the purchase) used for a particular purchase."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "usedCustomerAgent" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Used Customer Agent"^^<http://www.w3.org/2001/XMLSchema#string> .

ns11:usedShippingAgent
    a rdf:Property, owl:ObjectProperty ;
    rdfs:comment "The shipping agent used for a particular purchase."@en ;
    rdfs:domain ns11:Purchase ;
    rdfs:isDefinedBy <http://www.openlinksw.com/ontology/purchases#> ;
    rdfs:label "usedShippingAgent" ;
    rdfs:range foaf:Agent ;
    skos:altLabel "Used Shipping Agent"^^<http://www.w3.org/2001/XMLSchema#string> .

xhv:related
    owl:equivalentProperty rdfs:seeAlso .

