Query <meta|children> [...]

 

 

usage: query.py [-h] [-v]  ...

 

document query tool

 

optional arguments:

  -h, --help     show this help message and exit

  -v, --verbose  verbose

 

subcommands:

 

    meta         get document metadata

    children     list a resource's children

 

 

The `query.py` program is a command line tool that can query the editor's database for some information.

    

    

    

usage: query.py meta [-h] uuid

 

get document metadata

 

positional arguments:

  uuid        UUID of resource

 

optional arguments:

  -h, --help  show this help message and exit

 

 

 

The `meta` argument shows the metadata (editor's own metadata, not from the DSpace cache) for a given document UUID.

 

 

usage: query.py children [-h] [-r] [-m] [-l] uuid

 

list children

 

positional arguments:

  uuid            UUID of resource

 

optional arguments:

  -h, --help      show this help message and exit

  -r, --recurse   recurse into sub-collections

  -m, --metadata  print metadata

  -l, --link      show revizor link

 

 

The `children` argument lists children, i.e. documents in a given collection, and optionally, recursively for all sub-collections. It can also show the metadata for these documents as well as a link to the editor.

 

This program can be used to create a list of UUIDs for the exporter.

 

 

  • No labels