Re: [basex-talk] Database corruption on Optimize All

2016-03-04 Thread Christian Grün
Hi France,

I created the database via the GUI as you described, I opened the
database properties dialog, I optimized the database, but everything
works fine on my system.. Hm. Does it happen every time you are
optimizing the database this way? Do you have similar problems on
command-line? Could you please run the following command script and
report back what happens?

create.bxs _

SET CREATEFILTER *.xml,*.xsd
SET ADDARCHIVES false
SET ADDRAW true
SET CHOP false
SET INTPARSE true
CREATE DB test-db dita-schemas
OPTIMIZE ALL
INSPECT


You may need to update the path to the 'dita-schemas' directory.

Thanks in advance,
Christian


> 1. From BaseX GUI, I create a new database from a folder that contains
> mostly .xml, .xsd and .dtd files (attached). I use the default options from
> the GUI except:
>
> GENERAL
>
> Input format XML: *.xml, *.xsd
> Check 'Add other files as raw'
> Uncheck 'Parse files in archives'
>
> PARSING
>
> Check 'Use internal XML parser'
> Uncheck 'Chop whitespaces'
>
> 2. Once the content is loaded, go to the 'Database properties' window for
> the DB and you'll see that all files are there and that you are able to
> browse the collections.
>
> 3. Click 'Optimize All' and try to browse the collections again. It doesn't
> work and a 'Stream Closed' error is generated in the terminal windows
> (details attached)!
>
>
> France Baril
> Architecte documentaire / Documentation architect
> france.ba...@architextus.com


Re: [basex-talk] $node//text()[1], why doesn't it return the 1st text node?

2016-03-04 Thread Christian Grün
> Thanks for taking the time to look at this so quickly. I'm still unsure how
> #2 isn't a sequence if #3 is.

Do you mean the result of #2 and #3? All results (values) of XQuery
expressions are "sequences" (with 0 or more items), so the result of
#2 is a sequence as well.

> I'm just a bit surprised that text nodes and element nodes are returned
> differently.

This is actually not about text or element nodes, it’s about
descendant vs. child axis:

The following two queries are identical:

  $node//text()[1]
  $node/descendant-or-self::node()/child::text()[1]

If evaluated, you will get the first child text node of all nodes of
$node. In contrast..

  ($node//text())[1]
  $node/descendant::text()[1]

..will give you the first descendant text node of $node. Do you see
the difference?

Hope this helps,
Christian


Re: [basex-talk] out of main memory

2016-03-04 Thread michele . greco2
Hi Christian, i solved and managed to increase the memory,changing basex.bat
and not basexgui.bat.


Thanks for your help.


Regards,


Michele



- Original Message 

 Da: "Christian Grün" 

 To: 

 Cc: "Hondros Constantine ELS-AMS" , "BaseX"


 Oggetto: Re: [basex-talk] out of main memory

 Data: 03/03/16 14:38

 

  

 

 > I Christian, i tried and this is my error:

 > Error:Could not create the Java Virtual Machine

 

 Did you exactly proceed as described in my last mail? How does the

 modified line in your script look like?

 

 >

 >

 > - Original Message 

 > Da: "Christian Grün" 

 > To:

 > Cc: "Hondros Constantine ELS-AMS" ,
"BaseX"

 > 

 > Oggetto: Re: [basex-talk] out of main memory

 > Data: 03/03/16 11:57

 >

 >> I tried to do what i suggested Costantine with the value 1024m,
but my

 >> memory is alwais 495m.

 >

 > Please try the following:

 >

 > 1. Download the ZIP version of BaseX

 > (http://files.basex.org/releases/latest/)

 >

 > 2. Unzip it, edit bin/basexgui.bat (provided that you are using
Windows):

 >

 > OLD:

 > set BASEX_JVM=-Xmx512m %BASEX_JVM%

 >

 > NEW:

 > set BASEX_JVM=-Xmx4g %BASEX_JVM%

 >

 > 3. Start bin/basexgui.bat

 >

 > 4. Click on the lower right memory bar and compare it with the

 > attached screenshot.

 >

 > Does this help?

 > Christian

 >

 >

 >

 > On Thu, Mar 3, 2016 at 12:26 PM, 
wrote:

 >>

 >> - Original Message 

 >> Da: "Christian Grün"


 >> To:

 >> Cc: "Hondros Constantine ELS-AMS" ,
"BaseX"

 >> 

 >> Oggetto: Re: [basex-talk] out of main memory

 >> Data: 03/03/16 11:03

 >>

 >>

 >>

 >>> queries work. The Query on the extraction of text from files.
I 495m

 >>> available and would like increase it to at least 1024m.

 >>

 >> So which value did you assign via -Xmx? Do you start BaseX via

 >> basexgui.bat?

 >>

 >>

 >>> Michele

 >>>

 >>> - Original Message 

 >>> Da: "Christian Grün"


 >>> To:

 >>> Cc: "Hondros Constantine ELS-AMS"
, "BaseX"

 >>> 

 >>> Oggetto: Re: [basex-talk] out of main memory

 >>> Data: 03/03/16 10:42

 >>>

 >>>

 >>>

 >>> Hi Michele,

 >>>

 >>> How much memory do you have available on your system, and how
much did

 >>> you assign? What kind of operations are triggering the
out-of-memory

 >>> errors?

 >>>

 >>> Christian

 >>>

 >>>

 >>>

 >>> On Thu, Mar 3, 2016 at 9:34 AM,
 wrote:

  Hi Constantine, thanks for your answer.

  I'm trying to do what you suggested but all my tests so
far have had no

  effect.

  Do you have any particular which have to be careful as you
suggest?

 

  Regards,

  Michele

 

  - Original Message 

  Da: "Hondros Constantine ELS-AMS"


  To: "basex-talk@mailman.uni-konstanz.de"

  

  Oggetto: RE: [basex-talk] out of main memory

  Data: 01/03/16 10:07

 

  Hi Michele,

 

  1. Go to /bin

  2. Open basexgui.bat (Windows) or basexgui (*nix)

  3. Increase value of Xmx in BASEX_JVM variable, from 512
MB to

  something that your system can support

  4. Restart the GUI

 

  For example, here is the line from my config I allocate
almost 5

  Gigabytes of memory

 

  set BASEX_JVM=-Xmx5000m %BASEX_JVM%

 

  Regards,

  Cosntantine

 

 

  From: basex-talk-boun...@mailman.uni-konstanz.de

  [mailto:basex-talk-boun...@mailman.uni-konstanz.de] On
Behalf Of

  michele.gre...@email.it

  Sent: 01 March 2016 10:48

  To: basex-talk@mailman.uni-konstanz.de

  Subject: [basex-talk] out of main memory

 

  Hi, i get the error "out of main memory", when i run my
query on a

  collection in basex gui.

  How can i fix?

  How can i increase my memory?

  Regards

  Michele

 

  

  ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio
email.it, per

  tutti i dettagli clicca qui

 

  Sponsor:

  Idee regalo classiche o alternative? Trova l'offerta
migliore in un

  click

  Clicca qui

 

  

  Elsevier B.V. Registered Office: Radarweg 29, 1043 NX
Amsterdam, The

  Netherlands, Registration No. 33156677, Registered in The
Netherlands.

 

 

  

  ZE-Light e ZE-Pro: servizi zimbra per caselle con dominio
email.it, per

  tutti i dettagli clicca qui

 

  Sponsor:

  Idee regalo classiche o alternative? Trova l'offer