automatically running an unknown number of queries on a variable content set
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
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.
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] 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
participants (3)
-
Graydon -
Graydon Saunders -
Martin Honnen