atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

Better class URI recognition when inspecting RDFS #487

Open sirex opened 1 year ago

sirex commented 1 year ago

In dcat2.ttl file we have:

dcat:Resource
  a owl:Class .

dcat:DataService
  a owl:Class ;
  rdfs:subClassOf dctype:Service ;
  rdfs:subClassOf dcat:Resource .

So here uri should bet set to dctype:Service. But since dcat:DataService has two subclasses, we should prefer the one, which is defined in the schema. So here we have dcat:Resource defined in the schema, therefore, we should use dcat:Resource as a base, instead of dctype:Service.

_Originally posted by @sirex in https://github.com/atviriduomenys/spinta/pull/443#discussion_r1211119619_

Related