Creating individuals produces duplicate of class in Ontology Editor

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating individuals produces duplicate of class in Ontology Editor

Hamico
Hi guys, I hope I don’t create annoyance to you.
I have a problem with the creation of an individual from a class. When I create an individual from a class, it’s created firstly a class as a subclass of Thing and then an other class with the same name with the individual in the Istances. I have used Protege and Fluent to see that. Is it possible to create an individual without a class and how is possible? How is possible to solve this problem? Can you write an example of short code? Is my ontology inconsistent?

Thanks to all for putting me in this beautiful family.
Thanks to all for the your availability and you time spending into answer to the questions.
Best regards.

Hamico
Reply | Threaded
Open this post in threaded view
|

Re: Creating individuals produces duplicate of class in Ontology Editor

Jiba
Administrator
Hi,

If I understand well, your class and your individual are not in the same ontology ? The class is in a first ontology, which is imported by a second one in which you create the individual ?
If so, it is normal that Protégé displays the class in the second ontology (because it is used), however, in should be displayed in non-bold font (on the contrary, classes created in the ontology are in bold).

If this is not your problem, could you send me some small ontology and/or Python code that reproduces this problem ?

Best regards,
Jiba
Reply | Threaded
Open this post in threaded view
|

Remove duplicates

Hamico
Dear Jiba,
Thanks for your continuous support. I have solved the problem, it was necessary to define the namespace and to incorporate the code inside so that the class is unique  and a subclass of Thing and the individual is a perfect istance of the class.

Best regards
Hamico