Dear Dave,
That one isn't an easy query for anybody.
You are using a very old OMERO though, since 5.3.x there is a convenience request
http://downloads.openmicroscopy.org/lat ... ndChildren which will find, say, files in projects without requiring the user to specify the details of that "in". One can script that as at
https://github.com/openmicroscopy/openm ... r176124789 but we hope someday to make it available at the command line as noted at the bottom of
https://github.com/openmicroscopy/desig ... 1/index.md.
More directly for the query you were envisioning, with the help of
https://docs.openmicroscopy.org/latest/ ... bject.html you can find your way along the model from Project:
- Code: Select all
$ bin/omero hql -q "SELECT i.id, f.details.owner.omeName, o.path || o.name FROM Project AS p JOIN p.datasetLinks pdl JOIN pdl.child AS d JOIN d.imageLinks AS dil JOIN dil.child AS i JOIN i.fileset AS f JOIN f.usedFiles AS u JOIN u.originalFile AS o WHERE p.id = 1234"
for the image IDs, fileset owners and managed repository file paths for the images of project ID 1234.
Do note that images' files are organized into groups named filesets as at
https://docs.openmicroscopy.org/latest/ ... l#filesets and that if you need the files archived for images back in OMERO 4.x then those are not in the managed repository and require a different query.
We are currently looking at polishing and making available a Java-based command-line download utility (currently in prototype) that can obtain a local copy of all of a project's imported image files, organized by fileset and image. However, that requires at least OMERO 5.3.
Please do feel free to ask anything further about the above or anything else.
Cheers,
Mark