Configuration Option for Files to Parse in Create Database Dialog?
Thursday, 13 January 2022 · 6 messages · last reply 14 Jan 2022
EK
Eliot Kimber13 Jan 2022 21:54 #
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.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>
BD
Bridger Dyson-Smith13 Jan 2022 23:26 #
Hi Eliot,
Quoted text · Eliot Kimber · 13 lines
On Thu, Jan 13, 2022 at 3:54 PM Eliot Kimber <eliot.kimber at 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?
Quoted text · Eliot Kimber · 4 lines
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.Quoted text · Eliot Kimber · 19 lines
> > 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
Quoted text · Eliot Kimber · 16 lines
> > *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> >
BD
Bridger Dyson-Smith13 Jan 2022 23:28 #
Apologies - I hit send before including the link
Quoted text · Bridger Dyson-Smith · 55 lines
On Thu, Jan 13, 2022 at 4:29 PM Bridger Dyson-Smith <bdysonsmith at gmail.com> wrote: > Hi Eliot, > > On Thu, Jan 13, 2022 at 3:54 PM Eliot Kimber <eliot.kimber at 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 >
Quoted text · Bridger Dyson-Smith · 19 lines
> > ___________________________________________ >> >> *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> >> >
CG
Hi Eliot,
Quoted text · Eliot Kimber · 1 line
> 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,
ChristianEK
Eliot Kimber14 Jan 2022 16:16 #
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.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>Quoted text · Christian Grün · 16 lines
From: Christian Grün <christian.gruen at gmail.com> Date: Friday, January 14, 2022 at 2:33 AM To: Eliot Kimber <eliot.kimber at servicenow.com> Cc: basex-talk at mailman.uni-konstanz.de <basex-talk at 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
CG
Christian Grün14 Jan 2022 16:39 #
Quoted text · Eliot Kimber · 1 line
> 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?
Written for BaseX 9.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery