- From: Víctor Rodríguez Doncel <vrodriguez@fi.upm.es>
- Date: Thu, 11 Apr 2024 15:37:39 +0200
- To: public-odrl@w3.org
- Message-ID: <39a7ee4c-6e9f-6d7c-5d8e-38d175e7437b@fi.upm.es>
Hi, Sorry for my empty answer. I just wanted to confirm that with the right quotation from the spec https://www.w3.org/TR/odrl-model/ 2.5Constraints Constraints are boolean/logical expressions that can be used to refine the semantics of an Action and Party/Asset Collection or declare the conditions applicable to a Rule. Constraints can be represented as a*Constraint*class or*Logical Constraint*class. A Logical Constraint will refer to existing Constraints as its operands. When multiple Constraints apply to the same Rule, Action, Party/Asset Collection, then they are interpreted as conjunction and all/MUST/be satisfied. Regards, Víctor El 11/04/2024 a las 13:55, Víctor Rodríguez Doncel escribió: > > > El 11/04/2024 a las 9:17, Renato Iannella escribió: >> In this case, they mean the same as multiple (non-logical) >> constraints must ALL be satisfied. >> >> Cheers - Renato >> >>> On 11 Apr 2024, at 05:07, Joshua Cornejo <josh@marketdata.md> wrote: >>> >>> I have a question about example 5: >>> >>> * What is the difference (if any) between having a list of >>> constraints and a logical constraint with the “and”? >>> >>> { >>> "@context":"http://www.w3.org/ns/odrl.jsonld", >>> "@type":"Set", >>> "uid":"https://w3c.github.io/odrl/bp/examples/5", >>> "permission": [{ >>> "target":"http://example.com/asset:9898.movie", >>> "action":"display", >>> "constraint": [{ >>> "leftOperand":"dateTime", >>> "operator":"gte", >>> "rightOperand": {"@value":"2019-01-01","@type":"xsd:date"} >>> }, { >>> "leftOperand":"spatial", >>> "operator":"eq", >>> "rightOperand": "https://www.wikidata.org/resource/Q183", >>> "comment":"i.e Germany" >>> }] >>> }] >>> } >>> With and: >>> { >>> "@context":"http://www.w3.org/ns/odrl.jsonld", >>> "@type":"Set", >>> "uid":"https://w3c.github.io/odrl/bp/examples/5", >>> "permission": [{ >>> "target":"http://example.com/asset:9898.movie", >>> "action":"display", >>> * “constraint” : [* >>> * “and”: { * >>> * "@list": [* >>> * { "@id": "http://example.com/p:5/C1" },* >>> *{ "@id": "http://example.com/p:5/C2" }* >>> * ]* >>> }] >>> }] >>> } >>> Regards, >>> ___________________________________ >>> *Joshua Cornejo* >>> *marketdata <https://www.marketdata.md/>* >>> embed open standards >>> across your supply chain >> > > -- > Víctor Rodríguez-Doncel > D2110 - Ontology Engineering Group (OEG) > Departamento de Inteligencia Artificial > ETS de Ingenieros Informáticos > Universidad Politécnica de Madrid > https://cosasbuenas.es -- Víctor Rodríguez-Doncel D2110 - Ontology Engineering Group (OEG) Departamento de Inteligencia Artificial ETS de Ingenieros Informáticos Universidad Politécnica de Madrid https://cosasbuenas.es
Received on Thursday, 11 April 2024 13:37:45 UTC