I have the following query:
When I run it against live.dbpedia.org/sparql, I get three results (Louis, Neils and Lance Armstrong).
However, with the following Java code (using com.hp.hpl.jena.query.*), my ResultSet contains only one answer.
I am absolutely puzzled as I have no idea what could be causing this difference in behaviour. Can anyone point me to something I'm missing?
asked 13 Dec '12, 10:39
1/ The query in the Java string is bad (java) synatx. Are you sure you are not running an old copy of the program?
2/ How are you handling the results?
3/ try adding ?default-graph-uri=http%3A%2F%2Fdbpedia.org to
(more recent versions of jena only)
answered 13 Dec '12, 12:35