ivmfnal / metacat

Metadata Catalog
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

command line interface for storing queries #18

Closed hschellman closed 1 year ago

hschellman commented 1 year ago

Can we get a python and command line API for storing queries.

hschellman commented 1 year ago

An update on this one. Here are suggested interfaces for the stored queries.

The samweb format is

samweb create-dataset <"dimensions">

presumably one can just make a

metacat query store -q <"dimensions"> -n

One question is if this goes into a namespace and if so which? Might be the user namespace.

list query shortcuts in namespace

metacat query list namespace

show me the info (including the query itself)

metacat query show namespace:name

may need to have a query that says, show me all the queries with a given field in them in my namespace.

ivmfnal commented 1 year ago

Done. See https://metacat.readthedocs.io/en/latest/ui.html#named-queries You will need to upgrade the client to 3.31.0