Re: How to create Object and Data Properties dynamically ?
Posted by embisme on
URL: http://owlready.306.s1.nabble.com/How-to-create-Object-and-Data-Properties-dynamically-tp244p1962.html
Hi,
To entry anything dynamically -
with onto:
ontology_data_property = types.new_class('custNo', (DataProperty,))
ontology_data_property.range = [int]
ontology_data_property.domain = onto['customers']
Regards,
Millennium