Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odrl:payAmount (possible for 3.0?) #59

Open
joshcornejo opened this issue Jun 4, 2024 · 5 comments
Open

odrl:payAmount (possible for 3.0?) #59

joshcornejo opened this issue Jun 4, 2024 · 5 comments

Comments

@joshcornejo
Copy link
Collaborator

In practice, prices will vary independently from policies, generating policies on the fly with allocated prices is not always going to be practical (most likely a small percentage of use cases). One option is to decouple the value of the payment from normative MUST be xsd:decimal and introducing a URI reference to a pricing list that can change independently. A second option is to introduce a new operand (odrl:paymentReference / odrl:pricingReference) that can separately evaluate at runtime the cost based on < asset, action, pricing list >.

:payAmount
	a :LeftOperand, owl:NamedIndividual, skos:Concept ;
	rdfs:isDefinedBy odrl: ;
	rdfs:label "Payment Amount"@en ;
	skos:definition "The amount of a financial payment. Right operand value MUST be an xsd:decimal. "@en ;
	skos:note "Can be used for compensation duties with the unit property indicating the currency of the payment."@en ;
    skos:scopeNote "Non-Normative"@en .
@riannella
Copy link
Collaborator

Can you use rightOperandReference ?
https://www.w3.org/TR/odrl-model/#constraint-class

@joshcornejo
Copy link
Collaborator Author

I am doing that at the moment ('the price for this action for this asset is ... over there') ... i am not sure that the payAmount wording is aligned with how the lifecycle of assets and prices are "updated" in separate planes. People will either move to build this in a new profile (extra cost of interoperability) or miss the value of duties (too disconnected from the real world).

If rightOperandReference is the right way forward, perhaps we should add more examples for clarity?

ex:someConstraint           a odrl:Constraint;
             odrl:leftOperand odrl:payAmount;
                odrl:operator odrl:eq;
   odrl:rightOperandReference ex:RoURI.
ex:RoURI                    a ex:ExampleRightOperandURIDefinition;
                  ex:assetRef ex:AssetURI;
                ex:pricingRef ex:PriceListURI.

@riannella
Copy link
Collaborator

Yes...add more examples !!!

@vroddon
Copy link
Collaborator

vroddon commented Oct 4, 2024

Added @joshcornejo to add the example to the best practices document.

@vroddon
Copy link
Collaborator

vroddon commented Nov 19, 2024

reminder for @joshcornejo to create a pull request in the best practices document. Please note that if "fibo" vocabulary elements are present, they are preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants