@prefix abg: <https://ontology.inferal.com/modules/advertising-budget/> .
@prefix adm: <https://ontology.inferal.com/modules/advertising-measurement/> .
@prefix ex: <https://example.com/advertising-budget/query/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# An account under a lifetime cap, plus a campaign budget beneath it. The cap
# does not direct delivery; the budget does.

ex:accountScope a abg:BudgetScope ;
    abg:coversEntity ex:account1 ; abg:sharedAcrossEntities false .
ex:accountCap a abg:SpendCap ; rdfs:label "account lifetime spend cap" ;
    abg:capAmount ex:accountCap-amt ; abg:capPeriod abg:lifetimePeriod ;
    abg:constrainsScope ex:accountScope .
ex:accountCap-amt a adm:MonetaryAmount ;
    adm:amountValue "50000.00"^^xsd:decimal ; adm:currencyCode "USD" .

ex:accountDaily-scope a abg:BudgetScope ;
    abg:coversEntity ex:account1 ; abg:sharedAcrossEntities false .
ex:accountDaily a abg:Budget ; rdfs:label "accountDaily" ;
    abg:budgetAmount ex:accountDaily-amt ; abg:budgetPeriod abg:dailyPeriod ;
    abg:budgetDeliveryMethod abg:standardDelivery ; abg:appliesToScope ex:accountDaily-scope .
ex:accountDaily-amt a adm:MonetaryAmount ;
    adm:amountValue "500.00"^^xsd:decimal ; adm:currencyCode "USD" .
