Reputation: 271
I have this code:
String NS="http://dbpedia.org/ontology/";
model = ModelFactory.createOntologyModel();
model.read("dbpedia.owl");
But this ontology (dbpedia.owl) is based only on the classes whose URIs begin with http://dbpedia.org/ontology/
. I would also like to add the classes whose URIs begin with http://dbpedia.org/class/yago/
. How can I do this?
Upvotes: 1
Views: 1193
Reputation: 85883
It appears that you've just downloaded the DBpedia Ontology T-BOX (Schema).
On the Downloads page, there are links to more datasets. Under Links to other datasets there are four YAGO related datasets:
The description of the YAGO type hierarchy is:
YAGO type hierarchy
Dataset containing the hierarchy of YAGO classes in the http://dbpedia.org/class/yago/ namespace. Update mechanism: generated from latest YAGO datasets.
I think it's that dataset that will contain what you're looking for, though I do suggest you look at the other ones too, in case there's something useful in there.
Upvotes: 1