Ticket #286 (closed issue: duplicate)

Opened 13 years ago

Last modified 13 years ago

[WG] Whether or not we should include namespace attributes in eXist

Reported by: domlowe Owned by: ko23
Priority: required Milestone: BETA
Component: community Version:
Keywords: Cc:

Description

Kev's testing found validation problems in eXist when the namespace attributes are present.

Validation may have improved since then.  http://wiki.exist-db.org/space/NewSchemaValidation

If we leave namespaces off it causes problems for the parser (as it is currently).

So either we have to work out the exist problems, or change code to deal with missing namespaces.

Change History

comment:1 Changed 13 years ago by domlowe

  • Status changed from new to assigned

comment:2 Changed 13 years ago by selatham

We currently remove any namespace stuff from DIFs and MOLES before putting into eXist. This was due to eXist timing out trying to find the schema, unless it was local. I think it worked if you had a local copy of the schema. However namespaces also cause problems when you are doing XQueries such that it was easier to remove them. Validation is done prior to ingest to eXist and the schema name is supplied.

comment:3 Changed 13 years ago by domlowe

I've just put a CSML document containing 4 or 5 namespaces into the 'test' collection in eXist and reindexed the test collection. Nothing timed out, what am I doing wrong? :-)

comment:4 Changed 13 years ago by lawrence

I think we (kev and I) also found a problem with extracting the records from eXist when they have namespaces in them as well ... Kev may be able to fill you in on the details ...

We think my bunny python code may fail to return a document ...

comment:5 Changed 13 years ago by selatham

Yes, I think the problem with putting documents with namespaces INTO eXist has gone away. But if you do a query using the old GUI interface (Marta's stuff) this document is ignored. This was a problem known to Marta and that's why we pre-process DIFs to remove the namespace before ingesting into eXist. Something to do with having to declare all possible namespaces to eXist and potentially have different XQueries for each one? Kev - do you have further info on this one?

comment:6 Changed 13 years ago by domlowe

  • Status changed from assigned to closed
  • Resolution set to fixed

Closing this ticket as I think it's a non-issue now. DIF & MOLES have a workaround for the XQuery problem and there is no problem in storing and extracting complete CSML files in/from exist. Feel free to reopen the ticket it if I've missed something.

comment:7 Changed 13 years ago by selatham

  • Status changed from closed to reopened
  • Resolution fixed deleted

What is the workaround for DIF and MOLES? If this is not a problem anymore we can do away with the pre-processing of harvested records to remove the namespace.

comment:8 Changed 13 years ago by selatham

  • Owner changed from domlowe to ko23
  • Status changed from reopened to new

comment:9 Changed 13 years ago by domlowe

To clarify, the workaround I mentioned is just the pre-processing to remove namespaces.

comment:10 Changed 13 years ago by ko23

  • Status changed from new to assigned

See #439

comment:11 Changed 13 years ago by ko23

  • Status changed from assigned to closed
  • Resolution set to duplicate

Superceded by #545

Note: See TracTickets for help on using tickets.