Skip to content

Latest commit

 

History

History
92 lines (88 loc) · 4.43 KB

File metadata and controls

92 lines (88 loc) · 4.43 KB

Read request from Alice to resource X returns into yes (temporal gt - future) (Alice Request Read X).

Source: https://github.com/SolidLabResearch/ODRL-Test-Suite/

ALICE may READ resource X when it is later than 2024-02-12T11:20:10.999Z.

ODRL Policy

@prefix odrl: <http://www.w3.org/ns/odrl/2/>.
@prefix ex: <http://example.org/>.
@prefix temp: <http://example.com/request/>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix report: <https://w3id.org/force/compliance-report#>.

<urn:uuid:9fcff55b-33bd-4c8f-bcd7-9e206e4dbbbe> a odrl:Set;
    odrl:uid <urn:uuid:9fcff55b-33bd-4c8f-bcd7-9e206e4dbbbe>;
    dct:description "ALICE may READ resource X when it is later than 2024-02-12T11:20:10.999Z.";
    dct:source <https://github.com/SolidLabResearch/ODRL-Test-Suite/>;
    odrl:permission <urn:uuid:641a79e0-0633-46c5-afe8-616e36701404>.
<urn:uuid:641a79e0-0633-46c5-afe8-616e36701404> a odrl:Permission;
    odrl:assignee ex:alice;
    odrl:action odrl:read;
    odrl:target ex:x;
    odrl:constraint <urn:uuid:constraint:86526f9b-57c2-4c94-b079-9762fec562f1>.
<urn:uuid:constraint:86526f9b-57c2-4c94-b079-9762fec562f1> odrl:leftOperand odrl:dateTime;
    odrl:operator odrl:gt;
    odrl:rightOperand "2024-02-12T11:20:10.999Z"^^xsd:dateTime.

ODRL Request

@prefix odrl: <http://www.w3.org/ns/odrl/2/>.
@prefix ex: <http://example.org/>.
@prefix temp: <http://example.com/request/>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix report: <https://w3id.org/force/compliance-report#>.

<urn:uuid:1bafee59-006c-46a3-810c-5d176b4be364> a odrl:Request;
    odrl:uid <urn:uuid:1bafee59-006c-46a3-810c-5d176b4be364>;
    dct:description "Requesting Party ALICE requests to READ resource X.";
    odrl:permission <urn:uuid:186be541-5857-4ce3-9f03-1a274f16bf59>.
<urn:uuid:186be541-5857-4ce3-9f03-1a274f16bf59> a odrl:Permission;
    odrl:assignee ex:alice;
    odrl:action odrl:read;
    odrl:target ex:x.

State of the world

@prefix odrl: <http://www.w3.org/ns/odrl/2/>.
@prefix ex: <http://example.org/>.
@prefix temp: <http://example.com/request/>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix report: <https://w3id.org/force/compliance-report#>.

temp:currentTime dct:issued "2025-02-12T11:20:10.999Z"^^xsd:dateTime.

Evaluation result: Compliance Report

@prefix odrl: <http://www.w3.org/ns/odrl/2/>.
@prefix ex: <http://example.org/>.
@prefix temp: <http://example.com/request/>.
@prefix dct: <http://purl.org/dc/terms/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix report: <https://w3id.org/force/compliance-report#>.

<urn:uuid:510ca28e-3973-4031-a10f-29a379d96b02> a report:PolicyReport;
    dct:created "2025-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:policy <urn:uuid:9fcff55b-33bd-4c8f-bcd7-9e206e4dbbbe>;
    report:policyRequest <urn:uuid:1bafee59-006c-46a3-810c-5d176b4be364>;
    report:ruleReport <urn:uuid:912b8d3a-b13c-42a2-a08e-12b1d6373758>.
<urn:uuid:912b8d3a-b13c-42a2-a08e-12b1d6373758> a report:PermissionReport;
    report:attemptState report:Attempted;
    report:rule <urn:uuid:641a79e0-0633-46c5-afe8-616e36701404>;
    report:ruleRequest <urn:uuid:186be541-5857-4ce3-9f03-1a274f16bf59>;
    report:premiseReport <urn:uuid:415e90c7-c10d-4688-a37b-bd6ddd964572>, <urn:uuid:d4f30bb4-844b-494f-a93e-d9e0641c560b>, <urn:uuid:91657f54-abac-4de7-a747-576d081d081b>, <urn:uuid:dcb3b3fe-e7f9-495a-b3b9-eb2a2779bf43>;
    report:activationState report:Active.
<urn:uuid:415e90c7-c10d-4688-a37b-bd6ddd964572> a report:ConstraintReport;
    report:constraint <urn:uuid:constraint:86526f9b-57c2-4c94-b079-9762fec562f1>;
    report:constraintLeftOperand "2025-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:constraintOperator odrl:gt;
    report:constraintRightOperand "2024-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:satisfactionState report:Satisfied.
<urn:uuid:d4f30bb4-844b-494f-a93e-d9e0641c560b> a report:TargetReport;
    report:satisfactionState report:Satisfied.
<urn:uuid:91657f54-abac-4de7-a747-576d081d081b> a report:PartyReport;
    report:satisfactionState report:Satisfied.
<urn:uuid:dcb3b3fe-e7f9-495a-b3b9-eb2a2779bf43> a report:ActionReport;
    report:satisfactionState report:Satisfied.