Re: Problems when creating new instances
Posted by Fory123 on
URL: http://owlready.306.s1.nabble.com/Problems-when-creating-new-instances-tp2242p2244.html
Thanks a lot for your help!
In addition, I also want to consult the method of adding data or object properties which are pre-defined in protege instead of in python directly.
For example, when running the code ">>Assembler0205.Staff_has_Name = "Fory"", error appears "ValueError: Property 'Staff_has_Name' is not functional, cannot assign directly (use .append() or assign a list)."
I wonder the appropriate way to use the properties predefined in the ontology when coding with python.
Sorry to bother you with such simple problems. I just started with the Owlready.