blob: 930ce8f0876ea007f71f619d9c09b1fc7287ccdb [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:skos="http://www.w3.org/2008/05/skos#"
>
<!-- Ontology -->
<owl:Ontology rdf:about="http://clerezza.org/2008/10/permission#">
<owl:versionInfo>Revision: 0.1</owl:versionInfo>
<dc:title xml:lang="en">
Clerezza Permission Ontology Namespace
</dc:title>
</owl:Ontology>
<!-- Classes -->
<rdfs:Class rdf:about="http://clerezza.org/2008/10/permission#Role">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
<rdfs:label xml:lang="en">Role</rdfs:label>
<skos:definition xml:lang="en">A role is a set of connected
rights</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
</rdfs:Class>
<rdfs:Class rdf:about="http://clerezza.org/2008/10/permission#BaseRole">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
<rdfs:label xml:lang="en">Base Role</rdfs:label>
<skos:definition xml:lang="en">A base role is a set of connected
rights that every user automatically has.</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
</rdfs:Class>
<rdfs:Class rdf:about="http://clerezza.org/2008/10/permission#Permission">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
<rdfs:label xml:lang="en">Permission</rdfs:label>
<skos:definition xml:lang="en">A permission is the right to access
a resource or to perform a specific action</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
</rdfs:Class>
<rdfs:Class rdf:about="http://clerezza.org/2008/10/permission#PermissionAssignment">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
<rdfs:label xml:lang="en">PermissionAssignment</rdfs:label>
<skos:definition xml:lang="en">Describes an assignment of permissions, i.e.
a set of roles (optionally inherited from a set of users) to a set of
Bundles defined by one or more location patterns.</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
</rdfs:Class>
<!-- Properties -->
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#hasPermission">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
<rdfs:label xml:lang="en">hasPermission</rdfs:label>
<skos:definition xml:lang="en">Points to a permission that has been
granted to the subject</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:domain rdf:resource="http://clerezza.org/2008/10/permission#Role" />
<rdfs:range rdf:resource="http://clerezza.org/2008/10/permission#Permission"/>
</rdf:Property>
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#hasLocationPattern">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
<rdfs:label xml:lang="en">hasLocationPattern</rdfs:label>
<skos:definition xml:lang="en">Points to a location pattern against which the
subject applies.</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:domain rdf:resource="http://clerezza.org/2008/10/permission#PermissionAssignment" />
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#hasRole">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
<rdfs:label xml:lang="en">hasRole</rdfs:label>
<skos:definition xml:lang="en">Points to a role whose permissions are
granted to the bundles matching the locationPattern of the subject.</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:domain rdf:resource="http://clerezza.org/2008/10/permission#PermissionAssignment" />
<rdfs:range rdf:resource="http://clerezza.org/2008/10/permission#Role"/>
</rdf:Property>
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#javaPermissionEntry">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#InverseFunctionalProperty" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
<rdfs:label xml:lang="en">javaPermissionEntry</rdfs:label>
<skos:definition xml:lang="en">Points to a String defining the permission
in one of the following formats:
(type) or (type "name") or (type "name" "actions")
E.g., (java.util.PropertyPermission "java.version", "read") </skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:domain rdf:resource="http://clerezza.org/2008/10/permission#Permission" />
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#passwordSha1">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
<rdfs:label xml:lang="en">passwordSha1</rdfs:label>
<skos:definition xml:lang="en">Points to a string of hex values
expressed using digits and the lower-case letters a-f encoding the password with the SHA1
algorithm, for encoding the password it is expressed as sequence of utf-8 encoded
characters of its normal form C (NFC). In Java if s is a string expressing the password
in NFC, java.security.MessageDigest.getInstance("SHA1").digest(s.getBytes("UTF-8"))
will return the sequence of bytes to be hex-encoded as value of this property.
</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Agent" />
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#password">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty" />
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty" />
<rdfs:label xml:lang="en">password</rdfs:label>
<skos:definition xml:lang="en">Points to an unencoded password string.
</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Agent" />
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
</rdf:Property>
<rdf:Property rdf:about="http://clerezza.org/2008/10/permission#permIcon">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty" />
<rdfs:label xml:lang="en">permIcon</rdfs:label>
<skos:definition xml:lang="en">Points to an image icon representing the permission.
</skos:definition>
<rdfs:isDefinedBy rdf:resource="http://clerezza.org/2008/10/permission#" />
<rdfs:range rdf:resource="http://discobits.org/ontology#InfoDiscoBit"/>
</rdf:Property>
</rdf:RDF>