Querying dbpedia from the command line?

Has anyone managed to pass a URL with a SPARQL query to wget or curl and 
successfully retrieved data from dbpedia? When I take the wget example 
at http://groups.yahoo.com/group/govtrack/message/570 and paste the 
query at dbpedia's SNORQL interface it works[1], and when I paste the 
wget command on that page without any carriage returns onto a (Windows) 
command line [2] it doesn't get any errors, which certainly felt like a 
minor victory, but the result set was empty.

Any suggestions?




[2] wget -O temp.txt http://DBpedia.org/sparql?query="PREFIX dbpedia2: 
<http://dbpedia.org/property/> PREFIX skos: 
<http://www.w3.org/2004/02/skos/core#> SELECT ?presName,?birthday, 
?startDate WHERE {   ?presName skos:subject 
   ?presName dbpedia2:birth ?birthday.   ?presName 
dbpedia2:presidentStart ?startDate. }"

Received on Wednesday, 17 September 2008 00:50:38 UTC