Specification of the MET Norway discovery and configuration metadata standard. This is compatible with ISO19115 (various profiles), DataCite and GCMD DIF.
The repository contains the MMD standard (in the xsd
folder), its
documentation (in the docs
folder), xml-files to handle translation
between various metadata standards and MMD (in the xslt
folder),
conversion scripts and examples (in the src
folder), and example
metadata for example datasets (in the input-examples
folder).
The latest version of the mmd specification is available here.
This script convert metadata files from either dif,iso or mm2 to mmd format. Schema validation is done on input and output documents. Failed validation will be logged as warnings to stdout.
./src/convert-to-mmd.py -i <input file> -f <input format> -o <output file>
This script convert metadata files from mmd format to one of [dif,iso,mm2] format. Schema validation is done on input and output documents. Failed validation will be logged as warings to stdout.
./src/convert-from-mmd.py -i <input file> -f <output format> - o <output file>
This script reads the title and the time of the last metadata update of the metadata file, and generate UUID for the dataset.
./createMETUUID.py -i <input file>
add -w to overwrite input file
This script check that the XML file satisfy MMD requirements by means of the MMD XSD. It also checks that urls in document points to a valid url.
./checkMMD.py -i <dataset_name>
Script for parsing metadata conent of NetCDF files and create MET Norway Metadata format specification document (MMD) based on the discovery metadata. This will work on CF and ACDD compliant files.
see main() method in end of script for usage
Send a list of MMD metadata files to a GeoNetwork instance as ISO19139 metadata. Read a file with a liost of URLs to MMD metadata files. For each file, convert the file to ISO19139 and then send it to the GeoNetwork instance.
./send-to-geonetwork.pl <file with metadata file urls> <tmp directory>
Documentation was originally provided in OpenDocumentFormat. This became to difficult to maintain in a collaborative environment and it is now moved to ASCIIDOC following the example outlined by the Climate and Forecast convention community.
In order to build the documentation use the following command
asciidoctor -n mmd-specification.adoc
asciidoctor-pdf -a pdf-themesdir=./ -a pdf-theme=mmd -n mmd-specification.adoc
All code should be tested (100% test coverage), i.e.,
Badges at the top of this README indicate if tests are passing, and the actual test coverage.
GPL 3 or higher for software, Creative Commons BY for documents.