<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://88/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Michael & Christophe,<div><br></div><div> I thought Christophe was trying to get ALL tags (not tags on an Image etc).</div><div>From what I can see, the metadata service gives you tags attached to objects?</div><div><br></div><div>Christophe, perhaps you can clarify what criteria you want to load Tags by?</div><div>Just get ALL tags in the system? Belonging to a particular user? With a particular namespace or value?</div><div><br></div><div> Cheers,</div><div><br></div><div> Will.</div><div><br></div><div><br></div><div><div>On 7 Jan 2016, at 15:10, "Michael Porter (Staff)" <<a href="mailto:m.porter@dundee.ac.uk">m.porter@dundee.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-GB" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Hi Christophe<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">I’m not 100% sure, since I’ve never used it for this, but if you want to get a tags in a user/system centric way rather than an image-centric way, you need to get the metadataService from the session object (<a href="http://www.openmicroscopy.org/site/support/omero5.2/developers/Modules/Api.html" style="color: purple; text-decoration: underline; ">http://www.openmicroscopy.org/site/support/omero5.2/developers/Modules/Api.html</a><span class="Apple-converted-space"> </span>) . I think from here you can use the loadAnnotations method (<a href="http://downloads.openmicroscopy.org/omero/5.2.1/api/ome/api/IMetadata.html#loadAnnotations-java.lang.Class-java.util.Set-java.util.Set-java.util.Set-ome.parameters.Parameters-" style="color: purple; text-decoration: underline; ">http://downloads.openmicroscopy.org/omero/5.2.1/api/ome/api/IMetadata.html#loadAnnotations-java.lang.Class-java.util.Set-java.util.Set-java.util.Set-ome.parameters.Parameters-</a>)<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); ">Michael.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); "> </span></div><div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; ">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; "><span class="Apple-converted-space"> </span>ome-devel [mailto:ome-<a href="mailto:devel-bounces@lists.openmicroscopy.org.uk" style="color: purple; text-decoration: underline; ">devel-bounces@lists.openmicroscopy.org.uk</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Christophe TREFOIS<br><b>Sent:</b><span class="Apple-converted-space"> </span>07 January 2016 13:38<br><b>To:</b><span class="Apple-converted-space"> </span>OME External Developer List <<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" style="color: purple; text-decoration: underline; ">ome-devel@lists.openmicroscopy.org.uk</a>><br><b>Subject:</b><span class="Apple-converted-space"> </span>[ome-devel] Get list of Tags in Matlab<o:p></o:p></span></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Hi all,<o:p></o:p></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">I have been trying to get a list of all tags using MATLAB and OMERO 5, and I’m sort of struggling.<o:p></o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">I saw that Will posted some code for Python on the mailing a while back, but those functions are not available in Matlab.<o:p></o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Does anybody have any pointers how to do this without looping over all images?<o:p></o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Kind regards,<o:p></o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">—<o:p></o:p></div></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">Christophe<o:p></o:p></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; line-height: 12pt; "><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">Dr Christophe Trefois, Dipl.-Ing.</span></b><span class="apple-converted-space"><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(33, 33, 33); "> </span></span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(33, 33, 33); "><br></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">Technical Specialist / Post-Doc</span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(33, 33, 33); "><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; line-height: 12pt; "><b><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">UNIVERSITÉ DU LUXEMBOURG</span></b><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "><br><br></span><b><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">LUXEMBOURG CENTRE FOR SYSTEMS BIOMEDICINE</span></b><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "><br></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">Campus Belval | House of Biomedicine<span class="apple-converted-space"> </span><br><span class="apple-converted-space">6, avenue du Swing </span><br>L-4367 Belvaux<span class="apple-converted-space"> </span></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "><br></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">T:<span class="apple-converted-space"> </span>+352 46 66 44 6124</span><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "> </span></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "><br></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">F:<span class="apple-converted-space"> </span>+352 46 66 44 6949</span><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "> </span></span><span style="font-size: 7.5pt; font-family: Arial, sans-serif; "><br><a href="http://www.uni.lu/lcsb" style="color: purple; text-decoration: underline; "><span style="color: rgb(0, 109, 189); ">http://www.uni.lu/lcsb</span></a><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; line-height: 12pt; "><span style="font-size: 10.5pt; font-family: Arial, sans-serif; "><a href="https://www.facebook.com/trefex" style="color: purple; text-decoration: underline; "><span style="border: 1pt solid windowtext; padding: 0cm; text-decoration: none; "><object border="0" width="24" height="24" id="_x0000_i1025" alt="Image removed by sender. Facebook" data="cid:image001.jpg@01D1495C.BB8A0AA0" type="application/x-apple-msg-attachment"></object></span></a><span class="apple-converted-space"> </span><a href="https://twitter.com/Trefex" style="color: purple; text-decoration: underline; "><span style="border: 1pt solid windowtext; padding: 0cm; text-decoration: none; "><object border="0" width="24" height="24" id="_x0000_i1026" alt="Image removed by sender. Twitter" data="cid:image001.jpg@01D1495C.BB8A0AA0" type="application/x-apple-msg-attachment"></object></span></a><span class="apple-converted-space"> </span><a href="https://plus.google.com/+ChristopheTrefois/" style="color: purple; text-decoration: underline; "><span style="border: 1pt solid windowtext; padding: 0cm; text-decoration: none; "><object border="0" width="24" height="24" id="_x0000_i1027" alt="Image removed by sender. Google Plus" data="cid:image001.jpg@01D1495C.BB8A0AA0" type="application/x-apple-msg-attachment"></object></span></a><span class="apple-converted-space"> </span><a href="https://www.linkedin.com/in/trefoischristophe" style="color: purple; text-decoration: underline; "><span style="border: 1pt solid windowtext; padding: 0cm; text-decoration: none; "><object border="0" width="24" height="24" id="_x0000_i1028" alt="Image removed by sender. Linkedin" data="cid:image001.jpg@01D1495C.BB8A0AA0" type="application/x-apple-msg-attachment"></object></span></a><span class="apple-converted-space"> </span><a href="http://skype:Trefex?call" style="color: purple; text-decoration: underline; "><span style="border: 1pt solid windowtext; padding: 0cm; text-decoration: none; "><object border="0" width="24" height="24" id="_x0000_i1029" alt="Image removed by sender. skype" data="cid:image001.jpg@01D1495C.BB8A0AA0" type="application/x-apple-msg-attachment"></object></span></a><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; line-height: 12pt; "><span style="font-size: 7pt; font-family: Arial, sans-serif; color: rgb(61, 59, 59); ">----<br>This message is confidential and may contain privileged information.<span class="apple-converted-space"> </span><br>It is intended for the named recipient only.<span class="apple-converted-space"> </span><br>If you receive it in error please notify me and permanently delete the original message and any copies.<span class="apple-converted-space"> </span><br>----<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><span style=""> <span class="apple-converted-space"> </span><o:p></o:p></span></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; "><o:p> </o:p></div></div></div><br><span style="font-size: 10pt; ">The University of Dundee is a registered Scottish Charity, No: SC015096</span><span class="Apple-converted-space"> </span><span><~WRD000.jpg></span>_______________________________________________<br>ome-devel mailing list<br><a href="mailto:ome-devel@lists.openmicroscopy.org.uk" style="color: purple; text-decoration: underline; ">ome-devel@lists.openmicroscopy.org.uk</a><br><a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" style="color: purple; text-decoration: underline; ">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br></div></blockquote></div><br></body></html>