Re: How to assign rdf:type attribute to a class in existing ontology
Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/How-to-assign-rdf-type-attribute-to-a-class-in-existing-ontology-tp2709p2711.html
Hi,
Adding rdf:type to a class is normally not used in OWL, and not supported directly by Owlready (it seems that it is the same for Protégé).
However, you can assert the RDF triple directly as follows:
onto._add_obj_triple_spo(obo.NCBITaxon_191554.storid, rdf_type, Taxon.storid)
Jiba