I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.
It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?
I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.
Thanks,
E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.comhttps://www.servicenow.com LinkedInhttps://www.linkedin.com/company/servicenow | Twitterhttps://twitter.com/servicenow | YouTubehttps://www.youtube.com/user/servicenowinc | Facebookhttps://www.facebook.com/servicenow
Hi Elliot,
I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.
They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.
Thus I think there are philosophy matters here :-)
M.
On 26/07/22 15:11, Eliot Kimber wrote:
I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.
It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?
I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.
Thanks,
E.
*Eliot Kimber*
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com https://www.servicenow.com
LinkedIn https://www.linkedin.com/company/servicenow | Twitter https://twitter.com/servicenow | YouTube https://www.youtube.com/user/servicenowinc | Facebook https://www.facebook.com/servicenow
Am 26.07.2022 um 15:25 schrieb Marco Lettere:
Hi Elliot,
I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.
They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.
Thus I think there are philosophy matters here :-)
I don't remember the details of that request but in general I don't think some disdain for YAML means you can't support it, I think Calabash 3 for XProc 3 has support for it, as https://so.nwalsh.com/2020/02/15/xproc-30 says: "The p:load step will happily load YAML".
Probably no help currently in the context of BaseX and XQuery but at least some people in the XML community do support reading YAML.
Strong, strong backing from the Western Fankurve (the cheap places under no roof and without seats) for Eliot's request! BaseX, we all know it, is a miracle of data integration (once one has discovered the secret of json:doc(), html:doc(), csv:doc()), and YAML is missing! I believe that it is far from trivial (although the common use of YAML would be trivial, but the devil might be in the specified detail), yet it would be really great if BaseX found a way to fill this gap. OpenAPI is sometimes supplied only in YAML! Waving my flag! - Hans-Jürgen Am Dienstag, 26. Juli 2022 um 15:25:29 MESZ hat Marco Lettere m.lettere@gmail.com Folgendes geschrieben:
Hi Elliot,
I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.
They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.
Thus I think there are philosophy matters here :-)
M.
On 26/07/22 15:11, Eliot Kimber wrote:
_filtered {} _filtered {}#yiv3024904512 p.yiv3024904512MsoNormal, #yiv3024904512 li.yiv3024904512MsoNormal, #yiv3024904512 div.yiv3024904512MsoNormal {margin:0in;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv3024904512 span.yiv3024904512EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv3024904512 .yiv3024904512MsoChpDefault {font-family:"Calibri", sans-serif;}#yiv3024904512 div.yiv3024904512WordSection1 {} I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.
It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?
I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.
Thanks,
E.
_____________________________________________
Eliot Kimber
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com
LinkedIn | Twitter | YouTube | Facebook
I recall seeing yaml functions in the library https://github.com/Armatiek/saxon-extensions.
Best regards, Øyvind
tir. 26. jul. 2022, 15:36 skrev Hans-Juergen Rennau hrennau@yahoo.de:
Strong, strong backing from the Western Fankurve (the cheap places under no roof and without seats) for Eliot's request! BaseX, we all know it, is a miracle of data integration (once one has discovered the secret of json:doc(), html:doc(), csv:doc()), and YAML is missing! I believe that it is far from trivial (although the common use of YAML would be trivial, but the devil might be in the specified detail), yet it would be really great if BaseX found a way to fill this gap. OpenAPI is sometimes supplied only in YAML! Waving my flag! - Hans-Jürgen
Am Dienstag, 26. Juli 2022 um 15:25:29 MESZ hat Marco Lettere < m.lettere@gmail.com> Folgendes geschrieben:
Hi Elliot,
I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.
They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.
Thus I think there are philosophy matters here :-) M.
On 26/07/22 15:11, Eliot Kimber wrote:
I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.
It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?
I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.
Thanks,
E.
*Eliot Kimber*
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com https://www.servicenow.com
LinkedIn https://www.linkedin.com/company/servicenow | Twitter https://twitter.com/servicenow | YouTube https://www.youtube.com/user/servicenowinc | Facebook https://www.facebook.com/servicenow
Reminder: There was a thread and an issue two years ago:
https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg12959.htm... https://github.com/BaseXdb/basex/issues/1921
Christian rejected it (much effort, few users).
Gerrit
On 26.07.2022 15:36, Hans-Juergen Rennau wrote:
Strong, strong backing from the Western Fankurve (the cheap places under no roof and without seats) for Eliot's request! BaseX, we all know it, is a miracle of data integration (once one has discovered the secret of json:doc(), html:doc(), csv:doc()), and YAML is missing! I believe that it is far from trivial (although the common use of YAML would be trivial, but the devil might be in the specified detail), yet it would be really great if BaseX found a way to fill this gap. OpenAPI is sometimes supplied only in YAML! Waving my flag! - Hans-Jürgen
Am Dienstag, 26. Juli 2022 um 15:25:29 MESZ hat Marco Lettere m.lettere@gmail.com Folgendes geschrieben:
Hi Elliot,
I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.
They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.
Thus I think there are philosophy matters here :-)
M.
On 26/07/22 15:11, Eliot Kimber wrote:
I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.
It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?
I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.
Thanks,
E.
*Eliot Kimber*
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com https://www.servicenow.com
LinkedIn https://www.linkedin.com/company/servicenow | Twitter https://twitter.com/servicenow | YouTube https://www.youtube.com/user/servicenowinc | Facebook https://www.facebook.com/servicenow
I can certainly imagine that as a BaseX feature YAML parsing has to be pretty low on the list.
There’s got to be a Java library that does it but then somebody has to integrate that library, document it, test it, maintain it….
I was really just curious about a pure-XQuery YAML parser implementation…
Cheers,
E.
_____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.comhttps://www.servicenow.com LinkedInhttps://www.linkedin.com/company/servicenow | Twitterhttps://twitter.com/servicenow | YouTubehttps://www.youtube.com/user/servicenowinc | Facebookhttps://www.facebook.com/servicenow
From: BaseX-Talk basex-talk-bounces@mailman.uni-konstanz.de on behalf of Imsieke, Gerrit, le-tex gerrit.imsieke@le-tex.de Date: Tuesday, July 26, 2022 at 12:15 PM To: basex-talk@mailman.uni-konstanz.de basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] BaseX YAML Parser? [External Email]
Reminder: There was a thread and an issue two years ago:
https://urldefense.com/v3/__https://www.mail-archive.com/basex-talk@mailman....https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$ https://urldefense.com/v3/__https://github.com/BaseXdb/basex/issues/1921__;!...https://urldefense.com/v3/__https:/github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$
Christian rejected it (much effort, few users).
Gerrit
On 26.07.2022 15:36, Hans-Juergen Rennau wrote:
Strong, strong backing from the Western Fankurve (the cheap places under no roof and without seats) for Eliot's request! BaseX, we all know it, is a miracle of data integration (once one has discovered the secret of json:doc(), html:doc(), csv:doc()), and YAML is missing! I believe that it is far from trivial (although the common use of YAML would be trivial, but the devil might be in the specified detail), yet it would be really great if BaseX found a way to fill this gap. OpenAPI is sometimes supplied only in YAML! Waving my flag! - Hans-Jürgen
Am Dienstag, 26. Juli 2022 um 15:25:29 MESZ hat Marco Lettere m.lettere@gmail.com Folgendes geschrieben:
Hi Elliot,
I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.
They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.
Thus I think there are philosophy matters here :-)
M.
On 26/07/22 15:11, Eliot Kimber wrote:
I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.
It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?
I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.
Thanks,
E.
*Eliot Kimber*
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com https://www.servicenow.com
LinkedIn <https://urldefense.com/v3/__https://www.linkedin.com/company/servicenow__;!!... > | Twitter <https://urldefense.com/v3/__https://twitter.com/servicenow__;!!N4vogdjhuJM!B... > | YouTube <https://urldefense.com/v3/__https://www.youtube.com/user/servicenowinc__;!!N... > | Facebook <https://urldefense.com/v3/__https://www.facebook.com/servicenow__;!!N4vogdjh... >
basex-talk@mailman.uni-konstanz.de