@prefix ctx: <https://ontology.inferal.com/modules/commerce-transaction/> .
@prefix adm: <https://ontology.inferal.com/modules/advertising-measurement/> .
@prefix cmi: <https://ontology.inferal.com/modules/commercial-intelligence/> .
@prefix ex: <https://example.com/commerce-transaction/query/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:t1 a time:Instant ; time:inXSDDateTimeStamp "2026-06-04T09:00:00Z"^^xsd:dateTimeStamp .
ex:t2 a time:Instant ; time:inXSDDateTimeStamp "2026-06-11T09:00:00Z"^^xsd:dateTimeStamp .
ex:t3 a time:Instant ; time:inXSDDateTimeStamp "2026-06-24T09:00:00Z"^^xsd:dateTimeStamp .
ex:newBuyer a ctx:Buyer ; ctx:buyerStatus ctx:firstTimeBuyer .
ex:oldBuyer a ctx:Buyer ; ctx:buyerStatus ctx:returningBuyer .
ex:jacket a cmi:Product ; rdfs:label "Trail jacket" .
ex:socks a cmi:Product ; rdfs:label "Merino socks" .

ex:firstPurchase a ctx:Order ;
    ctx:orderIdentifier "ORD-4449" ; rdfs:label "firstPurchase" ;
    ctx:placedBy ex:newBuyer ; ctx:placedAt ex:t1 ;
    ctx:orderTotal ex:firstPurchase-total ; ctx:paymentState ctx:paid ;
    ctx:fulfillmentState ctx:delivered ; ctx:orderLifecycle ctx:placedOrder .

ex:firstPurchase-total a adm:MonetaryAmount ; adm:amountValue "154.00"^^xsd:decimal ; adm:currencyCode "GBP" .

ex:repeatPurchase a ctx:Order ;
    ctx:orderIdentifier "ORD-7942" ; rdfs:label "repeatPurchase" ;
    ctx:placedBy ex:oldBuyer ; ctx:placedAt ex:t2 ;
    ctx:orderTotal ex:repeatPurchase-total ; ctx:paymentState ctx:paid ;
    ctx:fulfillmentState ctx:delivered ; ctx:orderLifecycle ctx:placedOrder .

ex:repeatPurchase-total a adm:MonetaryAmount ; adm:amountValue "80.00"^^xsd:decimal ; adm:currencyCode "GBP" .

ex:anotherRepeat a ctx:Order ;
    ctx:orderIdentifier "ORD-2267" ; rdfs:label "anotherRepeat" ;
    ctx:placedBy ex:oldBuyer ; ctx:placedAt ex:t3 ;
    ctx:orderTotal ex:anotherRepeat-total ; ctx:paymentState ctx:paid ;
    ctx:fulfillmentState ctx:unfulfilled ; ctx:orderLifecycle ctx:placedOrder .

ex:anotherRepeat-total a adm:MonetaryAmount ; adm:amountValue "40.00"^^xsd:decimal ; adm:currencyCode "GBP" .
