Re: [basex-talk] Docker Image fails on initialization

2020-10-22 Thread Christian Grün
Hi Moishy, The docker integration of BaseX is something we eventually need to look at again. I haven’t used it by myself, but could you please check the following links and keep us stay tuned? https://docs.basex.org/wiki/Docker

Re: [basex-talk] recursively used variables

2020-10-22 Thread Christian Grün
I noticed there is an open issue that relates to your observation: https://github.com/BaseXdb/basex/issues/1095 Lots to do right now, let’s see when we can tackle it. On Thu, Oct 8, 2020 at 2:17 PM Rob Stapper wrote: > Hi, > > > > The code[1] below and send as attachment generates a error

Re: [basex-talk] Dpi scaling problem - Ubuntu 20.04

2020-10-18 Thread Christian Grün
Hi Silamphre, DPI scaling might be improved with a future version of Java (we only have limited means of improving rendering with Swing). With version of the JDK are you currently using / have you tried different versions? Best, Christian On Fri, Oct 16, 2020 at 4:12 AM Bridger Dyson-Smith

Re: [basex-talk] recursively used variables

2020-10-18 Thread Christian Grün
Hi Rob, sorry, I’ve just discovered your mail in the basex-talk archive. I believe that the given query should not raise an error as the variable does only reference your function. Let’s see what we can do. – Best, Christian On Thu, Oct 8, 2020 at 2:17 PM Rob Stapper wrote: > Hi, > > > > The

Re: [basex-talk] stemming chinese texts

2020-10-18 Thread Christian Grün
Hi Duncan, Thanks for offering your help, that’s appreciated. We could add Lucene’s CJK analyzers in BaseX, and either embed it or provide it as library, similar to the Japanese tokenizer. Have you already used the Lucene analyzers [1], and if so, which of the 3 provided analyzers would you

Re: [basex-talk] Packaging BaseX for the Chocolatey Package Manager

2020-10-18 Thread Christian Grün
Hi Sacha, Thanks for packaging BaseX. Will the software be available on https://chocolatey.org/ in the future? Best, Christian On Fri, Oct 16, 2020 at 3:45 PM Sacha Froment wrote: > > Hello, > > I made a packaging script for the chocolatey package manager of the BaseX > software. the script

Re: [basex-talk] stemming chinese texts

2020-10-14 Thread Christian Grün
d Chinese (without reading either > one myself). > I would like to test Lucene's analyzers, but I don't know how to do it in > BaseX? > > Best regards, > Philippe Pons > > > > Le 12/10/2020 à 12:01, Christian Grün a écrit : > > Dear Philippe, > > As the Chi

Re: [basex-talk] stemming chinese texts

2020-10-12 Thread Christian Grün
Dear Philippe, As the Chinese language rarely uses inflection, there is usually no need to perform stemming on texts. However, tokenization will be necessary indeed. Right now, BaseX provides no tokenizer/analyzer for Chinese texts. It should be possible indeed to adopt code from Lucene, as we’ve

Re: [basex-talk] XPTY0004 error when calling http:send-request inside of a local function

