So I have 2 instances : instance 1 and instance 2 how to create a relation between them when the relation is in another instance
Such a code yields an error:
ns1 = onto.get_namespace("
http://www.ns1.org/")
class Class1(Thing):
pass
class Class2(Thing):
pass
inst1 = Class1("inst1")
inst2 = Class2("inst2")
# Access the property from the other namespace
property = ns1.relation
# Add the relation between the instances
inst1.property.append(inst2)