BaseX YAML Parser?

Tuesday, 26 July 2022 · 11 messages · last reply 29 Jul 2022
EK
Eliot Kimber26 Jul 2022 15:11 #
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>
ML
Marco Lettere26 Jul 2022 15:25 #
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.
Quoted text · Eliot Kimber · 35 lines
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> >
MH
Martin Honnen26 Jul 2022 15:32 #
Quoted text · Marco Lettere · 10 lines
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.
HR
Hans-Juergen Rennauin reply to Marco Lettere, 26 Jul 2022, 15:2526 Jul 2022 15:36 #
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 at 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.
Quoted text · Eliot Kimber · 1 line
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
ØG
Øyvind Gjesdal26 Jul 2022 17:37 #
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 at yahoo.de>:
Quoted text · Hans-Juergen Rennau · 67 lines
> 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 at 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> >
IL
Imsieke, Gerrit, le-texin reply to Hans-Juergen Rennau, 26 Jul 2022, 15:3626 Jul 2022 19:14 #
Reminder: There was a thread and an issue two years ago: https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html https://github.com/BaseXdb/basex/issues/1921 Christian rejected it (much effort, few users). Gerrit
Quoted text · Hans-Juergen Rennau · 61 lines
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 at 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> >
EK
Eliot Kimber26 Jul 2022 19:28 #
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.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>
Quoted text · BaseX-Talk · 71 lines
From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Imsieke, Gerrit, le-tex <gerrit.imsieke at le-tex.de> Date: Tuesday, July 26, 2022 at 12:15 PM To: basex-talk at mailman.uni-konstanz.de <basex-talk at 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 at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$<https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$> https://urldefense.com/v3/__https://github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$<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 at 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__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$ > | Twitter > <https://urldefense.com/v3/__https://twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$ > | YouTube > <https://urldefense.com/v3/__https://www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$ > | Facebook > <https://urldefense.com/v3/__https://www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$ > >
AL
Adam Law29 Jul 2022 09:27 #
Perhaps you have already seen: https://gist.github.com/joewiz/ed624a43cb6f9e15cc44b6e30553ad5e I think it might be for ExistDB
Quoted text · PM · 147 lines
On Wed, Jul 27, 2022 at 6:00 PM <basex-talk-request at mailman.uni-konstanz.de> wrote: > Send BaseX-Talk mailing list submissions to > basex-talk at mailman.uni-konstanz.de > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > or, via email, send a message with subject or body 'help' to > basex-talk-request at mailman.uni-konstanz.de > > You can reach the person managing the list at > basex-talk-owner at mailman.uni-konstanz.de > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BaseX-Talk digest..." > > > Today's Topics: > > 1. Re: Fwd: Available Integration with Apache POI for Excel > Generation? (Eliot Kimber) > 2. BaseX YAML Parser? (Eliot Kimber) > 3. Re: BaseX YAML Parser? (Marco Lettere) > 4. Re: BaseX YAML Parser? (Martin Honnen) > 5. Re: BaseX YAML Parser? (Hans-Juergen Rennau) > 6. Re: BaseX YAML Parser? (?yvind Gjesdal) > 7. Re: BaseX YAML Parser? (Imsieke, Gerrit, le-tex) > 8. Re: BaseX YAML Parser? (Eliot Kimber) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 26 Jul 2022 13:08:24 +0000 > From: Eliot Kimber <eliot.kimber at servicenow.com> > To: BaseX <basex-talk at mailman.uni-konstanz.de> > Subject: Re: [basex-talk] Fwd: Available Integration with Apache POI > for Excel Generation? > Message-ID: > < > SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com > > > > Content-Type: text/plain; charset="windows-1252" > > Tim, > > Thanks for the pointer?that?s not quite what I was looking for. > > What I have in mind is adding functions that let you read and write Excel > spreadsheets using the POI API, which is much easier to use than > interacting directly with the OOXML under the covers (Excel uses a lot of > indirection and data normalization to minimize file size that makes > operating on the raw XML really challenging). > > I fully understand that Christian?s team have done this kind of work for > hire and are not keen (or even contractually allowed) to give it away. It?s > valuable stuff. > > But I had to ask? > > Cheers, > > 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> > > From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf > of Tim Thompson <timathom at gmail.com> > Date: Monday, July 25, 2022 at 5:50 PM > To: BaseX <basex-talk at mailman.uni-konstanz.de> > Subject: [basex-talk] Fwd: Available Integration with Apache POI for Excel > Generation? > [External Email] > > Resending to the list (forgot to reply all). > > ---------- Forwarded message --------- > From: Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com>> > Date: Mon, Jul 25, 2022 at 5:04 PM > Subject: Re: [basex-talk] Available Integration with Apache POI for Excel > Generation? > To: Eliot Kimber <eliot.kimber at servicenow.com<mailto: > eliot.kimber at servicenow.com>> > > Hi, Eliot, > > I'm not aware of any integration with Apache POI (which would be great), > but here's a project--it seems unfinished, but may be enough to get started > with? > > https://github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb< > https://urldefense.com/v3/__https:/github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd7PXGEHsA$ > > > > All best, > Tim > > > -- > Tim A. Thompson (he, him) > Librarian for Applied Metadata Research > Yale University Library > > > On Mon, Jul 25, 2022 at 2:29 PM Eliot Kimber <eliot.kimber at servicenow.com > <mailto:eliot.kimber at servicenow.com>> wrote: > I tried searching for ?BaseX Excel generation? but it didn?t get me > farther than a reference to the CSV module, which of course I am familiar > with. > > I need to add the ability to generate non-trivial Excel spreadsheets, > which I know how to do using the Apache POI library, but being lazy I was > hoping somebody had already done it in a shareable form. > > So my question: Does anyone have or know of a shareable integration of > Apache POI with BaseX for generating Excel spreadsheets or some other > Excel-generation solution that is not just downloading CSV files? > > 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__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5GpBWvvQ$> > | Twitter< > https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd6H31OtTQ$> > | YouTube< > https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5wxwZxhw$> > | Facebook< > https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5DmAsoDg$ > > >
MS
Michael Seiferle29 Jul 2022 09:52 #
Hi Adam, Hi List, thanks for pointing out the XQuery implementation, I think it should run just fine in BaseX — yet it is very limited w.r.t. to yml features but might be good start to further refine 😊 I found another pragmatic way, that might be useful to some: https://git.basex.io/-/snippets/117 If you can rely on an external tool: yq[1] which integrates an XML output mode, the results might be easy to process. let $yml := ``[ --- # An employee record name: Martin D'vloper job: Developer skill: foo employed: True foods: - Apple - Orange - Strawberry - Mango languages: perl: Elite python: Elite pascal: Lame education: | 4 GCSEs 3 A-Levels BSc in the Internet of Things ]`` return (
  element yaml {
    proc:system("yq", ("-o","xml"), map{"input":$yml})
    => parse-xml-fragment()
  }
)
Quoted text · BaseX-Talk · 483 lines
Von: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> im Auftrag von Adam Law <adamjameslaw at gmail.com> Datum: Freitag, 29. Juli 2022 um 09:27 An: BaseX <basex-talk at mailman.uni-konstanz.de> Betreff: Re: [basex-talk] BaseX YAML Parser? Perhaps you have already seen: https://gist.github.com/joewiz/ed624a43cb6f9e15cc44b6e30553ad5e I think it might be for ExistDB On Wed, Jul 27, 2022 at 6:00 PM <basex-talk-request at mailman.uni-konstanz.de<mailto:basex-talk-request at mailman.uni-konstanz.de>> wrote: Send BaseX-Talk mailing list submissions to basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> To subscribe or unsubscribe via the World Wide Web, visit https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk or, via email, send a message with subject or body 'help' to basex-talk-request at mailman.uni-konstanz.de<mailto:basex-talk-request at mailman.uni-konstanz.de> You can reach the person managing the list at basex-talk-owner at mailman.uni-konstanz.de<mailto:basex-talk-owner at mailman.uni-konstanz.de> When replying, please edit your Subject line so it is more specific than "Re: Contents of BaseX-Talk digest..." Today's Topics: 1. Re: Fwd: Available Integration with Apache POI for Excel Generation? (Eliot Kimber) 2. BaseX YAML Parser? (Eliot Kimber) 3. Re: BaseX YAML Parser? (Marco Lettere) 4. Re: BaseX YAML Parser? (Martin Honnen) 5. Re: BaseX YAML Parser? (Hans-Juergen Rennau) 6. Re: BaseX YAML Parser? (?yvind Gjesdal) 7. Re: BaseX YAML Parser? (Imsieke, Gerrit, le-tex) 8. Re: BaseX YAML Parser? (Eliot Kimber) ---------------------------------------------------------------------- Message: 1 Date: Tue, 26 Jul 2022 13:08:24 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: BaseX <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: Re: [basex-talk] Fwd: Available Integration with Apache POI for Excel Generation? Message-ID: <SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" Tim, Thanks for the pointer?that?s not quite what I was looking for. What I have in mind is adding functions that let you read and write Excel spreadsheets using the POI API, which is much easier to use than interacting directly with the OOXML under the covers (Excel uses a lot of indirection and data normalization to minimize file size that makes operating on the raw XML really challenging). I fully understand that Christian?s team have done this kind of work for hire and are not keen (or even contractually allowed) to give it away. It?s valuable stuff. But I had to ask? Cheers, E. Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<http://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> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com>> Date: Monday, July 25, 2022 at 5:50 PM To: BaseX <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] Fwd: Available Integration with Apache POI for Excel Generation? [External Email] Resending to the list (forgot to reply all). ---------- Forwarded message --------- From: Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com><mailto:timathom at gmail.com<mailto:timathom at gmail.com>>> Date: Mon, Jul 25, 2022 at 5:04 PM Subject: Re: [basex-talk] Available Integration with Apache POI for Excel Generation? To: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com><mailto:eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>>> Hi, Eliot, I'm not aware of any integration with Apache POI (which would be great), but here's a project--it seems unfinished, but may be enough to get started with? https://github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb<https://urldefense.com/v3/__https:/github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd7PXGEHsA$> All best, Tim -- Tim A. Thompson (he, him) Librarian for Applied Metadata Research Yale University Library On Mon, Jul 25, 2022 at 2:29 PM Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com><mailto:eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>>> wrote: I tried searching for ?BaseX Excel generation? but it didn?t get me farther than a reference to the CSV module, which of course I am familiar with. I need to add the ability to generate non-trivial Excel spreadsheets, which I know how to do using the Apache POI library, but being lazy I was hoping somebody had already done it in a shareable form. So my question: Does anyone have or know of a shareable integration of Apache POI with BaseX for generating Excel spreadsheets or some other Excel-generation solution that is not just downloading CSV files? Thanks, E. Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5GpBWvvQ$> | Twitter<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd6H31OtTQ$> | YouTube<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5wxwZxhw$> | Facebook<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5DmAsoDg$> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/1c8041e2/attachment-0001.htm> ------------------------------ Message: 2 Date: Tue, 26 Jul 2022 13:11:01 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] BaseX YAML Parser? Message-ID: <SN4PR0801MB7757AE56E6D2BF15E5D1FAF4F1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB7757AE56E6D2BF15E5D1FAF4F1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" 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<http://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> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/4bb5e837/attachment-0001.htm> ------------------------------ Message: 3 Date: Tue, 26 Jul 2022 15:25:20 +0200 From: Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <0563cb9e-0d78-946c-a9d3-fcd5a5d3a703 at gmail.com<mailto:0563cb9e-0d78-946c-a9d3-fcd5a5d3a703 at gmail.com>> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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<http://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> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/88a9ae8d/attachment-0001.htm> ------------------------------ Message: 4 Date: Tue, 26 Jul 2022 15:32:43 +0200 From: Martin Honnen <martin.honnen at gmx.de<mailto:martin.honnen at gmx.de>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <6393881d-48cc-8fa0-d068-7c3d05cc3817 at gmx.de<mailto:6393881d-48cc-8fa0-d068-7c3d05cc3817 at gmx.de>> Content-Type: text/plain; charset=UTF-8; format=flowed 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. ------------------------------ Message: 5 Date: Tue, 26 Jul 2022 13:36:39 +0000 (UTC) From: Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at yahoo.de>> To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>>, Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>>, Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <570835172.434768.1658842599669 at mail.yahoo.com<mailto:570835172.434768.1658842599669 at mail.yahoo.com>> Content-Type: text/plain; charset="utf-8" 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> LinkedIn?|?Twitter?|?YouTube?|?Facebook -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/c04f541b/attachment-0001.htm> ------------------------------ Message: 6 Date: Tue, 26 Jul 2022 17:37:15 +0200 From: ?yvind Gjesdal <oyvindlg at gmail.com<mailto:oyvindlg at gmail.com>> To: Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at yahoo.de>> Cc: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>, Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>>, Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <CAOB384bR2cWj-AQ9zsm5Yf9JWfhoZuAcpF6rVeo+4OrPJFu==Q at mail.gmail.com<mailto:Q at mail.gmail.com>> Content-Type: text/plain; charset="utf-8" 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 at yahoo.de<mailto:hrennau at 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 at gmail.com<mailto:m.lettere at 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<http://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> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/7a739d8a/attachment-0001.htm> ------------------------------ Message: 7 Date: Tue, 26 Jul 2022 19:14:44 +0200 From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <d97cadfa-d754-e98a-40a9-dd145e78e099 at le-tex.de<mailto:d97cadfa-d754-e98a-40a9-dd145e78e099 at le-tex.de>> Content-Type: text/plain; charset=UTF-8; format=flowed Reminder: There was a thread and an issue two years ago: https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html 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 at gmail.com<mailto:m.lettere at 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<http://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> > ------------------------------ Message: 8 Date: Tue, 26 Jul 2022 17:28:04 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: "Imsieke, Gerrit, le-tex" <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>>, "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <SN4PR0801MB77579532968443CA32BB2FDCF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB77579532968443CA32BB2FDCF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" 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.com<http://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> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Imsieke, Gerrit, le-tex <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>> Date: Tuesday, July 26, 2022 at 12:15 PM To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at 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 at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$<https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$><https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$> https://urldefense.com/v3/__https://github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$<https://urldefense.com/v3/__https:/github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$><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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://urldefense.com/v3/__https://www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$> > | Twitter > <https://urldefense.com/v3/__https://twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$> > | YouTube > <https://urldefense.com/v3/__https://www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$> > | Facebook > <https://urldefense.com/v3/__https://www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/f88be4d9/attachment-0001.htm> End of BaseX-Talk Digest, Vol 151, Issue 15 *******************************************
EK
Eliot Kimber29 Jul 2022 17:31 #
Using the command line from BaseX is pretty easy—I use that technique to integrate BaseX with git repositories. I was not aware of the yq command. Cheers, 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>
Quoted text · BaseX-Talk · 525 lines
From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Michael Seiferle <ms at basex.org> Date: Friday, July 29, 2022 at 2:53 AM To: Adam Law <adamjameslaw at gmail.com>, BaseX <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? [External Email] Hi Adam, Hi List, thanks for pointing out the XQuery implementation, I think it should run just fine in BaseX — yet it is very limited w.r.t. to yml features but might be good start to further refine 😊 I found another pragmatic way, that might be useful to some: https://git.basex.io/-/snippets/117<https://urldefense.com/v3/__https:/git.basex.io/-/snippets/117__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi_UCY3yY$> If you can rely on an external tool: `yq`[1] which integrates an XML output mode, the results might be easy to process. let $yml := ``[ --- # An employee record name: Martin D'vloper job: Developer skill: foo employed: True foods: - Apple - Orange - Strawberry - Mango languages: perl: Elite python: Elite pascal: Lame education: | 4 GCSEs 3 A-Levels BSc in the Internet of Things ]`` return ( element yaml { proc:system("yq", ("-o","xml"), map{"input":$yml}) => parse-xml-fragment() } ) Best Michael [1] https://github.com/mikefarah/yq<https://urldefense.com/v3/__https:/github.com/mikefarah/yq__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiwC3BHrk$> Von: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> im Auftrag von Adam Law <adamjameslaw at gmail.com> Datum: Freitag, 29. Juli 2022 um 09:27 An: BaseX <basex-talk at mailman.uni-konstanz.de> Betreff: Re: [basex-talk] BaseX YAML Parser? Perhaps you have already seen: https://gist.github.com/joewiz/ed624a43cb6f9e15cc44b6e30553ad5e<https://urldefense.com/v3/__https:/gist.github.com/joewiz/ed624a43cb6f9e15cc44b6e30553ad5e__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiBZvc44Y$> I think it might be for ExistDB On Wed, Jul 27, 2022 at 6:00 PM <basex-talk-request at mailman.uni-konstanz.de<mailto:basex-talk-request at mailman.uni-konstanz.de>> wrote: Send BaseX-Talk mailing list submissions to basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> To subscribe or unsubscribe via the World Wide Web, visit https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk<https://urldefense.com/v3/__https:/mailman.uni-konstanz.de/mailman/listinfo/basex-talk__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi7nk-ma8$> or, via email, send a message with subject or body 'help' to basex-talk-request at mailman.uni-konstanz.de<mailto:basex-talk-request at mailman.uni-konstanz.de> You can reach the person managing the list at basex-talk-owner at mailman.uni-konstanz.de<mailto:basex-talk-owner at mailman.uni-konstanz.de> When replying, please edit your Subject line so it is more specific than "Re: Contents of BaseX-Talk digest..." Today's Topics: 1. Re: Fwd: Available Integration with Apache POI for Excel Generation? (Eliot Kimber) 2. BaseX YAML Parser? (Eliot Kimber) 3. Re: BaseX YAML Parser? (Marco Lettere) 4. Re: BaseX YAML Parser? (Martin Honnen) 5. Re: BaseX YAML Parser? (Hans-Juergen Rennau) 6. Re: BaseX YAML Parser? (?yvind Gjesdal) 7. Re: BaseX YAML Parser? (Imsieke, Gerrit, le-tex) 8. Re: BaseX YAML Parser? (Eliot Kimber) ---------------------------------------------------------------------- Message: 1 Date: Tue, 26 Jul 2022 13:08:24 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: BaseX <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: Re: [basex-talk] Fwd: Available Integration with Apache POI for Excel Generation? Message-ID: <SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" Tim, Thanks for the pointer?that?s not quite what I was looking for. What I have in mind is adding functions that let you read and write Excel spreadsheets using the POI API, which is much easier to use than interacting directly with the OOXML under the covers (Excel uses a lot of indirection and data normalization to minimize file size that makes operating on the raw XML really challenging). I fully understand that Christian?s team have done this kind of work for hire and are not keen (or even contractually allowed) to give it away. It?s valuable stuff. But I had to ask? Cheers, E. Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter<https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube<https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook<https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com>> Date: Monday, July 25, 2022 at 5:50 PM To: BaseX <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] Fwd: Available Integration with Apache POI for Excel Generation? [External Email] Resending to the list (forgot to reply all). ---------- Forwarded message --------- From: Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com><mailto:timathom at gmail.com<mailto:timathom at gmail.com>>> Date: Mon, Jul 25, 2022 at 5:04 PM Subject: Re: [basex-talk] Available Integration with Apache POI for Excel Generation? To: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com><mailto:eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>>> Hi, Eliot, I'm not aware of any integration with Apache POI (which would be great), but here's a project--it seems unfinished, but may be enough to get started with? https://github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb<https://urldefense.com/v3/__https:/github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiAmNQiw4$><https://urldefense.com/v3/__https:/github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd7PXGEHsA$> All best, Tim -- Tim A. Thompson (he, him) Librarian for Applied Metadata Research Yale University Library On Mon, Jul 25, 2022 at 2:29 PM Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com><mailto:eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>>> wrote: I tried searching for ?BaseX Excel generation? but it didn?t get me farther than a reference to the CSV module, which of course I am familiar with. I need to add the ability to generate non-trivial Excel spreadsheets, which I know how to do using the Apache POI library, but being lazy I was hoping somebody had already done it in a shareable form. So my question: Does anyone have or know of a shareable integration of Apache POI with BaseX for generating Excel spreadsheets or some other Excel-generation solution that is not just downloading CSV files? Thanks, E. Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5GpBWvvQ$> | Twitter<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd6H31OtTQ$> | YouTube<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5wxwZxhw$> | Facebook<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5DmAsoDg$> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/1c8041e2/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/1c8041e2/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiMbxm0CE$>> ------------------------------ Message: 2 Date: Tue, 26 Jul 2022 13:11:01 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] BaseX YAML Parser? Message-ID: <SN4PR0801MB7757AE56E6D2BF15E5D1FAF4F1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB7757AE56E6D2BF15E5D1FAF4F1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" 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<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter<https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube<https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook<https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/4bb5e837/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/4bb5e837/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiO4U49XM$>> ------------------------------ Message: 3 Date: Tue, 26 Jul 2022 15:25:20 +0200 From: Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <0563cb9e-0d78-946c-a9d3-fcd5a5d3a703 at gmail.com<mailto:0563cb9e-0d78-946c-a9d3-fcd5a5d3a703 at gmail.com>> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>>?| Twitter > <https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>>?| YouTube > <https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>>?| Facebook > <https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/88a9ae8d/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/88a9ae8d/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi_JKbXSs$>> ------------------------------ Message: 4 Date: Tue, 26 Jul 2022 15:32:43 +0200 From: Martin Honnen <martin.honnen at gmx.de<mailto:martin.honnen at gmx.de>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <6393881d-48cc-8fa0-d068-7c3d05cc3817 at gmx.de<mailto:6393881d-48cc-8fa0-d068-7c3d05cc3817 at gmx.de>> Content-Type: text/plain; charset=UTF-8; format=flowed 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<https://urldefense.com/v3/__https:/so.nwalsh.com/2020/02/15/xproc-30__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxifNUjF2Y$> 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. ------------------------------ Message: 5 Date: Tue, 26 Jul 2022 13:36:39 +0000 (UTC) From: Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at yahoo.de>> To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>>, Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>>, Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <570835172.434768.1658842599669 at mail.yahoo.com<mailto:570835172.434768.1658842599669 at mail.yahoo.com>> Content-Type: text/plain; charset="utf-8" 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> LinkedIn?|?Twitter?|?YouTube?|?Facebook -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/c04f541b/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/c04f541b/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi-0d1nrE$>> ------------------------------ Message: 6 Date: Tue, 26 Jul 2022 17:37:15 +0200 From: ?yvind Gjesdal <oyvindlg at gmail.com<mailto:oyvindlg at gmail.com>> To: Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at yahoo.de>> Cc: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>, Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>>, Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <CAOB384bR2cWj-AQ9zsm5Yf9JWfhoZuAcpF6rVeo+4OrPJFu==Q at mail.gmail.com<mailto:Q at mail.gmail.com>> Content-Type: text/plain; charset="utf-8" I recall seeing yaml functions in the library https://github.com/Armatiek/saxon-extensions<https://urldefense.com/v3/__https:/github.com/Armatiek/saxon-extensions__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiVTEt4HA$>. Best regards, ?yvind tir. 26. jul. 2022, 15:36 skrev Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter > <https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube > <https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook > <https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/7a739d8a/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/7a739d8a/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi_ysLQkE$>> ------------------------------ Message: 7 Date: Tue, 26 Jul 2022 19:14:44 +0200 From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <d97cadfa-d754-e98a-40a9-dd145e78e099 at le-tex.de<mailto:d97cadfa-d754-e98a-40a9-dd145e78e099 at le-tex.de>> Content-Type: text/plain; charset=UTF-8; format=flowed Reminder: There was a thread and an issue two years ago: https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html<https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi4FlYoxU$> https://github.com/BaseXdb/basex/issues/1921<https://urldefense.com/v3/__https:/github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxivQDwyAs$> 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>>?| Twitter > <https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>>?| YouTube > <https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>>?| Facebook > <https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> > ------------------------------ Message: 8 Date: Tue, 26 Jul 2022 17:28:04 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: "Imsieke, Gerrit, le-tex" <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>>, "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <SN4PR0801MB77579532968443CA32BB2FDCF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB77579532968443CA32BB2FDCF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" 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.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter<https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube<https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook<https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Imsieke, Gerrit, le-tex <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>> Date: Tuesday, July 26, 2022 at 12:15 PM To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at 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 at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$<https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$><https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$> https://urldefense.com/v3/__https://github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$<https://urldefense.com/v3/__https:/github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$><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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://urldefense.com/v3/__https://www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$> > | Twitter > <https://urldefense.com/v3/__https://twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$> > | YouTube > <https://urldefense.com/v3/__https://www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$> > | Facebook > <https://urldefense.com/v3/__https://www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/f88be4d9/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/f88be4d9/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiGmyjvmE$>> End of BaseX-Talk Digest, Vol 151, Issue 15 *******************************************
EK
Eliot Kimber29 Jul 2022 17:43 #
This use of yq seems pretty handy: % yq 'to_xml' _data/product-docs.yml
<menu>

  <section>Get started with Lightstep Observability</section>

  <items>

    <doc>welcome-to-lightstep</doc>

  </items>

  <items>

    <doc>working-in-lightstep</doc>

  </items>

  <items>

    <doc>query-your-data</doc>

  </items>
