On 10/23/11 12:14 PM, Lushan Han wrote:
Hi,I have been trying to run the following sparql query on http://dbpedia.org/sparql but failed to get any result. Could someone tell me why?PREFIX dbo: <http://dbpedia.org/ontology/> SELECT DISTINCT ?x, ?z, ?y WHERE { ?z a dbo:Organisation . ?y a dbo:RadioStation . ?0 rdfs:label ?label0 . ?label0 bif:contains '"Louisiana"' . ?x dbo:state ?0 . ?y dbo:city ?x . ?y dbo:owner ?z . }Instead, if I don't use the bif:contains function, the query works, as shown belowPREFIX dbo: <http://dbpedia.org/ontology/> PREFIX db: <http://dbpedia.org/resource/> SELECT DISTINCT ?x, ?z, ?y WHERE { ?z a dbo:Organisation . ?y a dbo:RadioStation . ?x dbo:state db:Louisiana . ?y dbo:city ?x . ?y dbo:owner ?z . } However, it seems the bif:contains works for some other queries. Many thanks, Lushan Han
Using the more powerful LOD instance where we also have DBpedia loaded you have:
http://lod.openlinksw.com/sparql?default-graph-uri=&query=PREFIX+dbo%3A+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0D%0A%0D%0ASELECT+DISTINCT+%3Fx%2C+%3Fz%2C+%3Fy+WHERE+%7B%0D%0A++%3Fz+a+dbo%3AOrganisation+.%0D%0A++%3Fy+a+dbo%3ARadioStation+.%0D%0A++%3F0+rdfs%3Alabel+%3Flabel0+.%0D%0A++%3Flabel0+bif%3Acontains+%27%22Louisiana%22%27+.%0D%0A++%3Fx+dbo%3Astate+%3F0+.%0D%0A++%3Fy+dbo%3Acity+%3Fx+.%0D%0A++%3Fy+dbo%3Aowner+%3Fz+.%0D%0A%7D&should-sponge=&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=15000&debug=on I believe you query is timing out since it is quite expensive.We provide the LOD Cloud cache instance (an 8-node cluster) for heavier duty queries against DBpedia and many other datasets from the LOD Cloud.
Kingsley
------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
-- Regards, Kingsley Idehen President& CEO OpenLink Software Web: http://www.openlinksw.com Weblog: http://www.openlinksw.com/blog/~kidehen Twitter/Identi.ca: kidehen
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
