automatically running an unknown number of queries on a variable content set

Tuesday, 6 July 2021 · 3 messages
MH
Martin Honnenin reply to Graydon Saunders, 6 Jul 2021, 20:396 Jul 2021 18:47 #
Quoted text · Graydon Saunders · 18 lines
Am 06.07.2021 um 18:38 schrieb Graydon Saunders: > > So the idea is to -- via some automatic process, so "the command line" > -- load a content set into BaseX and then run some arbitrary list of > queries on that content set, returning an aggregated report. > > It's important that it's easy to add a query; we expect to be adding > queries as we find new ways for the content to be inappropriate. > (We're guaranteed it's valid; we are not guaranteed it's sensible, in > the "and just how do you expect to publish forty seven levels of > nested lists?" sense.) > > My first thought is to have a directory of individual queries and have > the main query walk through them with xquery:eval(), but there might > be a better way. > > Anyone got any suggestions? >
Most of the description seems to just fit BaseX command line scripts https://docs.basex.org/wiki/Commands#Basics. Not sure, however, whether "an aggregrated report" is easily achieved that way.
GS
Graydon Saunders6 Jul 2021 20:39 #
Hello! So the idea is to -- via some automatic process, so "the command line" -- load a content set into BaseX and then run some arbitrary list of queries on that content set, returning an aggregated report. It's important that it's easy to add a query; we expect to be adding queries as we find new ways for the content to be inappropriate. (We're guaranteed it's valid; we are not guaranteed it's sensible, in the "and just how do you expect to publish forty seven levels of nested lists?" sense.) My first thought is to have a directory of individual queries and have the main query walk through them with xquery:eval(), but there might be a better way. Anyone got any suggestions? Thanks! Graydon
G
Graydonin reply to Martin Honnen, 6 Jul 2021, 18:476 Jul 2021 22:15 #
Quoted text · Martin Honnen · 5 lines
On Tue, Jul 06, 2021 at 06:47:02PM +0200, Martin Honnen scripsit: > Am 06.07.2021 um 18:38 schrieb Graydon Saunders: > > So the idea is to -- via some automatic process, so "the command line" > > -- load a content set into BaseX and then run some arbitrary list of > > queries on that content set, returning an aggregated report.
[snip]
Quoted text · Martin Honnen · 5 lines
> > Anyone got any suggestions? > > Most of the description seems to just fit BaseX command line scripts > https://docs.basex.org/wiki/Commands#Basics. Not sure, however, whether > "an aggregrated report" is easily achieved that way.
It looks like I can lightly misuse TEST to get an aggregated report. Thank you! Graydon

⚡Generated with XQuery