Informasjonsforvaltning / datacatalogtordf

A library that will map a data catalog (inkl dataset, dataservices and other dcat resources) to rdf
Apache License 2.0
5 stars 0 forks source link

Should there be a list of endpointURLs for a Dataservice? #10

Closed sskagemo closed 3 years ago

sskagemo commented 3 years ago

Currently, the class implementing a Dataservice only accepts one endpointURL: https://github.com/Informasjonsforvaltning/datacatalogtordf/blob/87b2602c51890cf5505e58f73543f7c68284ea9d/src/datacatalogtordf/dataservice.py#L37

While the proposal for DCAT-AP-NO has multiplicity 1..n: https://informasjonsforvaltning.github.io/dcat-ap-no/#datatjeneste-endepunktsurl

This is also in accordance with the need to list a set of server-urls (production, test etc) in FDK.

stigbd commented 3 years ago

Short answer: no, since this will break maxCardinality restriction of W3C DCAT 2:

dcat:DataService
  a owl:Class ;
  rdfs:subClassOf [
      a owl:Restriction ;
      owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
      owl:onProperty dcat:endpointURL ;
    ] 
.

ref: https://www.w3.org/ns/dcat2.ttl

See the discussion on https://github.com/SEMICeu/DCAT-AP/issues/166#issuecomment-707842634

stigbd commented 3 years ago

Closes this, since the implementation is in accordance with the 1..1 cardinality of dcat-ap-no v2 which has been released last week. https://data.norge.no/specification/dcat-ap-no/#Datatjeneste-endepunktsurl