Page 1 of 1

Searching for IDs using the Command Line Interface

PostPosted: Wed May 18, 2016 6:08 pm
by gregj
I'm trying to use the command line interface to retreive the parent dataset ID from an image ID, but can not seem to find much by the way of documentation for this functionality. I've figured out how to search by image filename content, as in:

Code: Select all
omero search Image *.tif


But I can not figure out how to find an image from ID, much less it's parent directory.

Is this functionality supported?

Re: Searching for IDs using the Command Line Interface

PostPosted: Wed May 18, 2016 6:18 pm
by jmoore
Try:

Code: Select all
omero hql -q "select d.id, d.name from Dataset d join d.imageLinks il where il.child.id = 1884807"


Cheers,
~Josh.