Skip to content

Latest commit

 

History

History
85 lines (81 loc) · 3.79 KB

testcase-054-alice-read-y.md

File metadata and controls

85 lines (81 loc) · 3.79 KB

Read request from Alice to resource in asset collection returns into yes (Alice Request Read Y).

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

ALICE may READ any resource from the Asset Collection.

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:e30bcd34-0d5c-43d1-b229-bf68afcae5ae> a odrl:Set;
    odrl:uid <urn:uuid:e30bcd34-0d5c-43d1-b229-bf68afcae5ae>;
    dct:description "ALICE may READ any resource from the Asset Collection.";
    dct:source <https://github.com/SolidLabResearch/ODRL-Test-Suite/>;
    odrl:permission <urn:uuid:f4cb5007-e834-4a9c-a62a-091891350c04>.
<urn:uuid:f4cb5007-e834-4a9c-a62a-091891350c04> a odrl:Permission;
    odrl:assignee ex:alice;
    odrl:action odrl:read;
    odrl:target ex:assetCollection.
ex:assetCollection a odrl:AssetCollection;
    odrl:source ex:assetIdentifier.

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:b384ec45-0f24-4be6-86ba-91a749c698ed> a odrl:Request;
    odrl:uid <urn:uuid:b384ec45-0f24-4be6-86ba-91a749c698ed>;
    dct:description "Requesting Party Alice requests to READ resource Y.";
    odrl:permission <urn:uuid:35d4666e-8fbd-4677-8671-2875eee26a1b>.
<urn:uuid:35d4666e-8fbd-4677-8671-2875eee26a1b> a odrl:Permission;
    odrl:assignee ex:alice;
    odrl:action odrl:read;
    odrl:target ex:y.

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 "2024-02-12T11:20:10.999Z"^^xsd:dateTime.
ex:x odrl:partOf ex:assetIdentifier.

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:3a2f5c93-ee01-4856-833c-12be09978c0c> a report:PolicyReport;
    dct:created "2024-02-12T11:20:10.999Z"^^xsd:dateTime;
    report:policy <urn:uuid:e30bcd34-0d5c-43d1-b229-bf68afcae5ae>;
    report:policyRequest <urn:uuid:b384ec45-0f24-4be6-86ba-91a749c698ed>;
    report:ruleReport <urn:uuid:5692542e-a60d-447f-9f8a-3b4f6cadde29>.
<urn:uuid:5692542e-a60d-447f-9f8a-3b4f6cadde29> a report:PermissionReport;
    report:attemptState report:Attempted;
    report:rule <urn:uuid:f4cb5007-e834-4a9c-a62a-091891350c04>;
    report:ruleRequest <urn:uuid:35d4666e-8fbd-4677-8671-2875eee26a1b>;
    report:premiseReport <urn:uuid:c6267db4-c2da-4ed7-9382-0f307ce86635>, <urn:uuid:de0f3292-8665-4764-a2a7-c8d37aee9c2a>, <urn:uuid:c5446f77-fc33-4c89-8caa-94db0ee9b75e>;
    report:activationState report:Inactive.
<urn:uuid:c6267db4-c2da-4ed7-9382-0f307ce86635> a report:TargetReport;
    report:satisfactionState report:Unsatisfied.
<urn:uuid:de0f3292-8665-4764-a2a7-c8d37aee9c2a> a report:PartyReport;
    report:satisfactionState report:Satisfied.
<urn:uuid:c5446f77-fc33-4c89-8caa-94db0ee9b75e> a report:ActionReport;
    report:satisfactionState report:Satisfied.