Unable to print properties using get_properties() function

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

Unable to print properties using get_properties() function

Gopi
Hi,
we are trying to print properties associated with a certain instance(obs). However, we are getting TypeError: get_properties() missing 1 required positional argument: 'self'

code:
obs = IRIS["http://purl.bioontology.org/ontology/OMIM/606915"]
print(obs.get_properties())

Please help us resolve this issue.

Regards,
Gopi
Reply | Threaded
Open this post in threaded view
|

Re: Unable to print properties using get_properties() function

Jiba
Administrator
Hi,

Are you sure that obs is an instance here, and not a class? (you may look at obs.__class__ to check that).

If obs is a class, you can use obs.get_class_properties() for obtaining restrictions.

Jiba