tripper 0.3.4__tar.gz → 0.4.2__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 (169) hide show
  1. {tripper-0.3.4 → tripper-0.4.2}/.github/workflows/cd_release.yml +3 -3
  2. {tripper-0.3.4 → tripper-0.4.2}/.github/workflows/ci_automerge_dependency_prs.yml +1 -1
  3. {tripper-0.3.4 → tripper-0.4.2}/.github/workflows/ci_cd_updated_main.yml +1 -1
  4. {tripper-0.3.4 → tripper-0.4.2}/.github/workflows/ci_check_dependencies.yml +1 -1
  5. {tripper-0.3.4 → tripper-0.4.2}/.github/workflows/ci_tests.yml +35 -24
  6. {tripper-0.3.4 → tripper-0.4.2}/.github/workflows/ci_update_dependencies.yml +1 -1
  7. {tripper-0.3.4 → tripper-0.4.2}/.gitignore +4 -0
  8. tripper-0.4.2/.hooks/generate-context-and-doc.sh +14 -0
  9. tripper-0.4.2/.hooks/markdown-doctest.sh +8 -0
  10. {tripper-0.3.4 → tripper-0.4.2}/.pre-commit-config.yaml +24 -5
  11. {tripper-0.3.4 → tripper-0.4.2}/CHANGELOG.md +105 -1
  12. {tripper-0.3.4 → tripper-0.4.2}/LICENSE +1 -1
  13. tripper-0.4.2/MANIFEST.in +1 -0
  14. {tripper-0.3.4 → tripper-0.4.2}/PKG-INFO +60 -55
  15. {tripper-0.3.4 → tripper-0.4.2}/README.md +23 -12
  16. tripper-0.4.2/docs/api_reference/datadoc/.pages +1 -0
  17. tripper-0.4.2/docs/api_reference/datadoc/clitool.md +3 -0
  18. tripper-0.4.2/docs/api_reference/datadoc/context.md +3 -0
  19. tripper-0.4.2/docs/api_reference/datadoc/dataaccess.md +3 -0
  20. tripper-0.4.2/docs/api_reference/datadoc/dataset.md +3 -0
  21. tripper-0.4.2/docs/api_reference/datadoc/errors.md +3 -0
  22. tripper-0.4.2/docs/api_reference/datadoc/keywords.md +3 -0
  23. tripper-0.4.2/docs/api_reference/datadoc/tabledoc.md +3 -0
  24. tripper-0.4.2/docs/api_reference/session.md +3 -0
  25. tripper-0.4.2/docs/api_reference/triplestore_extend.md +3 -0
  26. tripper-0.4.2/docs/api_reference/units/.pages +1 -0
  27. tripper-0.4.2/docs/api_reference/units/units.md +3 -0
  28. {tripper-0.3.4 → tripper-0.4.2}/docs/backend_discovery.md +4 -3
  29. tripper-0.4.2/docs/datadoc/customisation.md +250 -0
  30. tripper-0.4.2/docs/datadoc/documenting-a-resource.md +224 -0
  31. tripper-0.4.2/docs/datadoc/introduction.md +67 -0
  32. tripper-0.4.2/docs/datadoc/keywords.md +520 -0
  33. tripper-0.4.2/docs/datadoc/prefixes.md +32 -0
  34. tripper-0.4.2/docs/developers.md +77 -0
  35. tripper-0.4.2/docs/figs/.gitignore +1 -0
  36. tripper-0.4.2/docs/figs/dataset-Consumer.png +0 -0
  37. tripper-0.4.2/docs/figs/dataset-Consumer1.png +0 -0
  38. tripper-0.4.2/docs/figs/dataset-Consumer2.png +0 -0
  39. tripper-0.4.2/docs/figs/dataset-Dataset.png +0 -0
  40. tripper-0.4.2/docs/figs/dataset-Provider.png +0 -0
  41. tripper-0.4.2/docs/figs/dataset.drawio +3142 -0
  42. tripper-0.4.2/docs/figs/semdata.png +0 -0
  43. tripper-0.4.2/docs/figs/tripper_logo.png +0 -0
  44. tripper-0.4.2/docs/figs/tripper_logo.svg +210 -0
  45. tripper-0.4.2/docs/figs/tripper_logo_w_name.png +0 -0
  46. tripper-0.4.2/docs/figs/tripper_logo_w_name.svg +252 -0
  47. {tripper-0.3.4 → tripper-0.4.2}/docs/index.md +23 -12
  48. tripper-0.4.2/docs/session.md +80 -0
  49. tripper-0.4.2/docs/tools/datadoc.md +431 -0
  50. {tripper-0.3.4 → tripper-0.4.2}/docs/tutorial.md +1 -1
  51. tripper-0.4.2/docs/units/units.md +386 -0
  52. {tripper-0.3.4 → tripper-0.4.2}/examples/workflow-mappings/workflow_mappings.py +8 -1
  53. {tripper-0.3.4 → tripper-0.4.2}/mkdocs.yml +33 -3
  54. {tripper-0.3.4 → tripper-0.4.2}/pyproject.toml +57 -52
  55. tripper-0.4.2/tests/backends/datadocumentation_sample.yaml +12 -0
  56. tripper-0.4.2/tests/backends/datadocumentation_sample2.yaml +12 -0
  57. tripper-0.4.2/tests/backends/test_sparqlwrapper.py +47 -0
  58. tripper-0.4.2/tests/backends/test_sparqlwrapper_graphdb_fuseki.py +219 -0
  59. {tripper-0.3.4 → tripper-0.4.2}/tests/conftest.py +2 -0
  60. tripper-0.4.2/tests/datadoc/dataset_paths.py +13 -0
  61. tripper-0.4.2/tests/datadoc/test_context.py +147 -0
  62. tripper-0.4.2/tests/datadoc/test_dataaccess.py +149 -0
  63. tripper-0.4.2/tests/datadoc/test_datadoc_cli.py +182 -0
  64. tripper-0.4.2/tests/datadoc/test_dataset.py +567 -0
  65. tripper-0.4.2/tests/datadoc/test_keywords.py +176 -0
  66. tripper-0.4.2/tests/datadoc/test_tabledoc.py +242 -0
  67. tripper-0.4.2/tests/input/77600-23-001_5kV_400x_m001.tif +0 -0
  68. tripper-0.4.2/tests/input/custom_context.yaml +42 -0
  69. tripper-0.4.2/tests/input/mappings.ttl +5 -0
  70. tripper-0.4.2/tests/input/openfile.txt +1 -0
  71. tripper-0.4.2/tests/input/semdata-context.json +18 -0
  72. tripper-0.4.2/tests/input/semdata.csv +5 -0
  73. tripper-0.4.2/tests/input/semdata.yaml +96 -0
  74. tripper-0.4.2/tests/input/session.yaml +14 -0
  75. tripper-0.4.2/tests/input/tem.csv +4 -0
  76. tripper-0.4.2/tests/mappings/test_cost.py +33 -0
  77. tripper-0.4.2/tests/output/.gitignore +11 -0
  78. tripper-0.3.4/tripper/testutils.py → tripper-0.4.2/tests/paths.py +3 -3
  79. {tripper-0.3.4 → tripper-0.4.2}/tests/test_add_function.py +1 -1
  80. tripper-0.4.2/tests/test_custom_backend.py +16 -0
  81. tripper-0.4.2/tests/test_eval_function.py +56 -0
  82. {tripper-0.3.4 → tripper-0.4.2}/tests/test_get_data.py +1 -1
  83. {tripper-0.3.4 → tripper-0.4.2}/tests/test_literals.py +45 -13
  84. tripper-0.4.2/tests/test_markdown_doctest.py +33 -0
  85. {tripper-0.3.4 → tripper-0.4.2}/tests/test_namespace.py +22 -13
  86. tripper-0.4.2/tests/test_session.py +37 -0
  87. {tripper-0.3.4 → tripper-0.4.2}/tests/test_sparql.py +2 -2
  88. {tripper-0.3.4 → tripper-0.4.2}/tests/test_triplestore.py +21 -7
  89. {tripper-0.3.4 → tripper-0.4.2}/tests/test_utils.py +186 -2
  90. tripper-0.4.2/tests/units/test_units.py +389 -0
  91. tripper-0.4.2/tripper/__init__.py +96 -0
  92. {tripper-0.3.4 → tripper-0.4.2}/tripper/backends/collection.py +6 -12
  93. tripper-0.4.2/tripper/backends/sparqlwrapper.py +301 -0
  94. tripper-0.4.2/tripper/context/0.2/context.json +175 -0
  95. tripper-0.4.2/tripper/context/0.3/context.json +360 -0
  96. tripper-0.4.2/tripper/context/0.3/keywords.yaml +753 -0
  97. {tripper-0.3.4 → tripper-0.4.2}/tripper/convert/convert.py +5 -2
  98. tripper-0.4.2/tripper/datadoc/__init__.py +19 -0
  99. tripper-0.4.2/tripper/datadoc/clitool.py +391 -0
  100. tripper-0.4.2/tripper/datadoc/context.py +362 -0
  101. tripper-0.4.2/tripper/datadoc/dataaccess.py +265 -0
  102. tripper-0.4.2/tripper/datadoc/dataset.py +1265 -0
  103. tripper-0.4.2/tripper/datadoc/errors.py +35 -0
  104. tripper-0.4.2/tripper/datadoc/keywords.py +547 -0
  105. tripper-0.4.2/tripper/datadoc/tabledoc.py +395 -0
  106. {tripper-0.3.4 → tripper-0.4.2}/tripper/errors.py +9 -1
  107. {tripper-0.3.4 → tripper-0.4.2}/tripper/literal.py +46 -2
  108. {tripper-0.3.4 → tripper-0.4.2}/tripper/namespace.py +79 -21
  109. tripper-0.4.2/tripper/session.py +115 -0
  110. {tripper-0.3.4 → tripper-0.4.2}/tripper/triplestore.py +140 -123
  111. tripper-0.3.4/tripper/tripper.py → tripper-0.4.2/tripper/triplestore_extend.py +1 -2
  112. tripper-0.4.2/tripper/units/__init__.py +3 -0
  113. tripper-0.4.2/tripper/units/units.py +1319 -0
  114. {tripper-0.3.4 → tripper-0.4.2}/tripper/utils.py +402 -10
  115. tripper-0.3.4/docs/api_reference/testutils.md +0 -3
  116. tripper-0.3.4/docs/api_reference/tripper.md +0 -3
  117. tripper-0.3.4/docs/developers.md +0 -28
  118. tripper-0.3.4/tests/mappings/test_cost.py +0 -30
  119. tripper-0.3.4/tests/output/.gitignore +0 -1
  120. tripper-0.3.4/tests/test_custom_backend.py +0 -11
  121. tripper-0.3.4/tests/test_eval_function.py +0 -54
  122. tripper-0.3.4/tripper/__init__.py +0 -58
  123. tripper-0.3.4/tripper/backends/sparqlwrapper.py +0 -144
  124. {tripper-0.3.4 → tripper-0.4.2}/.github/dependabot.yml +0 -0
  125. {tripper-0.3.4 → tripper-0.4.2}/.github/pull_request_template.md +0 -0
  126. {tripper-0.3.4 → tripper-0.4.2}/docs/CHANGELOG.md +0 -0
  127. {tripper-0.3.4 → tripper-0.4.2}/docs/LICENSE.md +0 -0
  128. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/.pages +0 -0
  129. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/backends/.pages +0 -0
  130. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/backends/collection.md +0 -0
  131. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/backends/ontopy.md +0 -0
  132. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/backends/rdflib.md +0 -0
  133. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/backends/sparqlwrapper.md +0 -0
  134. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/convert/.pages +0 -0
  135. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/convert/convert.md +0 -0
  136. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/errors.md +0 -0
  137. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/interface.md +0 -0
  138. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/literal.md +0 -0
  139. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/mappings/.pages +0 -0
  140. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/mappings/mappings.md +0 -0
  141. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/namespace.md +0 -0
  142. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/triplestore.md +0 -0
  143. {tripper-0.3.4 → tripper-0.4.2}/docs/api_reference/utils.md +0 -0
  144. {tripper-0.3.4 → tripper-0.4.2}/docs/css/reference.css +0 -0
  145. {tripper-0.3.4 → tripper-0.4.2}/docs/known-issues.md +0 -0
  146. {tripper-0.3.4 → tripper-0.4.2}/docs/mappings/figs/function_emmo.svg +0 -0
  147. {tripper-0.3.4 → tripper-0.4.2}/docs/planned-backends.md +0 -0
  148. {tripper-0.3.4 → tripper-0.4.2}/examples/workflow-mappings/README.md +0 -0
  149. {tripper-0.3.4 → tripper-0.4.2}/examples/workflow-mappings/knowledge-base.svg +0 -0
  150. {tripper-0.3.4 → tripper-0.4.2}/examples/workflow-mappings/route.svg +0 -0
  151. {tripper-0.3.4 → tripper-0.4.2}/examples/workflow-mappings/workflow.svg +0 -0
  152. {tripper-0.3.4 → tripper-0.4.2}/examples/workflow-mappings/workflow_w_pipes.svg +0 -0
  153. {tripper-0.3.4 → tripper-0.4.2}/tests/backends/__init__.py +0 -0
  154. {tripper-0.3.4 → tripper-0.4.2}/tests/backends/dummy.py +0 -0
  155. {tripper-0.3.4 → tripper-0.4.2}/tests/backends/test_collection.py +0 -0
  156. {tripper-0.3.4 → tripper-0.4.2}/tests/backends/test_rdflib.py +0 -0
  157. {tripper-0.3.4 → tripper-0.4.2}/tests/convert/test_convert.py +0 -0
  158. {tripper-0.3.4 → tripper-0.4.2}/tests/mappings/test_function.py +0 -0
  159. {tripper-0.3.4 → tripper-0.4.2}/tests/mappings/test_mappings.py +0 -0
  160. {tripper-0.3.4 → tripper-0.4.2}/tests/ontologies/family.ttl +0 -0
  161. {tripper-0.3.4 → tripper-0.4.2}/tests/ontologies/food-more.ttl +0 -0
  162. {tripper-0.3.4 → tripper-0.4.2}/tests/ontologies/food.ttl +0 -0
  163. {tripper-0.3.4 → tripper-0.4.2}/tripper/backends/__init__.py +0 -0
  164. {tripper-0.3.4 → tripper-0.4.2}/tripper/backends/ontopy.py +0 -0
  165. {tripper-0.3.4 → tripper-0.4.2}/tripper/backends/rdflib.py +0 -0
  166. {tripper-0.3.4 → tripper-0.4.2}/tripper/convert/__init__.py +0 -0
  167. {tripper-0.3.4 → tripper-0.4.2}/tripper/interface.py +0 -0
  168. {tripper-0.3.4 → tripper-0.4.2}/tripper/mappings/__init__.py +0 -0
  169. {tripper-0.3.4 → tripper-0.4.2}/tripper/mappings/mappings.py +0 -0
