rdf - Which .nt file from the DBpedia dataset contains the triples about DBpedia classes? -


i working on dbpedia dataset , using apache jena execute sparql on local jena tdb dataset. have downloaded of files dbpedia downloads keep size of dataset minimum, no results when execute sparql query of kind:

select distinct * { <http://dbpedia.org/ontology/person> ?x ?y } limit 5 

however, if run same query on virtuoso client, valid results.

which .nt file contains uri triple of form:

http://dbpedia.org/ontology/person
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2002/07/owl#class

meaning, .nt file in downloads, needs added in local jena tdb dataset?

p.s. have ontology infobox types in dataset contains triples of form $object rdf:type $class .

one thing can figure out where triple coming use graph, in

select distinct * { graph ?g { <http://dbpedia.org/ontology/person> ?x ?y } } limit 20 

which, using virtuoso client, finds same triples query without them, show graph triples obtained from, e.g.,

http://dbpedia.org                   rdf:type owl:class http://dbpedia.org/resource/classes# rdf:type owl:class 

now, imagine http://dbpedia.com default graph contains triples others, interesting 1 here http://dbpedia.org/resource/classes#. based on ben companjen's answer, tried using ontology dataset, , when run following query (like yours, without limit 5)

prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  select distinct * {     <http://dbpedia.org/ontology/person> ?p ?o }   

i result <http://dbpedia.org/ontology/person> owl:class (it's next last row). if limit 5 present in original query, may not seeing particular result.

$ /usr/local/lib/apache-jena-2.10.0/bin/arq \     --data ~/downloads/dbpedia_3.8.owl \     --query dbpedia.sparql  ------------------------------------------------------------- | p                   | o                                   | ============================================================= | rdfs:label          | "person"@en                         | | rdfs:label          | "persona"@es                        | | rdfs:label          | "person"@de                         | | rdfs:label          | "pessoa"@pt                         | | rdfs:label          | "personne"@fr                       | | owl:equivalentclass | <http://schema.org/person>          | | rdfs:label          | "Πληροφορίες προσώπου"@el           | | rdfs:label          | "oseba"@sl                          | | owl:equivalentclass | <http://xmlns.com/foaf/0.1/person>  | | rdf:type            | owl:class                           | | rdfs:subclassof     | <http://dbpedia.org/ontology/agent> | ------------------------------------------------------------- 

Comments