Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Christian Grün
> An example application was published already with the XQuery 3.1 specification > for the combination of information from three documents. > https://www.w3.org/TR/2017/REC-xquery-31-20170321/#id-joins I have seen this link. I was asking for your personal uses case or examples, and I think this

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Markus Elfring
> I was asking for your personal uses case or examples, My use cases can be similar to the example application from the XQuery specification. > and I think this is what others have been asking you for as well. I am trying to point further development possibilities out according to varying and

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Markus Elfring
> Have you read the XQuery specifications? Yes. > This section on joins, written by one of the inventors of SQL, may be a > helpful starting point: > > https://www.w3.org/TR/xquery-31/#id-joins It seems that I stumble on communication difficulties for this application area. Regards, Markus

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Markus Elfring
> > I propose once more to take another look at specification efforts for > > join conditions (or constraints). > > What specific problem is it that you're trying to solve? What thing do > you want to do that you do not believe you can do in XQuery? I imagine that join parameters can be passed

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Christian Grün
Hi Markus, Could you please get specific and provide real use cases and examples? Thanks, Christian On Tue, Apr 19, 2022 at 10:46 AM Markus Elfring wrote: > > > > I propose once more to take another look at specification efforts for > > > join conditions (or constraints). > > > > What

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Jonathan Robie
Hi Markus, Have you read the XQuery specifications? This section on joins, written by one of the inventors of SQL, may be a helpful starting point: https://www.w3.org/TR/xquery-31/#id-joins The use case documents may also be helpful: https://www.w3.org/TR/xquery-use-cases/

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Markus Elfring
> To join something, you minimally need at least two expressions which find > the things to be joined, I am still trying to clarify corresponding development possibilities according to bigger numbers of entities together with for clauses. (I hope that other meanings can be better distinguished

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Markus Elfring
> Could you please get specific and provide real use cases and examples? An example application was published already with the XQuery 3.1 specification for the combination of information from three documents. https://www.w3.org/TR/2017/REC-xquery-31-20170321/#id-joins Would you occasionally like

[basex-talk] Improving the understanding for counting of entries in data groups

2022-04-19 Thread Markus Elfring
Hello, I constructed the following XML file for another test of the software “BaseX 9.7”. 12 Demo1 Demo2 23 Demo1 Demo2 34 Test1 Test2 Test3 45 Test1 Test2 Test3 56 Test1 Test2 Test3 67 Probe1 I tried the following XQuery script out accordingly. declare option

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Jonathan Robie
Here's one thing you may be asking - do you want to know how to specify a join for n sources? If so, maybe this example will help: declare variable $eng := (one, two, three, four); declare variable $deu := (eins, zwei, drei, vier); declare variable $ukr := (один, два, три, чотири); declare

Re: [basex-talk] Interrupted queries - partial results?

2022-04-19 Thread Zimmel, Daniel
How about some custom logging? for $i in (1 to 10) return if ($i = 4) then error() else file:append-text-lines('C:\tmp\file',string($i)) There might be more sophisticated ways. Daniel -Ursprüngliche Nachricht- Von: BaseX-Talk Im Auftrag von Patrick Durusau Gesendet: Dienstag,

[basex-talk] Interrupted queries - partial results?

2022-04-19 Thread Patrick Durusau
Greetings! Is it possible to capture partial results from an interrupted query? When I realize a query is taking too long for the data involved, it might be helpful in correcting the mistake. Thanks! Patrick -- Patrick Durusau patr...@durusau.net Technical Advisory Board, OASIS (TAB)

Re: [basex-talk] Improving the understanding for counting of entries in data groups

2022-04-19 Thread Christian Grün
If the following result is the one you would expect … topic_combination|incidence Test1*Test2*Test3|3 Demo1*Demo2|2 Probe1|1 … it is sufficient to replace … > let $incidence := count($topics) … by … let $incidence := count($x) The string join yields a single item, which is assigned to

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Liam R. E. Quin
On Tue, 2022-04-19 at 12:42 -0400, Jonathan Robie wrote: > Here's one thing you may be asking - do you want to know how to > specify a > join for n sources?  I think the question was, what if n is large or dynamic. But then we fall back to needing a use case because the best strategy depends on

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Graydon
On Tue, Apr 19, 2022 at 07:51:34PM +0200, Markus Elfring scripsit: > > Here's one thing you may be asking - do you want to know how to > > specify a join for n sources? > > Yes. ‒ Your enquiry points into a direction for which I am looking > also for further solution ideas. If you look at

Re: [basex-talk] Joining a varying number of information sources (with XQuery)?

2022-04-19 Thread Markus Elfring
> Here's one thing you may be asking - do you want to know how to specify a > join for n sources? Yes. ‒ Your enquiry points into a direction for which I am looking also for further solution ideas.   > for $e in $eng > for $d in $deu > for $u in $ukr > for $h in $heb > where $e/@n = $d/@n >

Re: [basex-talk] Interrupted queries - partial results?

2022-04-19 Thread Patrick Durusau
Thanks! That should do it! Patrick On 4/19/22 11:40, Zimmel, Daniel wrote: How about some custom logging? for $i in (1 to 10) return if ($i = 4) then error() else file:append-text-lines('C:\tmp\file',string($i)) There might be more sophisticated ways. Daniel -Ursprüngliche