I used this query in Jena after reading protege file.

*"SELECT * " + "WHERE {"   + "?y Mo:has_question Mo:uk_capital." +  "}" ;*

*and it gives me correct answer of London which I created from dbpedia
inside Protege. *

*So now I want population of London (from value of ?y), how can I achieve
this.*
*(Like ?y dbo:population ?x)*

*I am confuse how this will happen in same query because either we use*

*QueryExecution qe =  QueryExecutionFactory.create( query,model); for
executing protege file or*


*QueryExecution qe =
 QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql
<http://dbpedia.org/sparql>", query) ; for executing dbpedia query.*

*Regards*

Reply via email to