Re: How to gathered the way items are linked in an ontology
Posted by Frack on
URL: http://owlready.306.s1.nabble.com/How-to-gathered-the-way-items-are-linked-in-an-ontology-tp344p347.html
Hi Jiba,
Thanks for your reply. For the direct subclasses I will try what you say, the goal would be later to be able to construct dynamicaly an ontology structure within the API depending on another updated only through Protégé.
For the relation problem, I went some new steps yesterday.
I did not create all my existing entities as classes, but only my relation, to have the class Relation (A >> B)
Then with that, I have been able to create another class using this relation, adding restriction on it :
class UsingRelation (myObject):
equivalent_to = [myObject & Relation.some(otherObject)]
It seems that this class is able to show me the element dealing with the relation I'm looking for, but what I would then like to have is the name of entities involved by the answer.
This class is not iterable (I think I have to create a function inside the class for that), what do you think?