|
Hello Jiba,
I was wondering how one could delete a class in ontology.
with onto: # owlready2.Ontology
new_concept = types.new_class(name="({0} ⊔ {1})".format(A.str, B.str), bases=(base,))
new_concept.is_a.append(A.owl | B.owl) # where A.owl is a class in the ontology.
... some computation ...
how could one delete new_concept from ontology so that as onto is being saved, deleted classes will not be serialised.
onto.save('dummy.owl', rdf_format="rdfxml")
Cheers
|