andrecastro0o / ontology2smw

automating an RDF ontology import into Semantic Mediawiki
GNU General Public License v3.0
16 stars 5 forks source link

handle terms with more than one subPropertyOf #59

Open andrecastro0o opened 3 years ago

andrecastro0o commented 3 years ago

in dcat the property dcat:service is subproperty of 2 parent properties dct:hasPart and rdfs:member. Although I am not certain of how semantically correct or common this construct is - the term inherits from both parent properties - as it is present, we need to find a way to handle it.

dcat:service
  a owl:ObjectProperty ;
  rdfs:comment "A site or endpoint that is listed in the catalog."@en ;
  rdfs:domain dcat:Catalog ;
  rdfs:label "service"@en ;
  rdfs:range dcat:DataService ;
  rdfs:subPropertyOf dct:hasPart ;
  rdfs:subPropertyOf rdfs:member ;

The way it is handled will depend on how SMW responds to a property being a child of more than 1 parent properties.

Same might be happening for classes/categories.