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-tp244p2024.html

Yes you can ofcourse. But not in this format. Because this in itself is not that dynamic. Again use the same setattr() and it can be done. 

On Sun, 20 Sep, 2020, 9:29 pm Avraheem [via Owlready], <[hidden email]> wrote:
Thank you! The other part of the question, can I connect one individual to multiple individuals via multiple object properties at the same time dynamically?

For example, the following will associate newJob individual, named "job1", to a new company newCompanyName via object property hasCompany:

newJob= NewJob(name = "job1", hasCompany=newCompanyName)

Can I add more object properties at the same time like hasAddress, hasNumber, etc.?


If you reply to this email, your message will be added to the discussion below:
http://owlready.8326.n8.nabble.com/How-to-create-Object-and-Data-Properties-dynamically-tp244p2023.html
To unsubscribe from How to create Object and Data Properties dynamically ?, click here.
NAML