… </menu> Where _data/product-docs.yml is: menu: - section: Get started with Lightstep Observability items: - doc: welcome-to-lightstep - doc: working-in-lightstep - doc: query-your-data - doc: understand-distributed-tracing - doc: quick-start … Cheers, 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>
Quoted text · Eliot Kimber · 538 lines
From: Eliot Kimber <eliot.kimber at servicenow.com> Date: Friday, July 29, 2022 at 10:31 AM To: Michael Seiferle <ms at basex.org>, Adam Law <adamjameslaw at gmail.com>, BaseX <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Using the command line from BaseX is pretty easy—I use that technique to integrate BaseX with git repositories. I was not aware of the yq command. Cheers, 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> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Michael Seiferle <ms at basex.org> Date: Friday, July 29, 2022 at 2:53 AM To: Adam Law <adamjameslaw at gmail.com>, BaseX <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? [External Email] Hi Adam, Hi List, thanks for pointing out the XQuery implementation, I think it should run just fine in BaseX — yet it is very limited w.r.t. to yml features but might be good start to further refine 😊 I found another pragmatic way, that might be useful to some: https://git.basex.io/-/snippets/117<https://urldefense.com/v3/__https:/git.basex.io/-/snippets/117__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi_UCY3yY$> If you can rely on an external tool: `yq`[1] which integrates an XML output mode, the results might be easy to process. let $yml := ``[ --- # An employee record name: Martin D'vloper job: Developer skill: foo employed: True foods: - Apple - Orange - Strawberry - Mango languages: perl: Elite python: Elite pascal: Lame education: | 4 GCSEs 3 A-Levels BSc in the Internet of Things ]`` return ( element yaml { proc:system("yq", ("-o","xml"), map{"input":$yml}) => parse-xml-fragment() } ) Best Michael [1] https://github.com/mikefarah/yq<https://urldefense.com/v3/__https:/github.com/mikefarah/yq__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiwC3BHrk$> Von: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de> im Auftrag von Adam Law <adamjameslaw at gmail.com> Datum: Freitag, 29. Juli 2022 um 09:27 An: BaseX <basex-talk at mailman.uni-konstanz.de> Betreff: Re: [basex-talk] BaseX YAML Parser? Perhaps you have already seen: https://gist.github.com/joewiz/ed624a43cb6f9e15cc44b6e30553ad5e<https://urldefense.com/v3/__https:/gist.github.com/joewiz/ed624a43cb6f9e15cc44b6e30553ad5e__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiBZvc44Y$> I think it might be for ExistDB On Wed, Jul 27, 2022 at 6:00 PM <basex-talk-request at mailman.uni-konstanz.de<mailto:basex-talk-request at mailman.uni-konstanz.de>> wrote: Send BaseX-Talk mailing list submissions to basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> To subscribe or unsubscribe via the World Wide Web, visit https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk<https://urldefense.com/v3/__https:/mailman.uni-konstanz.de/mailman/listinfo/basex-talk__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi7nk-ma8$> or, via email, send a message with subject or body 'help' to basex-talk-request at mailman.uni-konstanz.de<mailto:basex-talk-request at mailman.uni-konstanz.de> You can reach the person managing the list at basex-talk-owner at mailman.uni-konstanz.de<mailto:basex-talk-owner at mailman.uni-konstanz.de> When replying, please edit your Subject line so it is more specific than "Re: Contents of BaseX-Talk digest..." Today's Topics: 1. Re: Fwd: Available Integration with Apache POI for Excel Generation? (Eliot Kimber) 2. BaseX YAML Parser? (Eliot Kimber) 3. Re: BaseX YAML Parser? (Marco Lettere) 4. Re: BaseX YAML Parser? (Martin Honnen) 5. Re: BaseX YAML Parser? (Hans-Juergen Rennau) 6. Re: BaseX YAML Parser? (?yvind Gjesdal) 7. Re: BaseX YAML Parser? (Imsieke, Gerrit, le-tex) 8. Re: BaseX YAML Parser? (Eliot Kimber) ---------------------------------------------------------------------- Message: 1 Date: Tue, 26 Jul 2022 13:08:24 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: BaseX <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: Re: [basex-talk] Fwd: Available Integration with Apache POI for Excel Generation? Message-ID: <SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB77576BAD6B0F077D6727731CF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" Tim, Thanks for the pointer?that?s not quite what I was looking for. What I have in mind is adding functions that let you read and write Excel spreadsheets using the POI API, which is much easier to use than interacting directly with the OOXML under the covers (Excel uses a lot of indirection and data normalization to minimize file size that makes operating on the raw XML really challenging). I fully understand that Christian?s team have done this kind of work for hire and are not keen (or even contractually allowed) to give it away. It?s valuable stuff. But I had to ask? Cheers, E. Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter<https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube<https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook<https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com>> Date: Monday, July 25, 2022 at 5:50 PM To: BaseX <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] Fwd: Available Integration with Apache POI for Excel Generation? [External Email] Resending to the list (forgot to reply all). ---------- Forwarded message --------- From: Tim Thompson <timathom at gmail.com<mailto:timathom at gmail.com><mailto:timathom at gmail.com<mailto:timathom at gmail.com>>> Date: Mon, Jul 25, 2022 at 5:04 PM Subject: Re: [basex-talk] Available Integration with Apache POI for Excel Generation? To: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com><mailto:eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>>> Hi, Eliot, I'm not aware of any integration with Apache POI (which would be great), but here's a project--it seems unfinished, but may be enough to get started with? https://github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb<https://urldefense.com/v3/__https:/github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiAmNQiw4$><https://urldefense.com/v3/__https:/github.com/eliudmeza/OOXML-Library-XQuery-BaseXdb__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd7PXGEHsA$> All best, Tim -- Tim A. Thompson (he, him) Librarian for Applied Metadata Research Yale University Library On Mon, Jul 25, 2022 at 2:29 PM Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com><mailto:eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>>> wrote: I tried searching for ?BaseX Excel generation? but it didn?t get me farther than a reference to the CSV module, which of course I am familiar with. I need to add the ability to generate non-trivial Excel spreadsheets, which I know how to do using the Apache POI library, but being lazy I was hoping somebody had already done it in a shareable form. So my question: Does anyone have or know of a shareable integration of Apache POI with BaseX for generating Excel spreadsheets or some other Excel-generation solution that is not just downloading CSV files? Thanks, E. Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5GpBWvvQ$> | Twitter<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd6H31OtTQ$> | YouTube<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5wxwZxhw$> | Facebook<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!Cz_w2CbhSe65FbmwfzIWxz1yBBNPeXPT0hSo5doXxTx23_7YUjWqLxLXmW_GG3vtM43a0DivKT1Bsd5DmAsoDg$> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/1c8041e2/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/1c8041e2/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiMbxm0CE$>> ------------------------------ Message: 2 Date: Tue, 26 Jul 2022 13:11:01 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] BaseX YAML Parser? Message-ID: <SN4PR0801MB7757AE56E6D2BF15E5D1FAF4F1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB7757AE56E6D2BF15E5D1FAF4F1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" 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<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter<https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube<https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook<https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/4bb5e837/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/4bb5e837/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiO4U49XM$>> ------------------------------ Message: 3 Date: Tue, 26 Jul 2022 15:25:20 +0200 From: Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <0563cb9e-0d78-946c-a9d3-fcd5a5d3a703 at gmail.com<mailto:0563cb9e-0d78-946c-a9d3-fcd5a5d3a703 at gmail.com>> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>>?| Twitter > <https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>>?| YouTube > <https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>>?| Facebook > <https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/88a9ae8d/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/88a9ae8d/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi_JKbXSs$>> ------------------------------ Message: 4 Date: Tue, 26 Jul 2022 15:32:43 +0200 From: Martin Honnen <martin.honnen at gmx.de<mailto:martin.honnen at gmx.de>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <6393881d-48cc-8fa0-d068-7c3d05cc3817 at gmx.de<mailto:6393881d-48cc-8fa0-d068-7c3d05cc3817 at gmx.de>> Content-Type: text/plain; charset=UTF-8; format=flowed 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<https://urldefense.com/v3/__https:/so.nwalsh.com/2020/02/15/xproc-30__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxifNUjF2Y$> 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. ------------------------------ Message: 5 Date: Tue, 26 Jul 2022 13:36:39 +0000 (UTC) From: Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at yahoo.de>> To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>>, Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>>, Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <570835172.434768.1658842599669 at mail.yahoo.com<mailto:570835172.434768.1658842599669 at mail.yahoo.com>> Content-Type: text/plain; charset="utf-8" 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> LinkedIn?|?Twitter?|?YouTube?|?Facebook -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/c04f541b/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/c04f541b/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi-0d1nrE$>> ------------------------------ Message: 6 Date: Tue, 26 Jul 2022 17:37:15 +0200 From: ?yvind Gjesdal <oyvindlg at gmail.com<mailto:oyvindlg at gmail.com>> To: Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at yahoo.de>> Cc: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>, Marco Lettere <m.lettere at gmail.com<mailto:m.lettere at gmail.com>>, Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <CAOB384bR2cWj-AQ9zsm5Yf9JWfhoZuAcpF6rVeo+4OrPJFu==Q at mail.gmail.com<mailto:Q at mail.gmail.com>> Content-Type: text/plain; charset="utf-8" I recall seeing yaml functions in the library https://github.com/Armatiek/saxon-extensions<https://urldefense.com/v3/__https:/github.com/Armatiek/saxon-extensions__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiVTEt4HA$>. Best regards, ?yvind tir. 26. jul. 2022, 15:36 skrev Hans-Juergen Rennau <hrennau at yahoo.de<mailto:hrennau at 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter > <https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube > <https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook > <https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/7a739d8a/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/7a739d8a/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi_ysLQkE$>> ------------------------------ Message: 7 Date: Tue, 26 Jul 2022 19:14:44 +0200 From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>> To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <d97cadfa-d754-e98a-40a9-dd145e78e099 at le-tex.de<mailto:d97cadfa-d754-e98a-40a9-dd145e78e099 at le-tex.de>> Content-Type: text/plain; charset=UTF-8; format=flowed Reminder: There was a thread and an issue two years ago: https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html<https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi4FlYoxU$> https://github.com/BaseXdb/basex/issues/1921<https://urldefense.com/v3/__https:/github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxivQDwyAs$> 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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>>?| Twitter > <https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>>?| YouTube > <https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>>?| Facebook > <https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> > ------------------------------ Message: 8 Date: Tue, 26 Jul 2022 17:28:04 +0000 From: Eliot Kimber <eliot.kimber at servicenow.com<mailto:eliot.kimber at servicenow.com>> To: "Imsieke, Gerrit, le-tex" <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>>, "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: Re: [basex-talk] BaseX YAML Parser? Message-ID: <SN4PR0801MB77579532968443CA32BB2FDCF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com<mailto:SN4PR0801MB77579532968443CA32BB2FDCF1949 at SN4PR0801MB7757.namprd08.prod.outlook.com>> Content-Type: text/plain; charset="windows-1252" 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.com<http://servicenow.com><https://www.servicenow.com> LinkedIn<https://www.linkedin.com/company/servicenow<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxireyekzo$>> | Twitter<https://twitter.com/servicenow<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiKR2XhMs$>> | YouTube<https://www.youtube.com/user/servicenowinc<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxi3RFpTxs$>> | Facebook<https://www.facebook.com/servicenow<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiZMwxrrM$>> From: BaseX-Talk <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Imsieke, Gerrit, le-tex <gerrit.imsieke at le-tex.de<mailto:gerrit.imsieke at le-tex.de>> Date: Tuesday, July 26, 2022 at 12:15 PM To: basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de> <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at 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 at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$<https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$><https://urldefense.com/v3/__https:/www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg12959.html__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTdJGDNpAQ$> https://urldefense.com/v3/__https://github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$<https://urldefense.com/v3/__https:/github.com/BaseXdb/basex/issues/1921__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTerzlq9TQ$><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 at gmail.com<mailto:m.lettere at 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<http://servicenow.com> <https://www.servicenow.com> > > LinkedIn <https://urldefense.com/v3/__https://www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$<https://urldefense.com/v3/__https:/www.linkedin.com/company/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfcXHAq2g$> > | Twitter > <https://urldefense.com/v3/__https://twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$<https://urldefense.com/v3/__https:/twitter.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTd08g8oaA$> > | YouTube > <https://urldefense.com/v3/__https://www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$<https://urldefense.com/v3/__https:/www.youtube.com/user/servicenowinc__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTfW50_3PA$> > | Facebook > <https://urldefense.com/v3/__https://www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$<https://urldefense.com/v3/__https:/www.facebook.com/servicenow__;!!N4vogdjhuJM!BfipaxLl4P_AvdLvvTZq3y877Yin3ak5iI3-B2mVi-_BX1VbuTFnw-tDZOLLGNm2WhcYZL7E53cz0Fg1rHgh-54lhTcZ2sif5g$> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/f88be4d9/attachment-0001.htm<https://urldefense.com/v3/__http:/mailman.uni-konstanz.de/pipermail/basex-talk/attachments/20220726/f88be4d9/attachment-0001.htm__;!!N4vogdjhuJM!C_ntKbntrRxC8whrhhvNgRJuDyjcZzj7zTiRjB9X2kBc71RMJOo5UMPvmOTTzluXlX22TAxiGmyjvmE$>> End of BaseX-Talk Digest, Vol 151, Issue 15 *******************************************

⚡Generated with XQuery