You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I load the ontology into Protege it interprets this correctly:
but when I load the file with owlready2 the #Literal is dropped, and my code is shown And(hasAspect(Aspect),hasUnitOfMeasure(UnitOfMeasure),numericValue(None))
If I replace the <owl:someValuesFrom rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> in the definition with <owl:someValuesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> it interprets as I would expect (as And(hasAspect(Aspect),hasUnitOfMeasure(UnitOfMeasure),numericValue(str))).
Can anyone explain why the rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal" is being interpreted as None? The prologue already defines xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" and while the rdfs: prefix is used consistently throughout the rest of the file, this is the only occurrence of it within a full IRI like this.
The text was updated successfully, but these errors were encountered:
I'm trying to load the new Gist v13 ontology using the
owlready2
library: this is freely available for download at https://www.semanticarts.com/gist/.One of the classes is defined as follows:
If I load the ontology into Protege it interprets this correctly:
but when I load the file with
owlready2
the#Literal
is dropped, and my code is shownAnd(hasAspect(Aspect),hasUnitOfMeasure(UnitOfMeasure),numericValue(None))
If I replace the
<owl:someValuesFrom rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
in the definition with<owl:someValuesFrom rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
it interprets as I would expect (asAnd(hasAspect(Aspect),hasUnitOfMeasure(UnitOfMeasure),numericValue(str))
).Can anyone explain why the
rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"
is being interpreted as None? The prologue already definesxmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
and while therdfs:
prefix is used consistently throughout the rest of the file, this is the only occurrence of it within a full IRI like this.The text was updated successfully, but these errors were encountered: