I created an rdflib graph and serialised it into an owl file formatted as XML. I explicitly write A RDF.type RDFS.Class
and B RDFS.subClassOf A
. After I do this.
onto = owlready2.get_ontology("file://D:/Uni/cs/courses/bdrp/bdrp_sch_kb/code/test1.owl").load()
owlready2.sync_reasoner()
onto.save("test2.owl", format='rdfxml')
But when I open the test2.owl
, there is no B RDF.type RDFS.Class
. So, B
's type was not inferred. Does owlready2
reasoner even work?