Difference between revisions of "Pyomnigraph"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
|title=pyomnigraph | |title=pyomnigraph | ||
|url=https://github.com/WolfgangFahl/pyomnigraph | |url=https://github.com/WolfgangFahl/pyomnigraph | ||
− | |version=0.0. | + | |version=0.0.8 |
|description=Unified Python interface for multiple graph databases | |description=Unified Python interface for multiple graph databases | ||
− | |date=2025-05- | + | |date=2025-05-31 |
|since=2025-05-27 | |since=2025-05-27 | ||
}} | }} | ||
Line 15: | Line 15: | ||
= Usage = | = Usage = | ||
== Command line == | == Command line == | ||
+ | === omnigraph === | ||
<source lang='bash' highlight='1'> | <source lang='bash' highlight='1'> | ||
omnigraph -h | omnigraph -h | ||
Line 41: | Line 42: | ||
-v, --verbose show verbose output [default: False] | -v, --verbose show verbose output [default: False] | ||
-V, --version show program's version number and exit | -V, --version show program's version number and exit | ||
+ | </source> | ||
+ | === rdfdump === | ||
+ | <source lang='bash' highlight='1'> | ||
+ | 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 | ||
</source> | </source> |
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
usage: omnigraph [-h] [-a] [-c CONFIG] [--cmd CMD [CMD ...]] [-d] [-f] [-l]
[--test] [-q] [-s SERVERS [SERVERS ...]] [-v] [-V]
Unified Python interface for multiple graph databases
options:
-h, --help show this help message and exit
-a, --about show about info [default: False]
-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
-d, --debug show debug info [default: False]
-f, --force force action e.g. for clear command [default: False]
-l, --list-servers List available servers [default: False]
--test use test environment [default: False]
-q, --quiet avoid any output [default: False]
-s SERVERS [SERVERS ...], --servers SERVERS [SERVERS ...]
servers: servers to work with - all is an alias for
all servers [default: ['blazegraph']]
-v, --verbose show verbose output [default: False]
-V, --version show program's version number and exit
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