Re: [basex-talk] Yaml serialization

2020-08-17 Thread Andreas Mixich
Am 17.08.2020 um 11:55 schrieb Christian Grün: > out why before we follow this path). Has anyone of you already worked > with XML representations of YAML? Joe Wicentowski[1] did something here [2]. But I did not use it, yet. [1]: https://github.com/joewiz [2]:

Re: [basex-talk] Yaml serialization

2020-08-17 Thread Christian Grün
Hi Marco, Hans-Jürgen, Martin, Fabrice, I had a look at the YAML spec [1], and I noticed it’s somewhat more bulky than the JSON spec [2]. In addition, I checked out the YAML to XML conversion of FasterXML. It seems to handle the basic cases, but e.g. cannot process lists, comments or references.

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Christian Grün
Hans-Jürgen, thanks for you assessment. I see that there may be no real need for a JsonML equivalent for YAML. And my assumption is that the binding from yaml.org my be the most appropriate solution for now. Similar to our JSON mapper, it uses underscore element names to represent arrays.

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Hans-Juergen Rennau
Remark: support for a roundtrip-able XML representation of YAML would consolidate BaseX's great position as a data integration platform, further increasing the number of continents (mediatypes) which can be travelled on the highway of XPath (XML, JSON, CSV, HTML, YAML). In comparison, I think,

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Christian Grün
I was wondering if you can successfully serialize any arbitrary XML document to a YAML representing, ideally without losing information (attributes, comments, etc.), and convert the result back to the original XML representation. I would guess that YAML to XML conversions is easier. Apart from

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
@Marco: Do you know which conversions are provided by FasterXML: arbitrary XML → YAML, arbitrary YAML → XML, or both? If the underlying conversion rules are promising, we could include them a 'fasterxml' format in BaseX (similar to the 'jsonml' format). As far as I can understand from the

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Christian Grün
The XML binding from yaml.org might be a good start (https://yaml.org/xml). I have opened a little issue for a future YAML Module [1]. @Marco: Do you know which conversions are provided by FasterXML: arbitrary XML → YAML, arbitrary YAML → XML, or both? If the underlying conversion rules are

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
Hm, not sure but maybe FasterXML's Jackson? It supports alternative non JSON data formats among which YAML, XML. But maybe that one is a huge dependency. M. On 12/08/20 12:38, Christian Grün wrote: Hi Marco, hi Fabrice, YAML serialization would be a nice feature indeed. Are you aware of

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Martin Honnen
Am 12.08.2020 um 12:38 schrieb Christian Grün: YAML serialization would be a nice feature indeed. Are you aware of existing (ideally bidirectional) mappings that would be appropriate for general use? At XML Prague, Norm did a demo of casting YAML to JSON as described in

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Christian Grün
Hi Marco, hi Fabrice, YAML serialization would be a nice feature indeed. Are you aware of existing (ideally bidirectional) mappings that would be appropriate for general use? Cheers Christian Marco Lettere schrieb am Mi., 12. Aug. 2020, 12:04: > Dear BaseX team, > > just out of

Re: [basex-talk] Yaml serialization

2020-08-12 Thread ETANCHAUD Fabrice
Envoyé : mercredi 12 août 2020 12:04 À : BaseX Objet : [basex-talk] Yaml serialization Dear BaseX team, just out of curiosity, could you imagine what kind of effort it would be to provide YAML as another serialization method for BaseX in addition to XML, HTML, JSON, CSV? The datamodel seems pretty

[basex-talk] Yaml serialization

2020-08-12 Thread Marco Lettere
Dear BaseX team, just out of curiosity, could you imagine what kind of effort it would be to provide YAML as another serialization method for BaseX in addition to XML, HTML, JSON, CSV? The datamodel seems pretty close to the JSON one so maybe a very similar transformation to XML could be