Conal-Tuohy / TroveQueryBuilder

A web form for querying the Trove API via the TroveProxy
Apache License 2.0
2 stars 0 forks source link

Composing queries from sub-queries #5

Open Conal-Tuohy opened 9 months ago

Conal-Tuohy commented 9 months ago

(from Martin Bush)

Sometimes query results are cluttered up with racing news; race results, racing form, etc, Horse names can be basically anything, and racing has always been big in Australia.

If you want to exclude racing content, It's possible to use negative queries to identify and exclude a lot of this stuff, but being able to express that "racing" query in a form that could be composed into a large query is potentially useful.

It suggests the need to be able to express sub-queries in a serializable form that can be named and saved, shared, etc, and integrated using a query-builder UI into a larger query by reference.

Queries could be persisted in users' browser local storage, or as cookies.

Conal-Tuohy commented 9 months ago

Such subqueries would need to be integrated into the jQuery-QueryBuilder framework:

One option:

e.g. this item doesn't match racing

Another option:

e.g. excluding racing

Conal-Tuohy commented 9 months ago

There should be a button which a user can use to transclude a subquery (as a group) if they need to customize it specifically for its role in the main query