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

Adding a DataService to a Catalog as a Dataset should give an error or warning #5

Closed sskagemo closed 2 years ago

sskagemo commented 4 years ago

After defining a DataService, if trying to add it to a catalog using Catalog.Dataset.append() should give an error or warning, as it leads to mismatch with the specification of range of dcat:dataset (dcat:Dataset) in the DCAT-standard

stigbd commented 2 years ago

After considering different approaches to this, I have come to the following:

I therefore prefer to not support this at the moment, and encourage users to use static type checkers to sanitize their code.