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?