<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><blockquote type="cite"><div>You can store metadata at the time of creating an item by passing a param starting with underscore.</div></blockquote><div><br></div><span class="Apple-tab-span" style="white-space:pre">  </span>That great!</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>FYI, the web api doc seems to say that you can only store metadata when you update an existing item, not when you create a new item:</div><div><span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Lucida Sans Unicode', helvetica, arial, verdana, sans-serif; font-size: 12px; "><ul class="listmethods"><li class="methodListElement" style="margin-bottom: 3px; ">midas.item.create <a class="showHideHelp" style="cursor: pointer; color: rgb(86, 117, 139); text-decoration: none; font-weight: 500; ">?</a></li><div class="helpContent" style="font-size: 10px; margin-bottom: 5px; margin-top: 5px; background-color: rgb(221, 221, 221); display: block; ">Create an item or update an existing one if one exists by the uuid passed. Note: In the case of an already existing item, any parameters passed whose name begins with an underscore are assumed to be metadata fields to set on the item.<br><b>Parameters</b><ul><li><b>token</b> - Authentication token</li></ul><ul><li><b>parentid</b> - The id of the parent folder. Only required for creating a new item.</li></ul><ul><li><b>name</b> - The name of the item to create</li></ul><ul><li><b>description</b> - (Optional) The description of the item</li></ul><ul><li><b>uuid</b> - (Optional) Uuid of the item. If none is passed, will generate one.</li></ul><ul><li><b>privacy</b> - (Optional) Default 'Public', possible values [Public|Private].</li></ul><b>Return</b> - The item object that was created</div></ul></span><div><br></div><blockquote type="cite"><div>We use a triple <b>(Element, Qualifier, Value)</b> for our metadata, and this method will set the <b>Element</b> and <b>Value</b>, but leave a blank string as the <b>Qualifier</b>.</div>

<div><br></div><div><br></div><div>So if you are creating an item, and pass <b>_SeriesId=6</b> as a parameter to the <b>midas.item.create</b> method, that item will have metadata of</div><div><br></div><div><b>(SeriesId, '', 6)</b></div>

<div><br></div><div><br></div><div>You can always use the <b>midas.item.setmetadata</b> api call to add further metadata to an item, or to record an Element, Qualifier and Value.</div></blockquote><div><br></div><span class="Apple-tab-span" style="white-space:pre"> </span>Can you have multiple values for a single element?  In our case, we have multiple ontology terms that we've like to store in the metadata for that item.  These ontology terms are just strings like "foot, fat embolish,..."</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>if I add an element/value pair like, x=y during midas.item.create and then use midas.item.setmetadata to set element value pair x=z; will x=y, z or just z?</div><div><br></div><div>Mona</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">*********************************************<br>    Mona Wong<br>    Web & iPad Application Developer</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">    San Diego Supercomputer Center<br><br>    You are the light you wish to see.<br>*********************************************<br><br><br></div></span></span>
</div>
<br></body></html>