Difference between revisions of "Pyomnigraph"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
<source lang='bash' highlight='1'> | <source lang='bash' highlight='1'> | ||
omnigraph -h | omnigraph -h | ||
− | usage: omnigraph [-h] [-a] [-c CONFIG] [--cmd CMD [CMD ...]] [- | + | omnigraph -h |
− | + | usage: omnigraph [-h] [-a] [-d] [-f] [-q] [-V] [-c CONFIG] [--cmd CMD [CMD ...]] [-l] [--test] | |
+ | [-s SERVERS [SERVERS ...]] [-v] | ||
Unified Python interface for multiple graph databases | Unified Python interface for multiple graph databases | ||
Line 26: | Line 27: | ||
-h, --help show this help message and exit | -h, --help show this help message and exit | ||
-a, --about show about info [default: False] | -a, --about show about info [default: False] | ||
+ | -d, --debug show debug info [default: False] | ||
+ | -f, --force force actions that would modify existing data [default: False] | ||
+ | -q, --quiet avoid any output [default: False] | ||
+ | -V, --version show program's version number and exit | ||
-c CONFIG, --config CONFIG | -c CONFIG, --config CONFIG | ||
Path to server configuration YAML file [default: | Path to server configuration YAML file [default: | ||
/Users/wf/Library/Python/3.12/lib/python/site- | /Users/wf/Library/Python/3.12/lib/python/site- | ||
packages/omnigraph/resources/examples/servers.yaml] | packages/omnigraph/resources/examples/servers.yaml] | ||
− | --cmd CMD [CMD ...] commands to execute on servers: start, stop, rm, bash, | + | --cmd CMD [CMD ...] commands to execute on servers: start, stop, rm, bash, logs, status, clear, |
− | + | needed, count, load, webui | |
− | |||
− | |||
-l, --list-servers List available servers [default: False] | -l, --list-servers List available servers [default: False] | ||
--test use test environment [default: False] | --test use test environment [default: False] | ||
− | |||
-s SERVERS [SERVERS ...], --servers SERVERS [SERVERS ...] | -s SERVERS [SERVERS ...], --servers SERVERS [SERVERS ...] | ||
− | + | servers to work with - 'all' selects all configured servers [default: | |
− | + | ['blazegraph']] | |
-v, --verbose show verbose output [default: False] | -v, --verbose show verbose output [default: False] | ||
− | |||
</source> | </source> | ||
=== rdfdump === | === rdfdump === |
Revision as of 15:14, 31 May 2025
OsProject
OsProject | |
---|---|
id | pyomnigraph |
state | active |
owner | WolfgangFahl |
title | pyomnigraph |
url | https://github.com/WolfgangFahl/pyomnigraph |
version | 0.0.8 |
description | Unified Python interface for multiple graph databases |
date | 2025-05-31 |
since | 2025-05-27 |
until |
Installation
pip install pyomnigraph
# alternatively if your pip is not a python3 pip
pip3 install pyomnigraph
# local install from source directory of pyomnigraph
pip install .
upgrade
pip install pyomnigraph -U
# alternatively if your pip is not a python3 pip
pip3 install pyomnigraph -U
Usage
Command line
omnigraph
omnigraph -h
omnigraph -h
usage: omnigraph [-h] [-a] [-d] [-f] [-q] [-V] [-c CONFIG] [--cmd CMD [CMD ...]] [-l] [--test]
[-s SERVERS [SERVERS ...]] [-v]
Unified Python interface for multiple graph databases
options:
-h, --help show this help message and exit
-a, --about show about info [default: False]
-d, --debug show debug info [default: False]
-f, --force force actions that would modify existing data [default: False]
-q, --quiet avoid any output [default: False]
-V, --version show program's version number and exit
-c CONFIG, --config CONFIG
Path to server configuration YAML file [default:
/Users/wf/Library/Python/3.12/lib/python/site-
packages/omnigraph/resources/examples/servers.yaml]
--cmd CMD [CMD ...] commands to execute on servers: start, stop, rm, bash, logs, status, clear,
needed, count, load, webui
-l, --list-servers List available servers [default: False]
--test use test environment [default: False]
-s SERVERS [SERVERS ...], --servers SERVERS [SERVERS ...]
servers to work with - 'all' selects all configured servers [default:
['blazegraph']]
-v, --verbose show verbose output [default: False]
rdfdump
rdfdump -h
usage: rdfdump [-h] [-a] [-d] [-f] [-q] [-V] [-c CONFIG] [-ds DATASETS [DATASETS ...]]
[--limit LIMIT] [-l] [-4o] [--max-triples MAX_TRIPLES] [--no-progress]
[--output-path OUTPUT_PATH]
Unified Python interface for multiple graph databases
options:
-h, --help show this help message and exit
-a, --about show about info [default: False]
-d, --debug show debug info [default: False]
-f, --force force actions that would modify existing data [default: False]
-q, --quiet avoid any output [default: False]
-V, --version show program's version number and exit
-c CONFIG, --config CONFIG
Path to datasets configuration YAML file [default:
/Users/wf/Library/Python/3.12/lib/python/site-
packages/omnigraph/resources/examples/datasets.yaml]
-ds DATASETS [DATASETS ...], --datasets DATASETS [DATASETS ...]
datasets to download - all is an alias for all datasets [default: ['all']]
--limit LIMIT Number of triples per request [default: 10000]
-l, --list List available datasets [default: False]
-4o, --for-omnigraph store dump at default omnigraph location [default: False]
--max-triples MAX_TRIPLES
Maximum number of triples to download (uses dataset expected_triples if not
specified)
--no-progress Disable progress bar
--output-path OUTPUT_PATH
Path for dump files