[basex-talk] Log of discarded files / SKIPCORRUPT

2018-11-30 Thread Kittelmann, Maike
If the import option SKIPCORRUPT [1] is selected - where can I find a log as to 
which files have been discarded?

Best,
MK

[1] http://docs.basex.org/wiki/Options#SKIPCORRUPT


[basex-talk] BaseX 9.1 behaviour of fn:trace

2018-11-12 Thread Kittelmann, Maike
Dear fellow users,

I updated to BaseX 9.1 and I observe an unexpected behaviour of fn:trace
http://docs.basex.org/wiki/XQuery_3.1#fn:trace

I inserted logging statements to give warnings in case important content is 
missing, like so:

declare function local:my-function ( $id as xs:string?,
  
$value as xs:string? )
   as xs:string?
{
   if ( $ value != '' )
   then
 "foo"
   else
 trace( $id, 'No foo given for this record! ')
 } ;


So far, the fn:trace output could be read in the Info window of BaseX.
Now, the id-value of the above call to trace  is ALSO output to the Result 
window.

Even though the documentation states that the behaviour of trace is 
implementation-dependent, this behaviour seems unexpected and unhelpful. The 
extra output to result  is hard to notice and destroys a possibly fully valid 
result file (the trace call is only a warning, there is not necessarily an 
actual error).


1.   Is there anything wrong with my XQuery?

2.   Why is trace behaving this way in BaseX 9.1?

3.   How to best achieve the desired output? (Desired output is: result 
file unchanged and warning in Info window.)


Thank you and best regards,
MK


[basex-talk] basex csv import cmd

2018-07-04 Thread Kittelmann, Maike
Dear BaseX users,


I often make use of importing files to BaseX via command line. For XML this 
works fine. Currently, I work with CSV-files that I import to BaseX via GUI.

I would like to automatize this process as I do with XML-Import files. 
Unfortunately, I didn't find any instructions so far how I can apply these same 
GUI CSV import settings to the import via command line. Is this possible?


Best regards,

Maike Kittelmann


--

Maike Kittelmann
Metadaten und Datenkonversion

Georg-August-Universität Göttingen
Niedersächsische Staats- und Universitätsbibliothek Göttingen
D-37070 Göttingen

Papendiek 14 (Historisches Gebäude, Raum 1.617)
+49 551 39-10249

kittelm...@sub.uni-goettingen.de
http://www.sub.uni-goettingen.de<https://email.gwdg.de/owa/redir.aspx?C=TxY71q4kfUCSjLXiZog64-dZmmdWU9EIVyC3M2WgfbXTx2JT4hHmMWOp4VihS16upJ2RNhJuxcE.=http%3a%2f%2fwww.sub.uni-goettingen.de>