Re: [basex-talk] Forcing reading _only_ from standard input
On 23 Aug 2018, at 1:06 am, Christian Grün wrote: > Feel free to check out the latest stable snapshot [1]. > > [1] http://files.basex.org/releases/latest/ Works well for me; thank you.
Re: [basex-talk] archive
Fabrice, Christian, I hope you are all doing well! :)Thank you for your answers!And I work on my english)22.08.2018, 18:31, "Christian Grün" :Hi Fabrice,Thanks for your response to Vladimir.You are completely right, BaseX has its own compression algorithms(without compression, databases would be much larger). Due to thequery update facilities and additional index structures, a databasewill always cosume more space than zipped XML documents.CheersChristianOn Wed, Aug 22, 2018 at 5:24 PM Fabrice ETANCHAUDwrote: Hi Vladimir, If your question is : is there a compression option to reduce database files and use built-in index features ? the answer is no. I can remember that BaseX use custom compression for text nodes. [1] Christian, I hope you are doing well ? Did I loose my mind or Did BaseX have a long time ago a compressed database option ? Best regards, [1] http://basex.org/2018/03/23/basex-9.0--the-spring-edition/ BaseX -Message d'origine- De : BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Christian Grün Envoyé : mercredi 22 août 2018 17:08 À : Ветошкин Владимир Cc : BaseX Objet : Re: [basex-talk] archive > I can compress xml-data and store it in db. > But then how can I search inside that db using index? Is it possible? I am not sure if I understand. How do you proceed? Could you possibly give us a step-by-step explanation?--С уважением, Ветошкин Владимир Владимирович
Re: [basex-talk] archive
Hi Fabrice, Thanks for your response to Vladimir. You are completely right, BaseX has its own compression algorithms (without compression, databases would be much larger). Due to the query update facilities and additional index structures, a database will always cosume more space than zipped XML documents. Cheers Christian On Wed, Aug 22, 2018 at 5:24 PM Fabrice ETANCHAUD wrote: > > Hi Vladimir, > > If your question is : is there a compression option to reduce database files > and use built-in index features ? the answer is no. > I can remember that BaseX use custom compression for text nodes. [1] > > Christian, I hope you are doing well ? > Did I loose my mind or Did BaseX have a long time ago a compressed database > option ? > > Best regards, > > [1] http://basex.org/2018/03/23/basex-9.0--the-spring-edition/ > > > BaseX > > > -Message d'origine- > De : BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la > part de Christian Grün > Envoyé : mercredi 22 août 2018 17:08 > À : Ветошкин Владимир > Cc : BaseX > Objet : Re: [basex-talk] archive > > > I can compress xml-data and store it in db. > > But then how can I search inside that db using index? Is it possible? > > I am not sure if I understand. How do you proceed? Could you possibly > give us a step-by-step explanation?
Re: [basex-talk] archive
Hi Vladimir, If your question is : is there a compression option to reduce database files and use built-in index features ? the answer is no. I can remember that BaseX use custom compression for text nodes. [1] Christian, I hope you are doing well ? Did I loose my mind or Did BaseX have a long time ago a compressed database option ? Best regards, [1] http://basex.org/2018/03/23/basex-9.0--the-spring-edition/ BaseX -Message d'origine- De : BaseX-Talk [mailto:basex-talk-boun...@mailman.uni-konstanz.de] De la part de Christian Grün Envoyé : mercredi 22 août 2018 17:08 À : Ветошкин Владимир Cc : BaseX Objet : Re: [basex-talk] archive > I can compress xml-data and store it in db. > But then how can I search inside that db using index? Is it possible? I am not sure if I understand. How do you proceed? Could you possibly give us a step-by-step explanation?
Re: [basex-talk] archive
> I can compress xml-data and store it in db. > But then how can I search inside that db using index? Is it possible? I am not sure if I understand. How do you proceed? Could you possibly give us a step-by-step explanation?
Re: [basex-talk] Forcing reading _only_ from standard input
Hi Richard, Newlines (i.e., whitespace-only, non-empty strings) were treated identically to the "." file reference. As you can also supply absolute and relative file and directory paths as arguments for the -i flag, the factbook.xml file, which is located in a descendant directory of your current directory, was opened instead and bound to the context item. This special case will now be checked. In addition, the error message for empty strings will now be suppressed. Feel free to check out the latest stable snapshot [1]. Best, Christian [1] http://files.basex.org/releases/latest/ > Further clarification/correction to what I reported: > > * When I said "empty string", in fact the "problem" arises > when standard input is _not_ empty, but includes just a > blank line. > * When standard input is empty, I get an exception > NoSuchElementException. That is probably acceptable: > at least, it is better than getting output that has > nothing to do with the input data. > * When I said "one of my databases", I think that _may_ have > been wrong. It may be content from an XML file in the > current directory (or, as you'll see below, from some > part of the distribution) ... I can't easily tell. > > What follows was done on a Mac; > "$" is a placeholder for the shell prompt. > > Three tests: > * The first test shows what I expected to be the > behaviour for data read from standard input. > * The second test shows when standard input is > empty (echo -n ''): an exception. > * The third test shows when standard input contains > just a blank line (echo ''): it seems to read from the > factbook.xml data (from basex/etc/factbook.xml?) > > > $ mkdir basex-report > $ cd basex-report > $ wget http://files.basex.org/releases/9.0.2/BaseX902.zip > ... output omitted ... > $ unzip BaseX902.zip > Archive: BaseX902.zip > extracting: basex/.basexhome > inflating: basex/BaseX.jar >creating: basex/bin/ > inflating: basex/bin/basex > inflating: basex/bin/basex.bat > ... etc. > $ echo '' | basex/bin/basex -i- -q '.' > /Users/rwalker/basex-report/basex/.basex: writing new configuration file. > $<-- shell prompt printed immediately after output > $ echo -n '' | basex/bin/basex -i- -q '.' > Exception in thread "main" java.util.NoSuchElementException > at java.util.Scanner.throwFor(Scanner.java:862) > at java.util.Scanner.next(Scanner.java:1371) > at org.basex.util.MainParser.string(MainParser.java:110) > at org.basex.BaseX.parseArgs(BaseX.java:235) > at org.basex.core.CLI.(CLI.java:50) > at org.basex.BaseX.(BaseX.java:55) > at org.basex.BaseX.main(BaseX.java:42) > $ echo '' | basex/bin/basex -i- -q '.' > > > > > > >datacode="AL" total_area="28750" population_growth="1.34" > infant_mortality="49.2" gdp_agri="55" gdp_total="4100" inflation="16" > indep_date="28 11 1912" government="emerging democracy" car_code="AL"> > Albania > > Tirane > ... etc. >
Re: [basex-talk] archive
I can compress xml-data and store it in db.But then how can I search inside that db using index? Is it possible? 22.08.2018, 17:28, "Christian Grün" : Because of the size, is there a way to store xml-data as archiveIf you want to compress your XML documents with XQuery, you can have alook at the Archive or ZIP Module of BaseX. I am not sure, however, ifthis is what you are looking for? (with possibility to search) ?The BaseX implementation of fn:doc() and fn:collection() supportszipped files as arguments. The contents will be unzippedautomatically: collection('my-xml-files.zip')If you create databases, you can specify ZIP files as input, too. -- С уважением,Ветошкин Владимир Владимирович
Re: [basex-talk] archive
> Because of the size, is there a way to store xml-data as archive If you want to compress your XML documents with XQuery, you can have a look at the Archive or ZIP Module of BaseX. I am not sure, however, if this is what you are looking for? > (with possibility to search) ? The BaseX implementation of fn:doc() and fn:collection() supports zipped files as arguments. The contents will be unzipped automatically: collection('my-xml-files.zip') If you create databases, you can specify ZIP files as input, too.
Re: [basex-talk] basex 9.1 and websockets
Hi Max, I think we can provide a version in September which will be stable for testing. If you want to have a look at the current (alpha) version, feel free to follow the steps described by Johannes in GitHub [1]. Any feedback is welcome. Cheers Christian [1] https://github.com/BaseXdb/basex/issues/1449 On Wed, Aug 22, 2018 at 3:25 PM Maximilian Gärber wrote: > > Hi, > > how far are we from the wss enabled release? > > I am ready for beta testing ;-) > > > Br, > Max
[basex-talk] basex 9.1 and websockets
Hi, how far are we from the wss enabled release? I am ready for beta testing ;-) Br, Max