Fwd: Combined Permissions and Restrictions in ODRL 2.0: Is this example correct?

From: Myles, Stuart 
Sent: Tuesday, February 21, 2012 1:40 PM
To: ODRL Community Group WG (public-odrl-contrib@w3.org)
Subject: Combined Permissions and Restrictions in ODRL 2.0: Is this example correct?
 
Hello,
 
I’m trying to represent the following set of permissions and restrictions in ODRL 2.0:
 
"It is permitted to make up to five printed copies of the content asset, for which a fee x must be paid in advance. It is permitted to make a further five printed copies, provided an additional fee x is paid in advance. It is prohibited to make more than ten printed copies in total."
 
Here’s the ODRL I have come up with, which does validate against the ODRL.xsd, as defined inhttp://www.w3.org/community/odrl/two/xml/, so it should at least be syntactically correct. But have I got the semantics right? Any feedback most welcome.
 
<?xml version="1.0" encoding="UTF-8"?>
<o:policy xmlns:o="http://w3.org/ns/odrl/2" type="http://w3.org/ns/odrl/2/set"
    uid="http://example.org/id/a123456">
    
    <!-- The permission: allow printing up to 5 times, as long as a printing fee is paid first -->
    <o:permission xmlns:a="http://iptc.org/std/RightsML/1.0/odrlvocab/"
        xmlns:ns="http://example.org/myRightsMLvocabulary">
        <!-- The Content Asset that is the target of the permission -->
        <o:asset uid="ns:myContentAsset" relation="target"/>
        <!-- The action being permitted is printing -->
        <o:action name="o:print"/>
        <!-- The action may be performed less than or equal to 5 times -->
        <o:constraint name="o:count" operator="o:lteq" rightOperand="5"/>
        <!-- The action is permitted as long as a duty is fufilled -->
        <o:duty>
            <!-- The duty action is to make a payment -->
            <o:action name="o:pay"/>
            <!-- The duty creates an asset (i.e. it is an output): the printing fee -->
            <o:asset uid="ns:printingFee" relation="output"/>
            <!-- The duty is constrained: the date/time of the duty must be before the date/time of action that is being permitted / restricted -->
            <o:constraint name="o:dateTime" operator="o:lt" rightOperand="a:actionDateTime"/>
            <!-- The duty is constrained: the duty must be performed exactly once -->
            <o:constraint name="o:count" operator="o:eq" rightOperand="1"/>
            <!-- The "pay" duty must specify the payeeParty, i.e. who gets paid? -->
            <o:party function="o:payeeParty" uid="http://example.org/id/me"/>
        </o:duty>
    </o:permission>

    <!-- The prohibition: don't print more than 10 copies altogether -->
    <o:prohibition>
        <o:asset uid="ns:myContentAsset" relation="target"/>
        <o:action name="o:print"/>
        <o:constraint name="o:count" operator="o:gt" rightOperand="10"/>
    </o:prohibition>
</o:policy>

Regards,

Stuart
 

The information contained in this communication is intended for the use
of the designated recipients named above. If the reader of this 
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please 
notify The Associated Press immediately by telephone at +1-212-621-1898 
and delete this email. Thank you.
[IP_US_DISC]


msk dccc60c6d2c3a6438f0cf467d9a4938

Received on Thursday, 23 February 2012 02:13:14 UTC