tripper 0.3.0__tar.gz → 0.3.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 (91) hide show
  1. {tripper-0.3.0 → tripper-0.3.3}/.github/workflows/cd_release.yml +26 -4
  2. {tripper-0.3.0 → tripper-0.3.3}/.github/workflows/ci_automerge_dependency_prs.yml +1 -1
  3. {tripper-0.3.0 → tripper-0.3.3}/.github/workflows/ci_cd_updated_main.yml +1 -1
  4. {tripper-0.3.0 → tripper-0.3.3}/.github/workflows/ci_check_dependencies.yml +1 -1
  5. {tripper-0.3.0 → tripper-0.3.3}/.github/workflows/ci_tests.yml +4 -1
  6. {tripper-0.3.0 → tripper-0.3.3}/.github/workflows/ci_update_dependencies.yml +1 -1
  7. {tripper-0.3.0 → tripper-0.3.3}/.pre-commit-config.yaml +4 -3
  8. {tripper-0.3.0 → tripper-0.3.3}/CHANGELOG.md +47 -0
  9. {tripper-0.3.0 → tripper-0.3.3}/PKG-INFO +54 -46
  10. {tripper-0.3.0 → tripper-0.3.3}/README.md +12 -9
  11. tripper-0.3.3/docs/developers.md +17 -0
  12. {tripper-0.3.0 → tripper-0.3.3}/docs/index.md +12 -9
  13. tripper-0.3.3/docs/known-issues.md +10 -0
  14. {tripper-0.3.0 → tripper-0.3.3}/mkdocs.yml +5 -2
  15. {tripper-0.3.0 → tripper-0.3.3}/pyproject.toml +55 -39
  16. {tripper-0.3.0 → tripper-0.3.3}/tests/backends/test_collection.py +2 -2
  17. tripper-0.3.3/tests/backends/test_rdflib.py +38 -0
  18. {tripper-0.3.0 → tripper-0.3.3}/tests/test_literals.py +93 -5
  19. {tripper-0.3.0 → tripper-0.3.3}/tripper/__init__.py +1 -1
  20. {tripper-0.3.0 → tripper-0.3.3}/tripper/backends/rdflib.py +13 -9
  21. {tripper-0.3.0 → tripper-0.3.3}/tripper/literal.py +95 -19
  22. {tripper-0.3.0 → tripper-0.3.3}/tripper/namespace.py +41 -16
  23. {tripper-0.3.0 → tripper-0.3.3}/tripper/utils.py +9 -3
  24. tripper-0.3.0/tests/backends/test_rdflib.py +0 -36
  25. {tripper-0.3.0 → tripper-0.3.3}/.github/dependabot.yml +0 -0
  26. {tripper-0.3.0 → tripper-0.3.3}/.github/pull_request_template.md +0 -0
  27. {tripper-0.3.0 → tripper-0.3.3}/.gitignore +0 -0
  28. {tripper-0.3.0 → tripper-0.3.3}/LICENSE +0 -0
  29. {tripper-0.3.0 → tripper-0.3.3}/docs/CHANGELOG.md +0 -0
  30. {tripper-0.3.0 → tripper-0.3.3}/docs/LICENSE.md +0 -0
  31. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/.pages +0 -0
  32. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/backends/.pages +0 -0
  33. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/backends/collection.md +0 -0
  34. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/backends/ontopy.md +0 -0
  35. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/backends/rdflib.md +0 -0
  36. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/backends/sparqlwrapper.md +0 -0
  37. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/convert/.pages +0 -0
  38. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/convert/convert.md +0 -0
  39. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/errors.md +0 -0
  40. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/interface.md +0 -0
  41. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/literal.md +0 -0
  42. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/mappings/.pages +0 -0
  43. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/mappings/mappings.md +0 -0
  44. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/namespace.md +0 -0
  45. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/testutils.md +0 -0
  46. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/triplestore.md +0 -0
  47. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/tripper.md +0 -0
  48. {tripper-0.3.0 → tripper-0.3.3}/docs/api_reference/utils.md +0 -0
  49. {tripper-0.3.0 → tripper-0.3.3}/docs/backend_discovery.md +0 -0
  50. {tripper-0.3.0 → tripper-0.3.3}/docs/css/reference.css +0 -0
  51. {tripper-0.3.0 → tripper-0.3.3}/docs/mappings/figs/function_emmo.svg +0 -0
  52. {tripper-0.3.0 → tripper-0.3.3}/docs/planned-backends.md +0 -0
  53. {tripper-0.3.0 → tripper-0.3.3}/docs/tutorial.md +0 -0
  54. {tripper-0.3.0 → tripper-0.3.3}/examples/workflow-mappings/README.md +0 -0
  55. {tripper-0.3.0 → tripper-0.3.3}/examples/workflow-mappings/knowledge-base.svg +0 -0
  56. {tripper-0.3.0 → tripper-0.3.3}/examples/workflow-mappings/route.svg +0 -0
  57. {tripper-0.3.0 → tripper-0.3.3}/examples/workflow-mappings/workflow.svg +0 -0
  58. {tripper-0.3.0 → tripper-0.3.3}/examples/workflow-mappings/workflow_mappings.py +0 -0
  59. {tripper-0.3.0 → tripper-0.3.3}/examples/workflow-mappings/workflow_w_pipes.svg +0 -0
  60. {tripper-0.3.0 → tripper-0.3.3}/tests/backends/__init__.py +0 -0
  61. {tripper-0.3.0 → tripper-0.3.3}/tests/backends/dummy.py +0 -0
  62. {tripper-0.3.0 → tripper-0.3.3}/tests/conftest.py +0 -0
  63. {tripper-0.3.0 → tripper-0.3.3}/tests/convert/test_convert.py +0 -0
  64. {tripper-0.3.0 → tripper-0.3.3}/tests/mappings/test_cost.py +0 -0
  65. {tripper-0.3.0 → tripper-0.3.3}/tests/mappings/test_function.py +0 -0
  66. {tripper-0.3.0 → tripper-0.3.3}/tests/mappings/test_mappings.py +0 -0
  67. {tripper-0.3.0 → tripper-0.3.3}/tests/ontologies/family.ttl +0 -0
  68. {tripper-0.3.0 → tripper-0.3.3}/tests/ontologies/food-more.ttl +0 -0
  69. {tripper-0.3.0 → tripper-0.3.3}/tests/ontologies/food.ttl +0 -0
  70. {tripper-0.3.0 → tripper-0.3.3}/tests/output/.gitignore +0 -0
  71. {tripper-0.3.0 → tripper-0.3.3}/tests/test_add_function.py +0 -0
  72. {tripper-0.3.0 → tripper-0.3.3}/tests/test_custom_backend.py +0 -0
  73. {tripper-0.3.0 → tripper-0.3.3}/tests/test_eval_function.py +0 -0
  74. {tripper-0.3.0 → tripper-0.3.3}/tests/test_get_data.py +0 -0
  75. {tripper-0.3.0 → tripper-0.3.3}/tests/test_namespace.py +0 -0
  76. {tripper-0.3.0 → tripper-0.3.3}/tests/test_sparql.py +0 -0
  77. {tripper-0.3.0 → tripper-0.3.3}/tests/test_triplestore.py +0 -0
  78. {tripper-0.3.0 → tripper-0.3.3}/tests/test_utils.py +0 -0
  79. {tripper-0.3.0 → tripper-0.3.3}/tripper/backends/__init__.py +0 -0
  80. {tripper-0.3.0 → tripper-0.3.3}/tripper/backends/collection.py +0 -0
  81. {tripper-0.3.0 → tripper-0.3.3}/tripper/backends/ontopy.py +0 -0
  82. {tripper-0.3.0 → tripper-0.3.3}/tripper/backends/sparqlwrapper.py +0 -0
  83. {tripper-0.3.0 → tripper-0.3.3}/tripper/convert/__init__.py +0 -0
  84. {tripper-0.3.0 → tripper-0.3.3}/tripper/convert/convert.py +0 -0
  85. {tripper-0.3.0 → tripper-0.3.3}/tripper/errors.py +0 -0
  86. {tripper-0.3.0 → tripper-0.3.3}/tripper/interface.py +0 -0
  87. {tripper-0.3.0 → tripper-0.3.3}/tripper/mappings/__init__.py +0 -0
  88. {tripper-0.3.0 → tripper-0.3.3}/tripper/mappings/mappings.py +0 -0
  89. {tripper-0.3.0 → tripper-0.3.3}/tripper/testutils.py +0 -0
  90. {tripper-0.3.0 → tripper-0.3.3}/tripper/triplestore.py +0 -0
  91. {tripper-0.3.0 → tripper-0.3.3}/tripper/tripper.py +0 -0
