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.
Files changed (57) hide show
  1. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/PKG-INFO +1 -1
  2. pyomnigraph-0.2.3/omnigraph/__init__.py +1 -0
  3. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/omniserver.py +17 -12
  4. pyomnigraph-0.2.2/omnigraph/__init__.py +0 -1
  5. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.github/workflows/build.yml +0 -0
  6. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.github/workflows/upload-to-pypi.yml +0 -0
  7. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.gitignore +0 -0
  8. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.project +0 -0
  9. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/.pydevproject +0 -0
  10. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/AGENTS.md +0 -0
  11. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/LICENSE +0 -0
  12. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/README.md +0 -0
  13. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/docs/index.md +0 -0
  14. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/mkdocs.yml +0 -0
  15. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/basecmd.py +0 -0
  16. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/ominigraph_paths.py +0 -0
  17. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/omnigraph_cmd.py +0 -0
  18. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/rdf_dataset.py +0 -0
  19. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/rdfdump.py +0 -0
  20. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/rdfdump_cmd.py +0 -0
  21. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/__init__.py +0 -0
  22. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/datasets.yaml +0 -0
  23. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/endpoints.yaml +0 -0
  24. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/prefixes.yaml +0 -0
  25. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/queries.yaml +0 -0
  26. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/royals.ttl +0 -0
  27. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/resources/examples/servers.yaml +0 -0
  28. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/server_config.py +0 -0
  29. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/__init__.py +0 -0
  30. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/blazegraph.py +0 -0
  31. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/graphdb.py +0 -0
  32. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/jena.py +0 -0
  33. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/millenniumdb.py +0 -0
  34. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/oxigraph.py +0 -0
  35. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/qlever.py +0 -0
  36. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/stardog.py +0 -0
  37. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/servers/virtuoso.py +0 -0
  38. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/software.py +0 -0
  39. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/sparql_server.py +0 -0
  40. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/omnigraph/version.py +0 -0
  41. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/pyproject.toml +0 -0
  42. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/blackisort +0 -0
  43. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/doc +0 -0
  44. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/gov-quickstart +0 -0
  45. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/install +0 -0
  46. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/quickstart +0 -0
  47. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/release +0 -0
  48. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/scripts/test +0 -0
  49. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/__init__.py +0 -0
  50. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/basetest.py +0 -0
  51. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_omniserver.py +0 -0
  52. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_qlever.py +0 -0
  53. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_rdf_dataset_params.py +0 -0
  54. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_rdfdump.py +0 -0
  55. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_software_list.py +0 -0
  56. {pyomnigraph-0.2.2 → pyomnigraph-0.2.3}/tests/test_sparql_server.py +0 -0
  57. {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.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 (4 spaces)
222
- indented_prefixes = "\n".join(f" {line}" for line in prefixes_text.split("\n") if line.strip())
223
-
224
- entry = f"""{server.name}:
225
- method: {getattr(server.config, 'method', 'POST')}
226
- lang: sparql
227
- name: {server.name}
228
- endpoint: {server.config.sparql_url}
229
- website: {server.config.base_url}
230
- database: {server.config.server}{auth}{user}{passwd}
231
- prefixes: |
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