CustomAttributes
Using <CustomAttributes> Elements
Custom attributes provide a mechanism using XML to create attributes of a particular semantic-type outside of OME. These XML files can be imported into OME (after the semantic-type definition was imported into OME) to populate the appropriate database tables.
<OME xmlns="http://www.openmicroscopy.org/XMLschemas/OME/FC/ome.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:STD="http://www.openmicroscopy.org/XMLschemas/STD/RC2/STD.xsd" xsi:schemaLocation = " \ http://www.openmicroscopy.org/XMLschemas/OME/FC/ome.xsd \ http://www.openmicroscopy.org/XMLschemas/OME/FC/ome.xsd \ http://www.openmicroscopy.org/XMLschemas/STD/RC2/STD.xsd \ http://www.openmicroscopy.org/XMLschemas/STD/RC2/STD.xsd" > <CustomAttributes> <FilenamePattern ID="urn:lsid:openmicroscopy.org:FilenamePattern:0" Format="OME::ImportEngine::TIFFreader" RegEx="^(.+)(_w)(\d+)(.*)" Name="Metamorph Filename Pattern" TheC="3" BaseName="$1"/> </CustomAttributes> </OME>
This custom attribute example is taken from MetamorphFilenamePattern.ome.
The FilenamePattern
semantic type is defined in FilenamePattern.ome.