@@ -8,7 +8,7 @@ on:
8
8
  jobs:
9
9
  build:
10
10
  name: External
11
- uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.8.2
11
+ uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.9.2
12
12
  if: github.repository == 'EMMC-ASBL/tripper' && startsWith(github.ref, 'refs/tags/v')
13
13
  with:
14
14
  # General
@@ -20,7 +20,7 @@ jobs:
20
20
  # Build package
21
21
  python_package: true
22
22
  package_dirs: tripper
23
- python_version_build: "3.9"
23
+ python_version_build: "3.11"
24
24
  build_libs: "flit"
25
25
  build_cmd: "flit build"
26
26
  build_dir: "dist"
@@ -29,7 +29,7 @@ jobs:
29
29
 
30
30
  # Build & publish documentation
31
31
  update_docs: true
32
- python_version_docs: "3.9"
32
+ python_version_docs: "3.11"
33
33
  doc_extras: "[docs]"
34
34
  changelog_exclude_labels: "skip_changelog,duplicate,question,invalid,wontfix"
35
35
  docs_framework: mkdocs
@@ -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.8.2
10
+ uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.9.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.8.2
10
+ uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.9.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.8.2
12
+ uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.9.2
13
13
  if: github.repository_owner == 'EMMC-ASBL'
14
14
  with:
