Cedar -> ODRL

Hi,

 

Gabriel: - are you doing the mappings from ODRL to Cedar like this example below:

 

Cedar:

 

permit ( principal, action == Action::"GetList", resource)
        when {
        principal in resource.editors || principal in resource.readers
        };


ODRL:


ex:refExample1                 a odrl:Constraint;
                odrl:leftOperand odrl:recipient;
                   odrl:operator odrl:isPart;
               odrl:RightOperand ex:editorSet.

ex:refExample2                 a odrl:Constraint;
                odrl:leftOperand odrl:recipient;
                   odrl:operator odrl:isPart;
               odrl:RightOperand ex:ReaderSet.

ex:refExample                  a odrl:LogicalConstraint;
                    odrl:operand odrl:or;
                       odrl:list ex:refExample1, ex:refExample2. 
    
ex:actionRefinement            a rdf:Property;
                       rdf:value aws:getList;
                 odrl:refinement ex:refExample.

ex:permissionExample           a odrl:Permisson;
                     odrl:action ex:actionRefinement.

ex:policyExample               a odrl:Offer;
                 odrl:permission ex:permissionExample.

 

 

Regards,

___________________________________

Joshua Cornejo

marketdata

embed open standards 

across your supply chain

Received on Tuesday, 3 September 2024 12:07:05 UTC