Skip to content

Latest commit

 

History

History
92 lines (88 loc) · 4.36 KB

testcase-034-alice-read-x-past.md

File metadata and controls

92 lines (88 loc) · 4.36 KB

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

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

ALICE may NOT READ resource X at 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: <http://example.com/report/temp/>.

<urn:uuid:16aa64e3-1495-486d-a5ad-81211961e915> a odrl:Set;
    odrl:uid <urn:uuid:16aa64e3-1495-486d-a5ad-81211961e915>;
    dct:description "ALICE may NOT READ resource X at 2024-02-12T11:20:10.999Z.";
    dct:source <https://github.com/SolidLabResearch/ODRL-Test-Suite/>;
    odrl:permission <urn:uuid:512ad75a-22da-4142-ba42-0a39a217ba29>.
<urn:uuid:512ad75a-22da-4142-ba42-0a39a217ba29> 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:neq;
    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: <http://example.com/report/temp/>.

<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: <http://example.com/report/temp/>.

temp:currentTime dct:issued "2017-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: <http://example.com/report/temp/>.

<urn:uuid:09ebc94d-c90c-4e67-8d65-d5fb13a475f5> a report:PolicyReport;
    dct:created "2017-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:policy <urn:uuid:16aa64e3-1495-486d-a5ad-81211961e915>;
    report:policyRequest <urn:uuid:1bafee59-006c-46a3-810c-5d176b4be364>;
    report:ruleReport <urn:uuid:af9b2810-d655-432c-bf95-8795d2298dfb>.
<urn:uuid:af9b2810-d655-432c-bf95-8795d2298dfb> a report:PermissionReport;
    report:attemptState report:Attempted;
    report:rule <urn:uuid:512ad75a-22da-4142-ba42-0a39a217ba29>;
    report:ruleRequest <urn:uuid:186be541-5857-4ce3-9f03-1a274f16bf59>;
    report:premiseReport <urn:uuid:4b567d7e-4ead-4136-8b73-6ce0ad5c214a>, <urn:uuid:287faba4-a25a-4e60-968e-c3aed695c13a>, <urn:uuid:c55dc77f-b230-4aed-99b2-49b4d9d9e0cc>, <urn:uuid:3c8f3532-fd82-45b0-b0b5-dba3d39859be>;
    report:activationState report:Active.
<urn:uuid:4b567d7e-4ead-4136-8b73-6ce0ad5c214a> a report:ConstraintReport;
    report:constraint <urn:uuid:constraint:86526f9b-57c2-4c94-b079-9762fec562f1>;
    report:constraintLeftOperand "2017-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:constraintOperator odrl:neq;
    report:constraintRightOperand "2024-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:satisfactionState report:Satisfied.
<urn:uuid:287faba4-a25a-4e60-968e-c3aed695c13a> a report:TargetReport;
    report:satisfactionState report:Satisfied.
<urn:uuid:c55dc77f-b230-4aed-99b2-49b4d9d9e0cc> a report:PartyReport;
    report:satisfactionState report:Satisfied.
<urn:uuid:3c8f3532-fd82-45b0-b0b5-dba3d39859be> a report:ActionReport;
    report:satisfactionState report:Satisfied.