Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/w3c/odrl
Browse files Browse the repository at this point in the history
  • Loading branch information
riannella committed Oct 8, 2024
2 parents f4d4b3f + cd9b8bb commit 549c746
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 10 deletions.
78 changes: 78 additions & 0 deletions community-vocab/community.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX odrl: <http://www.w3.org/ns/odrl/2/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX profile: <http://www.w3.org/ns/dx/prof/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX role: <http://www.w3.org/ns/dx/prof/role/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX sw: <http://www.w3.org/2003/06/sw-vocab-status/ns#>
PREFIX vann: <http://purl.org/vocab/vann/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

PREFIX odrl-comm: <#odrl-comm-namespace>

# ------------ TODO: Ontology Metadata ------------------ #

# ------------ Action Concepts ------------------ #

odrl-comm:create a odrl:Action, skos:Concept ;
rdfs:isDefinedBy odrl-comm: ;
rdfs:label "Create"@en ;
rdfs:comment "To create the Asset."@en ;
skos:definition "To create the Asset."@en ;
dcterms:source <https://github.com/w3c/odrl/issues/35> .

# ------------ Operator Concepts ------------------ #

odrl-comm:isNotA a odrl:Operator, owl:NamedIndividual, skos:Concept ;
rdfs:isDefinedBy odrl-comm: ;
rdfs:label "Is not a"@en ;
rdfs:comment "Indicates that a given value is not an instance of the Right Operand of the Constraint."@en ;
skos:definition "Indicates that a given value is not an instance of the Right Operand of the Constraint."@en ;
skos:example "The purpose constraint of a rule can not be an instance of academic research purpose."@en ;
dcterms:source <https://github.com/w3c/odrl/issues/27>, <https://w3id.org/oac#isNotA> .

odrl-comm:seq a odrl:Operator, owl:NamedIndividual, skos:Concept ;
rdfs:isDefinedBy odrl-comm: ;
rdfs:label "Semantic equivalence"@en ;
rdfs:comment "Indicates that a given value is equal to, an instance or a subclass of the Right Operand of the Constraint."@en ;
skos:definition "Indicates that a given value is equal to, an instance or a subclass of the Right Operand of the Constraint."@en ;
skos:example "The purpose constraint of a rule can be research and development, an instance of research and development or one of its subclasses such as academic research, non-commercial research or commercial research."@en ;
dcterms:source <https://github.com/w3c/odrl/issues/28>, <https://w3id.org/oac#semantic>, <https://w3id.org/aiup#seq> .

odrl-comm:subclass a odrl:Operator, owl:NamedIndividual, skos:Concept ;
rdfs:isDefinedBy odrl-comm: ;
rdfs:label "Subclass of"@en ;
rdfs:comment "Indicates that a given value is a subclass of the Right Operand of the Constraint."@en ;
skos:definition "Indicates that a given value is a subclass of the Right Operand of the Constraint."@en ;
skos:example "The purpose constraint of a rule can be a subclass of research and development such as academic research, non-commercial research or commercial research."@en ;
skos:note "Right operand value MUST use vocabularies that explicitely define subclass relationships, e.g., using rdfs:subClassOf."@en ;
dcterms:source <https://github.com/w3c/odrl/issues/28>, <https://w3id.org/oac#subclass> .

# ------------ Policy Concepts ------------------ #

odrl-comm:Preference a rdfs:Class , owl:Class, skos:Concept ;
rdfs:subClassOf odrl:Policy ;
owl:disjointWith odrl:Agreement, odrl:Offer, odrl:Privacy, odrl:Request, odrl:Ticket, odrl:Assertion ;
rdfs:isDefinedBy odrl-comm: ;
rdfs:label "Preference Policy"@en ;
rdfs:comment "A Preference Policy is a policy that contains information about the assigner's preferences over an Asset which MAY not be satisfied."@en ;
skos:definition "A Preference Policy is a policy that contains information about the assigner's preferences over an Asset which MAY not be satisfied."@en ;
skos:note "A Preference Policy MUST contain at least one Permission or Prohibition rule, an Action, a target Asset and a Party with Assigner function (in the same Permission or Prohibition). The Preference Policy MAY contain a Party with Assignee, but MUST not grant any privileges to those Parties."@en ;
skos:example "If a preference policy set by a party A does not match a request policy from party B, the request can still be accepted if party A accepts party B's request conditions."@en ;
dcterms:source <https://github.com/w3c/odrl/issues/21>, <https://w3id.org/oac#Preference> .

