cessda / cessda.cvs.two

Apache License 2.0
0 stars 2 forks source link

Notation for deprecation in SKOS export #425

Open cessda-bitbucket-importer opened 2 years ago

cessda-bitbucket-importer commented 2 years ago

Original report on BitBucket by Taina Jääskeläinen.


Best start working on this only after Oliver has made his changes and there are code level URIs/identifiers.

When amending the SKOS export, taking a look at ELSST Thesaurus SKOS/RDF, noticed the following notations for deprecation and replacement which may help:

  1. ENVIRONMENTAL DEGRADATION (deprecated term)

    1. URI https://elsst.cessda.eu/id/3/bfde4f9b-6466-4c39-8680-39218dbb3580
  2. ENVIRONMENTAL CHANGES (the replacing term)

    1. https://elsst.cessda.eu/id/3/5a40a735-1eca-4afa-930c-0b131f06e8af

SKOS for ENVIRONMENTAL DEGRADATION (deprecated term) has:

dc:isReplacedBy
<skos:Concept rdf:about="https://elsst.cessda.eu/id/3/5a40a735-1eca-4afa-930c-0b131f06e8af">

ENVIRONMENTAL CHANGES MILJÖFÖRÄNDRINGAR YMPÄRISTÖNMUUTOKSET SCHIMBĂRI DE MEDIU UMWELTVERÄNDERUNGEN ΠΕΡΙΒΑΛΛΟΝΤΙΚΕΣ ΜΕΤΑΒΟΛΕΣ OKOLJSKA SPREMEMBA MILJØÆNDRING ZMĚNY ŽIVOTNÍHO PROSTŘEDÍ KÖRNYEZETI VÁLTOZÁS _So the SKOS shows in ‘dc:isReplacedBy’ the URI of the replacing term and in ‘dc:replaces’ the URI of the deprecated term, plus descriptive terms\(=prefLabels\) of the deprecated code in different languages._ ‌ SKOS for [**ENVIRONMENTAL CHANGES**](https://thesauri.cessda.eu/rest/v1/elsst-3/data?uri=https%3A%2F%2Felsst.cessda.eu%2Fid%2F3%2F5a40a735-1eca-4afa-930c-0b131f06e8af&format=application/rdf%2Bxml) **\(the replacing term\)** has: urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 urn:ddi:int.cessda.elsst:5a40a735-1eca-4afa-930c-0b131f06e8af:3 2022-08-11T11:22:10 ‌ _So the SKOS shows in ‘dc:replaces' the URI of the replacing code and in the dc:isVersionOF' the URI of the deprecated code, plus the identifier of the deprecated code separately for each language. The code identifier is the same for all languages._ _Plus the date when the code was deprecated in ‘owl:priorVersion’ \(in CVS this would be the publication date\)._ _Hope this helps. I’m not sure what the notation would be if children were removed as well. Otherwise probably as above for each deprecated code. However, in addition, probably the SKOS of replacing term would also show the identifier for each language for children as well as well in 'dc: replaces, using the notation._ IDENTIFIER OF THE CHILD CODE 1 IDENTIFIER OF THE CHILD CODE 1 etc. Tentatively assigned to Stefan.
cessda-bitbucket-importer commented 2 years ago

Original comment by Stefan Dlugolinsky (GitHub: Stifo).


Thanks, this helps, I’ll check the SKOS export in CVS.

Regarding the descriptive terms(=prefLabels) of the deprecated code in different languages,
this is the case of how a single concept is presented to the user as an RDF object. This can be
different from a vocabulary RDF representation. There might be for convenience additional
information inferred when exporting some portions of the vocabulary.

Both RDF examples of the concepts above contain such additional information that was inferred
from the RDF representation of the vocabulary. If you look at the RDF representation of the ELSST vocabulary
and search for the first concept (https://elsst.cessda.eu/id/3/bfde4f9b-6466-4c39-8680-39218dbb3580),
this information is missing, but it is implicitly there and can be inferred through dct:isReplacedBy
relation at line 82:

<rdf:Description rdf:about="https://elsst.cessda.eu/id/3/bfde4f9b-6466-4c39-8680-39218dbb3580">
<rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
<owl:deprecated rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</owl:deprecated>
<owl:priorVersion rdf:resource="https://elsst.cessda.eu/id/2/bfde4f9b-6466-4c39-8680-39218dbb3580"/>
<skos:inScheme rdf:resource="https://elsst.cessda.eu/id/3/"/>
<skos:topConceptOf rdf:resource="https://elsst.cessda.eu/id/3/"/>
<skos:prefLabel xml:lang="fr">DÉGRADATION DE L'ENVIRONNEMENT</skos:prefLabel>
<skos:prefLabel xml:lang="en">ENVIRONMENTAL DEGRADATION</skos:prefLabel>
<skos:prefLabel xml:lang="no">MILJØFORVERRING</skos:prefLabel>
<skos:prefLabel xml:lang="de">UMWELTSCHÄDIGUNG</skos:prefLabel>
<skos:prefLabel xml:lang="fi">YMPÄRISTÖN PILAANTUMINEN</skos:prefLabel>
<skos:prefLabel xml:lang="el">ΠΕΡΙΒΑΛΛΟΝΤΙΚΗ ΥΠΟΒΑΘΜΙΣΗ</skos:prefLabel>
<skos:prefLabel xml:lang="lt">APLINKOS BLOGĖJIMAS</skos:prefLabel>
<skos:prefLabel xml:lang="sl">DEGRADACIJA OKOLJA</skos:prefLabel>
<skos:prefLabel xml:lang="es">DEGRADACIÓN MEDIOAMBIENTAL</skos:prefLabel>
<skos:prefLabel xml:lang="ro">DEGRADAREA MEDIULUI</skos:prefLabel>
<skos:prefLabel xml:lang="is">HNIGNUN UMHVERFIS</skos:prefLabel>
<skos:prefLabel xml:lang="hu">KÖRNYEZETKÁROSODÁS</skos:prefLabel>
<skos:prefLabel xml:lang="nl">MILIEUVERONTREINIGING</skos:prefLabel>
<skos:prefLabel xml:lang="sv">MILJÖFÖRSTÖRELSE</skos:prefLabel>
<skos:prefLabel xml:lang="da">MILJØFORVÆRRING</skos:prefLabel>
<skos:prefLabel xml:lang="cs">ZHORŠOVÁNÍ ŽIVOTNÍHO PROSTŘEDÍ</skos:prefLabel>
<skos:historyNote xml:lang="fi">TERMI POISTETTU KÄYTÖSTÄ ELOKUUSSA 2021</skos:historyNote>
<skos:historyNote xml:lang="de">BEGRIFF NICHT MEHR VERWENDET SEIT AUGUST 2021</skos:historyNote>
<skos:historyNote xml:lang="fr">CONCEPT RETIRÉ EN AOÛT 2021</skos:historyNote>
<skos:historyNote xml:lang="es">CONCEPTO DESCATALOGADO EN AGOSTO DE 2021</skos:historyNote>
<skos:historyNote xml:lang="no">KONSEPT AVVIKLET AUGUST 2021</skos:historyNote>
<skos:historyNote xml:lang="sv">TERMEN TOGS BORT I AUGUSTI 2021</skos:historyNote>
<skos:historyNote xml:lang="en">CONCEPT DEPRECATED AUGUST 2021 </skos:historyNote>
<skos:historyNote xml:lang="lt">TERMINAS NENAUDOJAMAS NUO 2021 M. RUGPJŪČIO MĖN.</skos:historyNote>
<dct:identifier xml:lang="en">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="cs">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="da">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="de">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="el">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="es">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="fi">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="fr">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="lt">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="nl">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="no">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="ro">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="sl">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="sv">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="is">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:identifier xml:lang="hu">
urn:ddi:int.cessda.elsst:bfde4f9b-6466-4c39-8680-39218dbb3580:3
</dct:identifier>
<dct:issued xml:lang="en">2022-09-20</dct:issued>
<dct:isVersionOf rdf:resource="https://elsst.cessda.eu/id/bfde4f9b-6466-4c39-8680-39218dbb3580"/>
<dct:modified xml:lang="en">2022-07-23T11:05:52</dct:modified>
<dct:isReplacedBy rdf:resource="https://elsst.cessda.eu/id/3/5a40a735-1eca-4afa-930c-0b131f06e8af"/>
</rdf:Description>

cessda-bitbucket-importer commented 2 years ago

Original comment by Stefan Dlugolinsky (GitHub: Stifo).


added RDF representation of concept deprecation:

The other RDF elements should be in accordance to some schema for exporting vocabularies in SKOS/RDF. There's something in #387, but the stuff for deprecation in not specified there. I would rather stick to a clear schema when adding additional elements to RDF, so I'm closing this issue.

cessda-bitbucket-importer commented 1 year ago

Original comment by Taina Jääskeläinen.


I’ve asked Darren to add info for deprecation in RDF either here or into the attached schema in #387.

@‌Darren Bell

cessda-bitbucket-importer commented 1 year ago

Original comment by Taina Jääskeläinen.


  <div class="preview-container wiki-content"><!-- loaded via ajax --></div>
  <div class="mask"></div>
</div>

cessda-bitbucket-importer commented 1 year ago

Original comment by Taina Jääskeläinen.


Darren, could you please add to the ModeOfCollection-1.0.1.rdf document that is attached here an example where the concept SelfAdministeredQuestionnaire is deprecated in the next version.

cessda-bitbucket-importer commented 1 year ago

Original comment by Taina Jääskeläinen.


I think we will go with the deprecation information added by Stefan for now. I will close this issue and put the information that we would need a clear schema for adding additional elements to RDF to the issue #387.

cessda-bitbucket-importer commented 1 year ago

Original comment by Taina Jääskeläinen.


@‌Oliver Hopt As agreed, Oliver will add ‘Valid to’ information for deprecated terms to SKOS/RDF.

cessda-bitbucket-importer commented 1 year ago

Original comment by Taina Jääskeläinen.


Valid from - also related to #431.

MajaDolinar commented 1 year ago

@OliverHopt could you please add this "Valid to" information for deprecated terms to SKOS/RDF? Please give an update on where we are with this