Re: How to create Object and Data Properties dynamically ?

Posted by Driss on
URL: http://owlready.306.s1.nabble.com/How-to-create-Object-and-Data-Properties-dynamically-tp244p245.html

Hello again,

After removing the 'name=' parameter in :  

ontology_data_property = types.new_class(name=property_name,  (DataProperty))  (doesn't work)

ontology_data_property = types.new_class(property_name,  (DataProperty)) (works !)

It works to create the owl property. I'm still wondering the way to define the domain, range and so on.

Best,

Driss