|
Good evening, I have some data property of my individuals which have a gender, as to obtain all the genders of my individuals and see how many are female and male.
for i in list(onto.individuals())
for prop in onto.Esperanza.get_properties():
for value in prop[onto.Esperanza]:
print(".%s == %s" % (prop.python_name, value))
I understand that with this I obtain all the individuals and with the following I have the properties of a particular individual. I can't think of how to get all the genders of all the individuals.
thanks for taking the time to read.
|