OwlReady2 creating instances without placing them in a class

Viewed 14

I want to build an ontology from an existing database of instances. I want to create and define my classes.

My problem then is that I want to add the instances in such a way that they are not pre placed in a class (mainly because I do not know the class they should be).

Then let the reasoner do the job of classifying them. From what I have seen in the documentation, an instances is defined already in a class. Can this be avoided?

For example, I am creating three classes that get in the class Lecture.

math=onto.Lecture("MATH001") 
print(math.name) 
math2=onto.Lecture("MATH002") 
print(math2.name)  
onto.Lecture("MATH003")

What I would like instead is to create the classes "MATH***" with the property "attended_by min 5 Students" and then the reasoner to classify it in a Lecture.

0 Answers
Related