[foaf-protocols] webid vs distributed social networks

peter williams home_pw at msn.com
Fri Mar 25 22:18:52 CET 2011


FROM <http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4#pw

 

 

The query below works. It has FROM
<http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4>

 

producing a resultset of

http://uriburner.com/about/id/entity/http/webid.myxwiki.org/xwiki/bin/view/X
Wiki/homepw4#me

 

 

 

 

However, when I change the query so I now have FROM
<http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4#me>

 

the query work does work, 

 

producing resultset

http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4#me

 

 

I think the second one is what I want, wanting a confirmation that the
pubkey exists in #me (and not any other anchored graph in the same
container).

 

 

 

If I have FROM <http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4#me, 

and the wrong modulus, the result set is null (which feels correct).

 

 

 

 

If I have FROM <http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4#pw, 

the result set is null (which feels correct).

 

 

If I have FROM <http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4#> 

the result set is null (which feels sort of correct).

 

However, sometime it doesn't do the above. Sometimes it always returns

http://uriburner.com/about/id/entity/http/webid.myxwiki.org/xwiki/bin/view/X
Wiki/homepw4#me

 

And, if I remove a \n in the modulus' literal, it gets the wrong answer. The
implication is, I have not know where the source document happened to use
linebreaks in the literal.

 

Sigh.

 

I'd rather work with ASN.1 in binary. It's easy compared to this stuff.
Things that should be trivial just are not. It feels like asking Plato: am I
alive? One gets a riddle in response, instead of yes/no.

 

I seem to be in a trap. To make it work, I *have* to use the query Henry
advocates, which avoids the literals problems. But, that means I have to run
a native sparql engine, and triple store - which I don't want to do (since
there is no maintained, native library for windows). Neither is there is a
webservice I can consume, that would do the Henry query for me, and then
test the result set for me (remotely) for the mod/exp in question.

 

I suppose there is a half way house, in which uriburner runs Henry's query
for me, and I run through the result myself looking for the mod/exp match
(since that resultset is at least just an xml array of nominal matches.)

 

 

 

 

 

 

 

# DEFINE get:soft "replace"

PREFIX cert: <http://www.w3.org/ns/auth/cert#
<http://www.w3.org/ns/auth/cert> > 

PREFIX rsa: <http://www.w3.org/ns/auth/rsa# <http://www.w3.org/ns/auth/rsa>
> 

 

select  ?webid 

FROM <http://webid.myxwiki.org/xwiki/bin/view/XWiki/homepw4>

WHERE {

    [] cert:identity ?webid ;

         rsa:modulus ?m ;

         rsa:public_exponent ?e .

        ?m cert:hex
"b520f38479f5803a7ab33233155eeef8ad4e1f575b603f7780f3f60ceab1\n34618fbe11753
9109c015c5f959b497e67c1a3b2c96e5f098bb0bf2a6597\n779d26f55fe8d320de7af0562fd
2cd067dbc9d775b22fc06e63422717d00\na6801dedafd7b54a93c3f4e59538475673972e524
f4ec2a3667d0e1ac856\nd532e32bf30cef8c1adc41718920568fbe9f793daeeaeeaa7e8367b
7228a\n895a6cf94545a6f6286693277a1bc7750425ce6c35d570e89453117b88ce\n24206af
d216a705ad08b7c59\n"^^xsd:string .

        ?e cert:decimal "65537"^^xsd:string

}





 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.foaf-project.org/pipermail/foaf-protocols/attachments/20110325/3eb03ba2/attachment.htm 


More information about the foaf-protocols mailing list