Hey Ricky, On Jan 18, 2012, at 3:35 PM, Nguyen, Ricky wrote:
> Chris, > > I like this idea. Sheryl came up with the same thing independently (great > minds!) when we were talking offline. +1, darn right! Good job guys. >> >> Here's another way that I think will help with what your intended use >> of the metadata is (to query for it in the PGE, for example). >> >> <keyval> >> <key>EpisodeStartDateTime</key> >> <val>2011-01-17</val> >> <val>2011-01-18</val> >> </keyval> >> >> <keyval> >> <key>EpisodeEndDateTime</key> >> <val>TBD</val> >> <val>TBD</val> >> </keyval> >> >> [...snip...] > > > <key>NumEpisodes</key> > <val>2</val> > > would help with this. +1, agreed. >> >> No need it assumes that by default, since it's a NoSQL type store :) > > > +1. With your proposed metadata, the _keys_ are still be pre-defined in > elements.xml as NumEpisodes, EpisodeStartTime, EpisodeEndTime. But now the > _values_ are multi-valued lists which can grow as necessary. +1. > > A related question: is there a way to use dynamic metadata keys, or must all > keys be predefined in elements.xml ? Right now all the keys must be defined in elements.xml (per the XMLValidationLayer). There has been discussions of any one (or all of the following): 1. config option in XMLValidationLayer to simply accept all provided metadata. Config option would appear in filemgr.properties properly namespaced, and read in the XMLValidationLayerFactory. 2. a new ValidationLayer would be created (AcceptAllMetValidationLayer) that did the same thing as #1, but without a config option, and the need to officially "change" the selected ValidationLayer extension point. 3. the addition of (similar to Apache Solr) the ability to read '*' fields, or regex fields, and to specify those in elements.xml, either as (a) an addition to the XMLValidationLayer [with config options]; and/or (b) a new ValidationLayer with the ability to read its own form of elements.xml with those types of Fields. HTH! Cheers, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
