View on GitHub

validator

Validateur de données initialement développé pour le géoportail de l'urbanisme

Metadata - resourceConstraints

Implementation notes about gmd:resourceConstraints parsing.

Principles

Constraint types

Type Description
MD_Constraints Restrictions on the access and use of a dataset or metadata.
MD_LegalConstraints Subclass of MD_Constraints describing restrictions and legal prerequisites for accessing and using the dataset.
MD_SecurityConstraints Subclass of MD_Constraints handling restrictions imposed on the dataset because of national security, privacy, or other concerns

Attributes for each constraint type

  Type MD_Constraints MD_LegalConstraints MD_SecurityConstraints
useLimitation String [0..*] [0..*] [0..*]
accessConstraints MD_RestrictionCode 0 [0..*] 0
useConstraints MD_RestrictionCode 0 [0..*] 0
otherConstraints String 0 [0..*] 0
classification MD_ClassificationCode 0 0 [1..1]
userNote String 0 0 [0..1]
classificationSystem String 0 0 [0..1]
handlingDescription String 0 0 [0..1]

Parsing by the validator

The class of a constraint is deduced from its content (not from the element name) :

userNote, classificationSystem and handlingDescription are not parsed.

useLimitation and gmx:Anchor

useLimitation may be a gco:CharacterString or a gmx:Anchor (INSPIRE) :

<gmd:useLimitation>
    <gmx:Anchor xlink:href="https://www.etalab.gouv.fr/wp-content/uploads/2017/04/ETALAB-Licence-Ouverte-v2.0.pdf">Licence Ouverte 2.0</gmx:Anchor>
</gmd:useLimitation>

The text is always stored in useLimitations. The optional useLimitationUrls property (omitted when no anchor has an xlink:href) contains the xlink:href of each limitation, at the same index (null when absent).

MD_RestrictionCode

Source : http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode

MD_ClassificationCode

Source : http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ClassificationCode

Limitations on public access

Quotes from TODO_REF :

Condition applying to access and use

Resources