The following example demonstrates how you can leverage the combined power of a SPARQL ASK Query, Social Relationship Semantics, and Web-accessible Linked Data to constrain access to a protected resource. Basically, you need to:
The following packages should be installed, prior to performing this exercise:
http://id.myopenlink.net/dataspace/person/john#this
<foaf:knows> <http://id.myopenlink.net/dataspace/person/john#this>
foaf:knows
; http://id.myopenlink.net/dataspace/person/john#this
;
prefix sioc: <http://rdfs.org/sioc/ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix foaf: <http://xmlns.com/foaf/0.1/> ASK where {^{webid}^ rdf:type foaf:Person; foaf:knows <http://id.myopenlink.net/dataspace/person/john#this>}
https://host:port/DAV/home/John/WebIDPlayground/
if she authenticates with her X 509. WebID Watermarked Certificate https://host:port/DAV/home/John/WebIDPlayground/