Hello,

I  have been using the following query in the dbpedia virtuoso
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?class
WHERE { ?class rdfs:subClassOf owl:Thing . ?person rdf:type ?class .
?person <http://www.w3.org/2000/01/rdf-schema#label> "India"@en.
}

I get three results there, but when I use Jena to get the results I just
receive a single result. Could you please help me in getting all the results
correctly in JENA API.

RESULTS are :

classhttp://dbpedia.org/ontology/Country
http://dbpedia.org/ontology/PopulatedPlacehttp://dbpedia.org/ontology/Place


In Jena, result is :


( ?class = <http://dbpedia.org/ontology/Place> ) -> [Root]

( ?class = <http://www.w3.org/2004/02/skos/core#Concept> ) -> [Root]


With regards,

-- 
Mariya Quibtiya
B.Tech. Undergraduate
(CSE Branch)

Reply via email to