Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 2.1 KB

File metadata and controls

58 lines (41 loc) · 2.1 KB

GeoNetwork metadata schema generator

Yeoman generator to create a new metadata schemas based in iso19139 schema for GeoNetwork opensource

Installation

First, install Yeoman using npm (we assume you have pre-installed node.js).

npm install -g yo

Install the GeoNetwork metadata schema generator:

git clone https://github.com/josegar74/generator-geonetwork-metadata-schema.git
cd generator-geonetwork-metadata-schema
npm install
npm link

Usage

To generate your new project:

yo geonetwork-metadata-schema

Enter the following information:

  • Metadata schema name: enter the name of the metadata schema. For ISO19139 metadata schemas, should follow this format: iso19139.name.
  • Metadata schema title: descriptive title of the metadata schema.
  • Metadata schema description: description of the metadata schema.
  • GeoNetwork version: select one of the provided choices. Current versions supported:
    • 3.4.1
    • 3.4.2
    • 3.4.3+ (since 3.4.3 pom version management is different than from previous 3.4 releases)
    • 3.5 (current GeoNetwork master branch)
  • Use metadata standard name (gmd:metadataStandardName) and version (gmd:metadataStandardVersion) elements to identify the metadata: if selected the user is prompted for the metadata standard name and version values.
  • Create Java plugin code: If selected, specific Java code is created for the metadata schema, otherwise relies on ISO19139 Java code.

Example:

? Metadata schema name iso19139.gdpr
? Metadata schema title ISO19139 GDPR Profile Version 1.0
? Metadata schema description The European General Data Protection Regulation recommends to set up a registry to capture for each dataset containing sensitive personal data details about the treatment of the 
dataset. This profile extends the ISO 19139 schema to facilitate to capture typical GDPR metadata elements, that do not fit in any of the ISO 19139 fields.
? GeoNetwork version 3.4.3+
? Create Java plugin code? No

License

MIT © Jose García