As my first experiment in using DBpedia, I've made application using XQuery to
map the birthplaces of players in a selected English Football club. It's
described on my blog
http://thewallaceline.blogspot.com/2007/12/football-teams-dbpedia-and-sparql.html
and documented in the XQuery Wikibook article I link to.
Using the SPARQL endpoint threw up a small problem which may be just be my lack
of understanding of SPARQL syntax:
In the query which begins, for example
PREFIX : <http://dbpedia.org/resource/>
PREFIX p: <http://dbpedia.org/property/>
SELECT * WHERE {
?player p:currentclub <http://dbpedia.org/resource/Arsenal_F.C.>.
OPTIONAL {?player p:cityofbirth ?city}.
I would have chosen to write :
?player p:currentclub :Arsenal_F.C. .
but this throws a syntax error - how can I avoid it other than by using the url
form?
Incidently, I wonder why the prefix in the SNORQL interface is dbedia2 rather
than p?
Chris Wallace
This email was independently scanned for viruses by McAfee anti-virus software
and none were found
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion