GeoscienceAustralia / Placenames-Ontology

Codes and other documentation for transformation, querying and managing the Place Names dataset in Linked Data format.
Creative Commons Attribution 4.0 International
2 stars 3 forks source link

pn:hasPlaceName modeled as both data and object property #11

Closed dr-shorthair closed 4 years ago

dr-shorthair commented 4 years ago

The property pn:hasPlaceName is specified as both an owl:ObjectProperty (with range pn:PlaceName) and an owl:DatatypeProperty (with range xsd:string). This is invalid OWL as these classes are disjoint, and poor modeling practice - the literal value should have its own datatype property.

dr-shorthair commented 4 years ago

use rdfs:label for text for the time-being

dr-shorthair commented 4 years ago

No - rdfs:label a owl:AnnotationProperty so you can't apply a cardinality constraint. New property:

:name
  rdf:type owl:DatatypeProperty ;
  rdfs:label "name" ;
  rdfs:range xsd:string ;
.

Exactly 1 on a PlaceName

dr-shorthair commented 4 years ago

fixed by #9