[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vocabularies

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: vocabularies
  • Date: Wed, 06 Oct 2004 11:19:56 -0600



Benno Blumenthal wrote:

Ethan Davis wrote:

We might want to allow multiple variable vocabulary names to each variable as well so that dataset variable names can be mapped into multiple conventions/controlled vocabs without repeating everything. For instance,

<variable name="wv">
   <vocabulary_name vocabulary="CF-1.0">Wind Speed</vocabulary_name>
<vocabulary_name vocabulary="DIF">EARTH SCIENCE, Atmosphere, Atmospheric Winds, Surface Winds</vocabulary_name>
   <units vocabulary="udunits>m/s</units>
</variable>

Ethan


An excellent point, which changes the way I think of attributes, and will probably change the way I code them: any attribute controlled by vocabularies might have different values for different vocabularies, and thus might get repeated. I take it that if I am willing to repeat everything, I am supposed to create a series of metadata containers, each with a different vocabulary, e.g.

<metadata vocabulary="DIF" inherit=true>
<vocabulary_name>EARTH SCIENCE, Atmosphere, Atmospheric Winds, Surface Winds</vocabulary_name>
</metadata>
<metadata vocabulary="CF-1.0" inherit=true>
<vocabulary_name>Wind Speed</vocabulary_name>
</metadata>


That's right. As InvCatalog 1.0 stands, the variables element is only allowed once per dataset element and once per metadata element, so repeating the variable information for different vocabularies would require enclosing each in a seperate metadata element.

Ethan

--
Ethan R. Davis                                Telephone: (303) 497-8155
Software Engineer                             Fax:       (303) 497-8690
UCAR Unidata Program Center                   E-mail:    address@hidden
P.O. Box 3000
Boulder, CO  80307-3000                       http://www.unidata.ucar.edu/
---------------------------------------------------------------------------