|
Hello everyone,
as far as I have understand if there are two classes in two imported ontologies lets say class A in onto1 and onto2
I can still access those by using their corresponding namespaces: onto1.A or onto2.A respectively.
My problem is now that I have two data properties (has_name) that are already defined in my two imported ontologies
and when I create a new instance of onto2.A in my new ontology (onto), e.g.
my_inst = onto2.A(namespace=onto)
and want to use the data property has_name of onto2 as well it doesn't work:
my_inst.has_name = ["blabla"]
Instead the has_name data property of onto1 will be used.
So my question is, is there some possibility to add the information (i.e. the namespace) which data property should be used?
PS: I have also tried to use the python aliases, so:
onto1.has_name.python_name = "onto1name"
onto2.has_name.python_name = "onto2name"
which results in an error.
Thanks in advance
Felix
|