@@ -6,9 +6,9 @@ on:
6
6
  - published
7
7
 
8
8
  jobs:
9
- publish-package-and-docs:
9
+ build:
10
10
  name: External
11
- uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.7.4
11
+ uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.8.2
12
12
  if: github.repository == 'EMMC-ASBL/tripper' && startsWith(github.ref, 'refs/tags/v')
13
13
  with:
14
14
  # General
@@ -23,7 +23,9 @@ jobs:
23
23
  python_version_build: "3.9"
24
24
  build_libs: "flit"
25
25
  build_cmd: "flit build"
26
- publish_on_pypi: true
26
+ build_dir: "dist"
27
+ publish_on_pypi: false
28
+ upload_distribution: true
27
29
 
28
30
  # Build & publish documentation
29
31
  update_docs: true
@@ -32,5 +34,25 @@ jobs:
32
34
  changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
33
35
  docs_framework: mkdocs
34
36
  secrets:
35
- PyPI_token: ${{ secrets.PYPI_TOKEN }}
36
37
  PAT: ${{ secrets.RELEASE_PAT }}
38
+
39
+ publish:
40
+ name: Publish on PyPI
41
+ needs: build
42
+ runs-on: ubuntu-latest
43
+
44
+ environment:
45
+ name: release
46
+ url: https://pypi.org/project/tripper/
47
+ permissions:
48
+ id-token: write
49
+
50
+ steps:
51
+ - name: Download built distritbution
52
+ uses: actions/download-artifact@v4
53
+ with:
54
+ name: dist
55
+ path: dist
56
+
57
+ - name: Publish on PyPI
58
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -7,7 +7,7 @@ on:
7
7
  jobs:
