Access Control en RDF Access Control <span property="schema:name" class="field field-node--title field-name-title field-type-string field-label-hidden">RDF Access Control</span> <span rel="schema:author" class="field field-node--uid field-name-uid field-type-entity-reference field-label-hidden"><a title="View user profile." href="/users/rolandstuehmer" lang="" about="/users/rolandstuehmer" typeof="schema:Person" property="schema:name" datatype="" class="username">roland.stuehmer</a></span> <span property="schema:dateCreated" content="2014-10-02T13:39:50+00:00" class="field field-node--created field-name-created field-type-created field-label-hidden">Thu, 10/02/2014 - 15:39</span> <div property="schema:text" class="clearfix field field-node--body field-name-body field-type-text-with-summary field-label-hidden"> <div class="field-items"> <div property="schema:text" class="field-item"><p>There are several approaches to modelling access control using <abbr title="Resource Description Format">RDF</abbr>. The approaches use <abbr title="Resource Description Format">RDF</abbr> as a modelling language for permissions linking users with user's rights on the one hand and on the other hand are used on <abbr title="Resource Description Format">RDF</abbr> data granting access to users (linking permissions with data). All approaches <em>grant</em> access to <abbr title="Resource Description Format">RDF</abbr> resources while assuming what is not granted is forbidden.</p> <h2>Related Work</h2> <p>The <strong>S4AC Vocabulary</strong> Specification 0.2<sup id="fnref:Villata et al. 2011"><a href="#fn:Villata et al. 2011" class="footnote-ref">1</a></sup> defines access rights tailored towards <abbr title="Resource Description Format">RDF</abbr> query answering, i.e. <abbr title="SPARQL Protocol and RDF Query Language">SPARQL</abbr> processing. The vocabulary defines access rights Create, Read, Update and Delete. The model is very expressive by allowing fine-grained access condition modelled as contextual queries against arbitrary context data to check. However, the integration with <abbr title="SPARQL Protocol and RDF Query Language">SPARQL</abbr> is not applicable for our system as not all operations require a query such as a plain subscription to a stream.</p> <p><strong><abbr title="Semantically-Interlinked Online Communities">SIOC</abbr> Access</strong> is a part of the <abbr title="Semantically-Interlinked Online Communities">SIOC</abbr> specification<sup id="fnref:Berrueta 2010"><a href="#fn:Berrueta 2010" class="footnote-ref">2</a></sup>. It is a very simple but extensible vocabulary to define permissions in the scope of the social Web. The vocabulary does not have any predefined rights. The lack of rights, the focus on social communities and its lack of traction on the Web are the drawbacks of this candidate when choosing a model for access control in our system.</p> <p>The <abbr title="World Wide Web Consortium">W3C</abbr> <strong>WebAccessControl (<abbr title="WebAccessControl">WAC</abbr>)</strong><sup id="fnref:Berners-Lee 2009"><a href="#fn:Berners-Lee 2009" class="footnote-ref">3</a></sup> is a generic vocabulary declaring some predefined rights (Read, Write, Append, Control) on Web information resources. Streams in our system are information resources so the vocabulary can be used without change. Access rights must be extended for our system to govern the real-time access <code>Notify</code> and <code>Subscribe</code> in addition to the predefined rights <code>Read</code> and <code>Write</code> for static data.</p> <h2>Our System, Using Access Control for Streaming Data</h2> <p>Data in our system<sup id="fnref:Stühmer et al. 2013"><a href="#fn:Stühmer et al. 2013" class="footnote-ref">4</a></sup> is organized in streams (cf. topic-based publish/subscribe). Attributing access control on a per-stream granularity was chosen. Finer granularity such as per-event attribution was discarded. The expected performance impact at runtime was thought to be unnecessarily high when having to check each event for each of its recipients before delivery. Coarser granularity such as granting access to all streams at once, however, was contradicting our requirement for multitenancy without having the ability to separate users.</p> <p>After analysing the existing <abbr title="Resource Description Format">RDF</abbr> models for access control mentioned above we concluded that <em><abbr title="World Wide Web Consortium">W3C</abbr> WebAccessControl</em> was the most viable candidate of the three available candidates S4AC, <abbr title="Semantically-Interlinked Online Communities">SIOC</abbr> Access and the <abbr title="World Wide Web Consortium">W3C</abbr> WebAccessControl. Reasons were its traction on the Web, its generality, and its ease of use compared to the other candidates (e.g. linking permissions with plain <abbr title="Resource Description Format">RDF</abbr> resources instead of complex <abbr title="SPARQL Protocol and RDF Query Language">SPARQL</abbr> queries to define rights).</p> <p>The figure below shows the concepts of WebAccessControl (<abbr title="WebAccessControl">WAC</abbr>). The bottom of the figure shows that a single permission (<code>Authorization</code> in <abbr title="WebAccessControl">WAC</abbr> terms) is a ternary relation. It consists of an agent (who can access), an information resource (what) and a mode (how), cf. middle line of the figure. An example ternary relation is: <code>Roland</code> can access the <code>TwitterFeed</code> with permissions <code>Subscribe</code> and <code>Read</code>. The top left of the figure shows an agent can be either a group or an individual user's account. User accounts can be members in groups. If accounts are defined in several locations, they can be declared to be the same.</p> <p><img src="" alt="Access Control Lists" title="Access Control Lists using the W3C WebAccessControl Vocabulary (Class Diagram)" /></p> <p>In the figure the concepts from the <abbr title="WebAccessControl">WAC</abbr> vocabulary are highlighted in blue colour. <abbr title="WebAccessControl">WAC</abbr> has predefined access rights <code>Read</code> and <code>Write</code> for static data, cf. top right of the figure. For the use with real-time data we extended <abbr title="WebAccessControl">WAC</abbr> with the rights <code>Notify</code> and <code>Subscribe</code>. The classes on white background in the figure are defined as part of this work. Finally, the classes in yellow are from the <abbr title="Semantically-Interlinked Online Communities">SIOC</abbr> vocabulary.</p> <p>The following listing in Turtle syntax shows two example authorizations <code>p0001</code> and <code>p0002</code> in the namespace <code>permission</code> starting on line 10 and 15. A user <code>person:rs</code> who is member of the group <code>group:administrators</code> is shown starting on line 20. Both permissions exhibit the ternary relation between who, what and how access is granted. The first permission states that Roland (<code>rs</code>) can access the <code>TwitterFeed</code> with permissions <code>Subscribe</code> and <code>Read</code>. The second permission states that <code>group:administrators</code> can access the <code>FacebookStatusFeed</code> with permission <code>Write</code>.</p> <p>[geshifilter-code langauge="ttl"]&#10;@prefix acl: &lt;; .&#10;@prefix foaf: &lt;; .&#10;@prefix group: &lt;; .&#10;@prefix permission: &lt;; .&#10;@prefix person: &lt;; .&#10;@prefix s: &lt;; .&#10;@prefix sioc: &lt;; .&#10;@prefix wsnt: &lt;; .&#10;&#10;permission:p0001&#10; acl:accessTo s:TwitterFeed ;&#10; acl:agent person:rs ;&#10; acl:mode wsnt:Subscribe , acl:Read .&#10;&#10;permission:p0002&#10; acl:accessTo s:FacebookStatusFeed ;&#10; acl:agent group:administrators ;&#10; acl:mode acl:Write .&#10;&#10;person:rs&#10; sioc:member_of group:administrators ;&#10; owl:sameAs &lt;; .&#10;[/geshifilter-code]</p> <p>When defining permissions, the streams are modelled as information resources (e.g. <code>http://.../TwitterFeed</code> on line 11 without the trailing <code>#stream</code>). Elsewhere, streams are modelled with their non-information resource (e.g. <code>http://.../TwitterFeed#stream</code>). Making this distinction (cf. the so-called <a href="">httpRange-14 issue</a>) we can attribute different metadata to the information for the stream (e.g. annotate permissions) and to the real-world stream (e.g. annotate its real-world event source or author).</p> <div class="footnotes"> <hr /> <ol> <li id="fn:Villata et al. 2011"> <p>Villata, S.; Delaforge, N. &amp; Gandon, F. <a href="">S4AC Vocabulary Specification 2011</a>&#160;<a href="#fnref:Villata et al. 2011" class="footnote-backref">&#8617;&#xFE0E;</a></p> </li> <li id="fn:Berrueta 2010"> <p>Berrueta, D. <a href=""><abbr title="Semantically-Interlinked Online Communities">SIOC</abbr> Core Ontology Specification 2010</a>&#160;<a href="#fnref:Berrueta 2010" class="footnote-backref">&#8617;&#xFE0E;</a></p> </li> <li id="fn:Berners-Lee 2009"> <p>Berners-Lee, T. <a href="">WebAccessControl, 2009</a>&#160;<a href="#fnref:Berners-Lee 2009" class="footnote-backref">&#8617;&#xFE0E;</a></p> </li> <li id="fn:Stühmer et al. 2013"> <p>Stühmer, R.; Verginadis, Y.; Alshabani, I.; Morsellino, T. &amp; Aversa, A. <a href="">PLAY: Semantics-based Event Marketplace 14th IFIP Working Conference on Virtual Enterprise -- Special Session on Event-Driven Collaborative Networks (2013)</a>&#160;<a href="#fnref:Stühmer et al. 2013" class="footnote-backref">&#8617;&#xFE0E;</a></p> </li> </ol> </div> </div> </div> </div> <section class="field field-node--comment-node-article field-name-comment-node-article field-type-comment field-label-hidden comment-wrapper"> </section> <div class="field field-node--field-tags field-name-field-tags field-type-entity-reference field-label-inline clearfix"> <div class="field-label">Tags</div> <div class="field-items"> <div class="field-item"><a href="/tags/rdf" property="schema:about" hreflang="en">RDF</a></div> <div class="field-item"><a href="/tags/access-control" property="schema:about" hreflang="en">Access Control</a></div> <div class="field-item"><a href="/tags/web" property="schema:about" hreflang="en">Web</a></div> <div class="field-item"><a href="/tags/semantic-web" property="schema:about" hreflang="en">Semantic Web</a></div> </div> </div> Thu, 02 Oct 2014 13:39:50 +0000 roland.stuehmer 42 at