[basex-talk] Atomization

2018-05-22 Thread Giuseppe Celano
I think I have identified a problem with atomization of attribute content (no 
database involved). I have a simple query:

for $s in doc("doc1")//s//t
for $d in doc("doc2")//case
where  $d/verb_lemma = $s/@l and $d//verb_form/@value = $s/@f and 
$d/aspect-values/@sign = "yes"
return
$s

In order to get a result, I (necessarily) need to use the data() function in 
data($d/aspect-values/@sign) = "yes", otherwise the query never returns a 
result. Is this a bug? 
I would expect that the value of @sign is automatically atomized and compared 
to "yes", but this does not seem the case.
Thanks.

Ciao,
Giuseppe

Universität Leipzig
Institute of Computer Science, NLP
Augustusplatz 10
04109 Leipzig
Deutschland
E-mail: cel...@informatik.uni-leipzig.de
E-mail: giuseppegacel...@gmail.com
Web site 1: http://www.dh.uni-leipzig.de/wo/team/
Web site 2: https://sites.google.com/site/giuseppegacelano/



[basex-talk] (no subject)

2018-05-22 Thread Kirsten, Dirk
Dear list,

I tried to insert a huge XML document (english wikipedia). When doing so and 
using the default parser I got the following warning:

"/my/path/enwiki-latest-pages-articles.xml" (Line 61696838): JAXP00010004: 
The accumulated size of entities is "50,000,001" that exceeded the "50,000,000" 
limit set by "FEATURE_SECURE_PROCESSING".

I solved this by setting the environment variables:

-DentityExpansionLimit=214748 -DtotalEntitySizeLimit=214748 
-Djdk.xml.totalEntitySizeLimit=214748

So it seems this is a security measure from JXB. Would it be possible to set 
these values by default or at least be able to change the limit with the GUI or 
BaseX options?

Cheers
Dirk

Dirk Kirsten
__
Senacor Technologies AG
D?sseldorfer Stra?e 13
65760 Eschborn

M +49 (151) 4435 1967

dirk.kirs...@senacor.com
www.senacor.com


Senacor Technologies Aktiengesellschaft - Sitz: Eschborn - Amtsgericht 
Frankfurt am Main - Reg.-Nr.: HRB 105546
Vorstand: Matthias Tomann, Marcus Purzer - Aufsichtsratsvorsitzender: Daniel 
Gr?zinger

Diese E-Mail inklusive Anlagen enth?lt vertrauliche und/oder rechtlich 
gesch?tzte Informationen. Wenn Sie
nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten, 
informieren Sie bitte den  Absender
und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser  E-Mail ist
nicht gestattet.

This e-mail including any attachments may contain confidential and/or 
privileged information. If you are
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or distribution of 
the materials in this e-mail is
strictly forbidden.


Re: [basex-talk] BaseX-Talk Digest, Vol 101, Issue 37

2018-05-22 Thread Kristian Kankainen
I have a setup using rsync to keep database directory copies synchronized with 
a master over the network. It works very well for me.22. mai 2018 10:16 
kirjutas kuupäeval Alexander Holupirek :
>
> Hi Martin, 
>
> export/import is one option. backup/restore another [1]. 
> And a third could be to copy the database directory (provided the servers 
> have a more or less similar setup). 
>
> Cheers, 
> Alex 
>
> [1] http://docs.basex.org/wiki/Backups (can also be done via DBA [2]) 
> [2] http://docs.basex.org/wiki/DBA 
>
> > On 21. May 2018, at 18:32, Martin Lourduswamy  
> > wrote: 
> > 
> > Hi, 
> > I would like to know how to copy a database from one server to another 
> > server, please let me know. 
> > Is it export and get and load xml or is there another way to do it, thanks 
> > for the clarification, 
> > Regards 
> > Martin Lourduswamy 
> > 
> > On Mon, May 21, 2018 at 6:00 AM, 
> >  wrote: 
> > Send BaseX-Talk mailing list submissions to 
> > basex-talk@mailman.uni-konstanz.de 
> > 
> > To subscribe or unsubscribe via the World Wide Web, visit 
> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk 
> > or, via email, send a message with subject or body 'help' to 
> > basex-talk-requ...@mailman.uni-konstanz.de 
> > 
> > You can reach the person managing the list at 
> > basex-talk-ow...@mailman.uni-konstanz.de 
> > 
> > When replying, please edit your Subject line so it is more specific 
> > than "Re: Contents of BaseX-Talk digest..." 
> > 
> > 
> > Today's Topics: 
> > 
> >    1. Fwd: BaseX performance improvements (Christian Gr?n) 
> >    2. Re: BaseX performance improvements (Christian Gr?n) 
> > 
> > 
> > -- 
> > 
> > Message: 1 
> > Date: Sun, 20 May 2018 18:51:03 +0200 
> > From: Christian Gr?n  
> > To: Martin Lourduswamy ,    BaseX 
> >  
> > Subject: [basex-talk] Fwd: BaseX performance improvements 
> > Message-ID: 
> > 
> 

Re: [basex-talk] BaseX-Talk Digest, Vol 101, Issue 37

2018-05-22 Thread Alexander Holupirek
Hi Martin,

export/import is one option. backup/restore another [1].
And a third could be to copy the database directory (provided the servers have 
a more or less similar setup).

Cheers,
Alex

[1] http://docs.basex.org/wiki/Backups (can also be done via DBA [2])
[2] http://docs.basex.org/wiki/DBA

> On 21. May 2018, at 18:32, Martin Lourduswamy  wrote:
> 
> Hi,
> I would like to know how to copy a database from one server to another 
> server, please let me know.
> Is it export and get and load xml or is there another way to do it, thanks 
> for the clarification,
> Regards
> Martin Lourduswamy
> 
> On Mon, May 21, 2018 at 6:00 AM,  
> wrote:
> Send BaseX-Talk mailing list submissions to
> basex-talk@mailman.uni-konstanz.de
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
> or, via email, send a message with subject or body 'help' to
> basex-talk-requ...@mailman.uni-konstanz.de
> 
> You can reach the person managing the list at
> basex-talk-ow...@mailman.uni-konstanz.de
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of BaseX-Talk digest..."
> 
> 
> Today's Topics:
> 
>1. Fwd: BaseX performance improvements (Christian Gr?n)
>2. Re: BaseX performance improvements (Christian Gr?n)
> 
> 
> --
> 
> Message: 1
> Date: Sun, 20 May 2018 18:51:03 +0200
> From: Christian Gr?n 
> To: Martin Lourduswamy ,BaseX
> 
> Subject: [basex-talk] Fwd: BaseX performance improvements
> Message-ID:
>