PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX dpv-odrl: <https://w3id.org/dpv/mappings/odrl#>
PREFIX odrl: <http://www.w3.org/ns/odrl/2/>
PREFIX p7012: <https://w3id.org/dpv/standards/p7012#>

<https://customercommons.org/myterm/SD-BY-ATP-DP/0.9/> a odrl:Set ;
    odrl:uid <https://customercommons.org/myterm/SD-BY-ATP-DP/0.9/> ;
    odrl:profile <https://w3id.org/dpv/mappings/odrl> ;
    dcterms:title "SD-BY-ATP-DP"@en ;
    dcterms:description "Term that requires Service Delivery, and permits Analytics, Tracking, or Profiling by the 2nd Party, with an obligation for Data Portability, and prohibits Analytics, Tracking, or Profiling by 3rd Party, and prohibits sharing any data with 3rd Party"@en ;
    odrl:conflict odrl:perm ;
    # service delivery is mandatory
    odrl:obligation [
        odrl:action dpv-odrl:Processing ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:Entity ;
        odrl:constraint [
            odrl:leftOperand dpv-odrl:Purpose ;
            odrl:operator odrl:eq ;
            odrl:rightOperand p7012:ServiceDelivery
        ]
    ] ;
    # data obligation is mandatory
    odrl:permission [
        odrl:action dpv-odrl:Share ;
        odrl:target p7012:ServiceData ; # should it be only p7012:ServiceData or all of (p7012:ServiceData,p7012:NonServiceData,p7012:ServiceAnalyticsData,p7012:ServiceUsageData)
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:Entity ;
    ] ;
    # analytics by second party is permitted
    odrl:permission [
        odrl:action dpv-odrl:Processing ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:Entity ;
        odrl:constraint [
            odrl:leftOperand dpv-odrl:Purpose ;
            odrl:operator odrl:eq ;
            odrl:rightOperand p7012:ServiceAnalytics
        ]
    ] ;
    # analytics by third party is prohibited
    odrl:prohibition [
        odrl:action dpv-odrl:Processing ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:ThirdParty ;
        odrl:constraint [
            odrl:leftOperand dpv-odrl:Purpose ;
            odrl:operator odrl:eq ;
            odrl:rightOperand p7012:ServiceAnalytics
        ]
    ] ;
    # tracking by second party is permitted
    odrl:permission [
        odrl:action dpv-odrl:Tracking ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:Entity ;
    ] ;
    # tracking by third party is prohibited
    odrl:prohibition [
        odrl:action dpv-odrl:Tracking ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:ThirdParty ;
    ] ;
    # profiling by second party is permitted
    odrl:permission [
        odrl:action dpv-odrl:Profiling ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:Entity ;
    ] ;
    # profiling by third party is prohibited
    odrl:prohibition [
        odrl:action dpv-odrl:Profiling ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:ThirdParty ;
    ] ;
    # sharing with third party is prohibited
    odrl:prohibition [
        odrl:action dpv-odrl:Share ;
        odrl:target dpv-odrl:PersonalData ;
        odrl:assigner p7012:Person ;
        odrl:assignee p7012:ThirdParty ;
    ] .