15
15
  git_username: "TEAM 4.0[bot]"
@@ -10,16 +10,17 @@ on:
10
10
  jobs:
11
11
  basic-tests:
12
12
  name: External
13
- uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.8.2
13
+ uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.9.2
14
14
  with:
15
15
  ## General settings:
16
16
  install_extras: "[dev]"
17
17
 
18
18
  ## pre-commit
19
19
  run_pre-commit: false
20
+ skip_pre-commit_hooks: "generate-context-and-doc"
20
21
 
21
22
  ## pylint & safety
22
- python_version_pylint_safety: "3.9"
23
+ python_version_pylint_safety: "3.11"
23
24
 
24
25
  # pylint-specific settings
25
26
  run_pylint: true
@@ -28,32 +29,17 @@ jobs:
28
29
  --rcfile=pyproject.toml --disable=import-outside-toplevel,redefined-outer-name tests
29
30
 
30
31
  # safety-specific settings
31
- run_safety: true
32
- # 48547: RDFLib vulnerability: https://pyup.io/vulnerabilities/PVE-2022-48547/48547/
33
- # 44715-44717: NumPy vulnerabilities:
34
- # https://pyup.io/vulnerabilities/CVE-2021-41495/44715/
35
- # https://pyup.io/vulnerabilities/CVE-2021-41496/44716/
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/
39
- # https://data.safetycli.com/v/72715/97c/ # update to mkdocs>=9.5.32
40
- safety_options: |
41
- --ignore=48547
42
- --ignore=44715
43
- --ignore=44716
44
- --ignore=44717
45
- --ignore=70612
46
- --ignore=72715
32
+ run_safety: false
47
33
 