# ------------ Party Concepts ------------------ #

odrl-comm:issuedPolicy a rdf:Property, owl:ObjectProperty, skos:Concept ;
rdfs:isDefinedBy odrl-comm: ;
rdfs:label "Issued policy"@en ;
rdfs:comment "Indicates that a Party issued a Policy."@en ;
skos:definition "Indicates that a Party issued a Policy."@en ;
skos:example "Method used to indicate that a party, e.g., Alice, has issued a policy, e.g., related to her preferences for data sharing."@en ;
rdfs:domain odrl:Party ;
rdfs:range odrl:Policy ;
dcterms:source <https://github.com/w3c/odrl/issues/21> .
8 changes: 4 additions & 4 deletions community-vocab/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
</head>
<body>
<section id="abstract">
<p>This document </p>
<p></p>
<p>
This document contains a community-supplied set of general terms that are useful across difference use cases
where the usage of ODRL policies is desirable.
</p>
</section>

<section id='sotd'>
Expand Down
12 changes: 6 additions & 6 deletions formal-semantics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h4>Example of a constrained permission</h4>
This is the situation of the following case, similar to <a href="https://www.w3.org/TR/odrl-model/#constraint-rule">Example 13</a>
in the ODRL Information Model 2.2. The permission below allows the target asset <code>http://example.com/document:1234</code> to be distributed,
it includes the constraint that the permission may only be exercised until 2018-01-01.
The permission is granted by the organization identified by the URL <code>http://example.com/org:616</code>.
The permission is granted by the organization identified by the URL <code>http://example.com/party/16</code>.
</p>

<pre>
Expand Down Expand Up @@ -319,9 +319,9 @@ <h4>Example of a constrained permission</h4>

<p><i>Monitoring scenario:</i></p>
<ul>
<li>If such an action belongs to the class of actions regulated by the Permission and the Permission is active,
<li>(E-13-3)If such an action belongs to the class of actions regulated by the Permission and the Permission is active,
then the action is permitted and the Permission is used by the performed action.</li>
<li>If such an action belongs to the class of actions regulated by the Permission and the Permission is inactive,
<li>(E-13-4)If such an action belongs to the class of actions regulated by the Permission and the Permission is inactive,
then nothing can be deduced.</li>
</ul>
<table border="1" style="font-size:small;">
Expand Down Expand Up @@ -386,13 +386,13 @@ <h4>Example of a permission whose permitted action is refined</h4>
</p>
<p><i>Access control scenario:</i></p>
<ul>
<li>(E14-1-ac) If such the attempted action belongs to the class of actions regulated by the Permission
<li>(E14-1) If such the attempted action belongs to the class of actions regulated by the Permission
(i.e.: its <code>type</code> is <code>print</code>,
its <code>object</code> is equale to <code>http://example.com/document:1234</code> and
its <code>resolution</code> is less than or equal to 1200 dpi (it satisfies the refinement))
then the Permission is active and the attempted action can be performed.
</li>
<li>(E14-2-ac) If such the attempted action belongs to the class of actions regulated by the Permission,
<li>(E14-2) If such the attempted action belongs to the class of actions regulated by the Permission,
but the refinement of the action is not satisfied (i.e. its <code>resolution</code> is more than 1200 dpi),
then the Permission is inactive.
Assuming that only this Permission is considered (this is because other permissions could regulate this action),
Expand Down Expand Up @@ -458,7 +458,7 @@ <h4>Example of a permission whose permitted action is refined</h4>

<h3>Evaluation of conditions</h3>
<p>
A Condition is <b>fulfilled</b> if all its constraints are satisfied and
A Condition (duty) is <b>fulfilled</b> if all its constraints are satisfied and
if its action, with all refinements satisfied, has been performed.
</p>
<ol>
Expand Down

0 comments on commit 549c746

Please sign in to comment.