Skip to content

Commit

Permalink
EEA / Migration ISO19115-3 - validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Feb 18, 2025
1 parent fd29f7b commit 301b01b
Show file tree
Hide file tree
Showing 5 changed files with 901 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<strings>
<EEAmetadata.title>Metadata</EEAmetadata.title>

<EEAfileIdentifier.report>Record identifier is: </EEAfileIdentifier.report>
<EEAfileIdentifier.error>Missing record identifier.</EEAfileIdentifier.error>

<EEAmdLanguage.report>Record language is: </EEAmdLanguage.report>
<EEAmdLanguage.error>Missing metadata language.</EEAmdLanguage.error>

<EEAmdCharacterSet.report>Record character set is: </EEAmdCharacterSet.report>
<EEAmdCharacterSet.error>Missing metadata identifier.</EEAmdCharacterSet.error>


<EEAparentIdentifier.report>Parent identifier element should be added whenever the related series or parent resource has a metadata record in the SDI.</EEAparentIdentifier.report>

<EEAdateStamp.report>Record last update date is: </EEAdateStamp.report>
<EEAdateStamp.error>Missing date stamp.</EEAdateStamp.error>

<EEAstandardName.report>Record standard name is: </EEAstandardName.report>
<EEAstandardName.error>Missing standard name.</EEAstandardName.error>

<EEACitation>Citation</EEACitation>

<EEAEDITION.alert>Revision number in data directory does not match dataset edition.</EEAEDITION.alert>
<EEAEDITION.report>Dataset edition (also found in directory name) is </EEAEDITION.report>

<EEAStatus.report>Resource status is: </EEAStatus.report>
<EEAStatus.alert>Resource status is not defined. This value shall be filled in for obsolete, archived or superseded datasets, as well as for datasets from completed projects</EEAStatus.alert>

<EEA_CATEGORY.alert>There shall be one EEA category.</EEA_CATEGORY.alert>
<EEA_CATEGORY.report> EEA category found.</EEA_CATEGORY.report>
<EEA_CATEGORY.error>No EEA data category has been set.</EEA_CATEGORY.error>

<EEAGraphicOverview.report>At least one overview is provided</EEAGraphicOverview.report>
<EEAGraphicOverview.alert>Graphic overview is not set. This value shall be filled in with the URL of the thumbnail.</EEAGraphicOverview.alert>

<EEAQuality>Quality</EEAQuality>

<EEAsource.report>If record is derived from another,
the source element allows the logical link between a dataset metadata and the metadata
of the corresponding source dataset(s).</EEAsource.report>

<EEA.identifierInFilePath.alert>Resource identifier not found in all filepath. Check the link with the protocol EEA:FILEPATH or EEA:FOLDERPATH.</EEA.identifierInFilePath.alert>
<EEA.identifierInFilePath.report>Resource identifier found in all filepath.</EEA.identifierInFilePath.report>
</strings>
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<strings>
<EEAmetadata.title>Metadata</EEAmetadata.title>

<EEAhierarchyLevel.report>Record hierarchy level is: </EEAhierarchyLevel.report>

<EEAPublicationDateMustBeEqualOrAfterCreationDate.alert>Publication date MUST be equal or after creation date.</EEAPublicationDateMustBeEqualOrAfterCreationDate.alert>

<EEAPublicationDateIsEqualOrAfterCreationDate.alert>Publication date is equal or after creation date.</EEAPublicationDateIsEqualOrAfterCreationDate.alert>

<EEASRS>Coordinate reference system.</EEASRS>
<EEASRS.alert>
<div>The Coordinate Reference System shall be referred to with its EPSG code </div>
</EEASRS.alert>
<EEASRS.report>Coordinate Reference System found: </EEASRS.report>

<EEATITLE>Citation</EEATITLE>
<EEATITLE.alert>Metadata title not found.</EEATITLE.alert>
<EEATITLE.report>Metadata title is </EEATITLE.report>

<EEAPUBDATE.alert>Publication date is not defined for a dataset published on EEA website at URL: </EEAPUBDATE.alert>
<EEAPUBDATE.report>Publication date of the dataset on EEA website is </EEAPUBDATE.report>

<EEACREATIONDATE.alert>Creation date is not defined.</EEACREATIONDATE.alert>
<EEACREATIONDATE.report>Creation date is </EEACREATIONDATE.report>
<EEAPUBLICATIONDATE.report>Publication date is not defined. The publication date shall be entered at least for datasets published in the EEA website.</EEAPUBLICATIONDATE.report>

<EEAEDITION.alert>Revision number is empty.</EEAEDITION.alert>
<EEAEDITION.report>Dataset edition is </EEAEDITION.report>

<EEAID.alert>The dataset identifier is missing.</EEAID.alert>
<EEAID.report>The dataser identifier is </EEAID.report>

<EEA_TEMPORAL_RESOLUTION.report>The temporal resolution is </EEA_TEMPORAL_RESOLUTION.report>

