pyomnigraph 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/PKG-INFO +1 -1
- pyomnigraph-0.2.3/omnigraph/__init__.py +1 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/omniserver.py +17 -12
- pyomnigraph-0.2.2/omnigraph/__init__.py +0 -1
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.github/workflows/build.yml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.github/workflows/upload-to-pypi.yml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.gitignore +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.project +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.pydevproject +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/AGENTS.md +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/LICENSE +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/README.md +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/docs/index.md +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/mkdocs.yml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/basecmd.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/ominigraph_paths.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/omnigraph_cmd.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/rdf_dataset.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/rdfdump.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/rdfdump_cmd.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/__init__.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/datasets.yaml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/endpoints.yaml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/prefixes.yaml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/queries.yaml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/royals.ttl +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/servers.yaml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/server_config.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/__init__.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/blazegraph.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/graphdb.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/jena.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/millenniumdb.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/oxigraph.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/qlever.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/stardog.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/virtuoso.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/software.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/sparql_server.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/version.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/pyproject.toml +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/blackisort +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/doc +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/gov-quickstart +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/install +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/quickstart +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/release +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/test +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/__init__.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/basetest.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_omniserver.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_qlever.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_rdf_dataset_params.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_rdfdump.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_software_list.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_sparql_server.py +0 -0
- {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_upload.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyomnigraph
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: pyomnigraph: Unified Python interface for multiple graph databases (SPARQL, Neo4j, Weaviate)
|
|
5
5
|
Project-URL: Home, https://github.com/WolfgangFahl/omnigraph
|
|
6
6
|
Project-URL: Documentation, https://wiki.bitplan.com/index.php/omnigraph
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.3"
|
|
@@ -218,24 +218,29 @@ class OmniServer:
|
|
|
218
218
|
auth = "\n auth: BASIC" if server.config.auth_user else ""
|
|
219
219
|
user = f"\n user: {server.config.auth_user}" if server.config.auth_user else ""
|
|
220
220
|
passwd = f"\n passwd: {server.config.auth_password}" if server.config.auth_password else ""
|
|
221
|
-
# Indent prefixes for literal block scalar (
|
|
222
|
-
indented_prefixes = "\n".join(f"
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
# Indent prefixes for literal block scalar (6 spaces below the endpoints: wrapper)
|
|
222
|
+
indented_prefixes = "\n".join(f" {line}" for line in prefixes_text.split("\n") if line.strip())
|
|
223
|
+
# optional elements indented for the endpoints: wrapper
|
|
224
|
+
auth = auth.replace("\n ", "\n ")
|
|
225
|
+
user = user.replace("\n ", "\n ")
|
|
226
|
+
passwd = passwd.replace("\n ", "\n ")
|
|
227
|
+
|
|
228
|
+
# entry below the endpoints: wrapper lodstorage EndpointManager expects - see issue #39
|
|
229
|
+
entry = f""" {server.name}:
|
|
230
|
+
method: {getattr(server.config, 'method', 'POST')}
|
|
231
|
+
lang: sparql
|
|
232
|
+
name: {server.name}
|
|
233
|
+
endpoint: {server.config.sparql_url}
|
|
234
|
+
website: {server.config.base_url}
|
|
235
|
+
database: {server.config.server}{auth}{user}{passwd}
|
|
236
|
+
prefixes: |
|
|
232
237
|
{indented_prefixes}"""
|
|
233
238
|
|
|
234
239
|
yaml_entries.append(entry)
|
|
235
240
|
|
|
236
241
|
yaml_header = "# SPARQL endpoints for snapquery, sparqlquery and omnigraph tools\n"
|
|
237
242
|
yaml_header += server.config.generator_header() + "\n"
|
|
238
|
-
yaml_content = yaml_header + "\n".join(yaml_entries)
|
|
243
|
+
yaml_content = yaml_header + "endpoints:\n" + "\n".join(yaml_entries)
|
|
239
244
|
|
|
240
245
|
if output_path:
|
|
241
246
|
with open(output_path, "w") as f:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|