[ome-devel] Specifying a ST was Re: [Bug 169] TIFFreader hard codes file name patterns

Ilya Goldberg igg at nih.gov
Tue Aug 24 14:55:02 BST 2004


The ST definition is a type declaration.  The CustomAttribute is an 
instance of that type.  Of course you can add CustomAttributes whenever 
you want.  You can also re-declare the ST as many times as you want as 
long as its the same each time.  So the answer to your last question is 
no - there's no way to conveniently delete an ST declaration.  You can 
reach into the DB and write some SQL to delete an ST, but that's the 
only way right now.

Since the FilenamePattern instances (CustomAttributes) are unbound 
(they don't have a Module Execution - MEX), you can delete them from 
the DB using SQL without having to do recursive descent, which you 
would have to do if they were bound to a MEX.

Its just like writing code in a strongly typed language.  You declare 
your variable types up front (STs), then you assign values to them to 
your heart's content (CAs), but you can't change the type in the 
middle.  In other words, OME has "Strong Semantic Typing".
-Ilya


On Aug 24, 2004, at 9:33 AM, Joshua Moore wrote:

> This means there's no way to add a CustomAttribute to a ST without 
> definining a new ST? (I.e. yes I'm hacking; on FilenamePattern) 
> Deleting a ST?
>
> -Josh
>
> Ilya Goldberg wrote:
>
>>
>> On Aug 24, 2004, at 9:08 AM, Joshua Moore wrote:
>>
>>> Ok. Rather than just flaming ideological battles, I'll get back to 
>>> work:
>>>
>>>    Other than re-installing, how do I tell OMEDS about a new ST?
>>
>>
>> Just by importing the file via web UI, command-line, etc.
>> OME XML files don't actually have to contain images.  Any valid OME 
>> XML can be imported via the standard mechanisms at run-time.
>>
>> The only place where you might have difficulty is when you are 
>> hacking away at the ST definition.  The importer won't let two STs 
>> with the same name but with different elements exist in the same DB.
>> -I
>
>
> _______________________________________________
> 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