I’m using the BaseX GUI in a very informal way where I create new databases as needed to do ad-hoc queries over content that comes from various git repos.
I’m trying to setup my local configuration settings to be what I need for this database creation tasks.
I’ve found and successfully configured the options for skipping corrupt and parsing archives but I don’t see an option that will populate the Input file or directory field, which I need to be “*.xml, *.dita,*.ditamap”.
I found the option that sets the pattern used in the main file selector field but that doesn’t apply to this dialog. I’m not seeing anything for this in the docs.
This is for BaseX 9.6.3
Thanks,
E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.comhttps://www.servicenow.com LinkedInhttps://www.linkedin.com/company/servicenow | Twitterhttps://twitter.com/servicenow | YouTubehttps://www.youtube.com/user/servicenowinc | Facebookhttps://www.facebook.com/servicenow
Hi Eliot,
On Thu, Jan 13, 2022 at 3:54 PM Eliot Kimber eliot.kimber@servicenow.com wrote:
I’m using the BaseX GUI in a very informal way where I create new databases as needed to do ad-hoc queries over content that comes from various git repos.
I’m trying to setup my local configuration settings to be what I need for this database creation tasks.
Are you editing a .basexgui file?
I’ve found and successfully configured the options for skipping corrupt and
parsing archives but I don’t see an option that will populate the Input file or directory field, which I need to be “*.xml, **.dita,**.ditamap”.
Does CREATEFILTER[1] help? I wonder if adding something like `CREATEFILTER = *.xml, *.dita, *.ditamap` would be sufficient - adding it at the end of the .basexgui file, after the `# Local Options` line? I'm not sure though - off the cuff suggestion are all I have at the moment.
I found the option that sets the pattern used in the main file selector field but that doesn’t apply to this dialog. I’m not seeing anything for this in the docs.
This is for BaseX 9.6.3
Thanks,
E.
__
Hopefully this is helpful - apologies if not. Best, Bridger
___________________________________________
*Eliot Kimber*
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com https://www.servicenow.com
LinkedIn https://www.linkedin.com/company/servicenow | Twitter https://twitter.com/servicenow | YouTube https://www.youtube.com/user/servicenowinc | Facebook https://www.facebook.com/servicenow
Apologies - I hit send before including the link
On Thu, Jan 13, 2022 at 4:29 PM Bridger Dyson-Smith bdysonsmith@gmail.com wrote:
Hi Eliot,
On Thu, Jan 13, 2022 at 3:54 PM Eliot Kimber eliot.kimber@servicenow.com wrote:
I’m using the BaseX GUI in a very informal way where I create new databases as needed to do ad-hoc queries over content that comes from various git repos.
I’m trying to setup my local configuration settings to be what I need for this database creation tasks.
Are you editing a .basexgui file?
I’ve found and successfully configured the options for skipping corrupt
and parsing archives but I don’t see an option that will populate the Input file or directory field, which I need to be “*.xml, **.dita,**.ditamap”.
Does CREATEFILTER[1] help? I wonder if adding something like `CREATEFILTER = *.xml, *.dita, *.ditamap` would be sufficient - adding it at the end of the .basexgui file, after the `# Local Options` line? I'm not sure though - off the cuff suggestion are all I have at the moment.
I found the option that sets the pattern used in the main file selector field but that doesn’t apply to this dialog. I’m not seeing anything for this in the docs.
This is for BaseX 9.6.3
Thanks,
E.
__
Hopefully this is helpful - apologies if not. Best, Bridger
[1] https://docs.basex.org/wiki/Options#CREATEFILTER
*Eliot Kimber*
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com https://www.servicenow.com
LinkedIn https://www.linkedin.com/company/servicenow | Twitter https://twitter.com/servicenow | YouTube https://www.youtube.com/user/servicenowinc | Facebook https://www.facebook.com/servicenow
Hi Eliot,
I’ve found and successfully configured the options for skipping corrupt and parsing archives but I don’t see an option that will populate the Input file or directory field, which I need to be “*.xml, *.dita,*.ditamap”.
Did you already try to enter this string in the "File patterns (separated by commas)" text field in the first tab of the Database Creation dialog?
As indicated by Bridger, this input should trigger a SET CREATEFILTER "*.xml, *.dita,*.ditamap" command, as you can see in the Info panel after having created your database.
Best, Christian
Christian,
I set the field to “*.dita,*.ditamap,*.xml” and I do see this in the Info panel:
Command: SET CREATEFILTER *.dita,*.ditamap,*.xml
This is what I have in my .basex config:
# Local Options
CHOP = false
SKIPCORRUPT = true
ADDARCHIVES = false
CREATEFILTER = *.dita,*.ditamap,*.ditaval,*.xml
But it does not appear to have any effect. I’ve tried it in both .basex and .basexgui and with and without quotes.
That is, my expectation based on the docs is that the entry in one or either of the config files would set the filter on startup.
Cheers,
E. _____________________________________________ Eliot Kimber Sr Staff Content Engineer O: 512 554 9368 M: 512 554 9368 servicenow.comhttps://www.servicenow.com LinkedInhttps://www.linkedin.com/company/servicenow | Twitterhttps://twitter.com/servicenow | YouTubehttps://www.youtube.com/user/servicenowinc | Facebookhttps://www.facebook.com/servicenow
From: Christian Grün christian.gruen@gmail.com Date: Friday, January 14, 2022 at 2:33 AM To: Eliot Kimber eliot.kimber@servicenow.com Cc: basex-talk@mailman.uni-konstanz.de basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Configuration Option for Files to Parse in Create Database Dialog? [External Email]
Hi Eliot,
I’ve found and successfully configured the options for skipping corrupt and parsing archives but I don’t see an option that will populate the Input file or directory field, which I need to be “*.xml, *.dita,*.ditamap”.
Did you already try to enter this string in the "File patterns (separated by commas)" text field in the first tab of the Database Creation dialog?
As indicated by Bridger, this input should trigger a SET CREATEFILTER "*.xml, *.dita,*.ditamap" command, as you can see in the Info panel after having created your database.
Best, Christian
But it does not appear to have any effect.
What happens exactly (or what doesn’t)?
I have written and attached a little BaseX command scripts that simulates the GUI workflow. You can download it and run it with BaseX on command line (it will create a temporary sub directory in your folder):
basex simulate-gui-db-creation.bxs
It should return the following output (i.e., the contents of the .xml and .dita document that are created in the first section of the script; invalid.xml will be ignored when creating the database):
<dita/> <xml/>
Does that help?
basex-talk@mailman.uni-konstanz.de