8
8
  update-dependencies-branch:
9
9
  name: External
10
- uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.7.4
10
+ uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.8.2
11
11
  if: github.repository_owner == 'EMMC-ASBL' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'TEAM4-0' ) )
12
12
  secrets:
13
13
  PAT: ${{ secrets.RELEASE_PAT }}
@@ -7,7 +7,7 @@ on:
7
7
  jobs:
8
8
  update-deps-branch-and-docs:
9
9
  name: External
10
- uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.7.4
10
+ uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.8.2
11
11
  if: github.repository_owner == 'EMMC-ASBL'
12
12
  with:
13
13
  # General
@@ -9,7 +9,7 @@ on:
9
9
  jobs:
10
10
  check-dependencies:
11
11
  name: External
12
- uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.7.4
12
+ uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.8.2
13
13
  if: github.repository_owner == 'EMMC-ASBL'
14
14
  with:
15
15
  git_username: "TEAM 4.0[bot]"
@@ -10,7 +10,7 @@ on:
10
10
  jobs:
11
11
  basic-tests:
12
12
  name: External
13
- uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.7.4
13
+ uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.8.2
14
14
  with:
15
15
  ## General settings:
16
16
  install_extras: "[dev]"
@@ -84,6 +84,9 @@ jobs:
84
84
  pip install -U setuptools wheel flit
85
85
  pip install -e .[testing]
86
86
 
87
+ - name: List installed packages
88
+ run: pip freeze
89
+
87
90
  - name: Test with pytest
88
91
  run: pytest -vvv --cov-report=xml --doctest-modules
89
92
 
@@ -9,7 +9,7 @@ on:
9
9
  jobs:
10
10
  create-collected-pr:
11
11
  name: External
12
- uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.7.4
12
+ uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.8.2
13
13
  if: github.repository_owner == 'EMMC-ASBL'
14
14
  with:
15
15
  git_username: "TEAM 4.0[bot]"
@@ -41,9 +41,10 @@ repos:
41
41
  - --skip-gitignore
42
42
 
43
43
  - repo: https://github.com/psf/black
44
- rev: 24.4.2
44
+ rev: 24.8.0
45
45
  hooks:
46
46
  - id: black
47
+ args: [--line-length=79]
47
48
 
48
49
  - repo: https://github.com/PyCQA/bandit
49
50
  rev: 1.7.9
@@ -53,7 +54,7 @@ repos:
53
54
  files: ^tripper/.*$
54
55
 
55
56
  - repo: https://github.com/pre-commit/mirrors-mypy
56
- rev: v1.10.0
57
+ rev: v1.11.1
57
58
  hooks:
58
59
  - id: mypy
59
60
  exclude: ^tests/.*$
@@ -62,7 +63,7 @@ repos:
62
63
  - "pydantic"
63
64
 
64
65
  - repo: https://github.com/SINTEF/ci-cd
65
- rev: v2.7.4
66
+ rev: v2.8.2
66
67
  hooks:
67
68
  - id: docs-api-reference
68
69
  args:
@@ -1,5 +1,52 @@
1
1
  # Changelog
2
2
 
