I been trying to add individuals to a class ontology, it works, but it creates me two classes, one with the info correctly and the other is empty, is there way that python just creates one class for ID?
from capec_parser import * #list of entities
from owlready2 import *
def main():
entity_list = verify_and_open()
onto = get_ontology("capec_ontology.owl#")
with onto:
class ID(Thing):pass
for entity in entity_list:
onto.ID(entity.get_ID())
if __name__ == "__main__":
main()