- From: Sean B. Palmer <sean@mysterylights.com>
- Date: Fri, 1 Mar 2002 23:58:30 -0000
- To: "Libby Miller" <Libby.Miller@bristol.ac.uk>, "Jim Ley" <jim@jibbering.com>, "Nadia Heninger" <nadia@barbwired.com>
- Cc: "w3c-wai-er-ig" <w3c-wai-er-ig@w3.org>, "www-annotation" <www-annotation@w3.org>
- Message-ID: <017001c1c17d$167abda0$33ba0150@localhost>
Hi, Here's a good query to try, giving back a page, its date, the validity, and the test case:- (ask '( (http://www.w3.org/1999/02/22-rdf-syntax-ns#subject ?a ?ts) (http://www.w3.org/2001/03/earl/0.95#testSubject ?ts ?page) (http://www.w3.org/2001/03/earl/0.95#date ?ts ?date) (http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate ?a ?tp) (http://www.w3.org/1999/02/22-rdf-syntax-ns#object ?a ?tc) ) :collect '(?page ?date ?tp ?tc)) Results at [1]. > (ask > '((http://www.w3.org/1999/02/22-rdf-syntax-ns#type ?a > http://www.w3.org/2001/03/earl/0.95#Person) > ) :collect '(?a)) That should give all of the people... but only as anonymous nodes. If you want their names, you can do:- (ask '( (http://www.w3.org/1999/02/22-rdf-syntax-ns#type ?a http://www.w3.org/2001/03/earl/0.95#Person) (http://www.w3.org/2001/03/earl/0.95#name ?a ?name) ) :collect '(?name)) That gives a pretty good list (well... of "Nadia" and "Bob" repeated a fair few times!), [2]. Hmm... Jim's ones aren't included, although from what I can tell, he doesn't include his name with the evaluations. Ah: he uses http://www.w3.org/2000/08/palm56/addr# with firstName and lastName. A suitably modified query would return those too. Oh, I speedily hacked up a little HTML form thing for posting the queries to the server. I doubt that it's of any use, but it's attached as <<annotea.html>>. If you add "youremail%40yourdomain.org:yourpass@" to the front of the "action" attribute - after the "http://" and before the "annotest" - (and I don't recommend this, BTW...), then it might automatically authenticate you, making things a little easier. Cheers, [1] <r:Description r:about="http://example.org/#myAssertion"> <r:object r:resource="http://example.org/#MyTestCase" /> <r:predicate r:resource="http://www.w3.org/2001/03/earl/0.95#passes" /> <r:subject> <r:Description r:about="http://example.org/#someID02495012470"> <0.95:date xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#">2001-05-17T23:07:35Z </0.95:date> <0.95:testSubject xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#" r:resource="http://www.w3.org/" /> </r:Description> </r:subject> </r:Description> <r:Description> <d:creator> <r:Description> <p:E-mail r:resource="mailto:jim@jibbering.com" /> <p:firstName>Jim</p:firstName> <p:name>Ley</p:name> </r:Description> </d:creator> <r:object r:resource="http://example.org/#MyTestCase" /> <r:predicate r:resource="http://www.w3.org/2001/03/earl/0.95#passes" /> <r:subject> <r:Description r:about="http://hkn.berkeley.edu/~nadiah/#1014989111470"> <0.95:date xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#">2001-05-17T23:07:35Z </0.95:date> <0.95:testSubject xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#" r:resource="http://hkn.berkeley.edu/~nadiah/" /> </r:Description> </r:subject> <atr:attribution r:resource="http://annotest.w3.org/annotations/attribution/1014971256. 869491" /> </r:Description> <r:Description> <r:object r:resource="http://example.org/#MyTestCase" /> <r:predicate r:resource="http://www.w3.org/2001/03/earl/0.95#fails" /> <r:subject> <r:Description r:about="http://jibbering.com/2002/2/iggy/algae-annotest.html#10149938 85980"> <0.95:date xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#">2001-05-17T23:07:35Z </0.95:date> <0.95:testSubject xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#" r:resource="http://hkn.berkeley.edu/~nadiah/" /> </r:Description> </r:subject> </r:Description> [2] <0.95:Person xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#"> <0.95:name>Nadia Heninger</0.95:name> </0.95:Person> <0.95:Person xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#"> <0.95:name>Bob B. Bobbington</0.95:name> </0.95:Person> <0.95:Person xmlns:0.95="http://www.w3.org/2001/03/earl/0.95#"> <0.95:name>Bob B. Bobbington</0.95:name> </0.95:Person> [more Bobs and Nadias follow...] -- Kindest Regards, Sean B. Palmer @prefix : <http://purl.org/net/swn#> . :Sean :homepage <http://purl.org/net/sbp/> .
Attachments
- text/html attachment: annotea.html
Received on Friday, 1 March 2002 18:58:53 UTC