If you have your ontology in its own separate Model, doesn't model.removeAll() do it?
On Mar 5, 2013, at 4:49 PM, Dave Reynolds wrote: > On 05/03/13 20:20, Mark Fischer wrote: >> Is there an easy way to cleanly remove resources from an Ontology? >> >> Currently, I just remove all statements that have the resource present. >> This works well enough but I'm worried that it will leave >> anonymous superclasses behind. > > Yes, it will. > >> I also wonder if there is a more 'ontology' way of removing things like >> classes instead of using the underlying rdf graph directly. > > No there's no axiom-level remove operation in Jena, you'll to work with the > RDF graph I'm afraid. > > Dave > >
