|
|
| Training for creation of formal metadata | |
| Workshop session two |
login: meta01 password:If you're using the standard Bourne shell, the system prompt will be a dollar sign, and if you're running the C shell or one of its variants, the prompt will be a percent sign.
$ ls -laF
$ cd examples $ ls -laF
$ ls -laF dds27.met
$ mp
Usage: mp [-e efile] [-c cfile] [-t tfile] [-h hfile] [-s sfile] [-d dfile] input_file
where efile will contain syntax errors
cfile contains configuration info
tfile will contain text output
hfile will contain html output
sfile will contain sgml output
dfile will contain DIF output
If you don't get this "usage" text but instead see lots of PostScript
code, then the mp that the system found first is a program
associated with the mail system. Find our mp and give its
full path name, like /usr/local/bin/mp.
$ mp dds27.met
$ mp dds27.met -e dds27.err
$ xed dds27.err dds27.metIn xed, the top line of the window is a "status line" that shows you what line you're on, what column your cursor is in, whether you're in Insert and Autoindent mode, the width that tabs will be expanded, and the name of the file you're editing (a '+' before the name means you've made changes to the file).
Spatial_Data_Organization_Information =
0{Indirect_Spatial_Reference}1 +
0{Direct_Spatial_Reference_Method +
( [Point_and_Vector_Object_Information |
Raster_Object_Information] )}1
Note that Raster_Object_Information, if applicable, is not
supposed to be repeated.
$ mp dds27.met -e dds27.err -h dds27.html -f dds27.faq.html -s dds27.sgml -d dds27.dif -t dds27.txtThis generates the following files in the following formats:
| Format | Name | |
|---|---|---|
| FAQ | FAQ-style hypertext markup language | dds27.faq.html |
| HTML | Hypertext markup language | dds27.html |
| SGML | Standard generalized markup language | dds27.sgml |
| DIF | Directory interchange format | dds27.dif |
| (text) | Indented text | dds27.txt |
Examine each of these files. Note that the HTML, SGML, and text formats contain the same information, and the DIF record expresses some of the metadata in a different schema.