Administrator
|
Hello,
Yes, you can find the intersection in FrenchWine.is_a. Then, the .Classes attribute of the intersection contains the elements in the intersection : the Wine class and the resctriction.
You may try something like:
print(onto.FrenchWine.is_a[0].Classes)
print(onto.FrenchWine.is_a[0].Classes[1].Property)
print(onto.FrenchWine.is_a[0].Classes[1].type)
print(onto.FrenchWine.is_a[0].Classes[1].value)
(you may need to replace [0] by [1] depending on the values in .is_a)
Best regards,
Jiba
|