3
+ ## [Unreleased](https://github.com/EMMC-ASBL/tripper/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.3...HEAD)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Use Trusted Publishers for PyPI [\#242](https://github.com/EMMC-ASBL/tripper/issues/242)
10
+
11
+ **Closed issues:**
12
+
13
+ - Add instructions of how to release a new version [\#47](https://github.com/EMMC-ASBL/tripper/issues/47)
14
+
15
+ ## [v0.3.3](https://github.com/EMMC-ASBL/tripper/tree/v0.3.3) (2024-08-26)
16
+
17
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.2...v0.3.3)
18
+
19
+ **Closed issues:**
20
+
21
+ - Update Python API references in README [\#22](https://github.com/EMMC-ASBL/tripper/issues/22)
22
+
23
+ **Merged pull requests:**
24
+
25
+ - Use Trusted Publishers on PyPI [\#243](https://github.com/EMMC-ASBL/tripper/pull/243) ([CasperWA](https://github.com/CasperWA))
26
+
27
+ ## [v0.3.2](https://github.com/EMMC-ASBL/tripper/tree/v0.3.2) (2024-08-19)
28
+
29
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.1...v0.3.2)
30
+
31
+ **Merged pull requests:**
32
+
33
+ - Minor fix for documentation layout [\#238](https://github.com/EMMC-ASBL/tripper/pull/238) ([jesper-friis](https://github.com/jesper-friis))
34
+ - Updated documentation navigation [\#237](https://github.com/EMMC-ASBL/tripper/pull/237) ([jesper-friis](https://github.com/jesper-friis))
35
+ - Updated cd\_release workflow [\#236](https://github.com/EMMC-ASBL/tripper/pull/236) ([jesper-friis](https://github.com/jesper-friis))
36
+
37
+ ## [v0.3.1](https://github.com/EMMC-ASBL/tripper/tree/v0.3.1) (2024-08-16)
38
+
39
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.0...v0.3.1)
40
+
41
+ **Merged pull requests:**
42
+
43
+ - Avoid that tripper.Namespace crashes if the cache directory cannot be accessed [\#235](https://github.com/EMMC-ASBL/tripper/pull/235) ([jesper-friis](https://github.com/jesper-friis))
44
+ - \[pre-commit.ci\] pre-commit autoupdate [\#232](https://github.com/EMMC-ASBL/tripper/pull/232) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
45
+ - \[pre-commit.ci\] pre-commit autoupdate [\#231](https://github.com/EMMC-ASBL/tripper/pull/231) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
46
+ - Cleaned up backend tests [\#230](https://github.com/EMMC-ASBL/tripper/pull/230) ([jesper-friis](https://github.com/jesper-friis))
47
+ - Added a fix for parsing rdflib literals. [\#229](https://github.com/EMMC-ASBL/tripper/pull/229) ([jesper-friis](https://github.com/jesper-friis))
48
+ - Add better and more convenient support for rdf:JSON datatype [\#228](https://github.com/EMMC-ASBL/tripper/pull/228) ([jesper-friis](https://github.com/jesper-friis))
49
+
3
50
  ## [v0.3.0](https://github.com/EMMC-ASBL/tripper/tree/v0.3.0) (2024-06-24)
4
51
 
5
52
  [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.2.16...v0.3.0)
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tripper
3
- Version: 0.3.0
3
+ Version: 0.3.3
4
4
  Summary: A triplestore wrapper for Python.
5
5
  Keywords: triplestore,ontology,RDF
6
6
  Author-email: SINTEF <TEAM4.0@sintef.no>
7
- Requires-Python: ~=3.7
7
+ Requires-Python: >=3.7
8
8
  Description-Content-Type: text/markdown
9
9
  Classifier: Development Status :: 2 - Pre-Alpha
10
10
  Classifier: License :: OSI Approved :: MIT License
@@ -18,42 +18,47 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Environment :: Plugins
19
19
  Classifier: Natural Language :: English
20
20
  Classifier: Operating System :: OS Independent
21
- Requires-Dist: typing-extensions ~=4.7; python_version<'3.8'
21
+ Requires-Dist: typing-extensions>=4.7.0,<4.7.1; python_version<'3.8'
22
22
  Requires-Dist: pint>=0.16.1,<0.24
23
- Requires-Dist: mike ~=2.1 ; extra == "dev"
24
- Requires-Dist: mkdocs ~=1.5 ; extra == "dev"
25
- Requires-Dist: mkdocs-awesome-pages-plugin ~=2.9 ; extra == "dev"
26
- Requires-Dist: mkdocs-material >=9.2.8 ; extra == "dev"
27
- Requires-Dist: mkdocstrings[python-legacy] ~=0.22.0 ; extra == "dev"
28
- Requires-Dist: pre-commit ~=2.21 ; extra == "dev"
29
- Requires-Dist: pylint ~=2.13 ; extra == "dev"
30
- Requires-Dist: pytest ~=7.4 ; extra == "dev"
31
- Requires-Dist: pytest-cov ~=4.1 ; extra == "dev"
32
- Requires-Dist: EMMOntoPy ~=0.7 ; extra == "dev"
33
- Requires-Dist: rdflib ~=6.3 ; extra == "dev"
34
- Requires-Dist: SPARQLWrapper ~=2.0 ; extra == "dev"
35
- Requires-Dist: DLite-Python >=0.5.1,<0.5.17 ; extra == "dev"
36
- Requires-Dist: mike ~=2.1 ; extra == "docs"
37
- Requires-Dist: mkdocs ~=1.5 ; extra == "docs"
38
- Requires-Dist: mkdocs-awesome-pages-plugin ~=2.9 ; extra == "docs"
39
- Requires-Dist: mkdocs-material >=9.2.8 ; extra == "docs"
40
- Requires-Dist: mkdocstrings[python-legacy] ~=0.22.0 ; extra == "docs"
41
- Requires-Dist: EMMOntoPy ~=0.7 ; extra == "docs"
42
- Requires-Dist: rdflib ~=6.3 ; extra == "docs"
43
- Requires-Dist: SPARQLWrapper ~=2.0 ; extra == "docs"
44
- Requires-Dist: DLite-Python >=0.5.1,<0.5.17 ; extra == "docs"
45
- Requires-Dist: pre-commit ~=2.21 ; extra == "pre-commit"
46
- Requires-Dist: pylint ~=2.13 ; extra == "pre-commit"
47
- Requires-Dist: pytest ~=7.4 ; extra == "testing"
48
- Requires-Dist: pytest-cov ~=4.1 ; extra == "testing"
49
- Requires-Dist: EMMOntoPy ~=0.7 ; extra == "testing"
50
- Requires-Dist: rdflib ~=6.3 ; extra == "testing"
51
- Requires-Dist: SPARQLWrapper ~=2.0 ; extra == "testing"
52
- Requires-Dist: DLite-Python >=0.5.1,<0.5.17 ; extra == "testing"
53
- Requires-Dist: graphviz ~= 0.20 ; extra == "testing"
54
- Requires-Dist: pint>=0.16.1,<0.23 ; extra == "testing"
55
- Requires-Dist: pytest ~=7.4 ; extra == "testing-core"
56
- Requires-Dist: pytest-cov ~=4.1 ; extra == "testing-core"
23
+ Requires-Dist: pre-commit==2.21.0 ; extra == "dev"
24
+ Requires-Dist: pylint==2.15.5 ; extra == "dev"
25
+ Requires-Dist: pytest==7.4.4 ; extra == "dev"
26
+ Requires-Dist: pytest-cov==4.1.0 ; extra == "dev"
27
+ Requires-Dist: EMMOntoPy>=0.5.0,<0.7.1 ; extra == "dev"
28
+ Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "dev"
29
+ Requires-Dist: SPARQLWrapper>=2.0.0,<2.0.1 ; extra == "dev"
30
+ Requires-Dist: DLite-Python>=0.5.1,<0.5.17 ; extra == "dev"
31
+ Requires-Dist: graphviz>=0.20.1,<0.20.2 ; extra == "dev"
32
+ Requires-Dist: mike==2.1.2 ; extra == "dev"
33
+ Requires-Dist: mkdocs==1.5.3 ; extra == "dev"
34
+ Requires-Dist: mkdocs-autorefs==0.4.1 ; extra == "dev"
35
+ Requires-Dist: mkdocs-awesome-pages-plugin==2.9.2 ; extra == "dev"
36
+ Requires-Dist: mkdocs-material==9.5.17 ; extra == "dev"
37
+ Requires-Dist: mkdocstrings==0.22.0 ; extra == "dev"
38
+ Requires-Dist: mkdocstrings-python-legacy==0.2.3 ; extra == "dev"
39
+ Requires-Dist: EMMOntoPy>=0.5.0,<0.7.1 ; extra == "docs"
40
+ Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "docs"
41
+ Requires-Dist: SPARQLWrapper>=2.0.0,<2.0.1 ; extra == "docs"
42
+ Requires-Dist: DLite-Python>=0.5.1,<0.5.17 ; extra == "docs"
43
+ Requires-Dist: mike==2.1.2 ; extra == "docs"
44
+ Requires-Dist: mkdocs==1.5.3 ; extra == "docs"
45
+ Requires-Dist: mkdocs-autorefs==0.4.1 ; extra == "docs"
46
+ Requires-Dist: mkdocs-awesome-pages-plugin==2.9.2 ; extra == "docs"
47
+ Requires-Dist: mkdocs-material==9.5.17 ; extra == "docs"
48
+ Requires-Dist: mkdocstrings==0.22.0 ; extra == "docs"
49
+ Requires-Dist: mkdocstrings-python-legacy==0.2.3 ; extra == "docs"
50
+ Requires-Dist: pre-commit==2.21.0 ; extra == "pre-commit"
51
+ Requires-Dist: pylint==2.15.5 ; extra == "pre-commit"
52
+ Requires-Dist: pint>=0.16.1,<0.24 ; extra == "testing"
53
+ Requires-Dist: pytest==7.4.4 ; extra == "testing"
54
+ Requires-Dist: pytest-cov==4.1.0 ; extra == "testing"
55
+ Requires-Dist: EMMOntoPy>=0.5.0,<0.7.1 ; extra == "testing"
56
+ Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "testing"
57
+ Requires-Dist: SPARQLWrapper>=2.0.0,<2.0.1 ; extra == "testing"
58
+ Requires-Dist: DLite-Python>=0.5.1,<0.5.17 ; extra == "testing"
59
+ Requires-Dist: graphviz>=0.20.1,<0.20.2 ; extra == "testing"
60
+ Requires-Dist: pytest==7.4.4 ; extra == "testing-core"
61
+ Requires-Dist: pytest-cov==4.1.0 ; extra == "testing-core"
57
62
  Project-URL: Changelog, https://github.com/EMMC-ASBL/tripper/blob/master/CHANGELOG.md
58
63
  Project-URL: Documentation, https://EMMC-ASBL.github.io/tripper
59
64
  Project-URL: Home, https://github.com/EMMC-ASBL/tripper
@@ -77,6 +82,12 @@ Tripper
77
82
  [![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)
78
83
 
79
84
 
85
+ Getting started
86
+ ---------------
87
+ * [Tutorial]
88
+ * [Discovery of custom backends]
89
+ * [Reference manual]
90
+
80
91
 
81
92
  Basic concepts
82
93
  --------------
@@ -107,13 +118,6 @@ The submodules `mappings` and `convert` provide additional functionality beyond
107
118
  - **tripper.convert**: convert between RDF and other data representations.
108
119
 
109
120
 
110
- Documentation
111
- -------------
112
- * Getting started: See the [tutorial](docs/tutorial.md)
113
- * [Discovery of custom backends](docs/backend_discovery.md)
114
- * [Reference manual]
115
-
116
-
117
121
  Available backends
118
122
  ------------------
119
123
  The following backends are currently available, either in Tripper or other packages.
@@ -153,7 +157,7 @@ pip install rdflib pint
153
157
 
154
158
  License and copyright
155
159
  ---------------------
156
- All files in this repository are licensed under the [MIT license](LICENSE).
160
+ All files in this repository are licensed under the [MIT license].
157
161
  If not stated otherwise in the top of the files, they have copyright &copy; 2022
158
162
  SINTEF.
159
163
 
@@ -172,11 +176,15 @@ We gratefully acknowledge the following projects for supporting the development
172
176
 
173
177
 
174
178
 
179
+ [Tutorial]: https://emmc-asbl.github.io/tripper/latest/tutorial/
180
+ [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
181
+ [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
182
+ [Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
183
+ [MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
175
184
  [tripper]: https://emmc-asbl.github.io/tripper
176
185
  [rdflib]: https://rdflib.readthedocs.io/en/stable/
177
186
  [PyPI]: https://pypi.org/project/tripper
178
187
  [PyBackTrip]: https://github.com/EMMC-ASBL/PyBackTrip/
179
- [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
180
188
  [Literal]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Literal
181
189
  [Namespace]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Namespace
182
190
  [Triplestore]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Triplestore
@@ -9,6 +9,12 @@ Tripper
9
9
  [![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)
10
10
 
11
11
 
12
+ Getting started
13
+ ---------------
14
+ * [Tutorial]
15
+ * [Discovery of custom backends]
16
+ * [Reference manual]
17
+
12
18
 
13
19
  Basic concepts
14
20
  --------------
@@ -39,13 +45,6 @@ The submodules `mappings` and `convert` provide additional functionality beyond
39
45
  - **tripper.convert**: convert between RDF and other data representations.
40
46
 
41
47
 
42
- Documentation
43
- -------------
44
- * Getting started: See the [tutorial](docs/tutorial.md)
45
- * [Discovery of custom backends](docs/backend_discovery.md)
46
- * [Reference manual]
47
-
48
-
49
48
  Available backends
50
49
  ------------------
51
50
  The following backends are currently available, either in Tripper or other packages.
@@ -85,7 +84,7 @@ pip install rdflib pint
85
84
 
86
85
  License and copyright
87
86
  ---------------------
88
- All files in this repository are licensed under the [MIT license](LICENSE).
87
+ All files in this repository are licensed under the [MIT license].
89
88
  If not stated otherwise in the top of the files, they have copyright &copy; 2022
90
89
  SINTEF.
91
90
 
@@ -104,11 +103,15 @@ We gratefully acknowledge the following projects for supporting the development
104
103
 
105
104
 
106
105
 
106
+ [Tutorial]: https://emmc-asbl.github.io/tripper/latest/tutorial/
107
+ [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
108
+ [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
109
+ [Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
110
+ [MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
107
111
  [tripper]: https://emmc-asbl.github.io/tripper
108
112
  [rdflib]: https://rdflib.readthedocs.io/en/stable/
109
113
  [PyPI]: https://pypi.org/project/tripper
110
114
  [PyBackTrip]: https://github.com/EMMC-ASBL/PyBackTrip/
111
- [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
112
115
  [Literal]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Literal
113
116
  [Namespace]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Namespace
114
117
  [Triplestore]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Triplestore
@@ -0,0 +1,17 @@
1
+ # For developers
2
+
3
+ ## New release
4
+
5
+ To create a new release, it is good to have a release summary.
6
+
7
+ To add this, create a milestone that matches the new version and tag, e.g., `v1.0.8`.
8
+
9
+ Then create a new issue, adding it to the milestone and add the `release-summary` label.
10
+
11
+ For the issue description, write the actual release summary.
12
+ This will be included as part of the changelog as well as the release notes on GitHub.
13
+
14
+ Then, go to [create a new GitHub releases](https://github.com/EMMC-ASBL/tripper/releases/new) and select the tag that matches the milestone (creating a new one).
15
+ Add again the tag as the release title (optionally write something else that defines this release as a title).
16
+
17
+ Finally, press the "Publish release" button and ensure the release workflow succeeds (check [the release workflow](https://github.com/EMMC-ASBL/tripper/actions/workflows/cd_release.yml)).
@@ -9,6 +9,12 @@ Tripper
9
9
  [![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)
10
10
 
11
11
 
12
+ Getting started
13
+ ---------------
14
+ * [Tutorial]
15
+ * [Discovery of custom backends]
16
+ * [Reference manual]
17
+
12
18
 
13
19
  Basic concepts
14
20
  --------------
@@ -39,13 +45,6 @@ The submodules `mappings` and `convert` provide additional functionality beyond
39
45
  - **tripper.convert**: convert between RDF and other data representations.
40
46
 
41
47
 
42
- Documentation
43
- -------------
44
- * Getting started: See the [tutorial](tutorial.md)
45
- * [Discovery of custom backends](backend_discovery.md)
46
- * [Reference manual]
47
-
48
-
49
48
  Available backends
50
49
  ------------------
51
50
  The following backends are currently available, either in Tripper or other packages.
@@ -85,7 +84,7 @@ pip install rdflib pint
85
84
 
86
85
  License and copyright
87
86
  ---------------------
88
- All files in this repository are licensed under the [MIT license](LICENSE.md).
87
+ All files in this repository are licensed under the [MIT license].
89
88
  If not stated otherwise in the top of the files, they have copyright &copy; 2022
90
89
  SINTEF.
91
90
 
@@ -104,11 +103,15 @@ We gratefully acknowledge the following projects for supporting the development
104
103
 
105
104
 
106
105
 
106
+ [Tutorial]: https://emmc-asbl.github.io/tripper/latest/tutorial/
107
+ [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
108
+ [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
109
+ [Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
110
+ [MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
107
111
  [tripper]: https://emmc-asbl.github.io/tripper
108
112
  [rdflib]: https://rdflib.readthedocs.io/en/stable/
109
113
  [PyPI]: https://pypi.org/project/tripper
110
114
  [PyBackTrip]: https://github.com/EMMC-ASBL/PyBackTrip/
111
- [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
112
115
  [Literal]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Literal
113
116
  [Namespace]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Namespace
114
117
  [Triplestore]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Triplestore
@@ -0,0 +1,10 @@
1
+ Known issues
2
+ ============
3
+
4
+ * If you use the rdflib backend and don't have write permissions to
5
+ the cache directory (which e.g. can happen if you run Python in
6
+ docker as a non-root user), you may get a `urllib.error.HTTPError`
7
+ error when accessing an online rdf resource.
8
+
9
+ Setting the environment variable `XDG_CACHE_HOME` to a directory
10
+ that you have write access to will solve the problem.
@@ -80,9 +80,12 @@ plugins:
80
80
  nav:
81
81
  - Home: index.md
82
82
  - Tutorial: tutorial.md
83
- - License: LICENSE.md
84
- - Changelog: CHANGELOG.md
83
+ - Backend discovery: backend_discovery.md
85
84
  - ... | api_reference/**
85
+ - Known issues: known-issues.md
86
+ - For developers: developers.md
87
+ - Changelog: CHANGELOG.md
88
+ - License: LICENSE.md
86
89
 
87
90
  watch:
88
91
  - tripper
@@ -25,58 +25,72 @@ classifiers = [
25
25
  "Operating System :: OS Independent",
26
26
  ]
27
27
  keywords = ["triplestore", "ontology", "RDF"]
28
- requires-python = "~=3.7"
28
+ requires-python = ">=3.7"
29
29
  dynamic = ["version"]
30
30
 
31
31
  dependencies = [
32
- "typing-extensions ~=4.7; python_version<'3.8'",
32
+ "typing-extensions>=4.7.0,<4.7.1; python_version<'3.8'",
33
33
  "pint>=0.16.1,<0.24",
34
34
  ]
35
35
 
36
36
  [project.optional-dependencies]
37
- docs = [
38
- "mike ~=2.1",
39
- "mkdocs ~=1.5",
40
- "mkdocs-awesome-pages-plugin ~=2.9",
41
- "mkdocs-material >=9.2.8",
42
- "mkdocstrings[python-legacy] ~=0.22.0",
43
- "EMMOntoPy ~=0.7",
44
- "rdflib ~=6.3",
45
- "SPARQLWrapper ~=2.0",
46
- "DLite-Python >=0.5.1,<0.5.17",
47
- ]
48
37
  pre-commit = [
49
- "pre-commit ~=2.21",
50
- "pylint ~=2.13",
38
+ "pre-commit==2.21.0",
39
+ "pylint==2.15.5",
40
+ ]
41
+ testing-core = [
42
+ "pytest==7.4.4",
43
+ "pytest-cov==4.1.0",
51
44
  ]
52
45
  testing = [
53
- "pytest ~=7.4",
54
- "pytest-cov ~=4.1",
55
- "EMMOntoPy ~=0.7",
56
- "rdflib ~=6.3",
57
- "SPARQLWrapper ~=2.0",
58
- "DLite-Python >=0.5.1,<0.5.17",
59
- "graphviz ~= 0.20",
60
- "pint>=0.16.1,<0.23",
46
+ # Consistent with: dependencies (is this needed?)
47
+ "pint>=0.16.1,<0.24",
48
+ # Consistent with: testing-core
49
+ "pytest==7.4.4",
50
+ "pytest-cov==4.1.0",
51
+ # testing
52
+ "EMMOntoPy>=0.5.0,<0.7.1",
53
+ "rdflib>=6.3.0,<7.0.0",
54
+ "SPARQLWrapper>=2.0.0,<2.0.1",
55
+ "DLite-Python>=0.5.1,<0.5.17",
56
+ "graphviz>=0.20.1,<0.20.2",
61
57
  ]
62
- testing-core = [
63
- "pytest ~=7.4",
64
- "pytest-cov ~=4.1",
58
+ docs = [
59
+ # Consistent with: testing
60
+ "EMMOntoPy>=0.5.0,<0.7.1",
61
+ "rdflib>=6.3.0,<7.0.0",
62
+ "SPARQLWrapper>=2.0.0,<2.0.1",
63
+ "DLite-Python>=0.5.1,<0.5.17",
64
+ # docs
65
+ "mike==2.1.2",
66
+ "mkdocs==1.5.3",
67
+ "mkdocs-autorefs==0.4.1",
68
+ "mkdocs-awesome-pages-plugin==2.9.2",
69
+ "mkdocs-material==9.5.17",
70
+ "mkdocstrings==0.22.0",
71
+ "mkdocstrings-python-legacy==0.2.3",
65
72
  ]
66
73
  dev = [
67
- "mike ~=2.1",
68
- "mkdocs ~=1.5",
69
- "mkdocs-awesome-pages-plugin ~=2.9",
70
- "mkdocs-material >=9.2.8",
71
- "mkdocstrings[python-legacy] ~=0.22.0",
72
- "pre-commit ~=2.21",
73
- "pylint ~=2.13",
74
- "pytest ~=7.4",
75
- "pytest-cov ~=4.1",
76
- "EMMOntoPy ~=0.7",
77
- "rdflib ~=6.3",
78
- "SPARQLWrapper ~=2.0",
79
- "DLite-Python >=0.5.1,<0.5.17",
74
+ # Consistent with: pre-commit
75
+ "pre-commit==2.21.0",
76
+ "pylint==2.15.5",
77
+ # Consistent with: testing-core
78
+ "pytest==7.4.4",
79
+ "pytest-cov==4.1.0",
80
+ # Consistent with testing
81
+ "EMMOntoPy>=0.5.0,<0.7.1",
82
+ "rdflib>=6.3.0,<7.0.0",
83
+ "SPARQLWrapper>=2.0.0,<2.0.1",
84
+ "DLite-Python>=0.5.1,<0.5.17",
85
+ "graphviz>=0.20.1,<0.20.2",
86
+ # Consistent with: docs
87
+ "mike==2.1.2",
88
+ "mkdocs==1.5.3",
89
+ "mkdocs-autorefs==0.4.1",
90
+ "mkdocs-awesome-pages-plugin==2.9.2",
91
+ "mkdocs-material==9.5.17",
92
+ "mkdocstrings==0.22.0",
93
+ "mkdocstrings-python-legacy==0.2.3",
80
94
  ]
81
95
 
82
96
  [project.urls]
@@ -116,6 +130,8 @@ good-names = [
116
130
  "ts",
117
131
  # Triple components: subject, predicate, object
118
132
  "s", "p", "o",
133
+ # Namespaces
134
+ "EX",
119
135
  ]
120
136
 
121
137
  [tool.pytest.ini_options]
@@ -1,10 +1,10 @@
1
1
  """Test collection."""
2
2
 
3
- import pytest
4
-
5
3
 
6
4
  def test_collection():
7
5
  """Test if we can use a DLite collection as backend."""
6
+ import pytest
7
+
8
8
  dlite = pytest.importorskip("dlite") # pylint: disable=unused-variable
9
9
  from tripper import DM, EMMO, MAP, XSD, Literal, Triplestore
10
10
  from tripper.utils import en