[ome-devel] ID pattern

Andrew Patterson ajpatterson at lifesci.dundee.ac.uk
Thu Jul 25 21:38:28 BST 2013


Hello Heinrich,

There is a page in the documentation about IDs.
http://www.openmicroscopy.org/site/support/ome-model/developers/id-and-lsid.html

But basically yes, the left most part is enforced by the regex, the right most part is free text.

Annotation:1 is valid.
OffsetAnnotation:1 is not valid.
Annotation:Offset:1 is valid.
urn:lsid:ph.tum.de:Annotation:1 is valid with respect to the regex but to be a genuine LSID is should contain a guid to make it unique. e.g. 'urn:lsid:ph.tum.de:Annotation:B13E1E30-AA09-4DD7-8962-6D7E6EB7768C'

If you are working with objects within a file the short form is sufficient.

Hope this helps,

Andrew


On 25 Jul 2013, at 19:05, "Grabmayr, Heinrich" <Heinrich.Grabmayr at ph.tum.de> wrote:

> Hi all,
>  
> for saving OME-TIF images from LabView, I have developed a c++ dll. I just run the validator and it complains about my Annotation IDs, the required patterns of which I have ignored up to now. The schema I use (2010-06 [that was when I started]) wants the ID to look like this:
>                 ((urn:lsid:([\w\-\.]+\.[\w\-\.]+)+:\S+:\S+)|(\S+:\S+)) & ((urn:lsid:([\w\-\.]+\.[\w\-\.]+)+:Annotation:\S+)|(Annotation:\S+))
> Could you please explain how I should read this?
> \S are strings I guess
> | tells me I can use the right or the left nomenclature
> & both left and right of the sign???
> \w ?
> + ?
>  
>  
> PS: Up to now, I called them “Annotation:i” with I some integer. Today I changed this to describe the annotation, like “OffsetAnnotation:i”. I guess that was wrong seeing the rightmost pattern possibility..
>  
> thanks
>   Heinrich
>  
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel



More information about the ome-devel mailing list