U.S. Geological Survey

USGS NSDI Tools for creation of formal metadata
mp

A compiler for formal metadata

This program is a compiler to parse formal metadata, checking the syntax against the FGDC Content Standard for Digital Geospatial Metadata and generating output suitable for viewing with a web browser or text editor. It runs on UNIX systems and on PC's running Windows 95, 98, or NT. MP generates a textual report indicating errors in the metadata, primarily in the structure but also in the values of some of the scalar elements (i.e. those whose values are restricted by the standard).

The compiler, its source code, executables for UNIX (DG/UX, HP/UX, IRIX, and Linux) and Microsoft Windows 95, 98, and NT, and its own formal metadata are available through

<http://geology.usgs.gov/tools/metadata/>

Usage

Basic usage is
    mp [options] input_file
where input_file is the name of a text file containing metadata encoded as described in the encoding format document or in SGML conforming to a specific Document Type Definition (DTD). These command-line options are available:
	-c cfile    obtains configuration information from cfile
	-e efile    directs syntax errors to efile
	-t tfile    creates text output in tfile
	-h hfile    creates html output in hfile
	-f ffile    creates FAQ-style html output in ffile
	-s sfile    creates sgml output in sfile
	-d dfile    creates DIF  output in dfile
Syntax error messages indicate the nature of discrepancies between the input file and the standard, and the line numbers of the relevant elements in the input file. If -e efile is not specified, syntax errors are written to stderr, which is usually the console (for MS-DOS) or the terminal from which the compiler is launched.

Input

Since the FGDC Content Standard for Digital Geospatial Metadata, as the name implies, specifies only the contents of metadata files and not their encoding, it was necessary to devise a specification for metadata encoding in order to develop and use this compiler. The encoding format is purely textual and the fidelity of the compiler to this format is fanatical.


Note: mp does not read word-processor documents, it only reads ASCII text, SGML, and XML!

Output

Acknowledgements

Questions, comments, and suggestions are welcome. A number of people have assisted me with performance and portability issues, including Chuck Denham (USGS), Mark Graves (US Army), Sol Katz (BLM), Tom McCulloch (USGS), Eric Miller (OCLC), Doug Nebert (USGS), Tom Northcutt (NASA), Barbara Poore (USGS), Chuck Stein (Mirror Imaging), and Susan Stitt (NBS).

Technical contact:

    Peter N. Schweitzer
    Mail Stop 918, National Center
    U.S. Geological Survey
    Reston, VA 20192

    Tel: (703) 648-6533
    FAX: (703) 648-6560
    Email: pschweitzer@usgs.gov

This file is <http://geology.usgs.gov/tools/metadata/tools/doc/mp.html>
Last updated 29-Apr-1999