bluesearch.entrypoint.database.parse_mesh_rdf module

CLI sub-command for parsing MeSH RDF files.

init_parser(parser: argparse.ArgumentParser) argparse.ArgumentParser[source]

Initialise the argument parser for the parse-mesh-rdf subcommand.

Parameters

parser – The argument parser to initialise.

Returns

The initialised argument parser. The same object as the parser argument.

Return type

argparse.ArgumentParser

run(*, mesh_nt_gz_file: pathlib.Path, output_json_file: pathlib.Path) int[source]

Parse a MeSH RDF file to extract the topic tree structure.

See the description of the init_parser command for more information on the command and its parameters.