Difference between revisions of "Pyomnigraph"
Jump to navigation
Jump to search
(14 intermediate revisions by the same user not shown) | |||
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.21 |
|description=Unified Python interface for multiple graph databases | |description=Unified Python interface for multiple graph databases | ||
− | |date=2025- | + | |date=2025-07-18 |
|since=2025-05-27 | |since=2025-05-27 | ||
}} | }} | ||
{{pip|pyomnigraph}} | {{pip|pyomnigraph}} | ||
+ | |||
= Usage = | = Usage = | ||
== Command line == | == Command line == | ||
− | <source lang='bash'> | + | === omnigraph === |
+ | <source lang='bash' highlight='1'> | ||
omnigraph -h | omnigraph -h | ||
− | usage: omnigraph [-h] [-a] [-c CONFIG] [--cmd CMD [CMD ...]] [- | + | usage: omnigraph [-h] [-a] [-d] [-ds DATASETS [DATASETS ...]] |
− | [-s SERVERS [SERVERS ...]] [-v | + | [-dc DATASETS_CONFIG] [-f] [-r {turtle,rdf-xml,n3,json-ld}] |
+ | [-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 25: | Line 29: | ||
-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] | ||
+ | -ds DATASETS [DATASETS ...], --datasets DATASETS [DATASETS ...] | ||
+ | datasets to work with - all is an alias for all | ||
+ | datasets [default: ['wikidata_triplestores']] | ||
+ | -dc DATASETS_CONFIG, --datasets-config DATASETS_CONFIG | ||
+ | Path to datasets configuration YAML file [default: | ||
+ | /Users/wf/Library/Python/3.12/lib/python/site- | ||
+ | packages/omnigraph/resources/examples/datasets.yaml] | ||
+ | -f, --force force actions that would modify existing data | ||
+ | [default: False] | ||
+ | -r {turtle,rdf-xml,n3,json-ld}, --rdf_format {turtle,rdf-xml,n3,json-ld} | ||
+ | RDF format to use [default: turtle] | ||
+ | -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, | + | --cmd CMD [CMD ...] commands to execute on servers: start, stop, rm, bash, |
− | clear, count, load, webui | + | 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] | ||
-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> | ||
+ | === rdfdump === | ||
+ | <source lang='bash' highlight='1'> | ||
+ | rdfdump -h | ||
+ | usage: rdfdump [-h] [-a] [-d] [-ds DATASETS [DATASETS ...]] | ||
+ | [-dc DATASETS_CONFIG] [-f] [-r {turtle,rdf-xml,n3,json-ld}] | ||
+ | [-q] [-V] [--limit LIMIT] [-l] [--count] [--dump] [-4o] | ||
+ | [--max-count MAX_COUNT] [--no-progress] | ||
+ | [--output-path OUTPUT_PATH] [--tryit] | ||
+ | |||
+ | 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] | ||
+ | -ds DATASETS [DATASETS ...], --datasets DATASETS [DATASETS ...] | ||
+ | datasets to work with - all is an alias for all | ||
+ | datasets [default: ['wikidata_triplestores']] | ||
+ | -dc DATASETS_CONFIG, --datasets-config DATASETS_CONFIG | ||
+ | Path to datasets configuration YAML file [default: | ||
+ | /Users/wf/Library/Python/3.12/lib/python/site- | ||
+ | packages/omnigraph/resources/examples/datasets.yaml] | ||
+ | -f, --force force actions that would modify existing data | ||
+ | [default: False] | ||
+ | -r {turtle,rdf-xml,n3,json-ld}, --rdf_format {turtle,rdf-xml,n3,json-ld} | ||
+ | RDF format to use [default: turtle] | ||
+ | -q, --quiet avoid any output [default: False] | ||
-V, --version show program's version number and exit | -V, --version show program's version number and exit | ||
+ | --limit LIMIT Number of triples per request [default: 10000] | ||
+ | -l, --list List available datasets [default: False] | ||
+ | --count List available datasets with triple counts[default: | ||
+ | False] | ||
+ | --dump perform the dump [default: False] | ||
+ | -4o, --for-omnigraph store dump at default omnigraph location [default: | ||
+ | False] | ||
+ | --max-count MAX_COUNT | ||
+ | Maximum number of solutions/triples to download (uses | ||
+ | dataset expected_solutions if not specified) | ||
+ | --no-progress Disable progress bar | ||
+ | --output-path OUTPUT_PATH | ||
+ | Path for dump files | ||
+ | --tryit open the try it! URL [default: False] | ||
</source> | </source> |
Latest revision as of 09:06, 18 July 2025
OsProject
OsProject | |
---|---|
id | pyomnigraph |
state | active |
owner | WolfgangFahl |
title | pyomnigraph |
url | https://github.com/WolfgangFahl/pyomnigraph |
version | 0.0.21 |
description | Unified Python interface for multiple graph databases |
date | 2025-07-18 |
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] [-d] [-ds DATASETS [DATASETS ...]]
[-dc DATASETS_CONFIG] [-f] [-r {turtle,rdf-xml,n3,json-ld}]
[-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]
-ds DATASETS [DATASETS ...], --datasets DATASETS [DATASETS ...]
datasets to work with - all is an alias for all
datasets [default: ['wikidata_triplestores']]
-dc DATASETS_CONFIG, --datasets-config DATASETS_CONFIG
Path to datasets configuration YAML file [default:
/Users/wf/Library/Python/3.12/lib/python/site-
packages/omnigraph/resources/examples/datasets.yaml]
-f, --force force actions that would modify existing data
[default: False]
-r {turtle,rdf-xml,n3,json-ld}, --rdf_format {turtle,rdf-xml,n3,json-ld}
RDF format to use [default: turtle]
-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] [-ds DATASETS [DATASETS ...]]
[-dc DATASETS_CONFIG] [-f] [-r {turtle,rdf-xml,n3,json-ld}]
[-q] [-V] [--limit LIMIT] [-l] [--count] [--dump] [-4o]
[--max-count MAX_COUNT] [--no-progress]
[--output-path OUTPUT_PATH] [--tryit]
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]
-ds DATASETS [DATASETS ...], --datasets DATASETS [DATASETS ...]
datasets to work with - all is an alias for all
datasets [default: ['wikidata_triplestores']]
-dc DATASETS_CONFIG, --datasets-config DATASETS_CONFIG
Path to datasets configuration YAML file [default:
/Users/wf/Library/Python/3.12/lib/python/site-
packages/omnigraph/resources/examples/datasets.yaml]
-f, --force force actions that would modify existing data
[default: False]
-r {turtle,rdf-xml,n3,json-ld}, --rdf_format {turtle,rdf-xml,n3,json-ld}
RDF format to use [default: turtle]
-q, --quiet avoid any output [default: False]
-V, --version show program's version number and exit
--limit LIMIT Number of triples per request [default: 10000]
-l, --list List available datasets [default: False]
--count List available datasets with triple counts[default:
False]
--dump perform the dump [default: False]
-4o, --for-omnigraph store dump at default omnigraph location [default:
False]
--max-count MAX_COUNT
Maximum number of solutions/triples to download (uses
dataset expected_solutions if not specified)
--no-progress Disable progress bar
--output-path OUTPUT_PATH
Path for dump files
--tryit open the try it! URL [default: False]