Re: Read out restrictions of classes

Posted by Lux on
URL: http://owlready.306.s1.nabble.com/Read-out-restrictions-of-classes-tp2154p2164.html

Hello,
thank you for your quick reply this solved my problem.

But I know see an other issue, restrictions that are referencing imported classes are pointing to None. My owl file contains this import statment: <Import>http://www.w3.org/2006/time</Import>

This leads to a file which syntax is probably not readable for owlready, i tried to convert it and saving it locally in the same folder, as discussed here:
http://owlready.8326.n8.nabble.com/handling-of-imported-ontology-td273.html

But I am not sure if Owlready can do this or how to name the file that it is correctly registered, I tried to name the file time.owl and used the code:

    onto_path.append(".")
    ontology = or2.get_ontology("file://sargon owl xml.owl").load()
    print(ontology.imported_ontologies)

As imported ontologies is [] it does not seem to work this way, is there a way to achieve a result?

Again thanks in advance,
Lux