[ome-users] [General Contact] Possible to have own schema besides ome one?

Curtis Rueden ctrueden at wisc.edu
Tue Dec 15 20:49:47 GMT 2009


Hi Steffen,

I have CCed the OME users list, since your question is relevant to others.

what I described in my post (below) is not working. Let me give you an
> example, probably you will find my mistake.
>
> In the ome schema of 2009 (see
> http://www.openmicroscopy.org/Schemas/OME/2009-09) you will find a tag
> called "MiddleName" in "Experimenter", which is not there in the schema of
> 2008.
>
> If you say
>
> <OME xmlns="http://www.openmicroscopy.org/Schemas/OME/2008-09"
>  xmlns:ome2009="http://www.openmicroscopy.org/Schemas/OME/2009-09" ....>
> ...
> <Experimenter ID="Experimenter:sillig">
>    <FirstName>Stefan</FirstName>
>    <ome2009:MiddleName>Bernhard</ome2009:MiddleName>
>    <LastName>Schnell</LastName>
>    <Email>xyz at mpimf.de</Email>
>    <Institution>MaxPlanckInstituteMF</Institution>
>    <GroupRef ID="Group:Lightmicroscopy1"/>
> </Experimenter>
> ...
> it will not be validated.
>

In this case, I believe the problem is that the ome2009:MiddleName element
needs to appear beneath an ome2009:Experimenter element (not an Experimenter
from the 2008-09 schema).

Presumably, you do not actually want to mix and match two different OME
schema versions (or if so, why?), but rather want to use your own custom
schema along with OME. Take a look at how we mix and match between ome.xsd,
SA.xsd and others—e.g.:
http://www.openmicroscopy.org/Schemas/SA/2009-09/SA.xsd

Specifically, we import the base ome.xsd schema first:
<xsd:import namespace="http://www.openmicroscopy.org/Schemas/OME/2009-09"
schemaLocation="http://www.openmicroscopy.org/Schemas/OME/2009-09/ome.xsd"/>

If you use a similar procedure in your custom schema, you can create
elements that can legally appear beneath an <OME>, <Image> or other element
from the ome.xsd schema.

HTH,
Curtis

On Tue, Dec 15, 2009 at 12:49 PM, Steffen Illig <Steffen.Illig at gmx.net>wrote:

> Hi Curtis,
>
> what I described in my post (below) is not working. Let me give you an
> example, probably you will find my mistake.
>
> In the ome schema of 2009 (see
> http://www.openmicroscopy.org/Schemas/OME/2009-09) you will find a tag
> called "MiddleName" in "Experimenter", which is not there in the schema of
> 2008.
>
> If you say
>
> <OME xmlns="http://www.openmicroscopy.org/Schemas/OME/2008-09"
>  xmlns:ome2009="http://www.openmicroscopy.org/Schemas/OME/2009-09" ....>
> ...
> <Experimenter ID="Experimenter:sillig">
>    <FirstName>Stefan</FirstName>
>    <ome2009:MiddleName>Bernhard</ome2009:MiddleName>
>    <LastName>Schnell</LastName>
>    <Email>xyz at mpimf.de</Email>
>    <Institution>MaxPlanckInstituteMF</Institution>
>    <GroupRef ID="Group:Lightmicroscopy1"/>
> </Experimenter>
> ...
> it will not be validated.
>
> Regards Steffen
>
>
> -------- Original-Nachricht --------
> > Datum: Mon, 14 Dec 2009 01:22:53 -0600
> > Von: Curtis Rueden <ctrueden at wisc.edu>
> > An: steffen.illig at gmx.net
> > CC: Kevin Eliceiri <eliceiri at wisc.edu>, Andrew Patterson <
> ajpatterson at lifesci.dundee.ac.uk>
> > Betreff: Re: [General Contact] Possible to have own schema besides ome
> one?
>
> > Hi Steffan,
> >
> > just a short question: Is it possible to embed another schema next to the
> > > ome.xsd one to refer our needs?
> > > e.g: <OME xmlns="http://www.openmicroscopy.org/Schemas/OME/2008-09"
> > > xmlns:OUR_LAB="http://xyz" ...>
> > > How do I do this?
> > >
> >
> > Absolutely, you have the right idea. If you have created your own schema,
> > and are hosting it on your web server, you can indeed reference it in
> that
> > fashion. Then you just use the "OUR_LAB" namespace with elements from
> your
> > schema.
> >
> > Of course, anything in your XML blocks not from the OME schema will
> likely
> > be ignored by Bio-Formats and other OME-compatible software.
> >
> > Let us know on the OME users mailing list (
> > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users/) if you
> > have
> > any problems with it.
> >
> > -Curtis
> >
> > On Mon, Dec 07, 2009 at 6:36 PM, <steffen.illig at gmx.net> wrote:
> > >
> > > Hi,
> > > just a short question: Is it possible to embed another schema next to
> > the
> > > ome.xsd one to refer our needs?
> > > e.g: <OME xmlns="http://www.openmicroscopy.org/Schemas/OME/2008-09"
> > > xmlns:OUR_LAB="http://xyz" ...>
> > > How do I do this?
> > > Regards, Steffen
> > >
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20091215/9ae7b8d0/attachment.html>


More information about the ome-users mailing list