basex csv import cmd
Wednesday, 4 July 2018 · 2 messages
KM
Kittelmann, Maike4 Jul 2018 11:30 #
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
kittelmann at sub.uni-goettingen.de
http://www.sub.uni-goettingen.de<https://email.gwdg.de/owa/redir.aspx?C=TxY71q4kfUCSjLXiZog64-dZmmdWU9EIVyC3M2WgfbXTx2JT4hHmMWOp4VihS16upJ2RNhJuxcE.&URL=http%3a%2f%2fwww.sub.uni-goettingen.de>
FE
Fabrice ETANCHAUD4 Jul 2018 11:42 #
Hi Maike,
In order to automate non XML files importation,
You could write and run a command file (.BXS) [2] containing two things :
- needed parsing options [1]
- Create or add command
[1] http://docs.basex.org/wiki/Options#Parsing
[2] http://docs.basex.org/wiki/Commands
BXS files can easily be written in xml, so you can even automate the automation process, By writing parametrized XQuery generating BXS XML running BaseX Commands...
Best regards,
Fabrice Etanchaud
Cerfrance PCH
Quoted text · Kittelmann, Maike · 19 lines
De : BaseX-Talk [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Kittelmann, Maike Envoyé : mercredi 4 juillet 2018 11:31 À : 'basex-talk at mailman.uni-konstanz.de' Objet : [basex-talk] basex csv import cmd 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 kittelmann at sub.uni-goettingen.de http://www.sub.uni-goettingen.de<https://email.gwdg.de/owa/redir.aspx?C=TxY71q4kfUCSjLXiZog64-dZmmdWU9EIVyC3M2WgfbXTx2JT4hHmMWOp4VihS16upJ2RNhJuxcE.&URL=http%3a%2f%2fwww.sub.uni-goettingen.de>
Written for BaseX 9.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery