Re: How general is Owlready2?

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/How-general-is-Owlready2-tp2531p2556.html

Hi,

In -1-, the prefix is not right. The prefix should always be followed by ":", not by ".". In addition, the automatic prefix created by Owlready are based on the name of the ontology (here, https://www..../trend-ontology => the prefix will be "trend-ontology:"), not on the name of the python variable that contains the ontology object (here, onto). You should try:

list(default_world.sparql("""
        SELECT ?label
        WHERE { trend-ontology:Turnover rdfs:label ?label . }
    """))

Regarding the parsing of the OWL file, I can look at this problem if you send me the file by email (or at list the problematic part of it).

Jiba