tripper 0.2.16__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.
- {tripper-0.2.16 → tripper-0.3.3}/.github/workflows/cd_release.yml +26 -4
- {tripper-0.2.16 → tripper-0.3.3}/.github/workflows/ci_automerge_dependency_prs.yml +1 -1
- {tripper-0.2.16 → tripper-0.3.3}/.github/workflows/ci_cd_updated_main.yml +1 -1
- {tripper-0.2.16 → tripper-0.3.3}/.github/workflows/ci_check_dependencies.yml +1 -1
- {tripper-0.2.16 → tripper-0.3.3}/.github/workflows/ci_tests.yml +9 -3
- {tripper-0.2.16 → tripper-0.3.3}/.github/workflows/ci_update_dependencies.yml +1 -1
- {tripper-0.2.16 → tripper-0.3.3}/.pre-commit-config.yaml +5 -4
- {tripper-0.2.16 → tripper-0.3.3}/CHANGELOG.md +65 -3
- {tripper-0.2.16 → tripper-0.3.3}/PKG-INFO +55 -46
- {tripper-0.2.16 → tripper-0.3.3}/README.md +12 -9
- tripper-0.3.3/docs/developers.md +17 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/index.md +12 -9
- tripper-0.3.3/docs/known-issues.md +10 -0
- tripper-0.3.3/docs/tutorial.md +411 -0
- {tripper-0.2.16 → tripper-0.3.3}/mkdocs.yml +5 -2
- {tripper-0.2.16 → tripper-0.3.3}/pyproject.toml +57 -40
- {tripper-0.2.16 → tripper-0.3.3}/tests/backends/test_collection.py +2 -2
- tripper-0.3.3/tests/backends/test_rdflib.py +38 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/convert/test_convert.py +48 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_literals.py +117 -6
- tripper-0.3.3/tests/test_sparql.py +261 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_triplestore.py +80 -24
- {tripper-0.2.16 → tripper-0.3.3}/tripper/__init__.py +1 -1
- {tripper-0.2.16 → tripper-0.3.3}/tripper/backends/rdflib.py +75 -35
- {tripper-0.2.16 → tripper-0.3.3}/tripper/convert/__init__.py +2 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/convert/convert.py +20 -9
- {tripper-0.2.16 → tripper-0.3.3}/tripper/interface.py +4 -1
- {tripper-0.2.16 → tripper-0.3.3}/tripper/literal.py +124 -36
- {tripper-0.2.16 → tripper-0.3.3}/tripper/mappings/mappings.py +1 -5
- {tripper-0.2.16 → tripper-0.3.3}/tripper/namespace.py +43 -14
- {tripper-0.2.16 → tripper-0.3.3}/tripper/triplestore.py +82 -38
- {tripper-0.2.16 → tripper-0.3.3}/tripper/utils.py +27 -7
- tripper-0.2.16/docs/tutorial.md +0 -219
- tripper-0.2.16/tests/backends/test_rdflib.py +0 -36
- tripper-0.2.16/tests/test_sparql.py +0 -88
- {tripper-0.2.16 → tripper-0.3.3}/.github/dependabot.yml +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/.github/pull_request_template.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/.gitignore +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/LICENSE +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/CHANGELOG.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/LICENSE.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/.pages +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/backends/.pages +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/backends/collection.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/backends/ontopy.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/backends/rdflib.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/backends/sparqlwrapper.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/convert/.pages +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/convert/convert.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/errors.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/interface.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/literal.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/mappings/.pages +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/mappings/mappings.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/namespace.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/testutils.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/triplestore.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/tripper.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/api_reference/utils.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/backend_discovery.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/css/reference.css +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/mappings/figs/function_emmo.svg +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/docs/planned-backends.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/examples/workflow-mappings/README.md +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/examples/workflow-mappings/knowledge-base.svg +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/examples/workflow-mappings/route.svg +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/examples/workflow-mappings/workflow.svg +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/examples/workflow-mappings/workflow_mappings.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/examples/workflow-mappings/workflow_w_pipes.svg +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/backends/__init__.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/backends/dummy.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/conftest.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/mappings/test_cost.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/mappings/test_function.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/mappings/test_mappings.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/ontologies/family.ttl +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/ontologies/food-more.ttl +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/ontologies/food.ttl +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/output/.gitignore +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_add_function.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_custom_backend.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_eval_function.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_get_data.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_namespace.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tests/test_utils.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/backends/__init__.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/backends/collection.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/backends/ontopy.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/backends/sparqlwrapper.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/errors.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/mappings/__init__.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/testutils.py +0 -0
- {tripper-0.2.16 → tripper-0.3.3}/tripper/tripper.py +0 -0
|
@@ -6,9 +6,9 @@ on:
|
|
|
6
6
|
- published
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
|
-
|
|
9
|
+
build:
|
|
10
10
|
name: External
|
|
11
|
-
uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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]"
|
|
@@ -34,11 +34,14 @@ jobs:
|
|
|
34
34
|
# https://pyup.io/vulnerabilities/CVE-2021-41495/44715/
|
|
35
35
|
# https://pyup.io/vulnerabilities/CVE-2021-41496/44716/
|
|
36
36
|
# https://pyup.io/vulnerabilities/CVE-2021-34141/44717/
|
|
37
|
+
# 70612: Jinja2 vulnerability. Only used as subdependency for mkdocs++ in tripper.
|
|
38
|
+
# https://data.safetycli.com/v/70612/97c/
|
|
37
39
|
safety_options: |
|
|
38
40
|
--ignore=48547
|
|
39
41
|
--ignore=44715
|
|
40
42
|
--ignore=44716
|
|
41
43
|
--ignore=44717
|
|
44
|
+
--ignore=70612
|
|
42
45
|
|
|
43
46
|
## Build package
|
|
44
47
|
run_build_package: true
|
|
@@ -63,7 +66,7 @@ jobs:
|
|
|
63
66
|
strategy:
|
|
64
67
|
fail-fast: false
|
|
65
68
|
matrix:
|
|
66
|
-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
|
69
|
+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
67
70
|
|
|
68
71
|
steps:
|
|
69
72
|
- name: Checkout tripper
|
|
@@ -81,6 +84,9 @@ jobs:
|
|
|
81
84
|
pip install -U setuptools wheel flit
|
|
82
85
|
pip install -e .[testing]
|
|
83
86
|
|
|
87
|
+
- name: List installed packages
|
|
88
|
+
run: pip freeze
|
|
89
|
+
|
|
84
90
|
- name: Test with pytest
|
|
85
91
|
run: pytest -vvv --cov-report=xml --doctest-modules
|
|
86
92
|
|
|
@@ -99,7 +105,7 @@ jobs:
|
|
|
99
105
|
strategy:
|
|
100
106
|
fail-fast: false
|
|
101
107
|
matrix:
|
|
102
|
-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
|
108
|
+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
103
109
|
|
|
104
110
|
steps:
|
|
105
111
|
- name: Checkout tripper
|
|
@@ -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.
|
|
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,19 +41,20 @@ repos:
|
|
|
41
41
|
- --skip-gitignore
|
|
42
42
|
|
|
43
43
|
- repo: https://github.com/psf/black
|
|
44
|
-
rev: 24.
|
|
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
|
-
rev: 1.7.
|
|
50
|
+
rev: 1.7.9
|
|
50
51
|
hooks:
|
|
51
52
|
- id: bandit
|
|
52
53
|
args: ["-r"]
|
|
53
54
|
files: ^tripper/.*$
|
|
54
55
|
|
|
55
56
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
56
|
-
rev: v1.
|
|
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.
|
|
66
|
+
rev: v2.8.2
|
|
66
67
|
hooks:
|
|
67
68
|
- id: docs-api-reference
|
|
68
69
|
args:
|
|
@@ -2,16 +2,78 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased](https://github.com/EMMC-ASBL/tripper/tree/HEAD)
|
|
4
4
|
|
|
5
|
-
[Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.
|
|
5
|
+
[Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.3...HEAD)
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Implemented enhancements:**
|
|
8
8
|
|
|
9
|
-
-
|
|
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
|
+
|
|
50
|
+
## [v0.3.0](https://github.com/EMMC-ASBL/tripper/tree/v0.3.0) (2024-06-24)
|
|
51
|
+
|
|
52
|
+
[Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.2.16...v0.3.0)
|
|
53
|
+
|
|
54
|
+
**Merged pull requests:**
|
|
55
|
+
|
|
56
|
+
- Tutorial update [\#227](https://github.com/EMMC-ASBL/tripper/pull/227) ([jesper-friis](https://github.com/jesper-friis))
|
|
57
|
+
- Get rid of the last warning in the tests [\#226](https://github.com/EMMC-ASBL/tripper/pull/226) ([jesper-friis](https://github.com/jesper-friis))
|
|
58
|
+
- Get restrictions as dicts [\#225](https://github.com/EMMC-ASBL/tripper/pull/225) ([jesper-friis](https://github.com/jesper-friis))
|
|
59
|
+
- \[pre-commit.ci\] pre-commit autoupdate [\#224](https://github.com/EMMC-ASBL/tripper/pull/224) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
|
|
60
|
+
- Added an additional test for convert [\#223](https://github.com/EMMC-ASBL/tripper/pull/223) ([jesper-friis](https://github.com/jesper-friis))
|
|
61
|
+
- Minor fix in tutorial [\#221](https://github.com/EMMC-ASBL/tripper/pull/221) ([jesper-friis](https://github.com/jesper-friis))
|
|
62
|
+
- Updated the tutorial [\#220](https://github.com/EMMC-ASBL/tripper/pull/220) ([jesper-friis](https://github.com/jesper-friis))
|
|
63
|
+
- Improved the handling of different return types from the query\(\) method [\#219](https://github.com/EMMC-ASBL/tripper/pull/219) ([jesper-friis](https://github.com/jesper-friis))
|
|
64
|
+
- Correct parsing literals from the rdflib backend. [\#217](https://github.com/EMMC-ASBL/tripper/pull/217) ([jesper-friis](https://github.com/jesper-friis))
|
|
65
|
+
- Do not save cache while interpreter shotdown. [\#216](https://github.com/EMMC-ASBL/tripper/pull/216) ([jesper-friis](https://github.com/jesper-friis))
|
|
66
|
+
- Allow string literal to compare equal to strings. [\#215](https://github.com/EMMC-ASBL/tripper/pull/215) ([jesper-friis](https://github.com/jesper-friis))
|
|
67
|
+
- Also test for Python 3.12 [\#213](https://github.com/EMMC-ASBL/tripper/pull/213) ([jesper-friis](https://github.com/jesper-friis))
|
|
10
68
|
|
|
11
69
|
## [v0.2.16](https://github.com/EMMC-ASBL/tripper/tree/v0.2.16) (2024-05-16)
|
|
12
70
|
|
|
13
71
|
[Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.2.15...v0.2.16)
|
|
14
72
|
|
|
73
|
+
**Fixed bugs:**
|
|
74
|
+
|
|
75
|
+
- cannot release [\#211](https://github.com/EMMC-ASBL/tripper/issues/211)
|
|
76
|
+
|
|
15
77
|
**Closed issues:**
|
|
16
78
|
|
|
17
79
|
- Add caching and extension to tripper.Namespace [\#194](https://github.com/EMMC-ASBL/tripper/issues/194)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tripper
|
|
3
|
-
Version: 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:
|
|
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
|
|
@@ -14,45 +14,51 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
18
|
Classifier: Environment :: Plugins
|
|
18
19
|
Classifier: Natural Language :: English
|
|
19
20
|
Classifier: Operating System :: OS Independent
|
|
20
|
-
Requires-Dist: typing-extensions
|
|
21
|
+
Requires-Dist: typing-extensions>=4.7.0,<4.7.1; python_version<'3.8'
|
|
21
22
|
Requires-Dist: pint>=0.16.1,<0.24
|
|
22
|
-
Requires-Dist:
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist:
|
|
33
|
-
Requires-Dist:
|
|
34
|
-
Requires-Dist:
|
|
35
|
-
Requires-Dist:
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
Requires-Dist:
|
|
38
|
-
Requires-Dist:
|
|
39
|
-
Requires-Dist:
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist:
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist:
|
|
44
|
-
Requires-Dist:
|
|
45
|
-
Requires-Dist:
|
|
46
|
-
Requires-Dist:
|
|
47
|
-
Requires-Dist:
|
|
48
|
-
Requires-Dist:
|
|
49
|
-
Requires-Dist:
|
|
50
|
-
Requires-Dist:
|
|
51
|
-
Requires-Dist:
|
|
52
|
-
Requires-Dist:
|
|
53
|
-
Requires-Dist:
|
|
54
|
-
Requires-Dist:
|
|
55
|
-
Requires-Dist:
|
|
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"
|
|
56
62
|
Project-URL: Changelog, https://github.com/EMMC-ASBL/tripper/blob/master/CHANGELOG.md
|
|
57
63
|
Project-URL: Documentation, https://EMMC-ASBL.github.io/tripper
|
|
58
64
|
Project-URL: Home, https://github.com/EMMC-ASBL/tripper
|
|
@@ -76,6 +82,12 @@ Tripper
|
|
|
76
82
|
[](https://zenodo.org/badge/latestdoi/547162834)
|
|
77
83
|
|
|
78
84
|
|
|
85
|
+
Getting started
|
|
86
|
+
---------------
|
|
87
|
+
* [Tutorial]
|
|
88
|
+
* [Discovery of custom backends]
|
|
89
|
+
* [Reference manual]
|
|
90
|
+
|
|
79
91
|
|
|
80
92
|
Basic concepts
|
|
81
93
|
--------------
|
|
@@ -106,13 +118,6 @@ The submodules `mappings` and `convert` provide additional functionality beyond
|
|
|
106
118
|
- **tripper.convert**: convert between RDF and other data representations.
|
|
107
119
|
|
|
108
120
|
|
|
109
|
-
Documentation
|
|
110
|
-
-------------
|
|
111
|
-
* Getting started: See the [tutorial](docs/tutorial.md)
|
|
112
|
-
* [Discovery of custom backends](docs/backend_discovery.md)
|
|
113
|
-
* [Reference manual]
|
|
114
|
-
|
|
115
|
-
|
|
116
121
|
Available backends
|
|
117
122
|
------------------
|
|
118
123
|
The following backends are currently available, either in Tripper or other packages.
|
|
@@ -152,7 +157,7 @@ pip install rdflib pint
|
|
|
152
157
|
|
|
153
158
|
License and copyright
|
|
154
159
|
---------------------
|
|
155
|
-
All files in this repository are licensed under the [MIT license]
|
|
160
|
+
All files in this repository are licensed under the [MIT license].
|
|
156
161
|
If not stated otherwise in the top of the files, they have copyright © 2022
|
|
157
162
|
SINTEF.
|
|
158
163
|
|
|
@@ -171,11 +176,15 @@ We gratefully acknowledge the following projects for supporting the development
|
|
|
171
176
|
|
|
172
177
|
|
|
173
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/
|
|
174
184
|
[tripper]: https://emmc-asbl.github.io/tripper
|
|
175
185
|
[rdflib]: https://rdflib.readthedocs.io/en/stable/
|
|
176
186
|
[PyPI]: https://pypi.org/project/tripper
|
|
177
187
|
[PyBackTrip]: https://github.com/EMMC-ASBL/PyBackTrip/
|
|
178
|
-
[Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
|
|
179
188
|
[Literal]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Literal
|
|
180
189
|
[Namespace]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Namespace
|
|
181
190
|
[Triplestore]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Triplestore
|
|
@@ -9,6 +9,12 @@ Tripper
|
|
|
9
9
|
[](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]
|
|
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 © 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
|
[](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]
|
|
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 © 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.
|