CLI: graph extensions#31
Conversation
|
it has already been abused slightly to deal with other forms so if some of the graphspec syntax suggested in the design does make sense then it may be worth fully reviewing I'm all for both the use of |
|
EOB comments:
|
|
Makes sense, happy to incorporate this into the text file by differentiating proposal 1 (extend obj) and proposal 2 (tree/graph new command). |
|
One other thing that'd be useful is to filter on field=value e.g. annotation namespaces: (or replace namespaces with Annotation-Folders?) |
|
The previous comment also helps with some of the IDR scripts where the workflow is
Step 2 could be replaced with something like |
|
I'd second some of @joshmoore's comments and go fro a A separate command to |
|
Tried to capture most of the comments above into the last commits. |
|
So, it looks like we're approaching:
as the 2 basic command structures. (Or are there more?). Does that mean the primary discussion is the one or more formats of
are all mentioned. It would be good to have votes concerning: difficulty of implementing, current need, and aesthetic appeal for each of these. My brief opinions to the open questions:
|
|
From the experimental metadata plugin: It's almost YAML, so we could go all the way and make it actual yaml/json |
|
Pushed a last commit which captures the content of the last few comments. At this point, I suggest we review everything discussed above has been included in the first draft of the document, get this merged and handle new suggestions/improvements in new PRs during the OMERO 5.3.x scoping round. |
|
|
||
| Link images in between datasets | ||
|
|
||
| omero tree link Dataset:1 Dataset:2 |
There was a problem hiding this comment.
Here the xpath style reads much better than the older style. While there can be only images in a Dataset this command suggests the linking of the two Datasets rather than the contents of one. In this case I prefer the explicitness of the xpath format. Though from an example of tree copy below I assume it could also be expressed as:
omero tree link Dataset:1/* Dataset:2
There was a problem hiding this comment.
Image-Image links have been on the cards for a while, one day we might have Dataset-Dataset links.
There was a problem hiding this comment.
Yes, having a future-proof (as much as it is possible) format makes sense, the xpath format seems to offer more possibility for that.
Also here I would read:
omero tree link Dataset:1/Image:* Dataset:2
omero tree link Dataset:1/* Dataset:2
as equivalent while the only thing we can have in Datasets are Images but potentially different if we include things attached to Datasets. Is there a proposed way of distinguishing, say, Image from Annotations?
There was a problem hiding this comment.
How about something along the lines of:
omero tree link Dataset:1/Image:* Dataset:2omero tree link Dataset:1/Annotation:* Dataset:2omero tree link Dataset:1/* Dataset:2Everything including any future child types
To link some images (only those with a particular annotation):
omero tree link Dataset:1/Image[annotation=123]: Dataset:2omero tree link Dataset:1/Image[annotation.value=abc]: Dataset:2
There was a problem hiding this comment.
I definitely see the readability of the xpath style over the other one. Would be interesting to hear the drawbacks (implementation time?). As suggested in #31 (comment), do you want to formalize your xpath proposal in a follow-up PR?
Following recent discussion with @manics @ximenesuk @joshmoore @mtbc