@prefix oc: <https://ontology.inferal.com/profiles/order-contribution-evidence/> .
@prefix ctx: <https://ontology.inferal.com/modules/commerce-transaction/> .
@prefix adm: <https://ontology.inferal.com/modules/advertising-measurement/> .
@prefix cme: <https://ontology.inferal.com/modules/commerce-margin-evidence/> .
@prefix pc: <https://ontology.inferal.com/modules/commerce-purchase-classification/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix e: <urn:example:contribution:> .
e:policy-v1 a prov:Entity ; owl:versionInfo "1" ;
 oc:capturedAt "2026-10-20T00:00:00+00:00"^^xsd:dateTimeStamp ;
 prov:wasDerivedFrom e:authored-policy-v1 ;
 rdfs:comment "The authored policy selects the recorded line basis and the explicitly supplied signed adjustments." .
e:partial-policy-v2 a prov:Entity ; owl:versionInfo "2" ;
 oc:capturedAt "2026-10-20T00:00:00+00:00"^^xsd:dateTimeStamp ;
 prov:wasDerivedFrom e:authored-policy-v2 ;
 rdfs:comment "The authored partial policy selects the recorded line basis without claiming complete adjustment coverage." .
e:s1 a oc:Statement ; oc:order e:o1 ; oc:merchant e:merchant ; oc:policy e:policy-v1 ; oc:asOf "2026-10-22T00:00:00+00:00"^^xsd:dateTimeStamp ; oc:currency "USD" ; oc:selectedLine e:l1 ; oc:lineCoverage cme:DeclaredComplete ; oc:adjustmentCoverage cme:DeclaredComplete ; prov:wasDerivedFrom e:authored-selection .
e:o1 a ctx:Order ; pc:merchant e:merchant ; ctx:orderContains e:l1 .
e:l1 a ctx:LineItem ; ctx:lineItemRevenue e:revenue1 ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-lines .
e:revenue1 a adm:MonetaryAmount ; adm:amountValue "90"^^xsd:decimal ; adm:currencyCode "USD" .
e:s2 a oc:Statement ; oc:order e:o2 ; oc:merchant e:merchant ; oc:policy e:policy-v1 ; oc:asOf "2026-10-22T00:00:00+00:00"^^xsd:dateTimeStamp ; oc:currency "USD" ; oc:selectedLine e:l2 ; oc:lineCoverage cme:DeclaredPartial ; oc:adjustmentCoverage cme:DeclaredPartial ; prov:wasDerivedFrom e:authored-selection .
e:o2 a ctx:Order ; pc:merchant e:merchant ; ctx:orderContains e:l2 .
e:l2 a ctx:LineItem ; ctx:lineItemRevenue e:revenue2 ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-lines .
e:revenue2 a adm:MonetaryAmount ; adm:amountValue "70"^^xsd:decimal ; adm:currencyCode "USD" .
e:l1 ctx:costOfGoods e:cost1 .
e:cost1 a adm:MonetaryAmount ; adm:amountValue "40"^^xsd:decimal ; adm:currencyCode "USD" .
e:s1 oc:adjustment e:refund .
e:refund a oc:Adjustment ; oc:adjustmentKey "refund" ; oc:kind oc:Refund ; oc:treatment oc:ExcludedFromBase ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-adjustments ; oc:money e:refund-money .
e:refund-money a adm:MonetaryAmount ; adm:amountValue "-10"^^xsd:decimal ; adm:currencyCode "USD" .
e:s1 oc:adjustment e:fee .
e:fee a oc:Adjustment ; oc:adjustmentKey "fee" ; oc:kind oc:PaymentFees ; oc:treatment oc:ExcludedFromBase ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-adjustments ; oc:money e:fee-money .
e:fee-money a adm:MonetaryAmount ; adm:amountValue "-3"^^xsd:decimal ; adm:currencyCode "USD" .
e:s1 oc:adjustment e:shipping .
e:shipping a oc:Adjustment ; oc:adjustmentKey "shipping" ; oc:kind oc:ShippingRevenue ; oc:treatment oc:ExcludedFromBase ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-adjustments ; oc:money e:shipping-money .
e:shipping-money a adm:MonetaryAmount ; adm:amountValue "5"^^xsd:decimal ; adm:currencyCode "USD" .
e:s1 oc:adjustment e:discount .
e:discount a oc:Adjustment ; oc:adjustmentKey "discount" ; oc:kind oc:Discount ; oc:treatment oc:AlreadyIncludedInBase ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-adjustments ; oc:money e:discount-money .
e:discount-money a adm:MonetaryAmount ; adm:amountValue "-10"^^xsd:decimal ; adm:currencyCode "USD" .
e:s2 oc:adjustment e:unknown .
e:unknown a oc:Adjustment ; oc:adjustmentKey "unknown" ; oc:kind oc:Fulfilment ; oc:treatment oc:ExcludedFromBase ; oc:capturedAt "2026-10-21T00:00:00+00:00"^^xsd:dateTimeStamp ; prov:wasDerivedFrom e:authored-adjustments .
e:s3 a oc:Statement ; oc:order e:o1 ; oc:merchant e:merchant ; oc:policy e:partial-policy-v2 ; oc:asOf "2026-10-22T00:00:00+00:00"^^xsd:dateTimeStamp ; oc:currency "USD" ; oc:selectedLine e:l1 ; oc:lineCoverage cme:DeclaredComplete ; oc:adjustmentCoverage cme:DeclaredPartial ; prov:wasDerivedFrom e:authored-selection .
