From: Adam R. <ad...@ex...> - 2010-07-30 09:37:40
|
> I like the idea of metadata axis. Your proposal for name/value pairs is > simple and it can accommodate most of variations we may need. Keep in mind that a value would be either an atomic value or a sequence; of XML Schema Data Type. >> Accessing this metadata at the moment is possible via the image xquery >> extension module. > > > Actually the the existing image module gives vary limited metadata: hight, > width and image type. > It will really love to have all EXIF properties of an image as searchable > metadata fields. Well we could very easily integrate the JpegParser from Apache Tika into the Image metadata function... > What will be the format of the metadata if we request all available pairs? > May be an element with all metadata pairs as attributes. I am not sure at the moment, some sort of serialized xml format perhaps - e.g. /metadata::* <metadata xmlns="http://exist-db.org/metadata"> <key name="someKey"> <value type="xs:string">hello world</value> </key> <key name="otherValue"> <value type="node()"> <a xmlns=""><b/></a> </value> </key> </metadata> -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |