Debugging a query is more efficient if you print the query to the command line first, and put it in the Virtuoso web interface - I suppose that you use the offical DBpedia endpoint.
By the way, it's not clear why you call toString() on "x" .
I think you need to provide more information, before anyone can answer
your questions.

What is the actual endpoint or dataset you are executing on? What is
the code executing the query?

On Wed, Apr 27, 2016 at 5:12 PM, mehmet mehmet <mehmettw...@gmail.com> wrote:
String queryString ="PREFIX dbr: <http://dbpedia.org/resource/> " + "PREFIX
dbprop:<http://dbpedia.org/property/>" +

"SELECT * " + "WHERE {" +  " dbr:Germany dbprop:capital ?x"+ "}" ;

at the end I display it

System.out.println(soln.getResource("x".toString()));


*But it displays nothing (no error message but no output)*

*What is the problem in the code.*

--
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

Reply via email to