linkedpipes / dcat-ap-forms

Forms application for filling out DCAT-AP v3.0 and DCAT-AP HVD compatible metadata
MIT License
2 stars 2 forks source link

Change Catalog registration/delete messages #33

Closed jakubklimek closed 5 years ago

jakubklimek commented 5 years ago

This is related to #31 and #32.

Now, LKOD URL is used as the IRI for the Catalog. This is a bit unfortunate. The following changes are necessary: 1) Catalog registration - the API URL will be attached using dcat:endpointURL, the catalog itself will be a blank node 2) Catalog deletion - The form will be called with a (NKOD assigned) Catalog IRI, similarly to how it is done for datasets (a named graph with the IRI will be in the NKOD endpoint). In there, the data corresponding to the registration message will be present to be displayed. The catalog deletion message will use the catalog IRI (not endpoint IRI), type dcat:Catalog, and the withdrawn status as in dataset deletion message.

jakubklimek commented 5 years ago

Example registration (in Turtle), not including unchanged properties:

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix nkod: <https://data.gov.cz/slovník/nkod/> .

[] a dcat:Catalog, nkod:DcatApSparql ;
     dcat:endpointURL "https://data.cssz.cz/sparql"^^xsd:anyURI .

Example catalog deletion:

<https://data.gov.cz/zdroj/lkod/12345> a dcat:Catalog ;
         adms:status status:Withdrawn .

Where https://data.gov.cz/zdroj/lkod/12345 is the Catalog IRI assigned to the registered one by NKOD

skodapetr commented 5 years ago

Any data on dev for testing?

jakubklimek commented 5 years ago

Yes, the data is now in dev.nkod.opendata.cz