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-tp244.html
Hello,
I'm creating an ontology from a CSV file and I wonder if there is a way to create a property class dynamically as we do for concepts using the for example the following call :
ontology_concept = types.new_class(concept_name, (Thing, ontology_super_concept,))
Maybe something like :
ontology_data_property = types.new_class(name=property_name, (DataProperty))
Best regards,
Driss