Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4100 (new)

Opened 16 years ago

Last modified 8 years ago

Handle mixed OME/non-OME XML blocks

Reported by: curtis Owned by:
Priority: minor Milestone: Unscheduled
Component: Bio-Formats Version: OMERO-5.2.0
Keywords: model, OMEXMLReader Cc: jamoore, sbesson, mtbcarroll, rleigh
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description (last modified by ajpatterson)

When looking for OME-XML blocks, Bio-Formats assumes the entire tree will be enclosed in a root <OME> element, with no extraneous root elements or non-OME subtrees anywhere. Ideally, we would like to handle more heterogeneous cases, including:

  • Non-OME block after an OME block
  • Non-OME block before an OME block
  • Multiple OME blocks, and/or multiple non-OME blocks

Obviously, there is not a lot we can do with arbitrary XML from a practical perspective other than ignore it, but for now the goal is merely to avoid throwing an exception in these cases.

Change History (12)

comment:1 Changed 13 years ago by jmoore

imported from bio-formats:#305

comment:2 Changed 13 years ago by ajpatterson

  • Description modified (diff)
  • Milestone changed from Unscheduled to OMERO-Beta4.3.2

Need to consider for validation work in 4.3.2 milestone.

comment:3 Changed 13 years ago by ajpatterson

Referencing ticket #6309 has changed sprint.

comment:4 Changed 13 years ago by mlinkert

  • Milestone changed from OMERO-Beta4.3.2 to Unscheduled

comment:5 Changed 13 years ago by jburel

Referencing ticket #6309 has changed sprint.

comment:6 Changed 11 years ago by ajpatterson

Referencing ticket #6309 has changed sprint.

comment:7 Changed 8 years ago by jamoore

Referencing ticket #6309 has changed sprint.

comment:8 Changed 8 years ago by jamoore

Referencing ticket #6309 has changed sprint.

comment:9 Changed 8 years ago by mlinkert

  • Cc jamoore sbesson mtbcarroll added
  • Keywords model OMEXMLReader added
  • Owner mlinkert deleted
  • Version set to OMERO-5.2.0

I don't know of any examples of this in practice, and given the age of the ticket am not sure if it would even still be a problem. OK with me to close this, but expanding CC in case anyone else has thoughts (possibly in connection with https://trello.com/c/visx1plk/36-schema-samples-migration and/or https://trello.com/c/gskA0JKM/65-schema-samples-generation).

comment:10 Changed 8 years ago by mtbcarroll

I've no noteworthy thoughts on this but thank you for asking. Perhaps it's significant that nobody seems to have commented further (with any kind of "me/them too", etc.) over the years.

comment:11 Changed 8 years ago by rleigh

To some extent, this is already supported I think.

If the OME element is the top-level document element, there can only be one top-level element for it to be a well-formed valid XML document: you can't add elements before or after in this case.

If the OME element is contained as a sub-element within a larger non-OME document, you can have non-OME elements before and/or after the OME element. In this case, you can take the OME element and use this to directly construct a tree of model objects. You could likewise reverse the process to inject the OME elements into an existing document structure. This wouldn't be supported by the existing readers and writers; it would need the user to explictly handle the non-OME XML and then hand over the OME subtree for processing by bioformats inside a custom reader or writer for the extended format in use.

The case which isn't supported at all is a mixed content document where we have non-OME elements interspersed with OME schema elements under the OME element. This would not pass validation though, and I don't think was covered by the cases Curtis mentioned.

I think that to do anything concretely here we would need some scenarios for how it would be used. If custom processing isn't possible inside a specific reader or writer, as mentioned above, is the expectation that the OME-TIFF or OME-XML readers and writers should be able to process such documents?

comment:12 Changed 8 years ago by mtbcarroll

  • Cc rleigh added
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.68284 sec.)

We're Hiring!