OsProject

OsProject
id  pyomnigraph
state  active
owner  WolfgangFahl
title  pyomnigraph
url  https://github.com/WolfgangFahl/pyomnigraph
version  0.3.0
description  Unified Python interface for multiple graph databases
date  2026-08-06
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


Quickstart

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] [--apache APACHE] [-c CONFIG] [--cmd CMD [CMD ...]]
                 [-df DOC_FORMAT] [-gepy ENDPOINTS_YAML] [-ii] [-l] [--compose] [--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/py-
                        workspace/pyomnigraph/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
  --apache APACHE       create apache configuration file for the given server(s)
  -c CONFIG, --config CONFIG
                        Path to server configuration YAML file [default: /Users/wf/py-
                        workspace/pyomnigraph/omnigraph/resources/examples/servers.yaml]
  --cmd CMD [CMD ...]   commands to execute on servers: bash, clear, count, info, load, liveload, bulkload,
                        build, logs, needed, rm, start, status, stop, upload, webui
  -df DOC_FORMAT, --doc-format DOC_FORMAT
                        The document format to use [default: plain]
  -gepy ENDPOINTS_YAML, --endpoints-yaml ENDPOINTS_YAML
                        Generate and endpoints yaml file for the active servers [default: None]
  -ii, --include-inactive
                        Include inactive servers in available server list[default: False]
  -l, --list-servers    List available servers [default: False]
  --compose             generate a docker compose file for the 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]