2020-10-11 Thread Christian Grün
Hi Bridger, As your query will either return an empty sequence (in the case of success) or a string (in the case of an error), you’ll need to use xs:string? as return type: declare function local:grab( $url as xs:string, $path as xs:string, $fname as xs:string ) as xs:string? { ... Hope

Re: [basex-talk] XQuery Optimizer Bug?

2020-10-07 Thread Christian Grün
Dear Paul, Thanks for your observation, and thanks for reporting it to the mailing list; indeed it’s the best place for all notifications and feature requests. You’ve encountered a bug that was seemingly introduced with BaseX 9.3, and was the side effect of a premature index rewriting. The bug

Re: [basex-talk] Mapping query-params to $options argement of ft:functionj

2020-10-05 Thread Christian Grün
> thanks for your help. Is there a way to combine ft:search with ft:mark, cause > at the end I need the results marked. Yes, you can combine ft:search and ft:mark. Try e.g. the following query: ft:mark(ft:search('db', 'term')/..)

Re: [basex-talk] king Henry VIII dalenda est

2020-10-05 Thread Christian Grün
Hi Liam, Did you find out why II et al. was ignored? Feel free to provide me with a little test case. Cheers, Christian On Tue, Sep 29, 2020 at 3:55 AM Liam R. E. Quin wrote: > > On Mon, 2020-09-28 at 19:32 -0400, Liam R. E. Quin wrote: > > At > > > > https://words.fromoldbooks.org/Search/ >

Re: [basex-talk] Mapping query-params to $options argement of ft:functionj

2020-10-05 Thread Christian Grün
Hi Günter, The function ft:search [1] was added to BaseX to fill this shortcoming of the official spec. Hope this helps Christian [1] https://docs.basex.org/wiki/Full-Text_Module#ft:search On Mon, Sep 28, 2020 at 11:06 AM Günter Dunz-Wolff wrote: > > Hi all, > is there a possibility to

Re: [basex-talk] issue: Add custom lib folder #1456

2020-09-25 Thread Christian Grün
Hi Nick, the Ubuntu distribution contains only the core library. If you want to use all features of BaseX, we recommend you to download the BaseX ZIP archive directly from our homepage. As you may have seen, Kralj Karlo has proposed a new BaseX package for UNIX-based platforms some days ago.

Re: [basex-talk] Paging results of an XQuery-Search

2020-09-25 Thread Christian Grün
Hi Günter, Here’s one way to do it: declare variable $QUERY external := 'mailto'; declare variable $START external := 1; declare variable $MAX external := 50; let $hits := db:open('data')//text() [. contains text { $QUERY }] let $count := count($hits) return { { concat($count, ' results,

Re: [basex-talk] Fwd: error in the latest developpers snapshot (BaseX944-20200919.114509)

2020-09-25 Thread Christian Grün
Confirmed and fixed ෴ Check out the updated snapshot On Thu, Sep 24, 2020 at 12:37 PM wrote: > > Hi Christian, > > considder the snapshot down below and as bijlage. This genereate > different results with the latest snapshot. > No problem with 943 and the previous snapshot(

Re: [basex-talk] Package for system integration

2020-09-18 Thread Christian Grün
Hi Kralj, Thanks for your generous offer to prepare future packages for us. I would also target your third option and try to automatize the process as far as possible. This way, you won’t need to feel responsible for all the time coming. The core of our packaging routine is an ancient Perl

Re: [basex-talk] Fulltext Distancing

2020-09-16 Thread Christian Grün
>> => the query is not specified in the email >> I am guessing the query was i) above (with all words): 'A x B' contains text >> 'A B' all words distance at most 1 words Exactly.

Re: [basex-talk] Fulltext Distancing

2020-09-16 Thread Christian Grün
Hi Adam, Thanks for writing to the list. After having given you a quick reply in private, I have double-checked your new use cases, and once again I realized that it’s the complex specification rules that leads to behavior that’s difficult to grasp. I’ll try to make it short: This query returns

Re: [basex-talk] Repeating "bin/basexhttp -S" and "bin/basexhttpstop"

2020-09-15 Thread Christian Grün
f4jLog > HTTP Server was stopped (port: 8984). > Server was stopped (port: 1984). > > C:\Users\WDAGUtilityAccount\Desktop\BaseX942\basex>query process java.exe > No Process exists for java.exe > > C:\Users\WDAGUtilityAccount\Desktop\BaseX942\basex> > ``` > > -- >

Re: [basex-talk] Package for system integration

2020-09-15 Thread Christian Grün
Hi Kralj, Thanks for your packaging proposal, very appreciated. We’ll have a look at it in the near future. Would you recommend it as default distribution for all Linux systems, or are there possible restrictions that may need to be considered? The current build system is based on Windows

Re: [basex-talk] Repeating "bin/basexhttp -S" and "bin/basexhttpstop"

2020-09-15 Thread Christian Grün
Hi AirQuick, The BaseX startup behavior hasn’t been changed in recent versions, and I didn’t manage to reproduce the behavior you described. Which OS do you use? Does it work if you delay the invocations? If you use Linux, it’s usually more elegant to start BaseX as background task. A second

Re: [basex-talk] html:parse() fails on webpage

2020-09-14 Thread Christian Grün
Hi Andreas, I get… Chmod Task Chmod Description Are you sure that TagSoup is included in your classpath? Cheers Christian On Mon, Sep 14, 2020 at 11:00 PM Andreas Mixich wrote: > > Hi, > > when doing: > > >

Re: [basex-talk] Best way to re-create existing root element with all attributes

2020-09-13 Thread Christian Grün
Hi Yitzhak, Try this: declare context item := document { ... }; * update { delete node employee } See [1] for more information on updating expressions. Best, Christian [1] https://docs.basex.org/wiki/XQuery_Update On 9/13/20, Yitzhak Khabinsky wrote: > Hello, > > > > This is

Re: [basex-talk] tail recursion issue in 9.4.3

2020-09-13 Thread Christian Grün
Hi Mark, With BaseX 9.4.3, your FLWOR expression will be rewritten to a simple map expression – for which no TCOs detection was implemented so far. It works with the latest snapshot [1]. If you want to stick with 9.4.3, you can manually inline $x: declare function local:f($n, $xs) { if ($n =

[basex-talk] BaseX 9.4.3: New Compile-Time Optimizations, Performance Tweaks

2020-09-11 Thread Christian Grün
Dear all, BaseX 9.4.3 is available, another late-summer maintenance release with new compile-time optimizations and performance tweaks: http://basex.org Have fun everyone, Your BaseX Team

Re: [basex-talk] big data performance

2020-09-10 Thread Christian Grün
> thanks for pointing to "ft:search", that's much easier to understand for me > than > using the enforceindex pragma (which yielded 0 matches, btw). Interesting. I’ll check if I get this reproduced. In the long term, however, I also think that ft:search will give you more flexibility.

Re: [basex-talk] big data performance

2020-09-10 Thread Christian Grün
Hi Matthias, > since I "definitely should" build a BaseX database from millions of TEI-XML > files, I did so! Glad to hear! > I modified the XQuery: > ... > gives results, but lasts orders of magnitude longer than for just one > database: If a query is run on a single database, this database

Re: [basex-talk] creating epub and odf with basex

2020-09-08 Thread Christian Grün
> Creating a new file epub or odf file works correctly now but archive:update() > does not retain the 'stored' property for the manifest file. (It does retain > the order of the entries). The stored property will now be retained if an archive is updated. Up to now, archive:update removed

Re: [basex-talk] creating epub and odf with basex

2020-09-08 Thread Christian Grün
:27 PM Christian Grün wrote: > > Hi Jos, > > > There are 5 bytes between 'mimetype' and 'applicatino/epub+zip'. These are > > deflate information. If the entry is 'stored' there are no bytes between the > > entry name […] > > Great, so we are talking about the same

Re: [basex-talk] creating epub and odf with basex

2020-09-08 Thread Christian Grün
usually proceed to check the validity of ePub files? Best, Christian [1] https://stackoverflow.com/questions/1206970/how-to-create-uncompressed-zip-archive-in-java On Tue, Sep 8, 2020 at 2:06 PM Jos van den Oever wrote: > > On dinsdag 8 september 2020 13:06:19 CEST Christian Grün wrote: >

Re: [basex-talk] creating epub and odf with basex

2020-09-08 Thread Christian Grün
> Here is an example that creates a new archive that uses compression-level="0" > and algorithm="stored" and still compresses that entry. > > Note that the archive level option 'algorithm' is unfortumate because often it > is only single entries such as 'mimetype' or images that should not be >

Re: [basex-talk] creating epub and odf with basex

2020-09-08 Thread Christian Grün
> This example demonstrates that compression-level="0" does do what > the api promises: I can have a closer look into that. Could you possibly provide me with a little self-contained example that I can run out of the box?

Re: [basex-talk] creating epub and odf with bases

2020-09-08 Thread Christian Grün
> Oh, a shame that the cross-implementation module is not maintained. The Archive Module was supposed to become the new EXPath standard. Unfortunately, different versions of that module were specified one after another such that the spec that’s currently publicly available doesn’t reflect our

Re: [basex-talk] creating epub and odf with bases

2020-09-08 Thread Christian Grün
Hi Jos, While the ZIP Module is still part of our distribution, it’s not actively maintained anymore, and we generally recommend our users to switch to the Archive Module [1]. Providing custom compression levels for each archive entry is one of the features that is provided by this newer module.

Re: [basex-talk] [EXTERNAL] - Re: Re. Encoding support for the BaseX server

2020-09-07 Thread Christian Grün
02] > "C:/Sharath/outputxml_0601800029e2p.xml" (Line 1): Invalid byte 1 of > 1-byte UTF-8 sequence. > How do we make basex server to store certain format of > encoded file(In above example, it is ISO-8859-1 encoded file)? > Thanks, >

Re: [basex-talk] [EXTERNAL] - Re: Re. Encoding support for the BaseX server

2020-09-06 Thread Christian Grün
ocument(BasexTest.java:159) > at com.test.BasexTest.main(BasexTest.java:32) > ReStoreDocument: BaseX content push for ANSI encoding is completed > > ++++++ > > FYI, I have attached t

Re: [basex-talk] http:send-request / http:request with Azure API key

2020-09-05 Thread Christian Grün
Hi Jozef, I tried the following query… http:send-request( ) …and it returned the error message 'Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.'. I guess that’s expected because the key is not valid anymore. Do you get the same

Re: [basex-talk] [EXTERNAL] - Re: Re. Encoding support for the BaseX server

2020-09-05 Thread Christian Grün
> > Please find the attached zip, which contains the sample program for > replicating the encoding issue with the provided datafiles. > Could you please review the provided sample and help me in resolving > this issue. > After having created "testenvSSL1" database, and after having fixed your

Re: [basex-talk] missing web.xml from docker image

2020-09-04 Thread Christian Grün
py files in to add to the db. Can I perhaps connect to the > db on the container through basex on the host? Or would that be an > odd approach? > > On 9/3/20, Christian Grün wrote: > > Thanks for the observation. I’ll try to get into contact with the guys who > > wrote

Re: [basex-talk] missing web.xml from docker image

2020-09-03 Thread Christian Grün
k feature. This has been > deprecated for years. instead, use a v2 or v3 docker-compose.yml > file (if using compose) or if using a different system, simply put > both containers on the same│ > > so the documentation is out of date. > > On 9/3/20, Christian Grün wrote: >

Re: [basex-talk] big data performance

2020-09-03 Thread Christian Grün
Hi Matthias, > Can I give BaseX a try? You definitely should ;) Maybe you can simply start off, download BaseX and import your TEI directories. Some database limits are listed here [1]. If you encounter problems with creating the full-text index for your XML data, documents can also be split

Re: [basex-talk] [EXTERNAL] - Re: Re. Encoding support for the BaseX server

2020-09-03 Thread Christian Grün
(), I have tried pushing and pulling of the >document in basex. > > > Can we have a quick call at any time, to discuss on this issue. > > Thanks & Regards, > Sharath. > ------ > *From:* Christian Grün > *Sent:* Thursday, September 3, 2020 5:29 PM

Re: [basex-talk] missing web.xml from docker image

2020-09-03 Thread Christian Grün
Hi Nicholas, Have you already worked through the Docker documentation in our Wiki [1]? Best, Christian [1] https://docs.basex.org/wiki/Docker On Thu, Sep 3, 2020 at 4:23 PM Nicholas Saunders wrote: > > I've just opened an issue: > > https://github.com/BaseXdb/basex/issues/1936 > > based on

Re: [basex-talk] Question about map:merge

2020-09-02 Thread Christian Grün
> example to track this down [1]. A bug fix will probably be available > tomorrow Things worked out faster than I expected. Feel free to check out the latest snapshot [1]. Best, Christian [1] https://files.basex.org/releases/latest/ > > Cheers, > Christian > > [1]

Re: [basex-talk] Question about map:merge

2020-09-02 Thread Christian Grün
Hi Markus, Thanks for reporting this. I have opened an issue with a minimized example to track this down [1]. A bug fix will probably be available tomorrow Cheers, Christian [1] https://github.com/BaseXdb/basex/issues/1935 On Wed, Sep 2, 2020 at 9:19 PM Markus Schmid wrote: > > Hi, > > I

Re: [basex-talk] ancestor axis i.c.w. fetched XML issue

2020-08-31 Thread Christian Grün
/releases/latest/ On Mon, Aug 31, 2020 at 9:22 AM Christian Grün wrote: > Seems you’ve stumbled upon a classic [1]; and the problem is related: > Inside “database nodes” we only have a parent, but no reference to the > ancestors of main-memory nodes. One more nudge to eventually get thi

Re: [basex-talk] ancestor axis i.c.w. fetched XML issue

2020-08-31 Thread Christian Grün
> > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *Christian Grün > *Sent: *Wednesday, August 26, 2020 6:21 PM > *To: *RobStapper > *Cc: *basex-talk@mailman.uni-konstanz.de > *Subject: *Re: [

Re: [basex-talk] json:doc-available()

2020-08-30 Thread Christian Grün
Hi Hans-Jürgen, > Perhaps you will also add the corresponding xxx:doc-available() functions? Yes, these might be interesting additions. Right now, the semantics of fn:doc currently differs from json:doc, csv:doc and html:doc: The first function is deterministic (i.e., repeated calls will only

Re: [basex-talk] [EXTERNAL] - Re: XQExpression-8.executeQuery() API throws java.lang.NullPointerException exception while executing XQuery(retrieving the 171 MB xml document) like db:open('testenvSSL1

2020-08-28 Thread Christian Grün
t; > > https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/api/BaseXClient.java > Thanks, > Srikumar > ------ > *From:* Christian Grün > *Sent:* Thursday, August 27, 2020 7:57 PM > *To:* Srikumar Choudhury &

Re: [basex-talk] [EXTERNAL] - Re: XQExpression-8.executeQuery() API throws java.lang.NullPointerException exception while executing XQuery(retrieving the 171 MB xml document) like db:open('testenvSSL1

2020-08-27 Thread Christian Grün
…and our own API will definitely consume less memory. Did you try it as well? On Thu, Aug 27, 2020 at 2:55 PM Christian Grün wrote: > > > do I need to increase -Xmx4096m to higher? > > +1

Re: [basex-talk] [EXTERNAL] - Re: XQExpression-8.executeQuery() API throws java.lang.NullPointerException exception while executing XQuery(retrieving the 171 MB xml document) like db:open('testenvSSL1

2020-08-27 Thread Christian Grün
> do I need to increase -Xmx4096m to higher? +1

Re: [basex-talk] Xquery performence

2020-08-27 Thread Christian Grün
Thanks for the example document. – Have you already switched to the latest version of BaseX? On Thu, Aug 27, 2020 at 8:30 AM Christian Grün wrote: > > Hi Chandra, > > We’d appreciate to see a little XML document that allows us to test your > query. > > Best > Christian

Re: [basex-talk] cdata not happening to elements with element children?

2020-08-27 Thread Christian Grün
ntent"}) > > Which gives > > > > > > (Your solution is considerably more elegant but would be much trickier to > use the actual case.) > > Thank you! > > On Wed, Aug 26, 2020 at 5:12 PM Christian Grün > wrote: > >> Hi Graydon, >&g

Re: [basex-talk] Xquery performence

2020-08-27 Thread Christian Grün
Hi Chandra, We’d appreciate to see a little XML document that allows us to test your query. Best Christian chandra sekhar n schrieb am Do., 27. Aug. 2020, 07:38: > Dear Basex team, > We are facing an xquery performance issue. Please find the query in below > and please suggest any clue to

Re: [basex-talk] XQExpression-8.executeQuery() API throws java.lang.NullPointerException exception while executing XQuery(retrieving the 171 MB xml document) like db:open('testenvSSL1', '6300000180000

2020-08-27 Thread Christian Grün
Hi Srikumar, The error message seems to have been raised from within the Spring framework. Could you please provide us with some Java example code that we can run without Spring? Thanks in advance Christian Srikumar Choudhury schrieb am Do., 27. Aug. 2020, 06:57: > Hi Christian, > I am

Re: [basex-talk] cdata not happening to elements with element children?

2020-08-26 Thread Christian Grün
Hi Graydon, I can’t say much about serialization in XSLT, but the serialization of CDATA sections in XQuery is indeed focused on text nodes [1]: “The cdata-section-elements parameter contains a list of expanded QNames. If the expanded QName of the parent of a text node is a member of the list,

Re: [basex-talk] ancestor axis i.c.w. fetched XML issue

2020-08-26 Thread Christian Grün
Hi Rob, An interesting one. The mixing of external nodes and node fragments (which have different internal representations) caused some confusion. The issue has been fixed, a new snapshot is ready to go [1]. All the best, hope you are fine, Christian [1]

Re: [basex-talk] Stack Overflow on 9.4.2

2020-08-25 Thread Christian Grün
Hi noreply, With BaseX 9.4, additional expression properties were requested for static functions – including recursive ones, which led to the stack overflow [1]. The bug has been fixed, a new snapshot is available [2]. Best, Christian [1] https://github.com/BaseXdb/basex/issues/1927 [2]

Re: [basex-talk] BaseX GUI: XPath suggestions / completion

2020-08-25 Thread Christian Grün
Hi André, The XPath completion works again. A new snapshot is available [1]. Hope this helps, Christian [1] https://files.basex.org/releases/latest/ On Fri, Aug 21, 2020 at 11:45 PM Christian Grün wrote: > > Hi André, > > Thanks for the observation. I’ve checked our rec

Re: [basex-talk] Unpredictable function return types seems to default to item()? instead of item()*. Applies to 9.4.2

2020-08-25 Thread Christian Grün
Hi Sebastian, The static type of the client:query function is fixed. A new snapshot is available [1]. Hope this helps, Christian [1] https://files.basex.org/releases/latest/ On Mon, Aug 24, 2020 at 4:29 PM Wiemer, Sebastian < sebastian.wie...@adesso.de> wrote: > Hi, > > Thank you Christian

Re: [basex-talk] XQDoc Parser requires leading colons in doc-comment for @token documentation

2020-08-25 Thread Christian Grün
Hi Andreas, You can now omit the colon in comments. A new snapshot is available [1]. Hope this helps, Christian [1] https://files.basex.org/releases/latest/ On Mon, Aug 24, 2020 at 4:41 PM Andreas Mixich wrote: > > Hello, > > when using `inspect:xqdoc#1` on a module, where the lines of doc

Re: [basex-talk] improving query performance

2020-08-22 Thread Christian Grün
Yes, I see now why my query returns much more hits than yours (including the first). As Liam already expressed, it’s not really a nested query what you are wanting to achieve. Oe thing you can always try is to change the order of your for clauses and see what happens. Maybe you did that already?

Re: [basex-talk] improving query performance

2020-08-22 Thread Christian Grün
vely expanded version of the data, then perhaps this will get > to <1000ms! > > On Sat, Aug 22, 2020 at 4:07 AM Christian Grün > wrote: > >> Hi Bill, >> >> Feel free to run the attached queries; maybe they give you a faster >> result. >> >> Your

Re: [basex-talk] documentation flaw

2020-08-22 Thread Christian Grün
Hi Rob, you are right. I have replaced "or" with "and". Thanks for the hint. – Best, Christian On Sat, Aug 22, 2020 at 12:57 PM RobStapper wrote: > Hi, > > > > I have my doubts about the expressions used at the “tertium non > datur”-principle in the documentation [1]. > > Or the expression

Re: [basex-talk] improving query performance

2020-08-22 Thread Christian Grün
Hi Bill, Feel free to run the attached queries; maybe they give you a faster result. Your use case was interesting. It gave me some additional ideas on how to speed up queries (by reordering consecutive 'for' clauses that do not change the result). Cheers, Christian On Sat, Aug 22, 2020 at

Re: [basex-talk] BaseX GUI: XPath suggestions / completion

2020-08-21 Thread Christian Grün
Hi André, Thanks for the observation. I’ve checked our recent releases, and it seems that the interactive path completion got corrupted with version 9.3 of BaseX. We’ll fix this in our next snapshot and keep you updated. Greeting across the border, Christian On Fri, Aug 21, 2020 at 10:58 PM

Re: [basex-talk] improving query performance

2020-08-21 Thread Christian Grün
Just a quick hint: As the query info output indicates that no text index is used (see [1]), you could try to attach explicit text() steps in your comparisons: where $track_release/ReleaseLabelReference/text() = $r/PartyList/Party/PartyReference/text() ... where

[basex-talk] BaseX 9.4.2: Tweaks & Fixes

2020-08-21 Thread Christian Grün
Dear all, We have released another 9.4 late-summer maintenance release with new performance tweaks and minor bug fixes: http://basex.org In addition, we have started a new Wiki article on XQuery optimizations, which we plan to extend step by step:

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-21 Thread Christian Grün
> C:\Srikumar\Software\BaseX\BaseX941\basex>java -Dorg.basex.DEFAULTDB=true -cp > basex.jar org.basex.BaseX -c"get DEFAULTDB" > DEFAULTDB: true > > C:\Srikumar\Software\BaseX\BaseX941\basex\bin>basex > BaseX 9.4.1 [Standalone] > Try 'help' to get more information. …this can’t work, as properties

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-21 Thread Christian Grün
Let’s stick with one variant: > What do you get if you run the following XQuery expression? …in your XQJ code?

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-21 Thread Christian Grün
>I have tested below code but it is not working. > > System.setProperty("org.basex.DEFAULTDB", "true"); > XQDataSource xqs = new BaseXXQDataSource(); What do you get if you run the following XQuery expression? db:system()//defaultdb

Re: [basex-talk] problems using Archive module with certain zip files

2020-08-20 Thread Christian Grün
Hi Vincent, > archive:extract-to() or archive:entries() produce this error message > “Operation failed: only DEFLATED entries can have EXT descriptor.” This error seems to be caused by to a bug in the JDK [1]. As the bug entry has been opened in 2015, I’m not sure if we can count on a quick

Re: [basex-talk] Starten Unit Test Module in XQuery

2020-08-20 Thread Christian Grün
Hi Markus, > Ist es möglich, ein Unit Test Module > (https://docs.basex.org/wiki/Unit_Module#Query) über ein XQuery Script zu > starten und die Testausgabe in ein File umzuleiten? As you’ve already noted, unit tests must always be started outside an XQuery expression. The reason is that

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-18 Thread Christian Grün
> I have tried with below code, but it did not work. > Is it correct to way to set this option?? Is there any other way to set > DEFAULTDB? > > XQDataSource xqs = new BaseXXQDataSource(); > ... > System.setProperty("DEFAULTDB", "true"); The property key needs to be prefixed with

Re: [basex-talk] Can't serialize entities to XML

2020-08-18 Thread Christian Grün
divgt; let $unescaped := $data => replace(``[]``, ``[<]``) => replace(``[]``, ``[>]``) => replace(``[]``, ``[&]``) let $xml := parse-xml($unescaped) return $xml Hope this helps, Christian On Mon, Aug 17, 2020 at 9:07 PM Andreas Mixich wrote: > > Am 17.

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-18 Thread Christian Grün
__ > From: Srikumar Choudhury > Sent: Tuesday, August 18, 2020 3:49 PM > To: Christian Grün > Cc: basex-talk@mailman.uni-konstanz.de ; > Nikhil Sethi > Subject: Re: [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource > 'C:/Srikumar/Software/BaseX/BaseX941/b

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-18 Thread Christian Grün
> No, our xquery can be simple or complex depend on customer requirement, it is > not our control. So it’s completely another party that is generating the client queries? > but in case of db:open xquery, we need to know database name much before. > where as in doc(...) xquery, no need to pass

Re: [basex-talk] [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-18 Thread Christian Grün
Fine. If you want to access documents from the database, db:open is always the better choice. On Tue, Aug 18, 2020 at 10:56 AM Srikumar Choudhury wrote: > > Yes I have tried it and it is returning result properly. > > > ____ > From: Christian Grü

Re: [basex-talk] Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.

2020-08-18 Thread Christian Grün
> > XQUERY for $article in doc('6301904f8114/0601904f80007547.xml') return > > $article Did you try db:open ?

Re: [basex-talk] Yaml serialization

2020-08-17 Thread Christian Grün
this path). Has anyone of you already worked with XML representations of YAML? Best, Christian [1] https://yaml.org/spec/1.2/spec.html [2] https://tools.ietf.org/html/rfc8259 [3] https://yaml.org/xml On Wed, Aug 12, 2020 at 7:21 PM Christian Grün wrote: > > Hans-Jürgen, thanks for you assessment.

Re: [basex-talk] Fuzzy is not applied in full-text search

2020-08-17 Thread Christian Grün
Hi Thu, Good catch. The local options of a full-text expression were overwritten by a recent optimization that is now performed after variable inlining. The issue is resolved [1,2]. Best, Christian [1] https://github.com/BaseXdb/basex/issues/1922 [2] https://files.basex.org/releases/latest/

Re: [basex-talk] Can't serialize entities to XML

2020-08-17 Thread Christian Grün
Hi Andreas, Before we fix the outcome, we should have a look at the initial HTTP response. I assume the following function invokes http:send-request? > 1. let $data := local:get-article($token, concat($local:ahost, > $link))/json Could you supply us with the full HTTP response (header and

Re: [basex-talk] Understanding PUL, seeing modified result

2020-08-17 Thread Christian Grün
Hi Ben, > Unfortunately, the insert above just returns an empty set. I *think* it puts > it into some PUL list, not unlike a set of transactions to be applied. These > modifications seem to be invisible to subsequent queries, even in the same > session (unlike a SQL database wherein the same

Re: [basex-talk] [EXTERNAL] - Re: Basex huge performance hit in linux (Basex query execution is too slow in linux)

2020-08-17 Thread Christian Grün
Hi Nikhil, Good to hear. To get this sorted: Your problems with Linux seem to be resolved? > Creating document is working fine but is unable to insert the data inside the > db while using it from springboot application : > … > result = connection.query(query); You are creating a query

Re: [basex-talk] Yaml serialization

2020-08-12 Thread Christian Grün
the highway of XPath (XML, JSON, CSV, HTML, YAML). > > In comparison, I think, YAML representation of arbitrary XML would be a > nicety without strategic significance. > > Hans-Jürgen > > Am Mittwoch, 12. August 2020, 18:38:10 MESZ hat Christian Grün < > christian.gr...@gm

Re: [basex-talk] Yaml serialization

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

Re: [basex-talk] [EXTERNAL] - Re: Basex huge performance hit in linux (Basex query execution is too slow in linux)

2020-08-12 Thread Christian Grün
XQResultSequence result = expr.executeQuery(); > XQSequence scrollableCopy = connection.createSequence(result); > > Is there any configurations required in linux machine to overcome from this > lag or Is the any other way to execute the basex queries and get the response > with da

Re: [basex-talk] Yaml serialization

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

Re: [basex-talk] Yaml serialization

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

Re: [basex-talk] In search for "basexgui.vbs"

2020-08-10 Thread Christian Grün
Hi Andreas, I guess this file was created by yourself; at least I haven’t heard of it before. It’s a bit annoying indeed that batch scripts will always open a console window (and for reasons of compatibility with older versions of Windows, they are still our preferred way to define start

Re: [basex-talk] Basex huge performance hit in linux (Basex query execution is too slow in linux)

2020-08-10 Thread Christian Grün
Hi Nikhil, If your hardware environment is similar, the difference between Windows and Linux should actually be negligible. Some questions that might help to track the problem down: 1. Can you reproduce this behavior on another independent Linux system? 2. What happens with a different Java

Re: [basex-talk] [EXTERNAL] - Re: BaseX 9.4 - XQuery locks - documentation query

2020-07-30 Thread Christian Grün
f you invoke serialize, a valid item must be supplied as first argument for serialize. This can e.g look as follows: serialize(db:open('db', 'path/to/file.xml'), map { ... }) > From: Christian Grün > Sent: Tuesday, July 28, 2020 9:27 PM > To: Srikumar Choudhury > Cc: James Ball

Re: [basex-talk] Reg : Memory leak suspect

2020-07-29 Thread Christian Grün
not test this scenario with > the latest version. > > Regards, > Chandrasekhar > > > On Wed, Jul 29, 2020 at 12:00 PM Christian Grün > wrote: >> >> Hi Chandra, >> >> Does this also happen with the latest version of BaseX? >> >> Best, >>

Re: [basex-talk] Reg : Memory leak suspect

2020-07-29 Thread Christian Grün
Hi Chandra, Does this also happen with the latest version of BaseX? Best, Christian chandra sekhar n schrieb am Mi., 29. Juli 2020, 07:58: > Dear Basex Team, > Basex server instance consuming more money,That instance is not releasing > the memory ,to resolve this issue every time we are

Re: [basex-talk] [EXTERNAL] - Re: BaseX 9.4 - XQuery locks - documentation query

2020-07-28 Thread Christian Grün
Hi Srikumar, As document type definitions and XML declarations are not part of the XML information set, they are not stored in the database. However, you can easily recreate them when serializing your documents. See [1] for further information. Hope this helps Christian [1]

Re: [basex-talk] BaseX 9.4 - XQuery locks - documentation query

2020-07-28 Thread Christian Grün
Hi James, Thanks for the pointer, and your other edit(s) in our Wiki. I have revised the corresponding section, it now reads as follows: • A lock string may consist of a single key or multiple keys separated with commas. • Internal locks and XQuery locks can co-exist. No conflicts arise, even if

Re: [basex-talk] Inserting a two double quoted attribute

2020-07-27 Thread Christian Grün
> With XML markup, to have an attribute value delimited by double quotes > but to also use double quotes inside the attribute value, you need to > use an entity reference or character reference in the attribute value >3.00 > to escape the double quote(s). If you have full control over the

Re: [basex-talk] Possible bug in database size (bytes) after database optimize from BaseX Database Administration

2020-07-16 Thread Christian Grün
> > We use the BaseX REST API from a Java problem to add and update documents > in BaseX. > Do you think it’s reproducible for us? >

Re: [basex-talk] Possible bug in database size (bytes) after database optimize from BaseX Database Administration

2020-07-16 Thread Christian Grün
> > (2) Update one or of the database's entries. > If I replace the document via the DBA, or if I run an update expression via the Queries Panel, the count always reflects the number of resources, it doesn’t change. How did you update the document? Is it an XML document or a binary file you

  1   2   3   4   5   6   7   8   9   10   >