<EEAABSTRACT.alert>The abstract is missing.</EEAABSTRACT.alert>
<EEAABSTRACT.report>The dataset is described by an abstract.</EEAABSTRACT.report>

<EEAPOC.alert>The responsible party acting as point of contact is not described.</EEAPOC.alert>
<EEAPOC.report>The dataset point of contact is described.</EEAPOC.report>

<EEACUSTODIAN.alert>The responsible party acting as custodian is not described and is required for datasets owned by the EEA.</EEACUSTODIAN.alert>
<EEACUSTODIAN.report>The dataset custodian is described.</EEACUSTODIAN.report>

<EEA_UP_FREQ.alert>Update frequency is required for a dataset with a revision number.</EEA_UP_FREQ.alert>
<EEA_UP_FREQ.report>Dataset (with an edition number) update frequency is </EEA_UP_FREQ.report>

<EEA_KEYWORD_GEMET.alert>There shall be more than one keyword from GEMET (3 or 4 is even better).</EEA_KEYWORD_GEMET.alert>
<EEA_KEYWORD_GEMET.report> GEMET concept(s) found.</EEA_KEYWORD_GEMET.report>

<EEA_KEYWORD_Regions.alert>There shall be more than one keyword describing the spatial coverage.</EEA_KEYWORD_Regions.alert>
<EEA_KEYWORD_Regions.report> spatial concept(s) found.</EEA_KEYWORD_Regions.report>

<EEA_KEYWORD_EEA.alert>There shall be one keyword from EEA keywords</EEA_KEYWORD_EEA.alert>
<EEA_KEYWORD_EEA.report> EEA keyword(s) found.</EEA_KEYWORD_EEA.report>
<EEA_KEYWORD_EEA.error>No keyword from the EEA list has been set.</EEA_KEYWORD_EEA.error>

<EEA_KEYWORD_EEA_TOPIC.alert>There shall be one EEA topic</EEA_KEYWORD_EEA_TOPIC.alert>
<EEA_KEYWORD_EEA_TOPIC.report> EEA topic(s) found.</EEA_KEYWORD_EEA_TOPIC.report>
<EEA_KEYWORD_EEA_TOPIC.error>No EEA topic defined.</EEA_KEYWORD_EEA_TOPIC.error>

<EEA_KEYWORD_SPATIALSCOPE.alert>There shall be one keyword defining the spatial scope</EEA_KEYWORD_SPATIALSCOPE.alert>
<EEA_KEYWORD_SPATIALSCOPE.report> Spatial scope keyword(s) found.</EEA_KEYWORD_SPATIALSCOPE.report>

<EEA_RESCONSTRAINT.alert>No resource constraint found.</EEA_RESCONSTRAINT.alert>
<EEA_RESCONSTRAINT.report>Resource constraint is </EEA_RESCONSTRAINT.report>

<EEA_RESACONSTRAINT.alert>No resource access constraint found.</EEA_RESACONSTRAINT.alert>
<EEA_RESACONSTRAINT.report>Resource access constraint is </EEA_RESACONSTRAINT.report>

<EEA_RESUCONSTRAINT.alert>No resource use constraint found.</EEA_RESUCONSTRAINT.alert>
<EEA_RESUCONSTRAINT.report>Resource use constraint is </EEA_RESUCONSTRAINT.report>

<EEA_SPATIAL_TYPE.alert>No spatial representation type found.</EEA_SPATIAL_TYPE.alert>
<EEA_SPATIAL_TYPE.report>The dataset spatial representation type is </EEA_SPATIAL_TYPE.report>

<EEA_SPATIAL_RESOLUTION.alert>A temporal resolution value shall be encoded for time series datasets.</EEA_SPATIAL_RESOLUTION.alert>
<EEA_SPATIAL_RESOLUTION.report>The dataset spatial resolution is </EEA_SPATIAL_RESOLUTION.report>

<EEA_TEMPORAL.alert>The time period covered by the content of the dataset is not described.</EEA_TEMPORAL.alert>
<EEA_TEMPORAL.report>The time period covered by the content of the dataset is described.</EEA_TEMPORAL.report>
</strings>
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@


<sch:let name="publisher"
value="(mdb:distributionInfo//mrd:distributorContact)[1]//cit:CI_Organisation/cit:name/gco:CharacterString"/>
value="if (mdb:distributionInfo//mrd:distributorContact)
then mdb:distributionInfo//mrd:distributorContact[1]/*/cit:CI_Organisation/cit:name/*/text()
else mdb:identificationInfo/*/gmd:pointOfContact[*/cit:role/*/@codeListValue = ('distributor', 'custodian')]/*/cit:CI_Organisation/cit:name/*/text()"/>

<sch:assert test="$publisher != ''">$loc/strings/datacite.publisher.missing</sch:assert>
<sch:report test="$publisher != ''">
Expand Down
Loading

0 comments on commit 301b01b

Please sign in to comment.