I am in need of creating an ontology dynamically.
for classes I am creating them using below method.
with onto:
NewClass = types.new_class(class_name, tuple(SuperClasses))
But for creating properties(object/data etc..) I am unable to find a way to create them dynamically. Right now what I can do is :
with onto:
class has_grouping(Bacterium >> Grouping):
pass
where "has_grouping" is the property name. I wish to be able to create the property where the property name can be induced from a variable.