Adaptive serialization
Monday, 26 January 2015 · 4 messages · last reply 28 Jan 2015
CG
Christian Grün26 Jan 2015 12:31 #
Hi there,
By default, BaseX 8.0 will use the new "adaptive" serialization method [1], which will be included in the new serialization spec:
* It allows you to serialize attributes, namespace and function items (including maps and arrays)
* Atomic values will not be escaped anymore.
* Items will be separated with newlines
The new default can already be tested [2]. As an example, the following query...
"me & you",
map { "B": "C" },
<x y='z'/>/@y…will be serialized as follows:
me & you
{
"B": "C"
}
y="z"Please be aware that the new default serialization may generate different results, so please check your existing applications when switching to the new version!
Cheers,
Christian
[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27498
[2] http://files.basex.org/releases/latest
RS
Rob Stapper28 Jan 2015 10:55 #
Christian,
Halleluja.
Two remarks:
1. don't see the adaptive mode as default.
2. The serialized output for function is minimal, moreover close to none. Since I use closure-functions for all of my internal datastructures, some more information would be very welcome, see attachment for an example.
Cheers,
Rob
-----Oorspronkelijk bericht-----
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de · 27 lines
Van: basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] Namens Christian Grün Verzonden: maandag 26 januari 2015 12:32 Aan: BaseX Onderwerp: [basex-talk] Adaptive serialization Hi there, By default, BaseX 8.0 will use the new "adaptive" serialization method [1], which will be included in the new serialization spec: * It allows you to serialize attributes, namespace and function items (including maps and arrays) * Atomic values will not be escaped anymore. * Items will be separated with newlines The new default can already be tested [2]. As an example, the following query... "me & you", map { "B": "C" }, <x y='z'/>/@y …will be serialized as follows: me & you { "B": "C" } y="z" Please be aware that the new default serialization may generate different results, so please check your existing applications when switching to the new version! Cheers, Christian [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27498 [2] http://files.basex.org/releases/latest --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. http://www.avast.com
CG
Christian Grün28 Jan 2015 11:36 #
Hi Rob,
Quoted text · Rob Stapper · 1 line
> 1. don't see the adaptive mode as default.
Where would you like, or expect, to see it?
Quoted text · Rob Stapper · 1 line
> 2. The serialized output for function is minimal, moreover close to none. Since I use closure-functions for all of my internal datastructures, some more information would be very welcome, see attachment for an example.
I invited you to create a new bug in the W3 issue tracker. You can refer to the original entry [1] and indicate how you like the output to be extended.
Hope this helps,
Christian
[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27498
CP
Charles Pugh28 Jan 2015 17:32 #
This message arrived in my inbox.
Might want to check the user database...
Quoted text · Christian Grün christian.gruen at gmail.com · 1 line
----- On Jan 28, 2015, at 4:36 AM, Christian Grün christian.gruen at gmail.com wrote:
Hi Rob,
Quoted text · Christian Grün · 1 line
> 1. don't see the adaptive mode as default.
Where would you like, or expect, to see it?
Quoted text · Christian Grün · 1 line
> 2. The serialized output for function is minimal, moreover close to none. Since I use closure-functions for all of my internal datastructures, some more information would be very welcome, see attachment for an example.
I invited you to create a new bug in the W3 issue tracker. You can refer to the original entry [1] and indicate how you like the output to be extended.
Hope this helps,
Christian
[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=27498
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery