Dear Christian,
Could we please have more detail regarding BaseX's inferences of types in the data?
This is my scenario:
I have XML documents generated automatically, for which I have an XSD which you can consider "good" in the sense you imply in your note to Ludovic. The data is tight and it's valid, but the documents are not small (MB not KB).
I need to perform numeric comparison operations of the sort "($a/@x ge $b/@x) and ($a/@y le $b/@y)". @x and @y are attributes whose values are always integers. There are a lot of these comparisons and they have to happen fast.
In general, my assumption would be that a schema declaring my attributes as integers would enable a processor to optimize both their storage and processing (value comparisons).
But maybe in BaseX I don't have to do this?
If not, is there a way to pre-process my data to provide the type information for BaseX, without the XSD?
Thanks, Wendell
On Sun, May 26, 2013 at 5:45 AM, Christian GrĂ¼n christian.gruen@gmail.com wrote:
Hi Ludovic,
sorry for the delay. The current version of BaseX provides no schema support; instead, some type information for optimizing queries will be derived from the data itself. I agree that a schema-driven approach may be beneficial (in particular if you are luck to *have* good schemas for your data, and not some of those which have been extended and adapted over years to fit all kinds of new requirements), but it would mean some extra effort to include this in our implementation.
Best, Christian ___________________________
On Wed, May 22, 2013 at 4:33 PM, Ludovic Kuty mailing@kuty.be wrote:
Hello,
I would like to know if BaseX will use the XSD referenced in an XML document to get extra informations about types (he PSVI) and if it will validate the document in the process. If it does so, where do I have to store the XSD ? I would like to store it inside the database itself (or another one). I could also store it in the Web application provided by BaseX and make my URL point to it.
In my opinion, the use of the validation module should not be necessary as it should happen automatically.
Thank in advance for your insights and informations,
Ludovic Kuty
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk