Read in an ontology and edit its properties to be Functional.

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

Read in an ontology and edit its properties to be Functional.

jui gram
Hi,

Is it possible to read in an ontology and edit all its properties to be Functional and save it?

If yes how?

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

Re: Read in an ontology and edit its properties to be Functional.

Jiba
Administrator
Hi,

Yes, it's possible. You need to load the ontology and to iterate over all properties (as explained in the documentation), and then you can FunctionalProperty in the list of parent classes of the property, as follows:

   prop.is_a.append(FunctionalProperty)

Finally, save the ontology.

Jiba