dgarijo / Widoco

Wizard for documenting ontologies. WIDOCO is a step by step generator of HTML templates with the documentation of your ontology. It uses the LODE environment to create part of the template.
Apache License 2.0
292 stars 88 forks source link

isDefinedBy not being properly recognized for data property #588

Closed inaja closed 1 year ago

inaja commented 1 year ago

In the PECO ontology (https://w3id.org/peco) The data property http://qudt.org/schema/qudt/value has rdfs:isDefinedBy "https://qudt.org/schema/qudt/". But the generated widco file shows: is defined by https://w3id.org/peco#

image

dgarijo commented 1 year ago

Duplicate with #587

dgarijo commented 1 year ago

This only happens when rdfs:isDefinedBy points to a literal. According to https://www.w3.org/TR/rdf12-schema/#ch_isdefinedby, the range of isDefinedBy should be a rdfs:Resource. In this case, the ontology annotation is wrong

dgarijo commented 1 year ago

I added a fix so if the value is not a resource, then do not complete with the ontology name by default