- From: Renato Iannella <r@iannel.la>
- Date: Thu, 11 Apr 2024 17:17:15 +1000
- To: Joshua Cornejo <josh@marketdata.md>
- Cc: "public-odrl@w3.org" <public-odrl@w3.org>
- Message-Id: <E63285A5-CFED-4E45-8B7D-8C6FFDF4B815@iannel.la>
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
Received on Thursday, 11 April 2024 07:17:36 UTC