|
Hello, Jiba
here is the test ontology i created with owlready:
with onto:
class TestClass(Thing): pass
class testProp(ObjectProperty): pass
Test1 = TestClass('Test1')
Test2 = TestClass('Test2')
Test2.testProp.append(Test1)
when access it in terminal, everything is fine:
getattr(Test2,'testProp') #-> [Test1]
but when i try to access it through a web application i made,value is doubled
getattr(Test2,'testProp') #-> [Test1,Test1]
the web framework I'm using is Pyramid, owlready2 version 0.9 and python 3.7
Thanks!
|