Difference between revisions of "Pyomnigraph"

From BITPlan Wiki
Jump to navigation Jump to search
(Created page with "=OsProject= {{OsProject |id=pyomnigraph |state=active |owner=WolfgangFahl |title=pyomnigraph |url=https://github.com/WolfgangFahl/pyomnigraph |version=0.0.1 |description=Unif...")
 
 
(17 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.1
+
|version=0.0.21
 
|description=Unified Python interface for multiple graph databases
 
|description=Unified Python interface for multiple graph databases
|date=2025-05-28
+
|date=2025-07-18
 
|since=2025-05-27
 
|since=2025-05-27
 
}}
 
}}
 +
{{pip|pyomnigraph}}
 +
 +
= Usage =
 +
== Command line ==
 +
=== omnigraph ===
 +
<source lang='bash' highlight='1'>
 +
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]
 +
 +
</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
 +
  --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>

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]