dbpedia / ontology-tracker

Here we keep track of modification requests in the DBpedia Ontology
35 stars 11 forks source link

Some subproperties of object property dul:hasQuality are data properties #9

Open LorenzBuehmann opened 9 years ago

LorenzBuehmann commented 9 years ago

There are some data properties defined as subproperty of dul:hasQuality which is itself defined as object property. This leads to many problems with OWL parsers and is not OWL 2 DL conform.

This is the definition of dul:hasQuality in DUL ontology:

<owl:ObjectProperty rdf:about="http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#hasQuality">
<rdfs:label xml:lang="en">has quality</rdfs:label>
<rdfs:label xml:lang="it">ha qualità</rdfs:label>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
A relation between entities and qualities, e.g. 'Dmitri's skin is yellowish'.
</rdfs:comment>
<rdfs:isDefinedBy rdf:resource="http://www.ontologydesignpatterns.org/ont/dul/DUL.owl"/>
<rdfs:domain rdf:resource="http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Entity"/>
<rdfs:range rdf:resource="http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Quality"/>
<rdfs:subPropertyOf rdf:resource="http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#associatedWith"/>
</owl:ObjectProperty>

Properties that are affected can be found by

select ?p {
?p a owl:DatatypeProperty;
rdfs:subPropertyOf <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#hasQuality> .
}

Currently there are 4 properties, namely

http://dbpedia.org/ontology/configuration http://dbpedia.org/ontology/eyeColor http://dbpedia.org/ontology/hairColor http://dbpedia.org/ontology/skinColor

LorenzBuehmann commented 9 years ago

To have a more generic test, this also holds for other properties, see

select ?sub ?sup {
?sub a owl:DatatypeProperty;
rdfs:subPropertyOf ?sup . ?sup a owl:ObjectProperty .
}

where we get

sub sup
http://dbpedia.org/ontology/isPartOfRoute http://dbpedia.org/ontology/isPartOf

The problem reported in the initial comment are not contained here because the DUL ontology is not contained in the endpoint, thus, we do not know that dul:hasQuality is an object property by SPARQL.

VladimirAlexiev commented 9 years ago

Please also consider http://vladimiralexiev.github.io/pres/20150209-dbpedia/dbpedia-problems-long.html#sec-8-1. IMHO the DUL mappings should be a separate, optional, download file

LorenzBuehmann commented 9 years ago

UPDATE: I loaded DUL into my local endpoint. Here you can see all problems where a data property is a subproperty of an object property:

sub sup
http://dbpedia.org/ontology/configuration http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#hasQuality
http://dbpedia.org/ontology/eyeColor http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#hasQuality
http://dbpedia.org/ontology/fuelType http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#isClassifiedBy
http://dbpedia.org/ontology/hairColor http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#hasQuality
http://dbpedia.org/ontology/isPartOfRoute http://dbpedia.org/ontology/isPartOf
http://dbpedia.org/ontology/iso6391Code http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#isClassifiedBy
http://dbpedia.org/ontology/iso6392Code http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#isClassifiedBy
http://dbpedia.org/ontology/iso6393Code http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#isClassifiedBy
http://dbpedia.org/ontology/valvetrain http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#hasComponent
http://dbpedia.org/ontology/firstAppearance http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#isParticipantIn
http://dbpedia.org/ontology/isoCodeRegion http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#isPartOf
http://dbpedia.org/ontology/languageCode http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#sameSettingAs
mgns commented 8 years ago

Fixed the reported ones at least in the DBpedia mappings wiki, e.g. http://mappings.dbpedia.org/index.php?title=OntologyProperty:IsoCodeRegion

Should be fixed with next release and soon at DBpedia Live: http://mappings.dbpedia.org/server/ontology/dbpedia.owl