[rdfweb-dev] foaf rdql query question
Bill French
french at SIMS.Berkeley.EDU
Thu Feb 26 21:17:46 UTC 2004
hello,
i'm trying in vain to understand rdql and maybe if i see an example or
two that i can apply directly to my own work, it will start to make
sense. i have a foaf file that's available here:
http://www.sims.berkeley.edu/~french/foaf/bill-french.rdf
i'm trying to write a java class called FOAFPerson whose constructor
sucks in a FOAF file, and populates the private fields based on rdql
queries. the first query i want to do is to get the <foaf:name/> of the
owner of the foaf file, in this case, Bill French. secondly, i want to
get back a list of all the <foaf:name/>s that i <foaf:knows/>.
this query:
SELECT ?x, ?name FROM
<http://www.sims.berkeley.edu/~french/foaf/bill-french.rdf> WHERE (?x
<http://xmlns.com/foaf/0.1/name> ?name
produced:
x | name
=========================================
<fb53f6:faf3a7d582:-8000> | "Bill French"
<fb53f6:faf3a7d582:-7fff> | "Bob"
<fb53f6:faf3a7d582:-7ffe> | "Parker"
thanks very much in advance,
--bill french
More information about the foaf-dev
mailing list