48
34
  ## Build package
49
35
  run_build_package: true
50
- python_version_package: "3.9"
36
+ python_version_package: "3.11"
51
37
  build_libs: flit
52
38
  build_cmd: flit build
53
39
 
54
40
  ## Build documentation
55
41
  run_build_docs: true
56
- python_version_docs: "3.9"
42
+ python_version_docs: "3.11"
57
43
  warnings_as_errors: true
58
44
  use_mkdocs: true
59
45
 
@@ -62,13 +48,38 @@ jobs:
62
48
  update_docs_landing_page: true
63
49
  package_dirs: tripper
64
50
 
51
+ safety:
52
+ runs-on: ubuntu-latest
53
+ steps:
54
+ - uses: actions/checkout@main
55
+ - name: Run Safety CLI to check for vulnerabilities
56
+ uses: pyupio/safety-action@v1
57
+ with:
58
+ api-key: ${{ secrets.SAFETY_API_KEY }}
59
+ args: --detailed-output # To always see detailed output from this action
60
+
65
61
  pytest:
66
62
  runs-on: ubuntu-latest
67
63
 
64
+
65
+ services:
66
+ fuseki:
67
+ image: stain/jena-fuseki
68
+ env:
69
+ ADMIN_PASSWORD: admin0
70
+ FUSEKI_DATASET_1: test_repo
71
+ ports:
72
+ - 3030:3030
73
+ options: >-
74
+ --health-cmd "curl -f http://localhost:3030 || exit 1"
75
+ --health-interval 10s
76
+ --health-timeout 5s
77
+ --health-retries 5
78
+
68
79
  strategy:
69
80
  fail-fast: false
70
81
  matrix:
71
- python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
82
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
72
83
 
73
84
  steps:
74
85
  - name: Checkout tripper
@@ -93,8 +104,8 @@ jobs:
93
104
  run: pytest -vvv --cov-report=xml --doctest-modules
94
105
 
95
106
  - name: Upload coverage to Codecov
96
- if: matrix.python-version == '3.9' && github.repository == 'EMMC-ASBL/tripper'
97
- uses: codecov/codecov-action@v4
107
+ if: matrix.python-version == '3.11' && github.repository == 'EMMC-ASBL/tripper'
108
+ uses: codecov/codecov-action@v5
98
109
  with:
99
110
  token: ${{ secrets.CODECOV_TOKEN }}
100
111
 
@@ -107,7 +118,7 @@ jobs:
107
118
  strategy:
108
119
  fail-fast: false
109
120
  matrix:
110
- python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
121
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
111
122
 
112
123
  steps:
113
124
  - 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.8.2
12
+ uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.9.2
13
13
  if: github.repository_owner == 'EMMC-ASBL'
14
14
  with:
15
15
  git_username: "TEAM 4.0[bot]"
@@ -15,3 +15,7 @@ site/
15
15
 
16
16
  # Build
17
17
  dist/
18
+
19
+ # Test output
20
+ route.svg
21
+ coverage.xml
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ # Enter repository root directory
4
+ HERE="$(cd "$(dirname "$0")" && pwd)"
5
+ cd "$HERE"/..
6
+
7
+ # Generate JSON-LD context and keyword documentation
8
+ python tripper/datadoc/keywords.py \
9
+ --context=tripper/context/0.3/context.json \
10
+ --keywords=docs/datadoc/keywords.md \
11
+ --prefixes=docs/datadoc/prefixes.md
12
+
13
+ # Don't crash pre-commit in case the above fails on GitHub
14
+ exit 0
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+
3
+ # Enter repository root directory
4
+ HERE="$(cd "$(dirname "$0")" && pwd)"
5
+ cd "$HERE"/..
6
+
7
+ # Run doctest on all markdown files in the docs/ directory
8
+ find docs -name '*.md' | xargs -n1 python -m doctest
@@ -32,7 +32,7 @@ repos:
32
32
  args: [--markdown-linebreak-ext=md]
33
33
 
34
34
  - repo: https://github.com/PyCQA/isort
35
- rev: 5.13.2
35
+ rev: 6.0.1
36
36
  hooks:
37
37
  - id: isort
38
38
  args:
@@ -41,37 +41,55 @@ repos:
41
41
  - --skip-gitignore
42
42
 
43
43
  - repo: https://github.com/psf/black
44
- rev: 24.10.0
44
+ rev: 25.1.0
45
45
  hooks:
46
46
  - id: black
47
47
  args: [--line-length=79]
48
48
 
49
49
  - repo: https://github.com/PyCQA/bandit
50
- rev: 1.7.10
50
+ rev: 1.8.3
51
51
  hooks:
52
52
  - id: bandit
53
53
  args: ["-r"]
54
54
  files: ^tripper/.*$
55
55
 
56
56
  - repo: https://github.com/pre-commit/mirrors-mypy
57
- rev: v1.11.2
57
+ rev: v1.15.0
58
58
  hooks:
59
59
  - id: mypy
60
60
  exclude: ^tests/.*$
61
61
  additional_dependencies:
62
62
  - "types-requests"
63
+ - "types-pyyaml"
63
64
  - "pydantic"
64
65
 
65
66
  - repo: https://github.com/SINTEF/ci-cd
66
- rev: v2.8.2
67
+ rev: v2.9.2
67
68
  hooks:
68
69
  - id: docs-api-reference
69
70
  args:
70
71
  - --package-dir=tripper
71
72
  - id: docs-landing-page
73
+ # - id: update-pyproject
72
74
 
73
75
  - repo: local
74
76
  hooks:
