Getting the domains of the data properties

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

Getting the domains of the data properties

Ina
Hello,

I would like to ask you if there is a way to get the domains (intersection) of the data properties that exist in Protégé to Owlready2. Is there a command like get_domains?
Reply | Threaded
Open this post in threaded view
|

Re: Getting the domains of the data properties

Jiba
Administrator
Hello,

You can use :

property.domain

to get the list of domains.

Best regards,
Jean-Baptiste Lamy
Ina
Reply | Threaded
Open this post in threaded view
|

Re: Getting the domains of the data properties

Ina
Yes, indeed. That works. Thank you very much.