belgif / fedvoc

Federal Vocabularies
6 stars 0 forks source link

New naming rules codes and concept schemes #27

Closed pvdbosch closed 7 months ago

pvdbosch commented 1 year ago

Align with REST guide for code schemas - https://github.com/belgif/rest-guide/issues/94:

Status (*) = old:

with code (~ OpenAPI types) without code status
GenderCode(*) Gender already OK
HouseholdRelationTypeCode HouseholdRelationType(*) still in beta; changed in main branch to Code
CivilStatusTypeCode CivilStatusType(*) still in beta; changed in main branch to Code
RegionCode(*) Region already OK
CountryNisCode(*) CountryNis already OK
CurrencyCode Currency(*) updated in 1.1.0; deprecated old name
MunicipalityCode (*) Municipality already OK

Property that should be converted to a ConceptScheme: countryWithHistoryIsoCode CountryWithHistoricIsoCode + inSwagger (draft tab)

Properties that can be removed because general "country" property exists, as well as ConceptSchemes:

JDMKSZ commented 1 year ago

My comment on this during the meeting last Friday: as a ConceptScheme in itself contains (a list of concepts having) a code (notation?) plus a label, I don't think the -Code suffix is necessary/appropriate.

pvdbosch commented 1 year ago

From what I'm reading, I think we're mixing up skos:Concept(Scheme) and skos:notation in FedVoc.

A skos:ConceptScheme is a collection of a set of Concepts. A skos:Concept is a conceptual definition, independent of any notation. A skos:notation is a lexical notation / codification.

An example based on the EU country authority list:

https://publications.europa.eu/resource/authority/country is the ConceptScheme including all countries recognized by the EU http://publications.europa.eu/resource/authority/country/BEL is the Concept of the country Belgium. It has about 30 notations, e.g.:

So, applied to FedVoc:

pvdbosch commented 1 year ago

We'd have following modifications when going through fedvoc to separate concept schemes and notations: skos datatypes modifications.xlsx

(not all comments/definitions updated yet)

update: used Data Type instead of Notation in the excel

pvdbosch commented 7 months ago

a "Code" suffix has been added to all concerned schemas.

This unblocks then graduation of CivilStatusTypeCode and HouseholdRelationTypeCode:

MarcBruyland commented 7 months ago

Issue can be closed as decided by the functional workgroup on 2024-04-12.