On Wed, 2011-10-26 at 21:33 +0530, Mariya.Pervasive wrote: 
> 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.

What you mean by "use Jena" here?  Are you still querying the dbpedia
endpoint or have to loaded some part of the dbpedia data into Jena? How
are you issuing the query? 

> RESULTS are :
> 
> classhttp://dbpedia.org/ontology/Country
> http://dbpedia.org/ontology/PopulatedPlacehttp://dbpedia.org/ontology/Place

That shows an inference closure. 

So if you have loaded the dbpedia data yourself then the issue is that
you need to enable inference, which is expensive at scale in Jena.

Dave


Reply via email to