Hi,
I tested the code below successfully, both in plain Python and jupyter.
Could you send me a full example demonstrating the problem?
Jiba
-------8<-------------------
from owlready2 import *
#onto = get_ontology("/home/jiba/telechargements/hermit/project/examples/ontologies/pizza.owl").load()
#onto = get_ontology("/tmp/pizza.owl").load()
# onto = get_ontology("
http://test.org/rules.owl")
# with onto:
# class LetterOccurrence(Thing): pass
# onto.save('/tmp/rules.owl')
# oerpe
onto = get_ontology("
http://test.org/t.owl")
with onto:
class Human(Thing): pass
class hasWeight(Thing >> int): pass
class hasHeight(Thing >> float): pass
person = onto.Human('test')
person.hasWeight = [80]
person.hasHeight = [1.92]
print(onto.test.get_properties())