|
Hi,
I am currently trying to add several object properties to a class, I have generated:
myclass = onto.SomeClass('some id')
The ontology includes an object property called "includesConcept"
I can add a specific class to "myclass" via the following:
myclass.includesConcept = [onto.SomeOtherClass()]
This works perfectly fine. However, I would like to add the "onto.SomeOtherClass()" dynamically.
For example:
conceptToBeIncluded = onto.SomeOtherClass()
myclass.includesConcept = [conceptToBeIncluded]
or even something like this:
conceptList= [onto.SomeOtherClassA(), onto.SomeOtherClassB()]
myclass.includesConcept = [conceptList]
Is there a way to do this?
Thanks!
Best
eyseman
|