@prefix adm: <https://ontology.inferal.com/modules/advertising-measurement/> .
@prefix ex: <https://example.com/advertising-measurement/query/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rng: <https://ontology.inferal.com/modules/range/> .
@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-01T00:00:00Z"^^xsd:dateTimeStamp .
ex:t2 a time:Instant ; time:inXSDDateTimeStamp "2026-06-16T00:00:00Z"^^xsd:dateTimeStamp .
ex:t3 a time:Instant ; time:inXSDDateTimeStamp "2026-07-01T00:00:00Z"^^xsd:dateTimeStamp .

ex:june a adm:ReportingWindow ; rdfs:label "June 2026" ;
    adm:windowStart ex:t1 ; adm:windowEnd ex:t3 ;
    rng:lowerInclusive true ; rng:upperInclusive false .

ex:lookback7d a rng:Range ; rdfs:label "seven day lookback" .

ex:lastClick a adm:AttributionBasis ; rdfs:label "last click, 7 day" ;
    adm:usedAttributionModel adm:lastClickModel ; adm:lookbackWindow ex:lookback7d .

ex:proprietary a adm:AttributionBasis ; rdfs:label "provider proprietary, 7 day" ;
    adm:usedAttributionModel adm:providerProprietaryModel ; adm:lookbackWindow ex:lookback7d .

# One subject, two models. The proprietary figure is fractional because that
# model apportions credit across touchpoints.

ex:convLastClick a adm:MetricObservation ;
    adm:observationSubject ex:metaCampaign ; adm:observationGrain adm:CampaignGrain ;
    adm:metricKind adm:conversions ; adm:reportingWindow ex:june ;
    adm:observedValue ex:convLastClick-v ; adm:attributionBasis ex:lastClick ;
    adm:observedChannel adm:metaChannel .
ex:convLastClick-v a adm:CountValue ; adm:canonicalMagnitude "412"^^xsd:decimal .

ex:convProprietary a adm:MetricObservation ;
    adm:observationSubject ex:metaCampaign ; adm:observationGrain adm:CampaignGrain ;
    adm:metricKind adm:conversions ; adm:reportingWindow ex:june ;
    adm:observedValue ex:convProprietary-v ; adm:attributionBasis ex:proprietary ;
    adm:observedChannel adm:metaChannel .
ex:convProprietary-v a adm:CountValue ; adm:canonicalMagnitude "587.4"^^xsd:decimal .