77
+ - id: generate-context-and-doc
78
+ name: Generate JSON-LD context and documentation
79
+ entry: .hooks/generate-context-and-doc.sh
80
+ language: script
81
+ pass_filenames: false
82
+ stages: ["pre-commit"]
83
+
84
+ # The doctests are too slow for running them in pre-commit.
85
+ # Run it as a test instead.
86
+ # - id: markdown-doctest
87
+ # name: Run doctest on markdown documentation
88
+ # entry: .hooks/markdown-doctest.sh
89
+ # language: script
90
+ # pass_filenames: false
91
+ # stages: ["pre-commit"]
92
+
75
93
  - id: pylint
76
94
  name: pylint
77
95
  entry: pylint
@@ -82,6 +100,7 @@ repos:
82
100
  require_serial: true
83
101
  files: ^.*$
84
102
  exclude: ^tests/.*$
103
+
85
104
  - id: pylint-tests
86
105
  name: pylint - tests
87
106
  entry: pylint
@@ -1,6 +1,110 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.3.4](https://github.com/EMMC-ASBL/tripper/tree/v0.3.4) (2024-10-15)
3
+ ## [v0.4.2](https://github.com/EMMC-ASBL/tripper/tree/v0.4.2) (2025-04-22)
4
+
5
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.4.1...v0.4.2)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Development branch that merges loose ends together [\#380](https://github.com/EMMC-ASBL/tripper/pull/380) ([jesper-friis](https://github.com/jesper-friis))
10
+
11
+ ## [v0.4.1](https://github.com/EMMC-ASBL/tripper/tree/v0.4.1) (2025-04-19)
12
+
13
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.4.0...v0.4.1)
14
+
15
+ **Closed issues:**
16
+
17
+ - ts.remove does not work in sparqlwrapper. [\#350](https://github.com/EMMC-ASBL/tripper/issues/350)
18
+ - exapand\_iri, documentation formatted wrongly. [\#348](https://github.com/EMMC-ASBL/tripper/issues/348)
19
+ - Attrdict return non-expanded iris, is this correct? [\#341](https://github.com/EMMC-ASBL/tripper/issues/341)
20
+ - The CONSTRUCT sparql query in \_load\_sparql used in load\_dict returns all datasets [\#336](https://github.com/EMMC-ASBL/tripper/issues/336)
21
+ - Adding text in graphDB trough save\_datadoc is done incorrectly? [\#333](https://github.com/EMMC-ASBL/tripper/issues/333)
22
+ - datadoc.dataset.\_load\_sparql uses a CONSTRUCT query, which is not implemented in the SPARQLWrapper [\#330](https://github.com/EMMC-ASBL/tripper/issues/330)
23
+ - Include the JSON-LD context in the installed package [\#326](https://github.com/EMMC-ASBL/tripper/issues/326)
24
+ - It is not possible to search for Literals in the graphdb backend [\#320](https://github.com/EMMC-ASBL/tripper/issues/320)
25
+ - Validator for schema [\#294](https://github.com/EMMC-ASBL/tripper/issues/294)
26
+
27
+ **Merged pull requests:**
28
+
29
+ - Corrected DataSetvice to DataService [\#374](https://github.com/EMMC-ASBL/tripper/pull/374) ([francescalb](https://github.com/francescalb))
30
+ - Fix typo in keywords documentation [\#373](https://github.com/EMMC-ASBL/tripper/pull/373) ([jesper-friis](https://github.com/jesper-friis))
31
+ - Updated keywords documentation [\#371](https://github.com/EMMC-ASBL/tripper/pull/371) ([jesper-friis](https://github.com/jesper-friis))
32
+ - Adding logos [\#368](https://github.com/EMMC-ASBL/tripper/pull/368) ([jesper-friis](https://github.com/jesper-friis))
33
+ - Add resources \(classes\) to the JSON-LD context. [\#366](https://github.com/EMMC-ASBL/tripper/pull/366) ([jesper-friis](https://github.com/jesper-friis))
34
+ - Added support for ASK and DESCRIBE queries in the sparqlwrapper backend [\#364](https://github.com/EMMC-ASBL/tripper/pull/364) ([jesper-friis](https://github.com/jesper-friis))
35
+ - Improved formatting of keyword documentation table. [\#362](https://github.com/EMMC-ASBL/tripper/pull/362) ([jesper-friis](https://github.com/jesper-friis))
36
+ - Test for the datadoc command-line tool [\#361](https://github.com/EMMC-ASBL/tripper/pull/361) ([jesper-friis](https://github.com/jesper-friis))
37
+ - Fixed CONTEXT\_URL after branch 294-validator-for-schema was merged to master [\#359](https://github.com/EMMC-ASBL/tripper/pull/359) ([jesper-friis](https://github.com/jesper-friis))
38
+ - Fix formatting [\#358](https://github.com/EMMC-ASBL/tripper/pull/358) ([jesper-friis](https://github.com/jesper-friis))
39
+ - Added session [\#357](https://github.com/EMMC-ASBL/tripper/pull/357) ([jesper-friis](https://github.com/jesper-friis))
40
+ - Added update\(\) method to sparqlwrapper backend [\#356](https://github.com/EMMC-ASBL/tripper/pull/356) ([jesper-friis](https://github.com/jesper-friis))
41
+ - \[pre-commit.ci\] pre-commit autoupdate [\#355](https://github.com/EMMC-ASBL/tripper/pull/355) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
42
+ - \[pre-commit.ci\] pre-commit autoupdate [\#353](https://github.com/EMMC-ASBL/tripper/pull/353) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
43
+ - Corrected sparqlquery for removing triples [\#351](https://github.com/EMMC-ASBL/tripper/pull/351) ([francescalb](https://github.com/francescalb))
44
+ - Corrected formatting of example [\#349](https://github.com/EMMC-ASBL/tripper/pull/349) ([francescalb](https://github.com/francescalb))
45
+ - Added test for Fuseki and fixed query to return TURTLE which works for both fuseki and graphdb [\#347](https://github.com/EMMC-ASBL/tripper/pull/347) ([francescalb](https://github.com/francescalb))
46
+ - \[pre-commit.ci\] pre-commit autoupdate [\#346](https://github.com/EMMC-ASBL/tripper/pull/346) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
47
+ - Correct syntax [\#344](https://github.com/EMMC-ASBL/tripper/pull/344) ([jesper-friis](https://github.com/jesper-friis))
48
+ - Correct syntax [\#343](https://github.com/EMMC-ASBL/tripper/pull/343) ([jesper-friis](https://github.com/jesper-friis))
49
+ - Flb/expand iri in sparql query [\#340](https://github.com/EMMC-ASBL/tripper/pull/340) ([francescalb](https://github.com/francescalb))
50
+ - disable pylint errors on too-many-positional-arguments [\#339](https://github.com/EMMC-ASBL/tripper/pull/339) ([francescalb](https://github.com/francescalb))
51
+ - Fixed CONSTRUCT to return s and not o [\#338](https://github.com/EMMC-ASBL/tripper/pull/338) ([francescalb](https://github.com/francescalb))
52
+ - Corrected literals in SELECT and CONSTRUCT queries in the sparqlwrapper backend [\#335](https://github.com/EMMC-ASBL/tripper/pull/335) ([jesper-friis](https://github.com/jesper-friis))
53
+ - \[pre-commit.ci\] pre-commit autoupdate [\#332](https://github.com/EMMC-ASBL/tripper/pull/332) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
54
+ - Added CONSTRUCT query to sparqlwrapper, [\#331](https://github.com/EMMC-ASBL/tripper/pull/331) ([francescalb](https://github.com/francescalb))
55
+ - Include context files in installation [\#328](https://github.com/EMMC-ASBL/tripper/pull/328) ([jesper-friis](https://github.com/jesper-friis))
56
+ - Added PINK to contributing projects [\#327](https://github.com/EMMC-ASBL/tripper/pull/327) ([jesper-friis](https://github.com/jesper-friis))
57
+ - Update dataset.py [\#325](https://github.com/EMMC-ASBL/tripper/pull/325) ([jesper-friis](https://github.com/jesper-friis))
58
+ - Added units submodule for working with units and quantities defined in ontologies [\#324](https://github.com/EMMC-ASBL/tripper/pull/324) ([jesper-friis](https://github.com/jesper-friis))
59
+ - \[pre-commit.ci\] pre-commit autoupdate [\#321](https://github.com/EMMC-ASBL/tripper/pull/321) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
60
+ - Schema validator [\#296](https://github.com/EMMC-ASBL/tripper/pull/296) ([jesper-friis](https://github.com/jesper-friis))
61
+
62
+ ## [v0.4.0](https://github.com/EMMC-ASBL/tripper/tree/v0.4.0) (2025-02-10)
63
+
64
+ [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.4...v0.4.0)
65
+
66
+ **Closed issues:**
67
+
68
+ - Clean up documentation [\#302](https://github.com/EMMC-ASBL/tripper/issues/302)
69
+ - Make datadoc windows compatible [\#301](https://github.com/EMMC-ASBL/tripper/issues/301)
70
+
71
+ **Merged pull requests:**
72
+
73
+ - \[pre-commit.ci\] pre-commit autoupdate [\#317](https://github.com/EMMC-ASBL/tripper/pull/317) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
74
+ - Add updateEndpoint to SPARQLwrapper [\#313](https://github.com/EMMC-ASBL/tripper/pull/313) ([torhaugl](https://github.com/torhaugl))
75
+ - Updated the readme file [\#311](https://github.com/EMMC-ASBL/tripper/pull/311) ([jesper-friis](https://github.com/jesper-friis))
76
+ - Drop support for Python 3.7 [\#310](https://github.com/EMMC-ASBL/tripper/pull/310) ([jesper-friis](https://github.com/jesper-friis))
77
+ - Include prefixes from context when populating a triplestore from a csv file [\#309](https://github.com/EMMC-ASBL/tripper/pull/309) ([jesper-friis](https://github.com/jesper-friis))
78
+ - Added support for username/password for sparqlwrapper [\#308](https://github.com/EMMC-ASBL/tripper/pull/308) ([jesper-friis](https://github.com/jesper-friis))
79
+ - Implementing regex search [\#307](https://github.com/EMMC-ASBL/tripper/pull/307) ([jesper-friis](https://github.com/jesper-friis))
80
+ - \[pre-commit.ci\] pre-commit autoupdate [\#306](https://github.com/EMMC-ASBL/tripper/pull/306) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
81
+ - Rename dataset [\#304](https://github.com/EMMC-ASBL/tripper/pull/304) ([jesper-friis](https://github.com/jesper-friis))
82
+ - Change pathlib to be pathlib and not as uri. This fixes opening in wi… [\#303](https://github.com/EMMC-ASBL/tripper/pull/303) ([francescalb](https://github.com/francescalb))
83
+ - Added fixes for the demonstration at the PINK demo [\#299](https://github.com/EMMC-ASBL/tripper/pull/299) ([jesper-friis](https://github.com/jesper-friis))
84
+ - Renamed the dataset subpackage to datadoc [\#298](https://github.com/EMMC-ASBL/tripper/pull/298) ([jesper-friis](https://github.com/jesper-friis))
85
+ - \[pre-commit.ci\] pre-commit autoupdate [\#287](https://github.com/EMMC-ASBL/tripper/pull/287) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
86
+ - Make datasets with a datamodel an individual of the datamodel [\#286](https://github.com/EMMC-ASBL/tripper/pull/286) ([jesper-friis](https://github.com/jesper-friis))
87
+ - Re-applied fixes from testing datadoc on a use case for PINK. [\#285](https://github.com/EMMC-ASBL/tripper/pull/285) ([jesper-friis](https://github.com/jesper-friis))
88
+ - Command-line datadoc script [\#281](https://github.com/EMMC-ASBL/tripper/pull/281) ([jesper-friis](https://github.com/jesper-friis))
89
+ - Added documentation for datasets [\#280](https://github.com/EMMC-ASBL/tripper/pull/280) ([jesper-friis](https://github.com/jesper-friis))
90
+ - Dataset TODOs [\#279](https://github.com/EMMC-ASBL/tripper/pull/279) ([jesper-friis](https://github.com/jesper-friis))
91
+ - \[pre-commit.ci\] pre-commit autoupdate [\#277](https://github.com/EMMC-ASBL/tripper/pull/277) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
92
+ - Added csv parser to Tabledoc [\#275](https://github.com/EMMC-ASBL/tripper/pull/275) ([jesper-friis](https://github.com/jesper-friis))
93
+ - Updated dataset figures [\#274](https://github.com/EMMC-ASBL/tripper/pull/274) ([jesper-friis](https://github.com/jesper-friis))
94
+ - New TableDoc class providing a table interface for data documentation [\#273](https://github.com/EMMC-ASBL/tripper/pull/273) ([jesper-friis](https://github.com/jesper-friis))
95
+ - Updated dataset module [\#272](https://github.com/EMMC-ASBL/tripper/pull/272) ([jesper-friis](https://github.com/jesper-friis))
96
+ - Corrected dataset module [\#271](https://github.com/EMMC-ASBL/tripper/pull/271) ([jesper-friis](https://github.com/jesper-friis))
97
+ - Add query to SPARQLwrapper strategy [\#269](https://github.com/EMMC-ASBL/tripper/pull/269) ([torhaugl](https://github.com/torhaugl))
98
+ - \[pre-commit.ci\] pre-commit autoupdate [\#268](https://github.com/EMMC-ASBL/tripper/pull/268) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
99
+ - Add support for Python 3.13 [\#266](https://github.com/EMMC-ASBL/tripper/pull/266) ([jesper-friis](https://github.com/jesper-friis))
100
+ - Updated requirements to allow Pint 0.24, which in turn opens for NumPy 2 [\#265](https://github.com/EMMC-ASBL/tripper/pull/265) ([jesper-friis](https://github.com/jesper-friis))
101
+ - Updated documentation format for better rendering [\#262](https://github.com/EMMC-ASBL/tripper/pull/262) ([jesper-friis](https://github.com/jesper-friis))
102
+ - Predefined EMMO namespace with checking and label lookup [\#261](https://github.com/EMMC-ASBL/tripper/pull/261) ([jesper-friis](https://github.com/jesper-friis))
103
+ - \[pre-commit.ci\] pre-commit autoupdate [\#259](https://github.com/EMMC-ASBL/tripper/pull/259) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
104
+ - \[pre-commit.ci\] pre-commit autoupdate [\#258](https://github.com/EMMC-ASBL/tripper/pull/258) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci))
105
+ - Dataset [\#256](https://github.com/EMMC-ASBL/tripper/pull/256) ([jesper-friis](https://github.com/jesper-friis))
106
+
107
+ ## [v0.3.4](https://github.com/EMMC-ASBL/tripper/tree/v0.3.4) (2024-10-17)
4
108
 
5
109
  [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.3...v0.3.4)
6
110
 
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 SINTEF
3
+ Copyright (c) 2022-2025 SINTEF
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1 @@
1
+ recursive-include tripper/context/**
@@ -1,91 +1,87 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: tripper
3
- Version: 0.3.4
3
+ Version: 0.4.2
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.8
8
8
  Description-Content-Type: text/markdown
9
9
  Classifier: Development Status :: 2 - Pre-Alpha
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.7
13
12
  Classifier: Programming Language :: Python :: 3.8
14
13
  Classifier: Programming Language :: Python :: 3.9
15
14
  Classifier: Programming Language :: Python :: 3.10
16
15
  Classifier: Programming Language :: Python :: 3.11
17
16
  Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
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.0,<4.7.1; python_version<'3.8'
22
- Requires-Dist: pint>=0.16.1,<0.24
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"
21
+ License-File: LICENSE
22
+ Requires-Dist: typing-extensions>=4.7.0,<4.13.1; python_version < '3.9'
23
+ Requires-Dist: tripper[mappings] ; extra == "datadoc"
24
+ Requires-Dist: PyLD>=2.0.0,<2.0.5 ; extra == "datadoc"
25
+ Requires-Dist: PyYaml>=3.0.0,<6.0.3 ; extra == "datadoc"
26
+ Requires-Dist: requests>=2.0.0,<3.4.1 ; extra == "datadoc"
27
+ Requires-Dist: tripper[pre-commit, docs] ; extra == "dev"
28
+ Requires-Dist: tripper[testing] ; extra == "docs"
29
+ Requires-Dist: mike==2.1.3 ; extra == "docs"
30
+ Requires-Dist: mkdocs==1.6.1 ; extra == "docs"
31
+ Requires-Dist: mkdocs-autorefs==1.4.1 ; extra == "docs"
32
+ Requires-Dist: mkdocs-awesome-pages-plugin==2.10.1 ; extra == "docs"
33
+ Requires-Dist: mkdocs-github-admonitions-plugin==0.0.3 ; extra == "docs"
34
+ Requires-Dist: mkdocs-material==9.6.11 ; extra == "docs"
35
+ Requires-Dist: mkdocstrings==0.27.0 ; extra == "docs"
36
+ Requires-Dist: mkdocstrings-python-legacy==0.2.4 ; extra == "docs"
37
+ Requires-Dist: tripper[units] ; extra == "mappings"
50
38
  Requires-Dist: pre-commit==4.0.1 ; 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"
39
+ Requires-Dist: pylint==3.3.4 ; extra == "pre-commit"
40
+ Requires-Dist: tripper[datadoc, mappings, testing-core] ; extra == "testing"
41
+ Requires-Dist: dlite-python>=0.5.27 ; extra == "testing" and ( python_version>='3.8')
42
+ Requires-Dist: emmontopy>=0.5.0,<0.7.1 ; extra == "testing" and ( python_version<'3.13')
59
43
  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"
44
+ Requires-Dist: numpy<2.1.0 ; extra == "testing" and ( python_version>='3.13')
45
+ Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "testing"
46
+ Requires-Dist: sparqlwrapper>=2.0.0,<2.0.1 ; extra == "testing"
47
+ Requires-Dist: pytest==8.3.4 ; extra == "testing-core"
48
+ Requires-Dist: pytest-cov==5.0.0 ; extra == "testing-core" and ( python_version<'3.9')
49
+ Requires-Dist: pytest-cov==6.0.0 ; extra == "testing-core" and ( python_version>='3.9')
50
+ Requires-Dist: pint>=0.21.1,<0.26 ; extra == "units" and ( python_version<'3.9')
51
+ Requires-Dist: pint>=0.24.1,<0.26 ; extra == "units" and ( python_version>='3.9')
52
+ Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "units"
62
53
  Project-URL: Changelog, https://github.com/EMMC-ASBL/tripper/blob/master/CHANGELOG.md
63
54
  Project-URL: Documentation, https://EMMC-ASBL.github.io/tripper
64
55
  Project-URL: Home, https://github.com/EMMC-ASBL/tripper
65
56
  Project-URL: Issue Tracker, https://github.com/EMMC-ASBL/tripper/issues
66
57
  Project-URL: Package, https://pypi.org/project/tripper
67
58
  Project-URL: Source, https://github.com/EMMC-ASBL/tripper
59
+ Provides-Extra: datadoc
68
60
  Provides-Extra: dev
69
61
  Provides-Extra: docs
62
+ Provides-Extra: mappings
70
63
  Provides-Extra: pre-commit
71
64
  Provides-Extra: testing
72
65
  Provides-Extra: testing-core
66
+ Provides-Extra: units
73
67
 
74
- Tripper
75
- =======
76
- *Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends.*
77
-
68
+ <img src="docs/figs/tripper_logo.svg" alt="Tripper logo" align="right" width="96" height="96">
78
69
 
79
70
  [![PyPI](https://img.shields.io/pypi/v/tripper?logo=pypi)](https://pypi.org/project/tripper)
80
71
  [![Documentation](https://img.shields.io/badge/documentation-informational?logo=github)](https://emmc-asbl.github.io/tripper/latest/)
81
72
  [![CI tests](https://github.com/EMMC-ASBL/tripper/workflows/CI%20-%20Tests/badge.svg)](https://github.com/EMMC-ASBL/tripper/actions/workflows/ci_tests.yml?query=branch%3Amaster)
82
73
  [![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)
83
74
 
75
+ *Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends*
76
+
77
+
78
+ Tripper
79
+ =======
84
80
 
85
81
  Getting started
86
82
  ---------------
87
83
  * [Tutorial]
88
- * [Discovery of custom backends]
84
+ * [Documentation]
89
85
  * [Reference manual]
90
86
 
91
87
 
@@ -111,11 +107,14 @@ New namespaces can be defined with the [`tripper.Namespace`][Namespace] class.
111
107
  A triplestore wrapper is created with the [`tripper.Triplestore`][Triplestore] class.
112
108
 
113
109
 
114
- Advanced features
115
- -----------------
116
- The submodules `mappings` and `convert` provide additional functionality beyond interfacing triplestore backends:
117
- - **tripper.mappings**: traverse mappings stored in the triplestore and find possible mapping routes.
118
- - **tripper.convert**: convert between RDF and other data representations.
110
+ Sub-packages
111
+ ------------
112
+ Additional functionality beyond interfacing triplestore backends is provided by specialised sub-package:
113
+
114
+ * [tripper.datadoc]: An API for data documentation.
115
+ * [tripper.units]: Working with units and quantities defined in ontologies.
116
+ * [tripper.mappings]: Traverse mappings stored in the triplestore and find possible mapping routes.
117
+ * [tripper.convert]: Convert between RDF and other data representations.
119
118
 
120
119
 
121
120
  Available backends
@@ -128,9 +127,9 @@ The following backends are currently available, either in Tripper or other packa
128
127
  | ontopy | [tripper] | EMMOntoPy | Backend for [EMMOntoPy]. In-memory.
129
128
  | sparqlwrapper | [tripper] | sparqlwrapper | Generic backend for all triplestores supported by [sparqlwrapper].
130
129
  | collection | [tripper] | DLite-Python | Backend to a [DLite] collection.
130
+ | graphdb | [tripper] | sparqlwrapper | Backend to [GraphDB].
131
131
  | fuseki | [PyBackTrip] | sparqlwrapper | Backend to [fuseki].
132
132
  | stardog | [PyBackTrip] | sparqlwrapper,pystardog | Backend to [StarDog].
133
- | graphdb | [PyBackTrip] | sparqlwrapper | Backend to [GraphDB].
134
133
 
135
134
 
136
135
  Installation
@@ -173,12 +172,18 @@ We gratefully acknowledge the following projects for supporting the development
173
172
  - [VIPCOAT](https://www.vipcoat.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 952903.
174
173
  - MEDIATE (2022-2025) that receives funding from the RCN, Norway; FNR, Luxenburg; SMWK Germany via the M-era.net programme, project 9557,
175
174
  - [MatCHMaker](https://he-matchmaker.eu/) (2022-2026) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 101091687.
175
+ - [PINK](https://pink-project.eu/) (2024-2027) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 101137809.
176
176
 
177
177
 
178
178
 
179
179
  [Tutorial]: https://emmc-asbl.github.io/tripper/latest/tutorial/
180
- [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
180
+ [Documentation]: https://emmc-asbl.github.io/tripper/latest/
181
181
  [Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
182
+ [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
183
+ [tripper.datadoc]: https://emmc-asbl.github.io/tripper/latest/datadoc/introduction/
184
+ [tripper.mappings]: https://emmc-asbl.github.io/tripper/latest/api_reference/mappings/mappings/
185
+ [tripper.units]: https://emmc-asbl.github.io/tripper/latest/units/units/
186
+ [tripper.convert]: https://emmc-asbl.github.io/tripper/latest/api_reference/convert/convert/
182
187
  [Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
183
188
  [MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
184
189
  [tripper]: https://emmc-asbl.github.io/tripper