Re: Creating data property dynamically

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Creating-data-property-dynamically-tp410p411.html

Hi,

I tested the small program below, but without trouble.
Can you give me a (preferably small) code example that show the problems?

from owlready2 import *

onto = get_ontology("http://test/jiba.owl")

with onto:
    ontology_data_property = types.new_class("prop_name", (DataProperty,))

Best regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13