[Midas] saving file in Midas metadata

Zach Mullen zach.mullen at kitware.com
Fri Jun 29 12:41:43 EDT 2012


On Thu, Jun 28, 2012 at 3:14 PM, Mona Wong <mona at sdsc.edu> wrote:

>
> Hi:
>
>        How do I programmatically store metadata into Midas?
>
>        I see the web API has midas.item.getmetadata and there is also
> midas.resource.search but midas.item.create doesn't seem to take a metadata
> argument.  By the way, does midas.resource.search search for metadata or
> something else?  Is a file consider a resource or does
> midas.resource.search return other types of objects
>

As Michael said, we have recently rewritten a lot of our search code to
make simple searching very effective.  One thing that is still not quite
there is our "advanced" search capabilities, which will allow you to search
by specific metadata fields using Lucene syntax.  Right now, all we have is
a simplified version that searches through the list of all metadata
*values*, but does not filter the search by specific metadata fields.

So if you had a piece of metadata with the Element "foo" and the value
"bar", and did a search (through the API or the web interface) for "bar",
you would get a hit on that item, but if you did a search for "foo", you
would not.  There is currently an outstanding issue in our tracker for
adding in the advanced search interface, and I imagine we can work it in as
part of the current effort.

Thanks,

Zach

>
> Mona
>
> *********************************************
>    Mona Wong
>    Web & iPad Application Developer
>    San Diego Supercomputer Center
>
>    You are the light you wish to see.
> *********************************************
>
>
>
> _______________________________________________
> Midas mailing list
> Midas at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120629/f0da1d71/attachment.html>


More information about the Midas mailing list