W3C home > Mailing lists > Public > public-xg-webid@w3.org > December 2011

The SPARQL Query

From: Mischa Tuffield <mischa@mmt.me.uk>
Date: Wed, 14 Dec 2011 10:50:22 +0000
Message-Id: <D015643B-1336-4D71-BF71-EA67F555058C@mmt.me.uk>
To: "public-xg-webid@w3.org XG" <public-xg-webid@w3.org>
Hello All, 

Given that the Cert Ontology defines both http://www.w3.org/ns/auth/cert#key and http://www.w3.org/ns/auth/cert#identity  shouldn't the spec  document the two SPARQL queries which would achieve the same thing? 

Personally I would have ditched the inverse properties as they just make things more complicated, and I would have stuck with just cert:key. danbri has thoughts on this two given his experiences with the foaf ontology.

That is both of the below are acceptable queries given the Cert Ontology. should section "3.2.4.2 Verifying the WebID Claim" include both of the below SPARQL queries?

PREFIX : <http://www.w3.org/ns/auth/cert#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK {
      ?webid :key [
         :modulus ?mod;
         :exponent ?exp;
      ] .
}

and 

PREFIX : <http://www.w3.org/ns/auth/cert#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ASK {
       ?bnode :identity ?webid ;
       :modulus ?mod;
       :exponent ?exp.
}

Mischa
_____________________________
Mischa Tuffield PhD
http://mmt.me.uk/
http://mmt.me.uk/foaf.rdf#mischa
Received on Wednesday, 14 December 2011 10:50:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 14 December 2011 10:50:59 GMT