Skip to content

Conversation

@woutslabbinck
Copy link
Collaborator

@woutslabbinck woutslabbinck commented Dec 2, 2025

Generalise the request input for the ODRL Evaluator through extending the constraint input under sotw:Context for odrl:purpose to work with all odrl:LeftOperand instantiations.

From now on, the ODRL Evaluator can evaluate input such as:

Request

@prefix ex: <http://example.org/> .
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix sotw: <https://w3id.org/force/sotw#> .

<urn:uuid:ce9fc20e-7c79-474e-8afe-7605accccee8> a odrl:Request ;
  odrl:uid <urn:uuid:ce9fc20e-7c79-474e-8afe-7605accccee8> ;
  odrl:permission <urn:uuid:ce9fc20> .

<urn:uuid:ce9fc20> a odrl:Permission ;
  odrl:assignee ex:alice ;
  odrl:action odrl:read ;
  odrl:target ex:x ;
  sotw:context <urn:uuid:79794c05-a9e8-4ec7-afe1-54ac3b16de41> .

<urn:uuid:79794c05-a9e8-4ec7-afe1-54ac3b16de41> a odrl:Constraint ;
  odrl:leftOperand odrl:deliveryChannel ;
  odrl:operator odrl:eq ;
  odrl:rightOperand <https://podpro.dev/id> .

Policy

@prefix ex: <http://example.org/> .
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .

<urn:uuid:5ee1a7dd-ccba-49a4-92e8-6cc375509efd> a odrl:Agreement ;
  odrl:uid <urn:uuid:5ee1a7dd-ccba-49a4-92e8-6cc375509efd> ;
  odrl:permission <urn:uuid:e51a43e4-616f-4f32-906b-2359955228e5> .

<urn:uuid:e51a43e4-616f-4f32-906b-2359955228e5> a odrl:Permission ;
  odrl:assignee ex:alice ;
  odrl:action odrl:read ;
  odrl:target ex:x ;
  odrl:constraint <urn:uuid:963698fe-3b44-4b88-8527-501b6c5765a6> .

<urn:uuid:963698fe-3b44-4b88-8527-501b6c5765a6> a odrl:Constraint ;
  odrl:leftOperand odrl:deliveryChannel ;
  odrl:operator odrl:eq ;
  odrl:rightOperand <https://podpro.dev/id> .

@woutslabbinck woutslabbinck merged commit 8448da9 into main Dec 2, 2025
12 checks passed
@woutslabbinck woutslabbinck deleted the feat/generic-request-context branch December 2, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants