[basex-talk] db:optimize

2020-01-28 Thread Ветошкин Владимир
Hi, everybody! I use basex+php.When I call db:optimize('A') from basex gui I can read from db 'B'.But if I call db:optimize('A') from php (php cli) I can't read 'B' while the first query is working.Why? And how can I solve it?I wracked my brain... -- С уважением,Ветошкин Владимир Владимирович 

Re: [basex-talk] Load LibreOffice- and Word-documents?

2020-01-28 Thread Omar Siam
Hi Ben This will be problematic with real world docx files at least. The text in there can be split into numerous tags disregarding any word boundaries depending on the edit history of the document. As BaseX has no means to ignore inline elements in the index this will always be a rather slow

Re: [basex-talk] Load LibreOffice- and Word-documents?

2020-01-28 Thread Christian Grün
Hi Ben, Yes, that’s possible. Office files are simple ZIP archives, so you can create a database with ZIP parsing turned on. If you supply a Word file to the collection() function, the document will be parsed on-the-fly. Just run the following query on the attached document: collection('HelloW

[basex-talk] Load LibreOffice- and Word-documents?

2020-01-28 Thread Ben Engbers
Hi, While we were discussing possible usecases for basex, a colleague asked me if it is also possible to load libreoffice and Word documents into Basex and then perform full-text analysis on them. In essence, these are both XML files, so it should be possible. Does anybody have experience with th

Re: [basex-talk] NullPointerException parsing trivial query using XQJ (CLI works)

2020-01-28 Thread Christian Grün
> Interesting. That's not what I would have been expecting. May I inquire > why this is done like this? Once again, a solution chosen by the developer… I assume this is because the same XQJ base driver was used for a range of XQuery processors (eXist-db, Sedna, Marklogic). > Thus, my plug-in requ

Re: [basex-talk] NullPointerException parsing trivial query using XQJ (CLI works)

2020-01-28 Thread Andreas Sewe
Hi Christian, > The XQJ driver comes with its own XQuery parser, which differs from > the BaseX query parser. Interesting. That's not what I would have been expecting. May I inquire why this is done like this? > It has been a closed-source development from > Charles Foster [1]; you may need to d

Re: [basex-talk] NullPointerException parsing trivial query using XQJ (CLI works)

2020-01-28 Thread Christian Grün
Hi Andreas, The XQJ driver comes with its own XQuery parser, which differs from the BaseX query parser. It has been a closed-source development from Charles Foster [1]; you may need to directly contact him to see if there is a chance to get this fixed. As there haven’t been any considerable updat

Re: [basex-talk] Test for changes in the data structure

2020-01-28 Thread Christian Grün
Dear Benjamin, > I only want to test the data structure of specific nodes and not the complete xml for changes. Is it possible to do this with BaseX? I would guess this depends on your XSD files. Could you provide us with an example (XML, Schema) that demonstrates which parts of your data you wa