This text describes the data-model and the data-flow within METAMOD2. It is not about the real data files which are often handled by other applications, i.e. thredds.
All metadata in METAMOD should consist of two files, the .xml-files (META) and the .xmd-files (XMD).
The META files contain the discovery metadata as retrieved from an metadata-editor, extracted from netcdf-files or harvested from external metadata- repositories. The META files should be stored in the format they have been retrieved, e.g. DIF, ISO19139 or MM2. They will be converted on export from the "The Metadata Store".
The XMD files are metamod-related information of the metadata. They contain the following information:
datestamp are only accurate concerning METAMOD and XMD-files.
The META files might have own means to control the creationDate and datastamp and it is up to the metadata-creator to control those fields.
The XMD-files might also contain information which does not fit in discovery-metadata and is usable by METAMOD only. That is currently:
To access the XMD files only use Metamod::ForeignDataset. To access the information in the META files, too (converted to MM2), use Metamod::Dataset.
The Metadata Store of METAMOD is file-based in the
webrun/XML directory of the instanses.
It is the authoritative source of all information about Metadata and the way Metamod uses it (META and XMD files).
It has no information related to metamod-users,
The XMD and META files are stored in directories named APPLICATION_ID.
The SQL Database consists of two parts,
called Index- and User-databse.
The database can be used by several instances of metamod.
one instance will have the ownership of the database.
That intance is then responsible for database-creation and all metadata-indexing.
That instance will need the path to all instances
The Index-database is an excerpt of all Metadata Stores for faster (indexed) access. All META files are converted to MM2 metadata to be searchable in an easy way. Only the web-needed information from the META-files can be found in the database.
The User-database stores all information related directly to users of metamod. That is: