- From: Víctor Rodríguez Doncel <vrodriguez@fi.upm.es>
- Date: Thu, 11 Apr 2024 13:55:51 +0200
- To: public-odrl@w3.org
- Message-ID: <dbedddae-5f55-9139-7df8-647fe724713e@fi.upm.es>
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
Received on Thursday, 11 April 2024 11:55:55 UTC