co-cddo / ukgov-metadata-exchange-model

A metadata model for describing data assets for exchanging between UK government organisations.
https://co-cddo.github.io/ukgov-metadata-exchange-model/
Other
12 stars 1 forks source link

distribution is incorrectly configured as a uriorcurie #72

Open RobNicholsGDS opened 7 months ago

RobNicholsGDS commented 7 months ago

Describe the bug When validating a distribution element, the system is only excepting a string as valid input

The error The definition at https://github.com/co-cddo/ukgov-metadata-exchange-model/blob/main/src/model/uk_cross_government_metadata_exchange_model.yaml#L317 is incorrect.

In the section:

  distribution:
    slot_uri: dcat:distribution
    description: An available distribution of the dataset.
    recommended: true
    multivalued: true
    range: uriorcurie

The range should be distribution and not uriorcurie.

RobNicholsGDS commented 7 months ago

@AlasdairGray Could you clarify that this is a bug please.

AlasdairGray commented 7 months ago

The modelling is not as tight as we would like it to be. Ideally, we would want to restrict the range to an array of objects that are nested Distribution descriptions or identifiers (URIs or CURIEs) of Distribution descriptions.

By putting in uriorcurie I was capturing the latter case but not the former. The assumption being that Distributions would have their own identity rather than being anonymous resources.

cyberdudeuk commented 4 months ago

@RobNicholsGDS can this be closed now?