tripper 0.4.0__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 (167) hide show
  1. {tripper-0.4.0 → tripper-0.4.2}/.github/workflows/cd_release.yml +3 -3
  2. {tripper-0.4.0 → tripper-0.4.2}/.github/workflows/ci_automerge_dependency_prs.yml +1 -1
  3. {tripper-0.4.0 → tripper-0.4.2}/.github/workflows/ci_cd_updated_main.yml +1 -1
  4. {tripper-0.4.0 → tripper-0.4.2}/.github/workflows/ci_check_dependencies.yml +1 -1
  5. {tripper-0.4.0 → tripper-0.4.2}/.github/workflows/ci_tests.yml +32 -21
  6. {tripper-0.4.0 → tripper-0.4.2}/.github/workflows/ci_update_dependencies.yml +1 -1
  7. tripper-0.4.2/.hooks/generate-context-and-doc.sh +14 -0
  8. tripper-0.4.2/.hooks/markdown-doctest.sh +8 -0
  9. {tripper-0.4.0 → tripper-0.4.2}/.pre-commit-config.yaml +23 -4
  10. {tripper-0.4.0 → tripper-0.4.2}/CHANGELOG.md +59 -0
  11. {tripper-0.4.0 → tripper-0.4.2}/LICENSE +1 -1
  12. tripper-0.4.2/MANIFEST.in +1 -0
  13. {tripper-0.4.0 → tripper-0.4.2}/PKG-INFO +27 -16
  14. {tripper-0.4.0 → tripper-0.4.2}/README.md +9 -4
  15. tripper-0.4.2/docs/api_reference/datadoc/context.md +3 -0
  16. tripper-0.4.2/docs/api_reference/datadoc/errors.md +3 -0
  17. tripper-0.4.2/docs/api_reference/datadoc/keywords.md +3 -0
  18. tripper-0.4.2/docs/api_reference/session.md +3 -0
  19. tripper-0.4.2/docs/api_reference/units/.pages +1 -0
  20. tripper-0.4.2/docs/api_reference/units/units.md +3 -0
  21. {tripper-0.4.0 → tripper-0.4.2}/docs/backend_discovery.md +4 -3
  22. {tripper-0.4.0 → tripper-0.4.2}/docs/datadoc/customisation.md +8 -8
  23. {tripper-0.4.0 → tripper-0.4.2}/docs/datadoc/documenting-a-resource.md +46 -37
  24. tripper-0.4.2/docs/datadoc/keywords.md +520 -0
  25. tripper-0.4.2/docs/datadoc/prefixes.md +32 -0
  26. tripper-0.4.2/docs/developers.md +77 -0
  27. tripper-0.4.2/docs/figs/tripper_logo.png +0 -0
  28. tripper-0.4.2/docs/figs/tripper_logo.svg +210 -0
  29. tripper-0.4.2/docs/figs/tripper_logo_w_name.png +0 -0
  30. tripper-0.4.2/docs/figs/tripper_logo_w_name.svg +252 -0
  31. {tripper-0.4.0 → tripper-0.4.2}/docs/index.md +9 -4
  32. tripper-0.4.2/docs/session.md +80 -0
  33. {tripper-0.4.0 → tripper-0.4.2}/docs/tools/datadoc.md +12 -6
  34. tripper-0.4.2/docs/units/units.md +386 -0
  35. {tripper-0.4.0 → tripper-0.4.2}/examples/workflow-mappings/workflow_mappings.py +8 -1
  36. {tripper-0.4.0 → tripper-0.4.2}/mkdocs.yml +7 -2
  37. {tripper-0.4.0 → tripper-0.4.2}/pyproject.toml +29 -11
  38. tripper-0.4.2/tests/backends/datadocumentation_sample.yaml +12 -0
  39. tripper-0.4.2/tests/backends/datadocumentation_sample2.yaml +12 -0
  40. {tripper-0.4.0 → tripper-0.4.2}/tests/backends/test_sparqlwrapper.py +2 -1
  41. tripper-0.4.2/tests/backends/test_sparqlwrapper_graphdb_fuseki.py +219 -0
  42. {tripper-0.4.0 → tripper-0.4.2}/tests/datadoc/dataset_paths.py +2 -1
  43. tripper-0.4.2/tests/datadoc/test_context.py +147 -0
  44. {tripper-0.4.0 → tripper-0.4.2}/tests/datadoc/test_dataaccess.py +24 -15
  45. tripper-0.4.2/tests/datadoc/test_datadoc_cli.py +182 -0
  46. tripper-0.4.2/tests/datadoc/test_dataset.py +567 -0
  47. tripper-0.4.2/tests/datadoc/test_keywords.py +176 -0
  48. {tripper-0.4.0 → tripper-0.4.2}/tests/datadoc/test_tabledoc.py +64 -43
  49. {tripper-0.4.0 → tripper-0.4.2}/tests/input/custom_context.yaml +1 -1
  50. tripper-0.4.2/tests/input/mappings.ttl +5 -0
  51. {tripper-0.4.0 → tripper-0.4.2}/tests/input/semdata.csv +5 -5
  52. {tripper-0.4.0 → tripper-0.4.2}/tests/input/semdata.yaml +25 -16
  53. tripper-0.4.2/tests/input/session.yaml +14 -0
  54. tripper-0.4.2/tests/output/.gitignore +11 -0
  55. {tripper-0.4.0 → tripper-0.4.2}/tests/test_literals.py +44 -12
  56. tripper-0.4.2/tests/test_markdown_doctest.py +33 -0
  57. {tripper-0.4.0 → tripper-0.4.2}/tests/test_namespace.py +13 -9
  58. tripper-0.4.2/tests/test_session.py +37 -0
  59. {tripper-0.4.0 → tripper-0.4.2}/tests/test_triplestore.py +6 -2
  60. {tripper-0.4.0 → tripper-0.4.2}/tests/test_utils.py +126 -0
  61. tripper-0.4.2/tests/units/test_units.py +389 -0
  62. tripper-0.4.2/tripper/__init__.py +96 -0
  63. {tripper-0.4.0 → tripper-0.4.2}/tripper/backends/sparqlwrapper.py +109 -21
  64. tripper-0.4.2/tripper/context/0.3/context.json +360 -0
  65. tripper-0.4.2/tripper/context/0.3/keywords.yaml +753 -0
  66. {tripper-0.4.0 → tripper-0.4.2}/tripper/datadoc/__init__.py +5 -1
  67. {tripper-0.4.0 → tripper-0.4.2}/tripper/datadoc/clitool.py +104 -18
  68. tripper-0.4.2/tripper/datadoc/context.py +362 -0
  69. {tripper-0.4.0 → tripper-0.4.2}/tripper/datadoc/dataaccess.py +13 -5
  70. tripper-0.4.2/tripper/datadoc/dataset.py +1265 -0
  71. tripper-0.4.2/tripper/datadoc/errors.py +35 -0
  72. tripper-0.4.2/tripper/datadoc/keywords.py +547 -0
  73. {tripper-0.4.0 → tripper-0.4.2}/tripper/datadoc/tabledoc.py +115 -34
  74. {tripper-0.4.0 → tripper-0.4.2}/tripper/errors.py +9 -1
  75. {tripper-0.4.0 → tripper-0.4.2}/tripper/literal.py +43 -2
  76. {tripper-0.4.0 → tripper-0.4.2}/tripper/namespace.py +56 -15
  77. tripper-0.4.2/tripper/session.py +115 -0
  78. {tripper-0.4.0 → tripper-0.4.2}/tripper/triplestore.py +82 -93
  79. tripper-0.4.2/tripper/units/__init__.py +3 -0
  80. tripper-0.4.2/tripper/units/units.py +1319 -0
  81. {tripper-0.4.0 → tripper-0.4.2}/tripper/utils.py +327 -17
  82. tripper-0.4.0/docs/datadoc/keywords.md +0 -228
  83. tripper-0.4.0/docs/datadoc/prefixes.md +0 -28
  84. tripper-0.4.0/docs/developers.md +0 -28
  85. tripper-0.4.0/tests/datadoc/test_dataset.py +0 -388
  86. tripper-0.4.0/tests/output/.gitignore +0 -6
  87. tripper-0.4.0/tripper/__init__.py +0 -73
  88. tripper-0.4.0/tripper/datadoc/dataset.py +0 -994
  89. {tripper-0.4.0 → tripper-0.4.2}/.github/dependabot.yml +0 -0
  90. {tripper-0.4.0 → tripper-0.4.2}/.github/pull_request_template.md +0 -0
  91. {tripper-0.4.0 → tripper-0.4.2}/.gitignore +0 -0
  92. {tripper-0.4.0 → tripper-0.4.2}/docs/CHANGELOG.md +0 -0
  93. {tripper-0.4.0 → tripper-0.4.2}/docs/LICENSE.md +0 -0
  94. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/.pages +0 -0
  95. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/backends/.pages +0 -0
  96. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/backends/collection.md +0 -0
  97. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/backends/ontopy.md +0 -0
  98. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/backends/rdflib.md +0 -0
  99. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/backends/sparqlwrapper.md +0 -0
  100. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/convert/.pages +0 -0
  101. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/convert/convert.md +0 -0
  102. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/datadoc/.pages +0 -0
  103. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/datadoc/clitool.md +0 -0
  104. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/datadoc/dataaccess.md +0 -0
  105. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/datadoc/dataset.md +0 -0
  106. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/datadoc/tabledoc.md +0 -0
  107. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/errors.md +0 -0
  108. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/interface.md +0 -0
  109. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/literal.md +0 -0
  110. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/mappings/.pages +0 -0
  111. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/mappings/mappings.md +0 -0
  112. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/namespace.md +0 -0
  113. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/triplestore.md +0 -0
  114. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/triplestore_extend.md +0 -0
  115. {tripper-0.4.0 → tripper-0.4.2}/docs/api_reference/utils.md +0 -0
  116. {tripper-0.4.0 → tripper-0.4.2}/docs/css/reference.css +0 -0
  117. {tripper-0.4.0 → tripper-0.4.2}/docs/datadoc/introduction.md +0 -0
  118. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/.gitignore +0 -0
  119. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/dataset-Consumer.png +0 -0
  120. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/dataset-Consumer1.png +0 -0
  121. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/dataset-Consumer2.png +0 -0
  122. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/dataset-Dataset.png +0 -0
  123. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/dataset-Provider.png +0 -0
  124. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/dataset.drawio +0 -0
  125. {tripper-0.4.0 → tripper-0.4.2}/docs/figs/semdata.png +0 -0
  126. {tripper-0.4.0 → tripper-0.4.2}/docs/known-issues.md +0 -0
  127. {tripper-0.4.0 → tripper-0.4.2}/docs/mappings/figs/function_emmo.svg +0 -0
  128. {tripper-0.4.0 → tripper-0.4.2}/docs/planned-backends.md +0 -0
  129. {tripper-0.4.0 → tripper-0.4.2}/docs/tutorial.md +0 -0
  130. {tripper-0.4.0 → tripper-0.4.2}/examples/workflow-mappings/README.md +0 -0
  131. {tripper-0.4.0 → tripper-0.4.2}/examples/workflow-mappings/knowledge-base.svg +0 -0
  132. {tripper-0.4.0 → tripper-0.4.2}/examples/workflow-mappings/route.svg +0 -0
  133. {tripper-0.4.0 → tripper-0.4.2}/examples/workflow-mappings/workflow.svg +0 -0
  134. {tripper-0.4.0 → tripper-0.4.2}/examples/workflow-mappings/workflow_w_pipes.svg +0 -0
  135. {tripper-0.4.0 → tripper-0.4.2}/tests/backends/__init__.py +0 -0
  136. {tripper-0.4.0 → tripper-0.4.2}/tests/backends/dummy.py +0 -0
  137. {tripper-0.4.0 → tripper-0.4.2}/tests/backends/test_collection.py +0 -0
  138. {tripper-0.4.0 → tripper-0.4.2}/tests/backends/test_rdflib.py +0 -0
  139. {tripper-0.4.0 → tripper-0.4.2}/tests/conftest.py +0 -0
  140. {tripper-0.4.0 → tripper-0.4.2}/tests/convert/test_convert.py +0 -0
  141. {tripper-0.4.0 → tripper-0.4.2}/tests/input/77600-23-001_5kV_400x_m001.tif +0 -0
  142. {tripper-0.4.0 → tripper-0.4.2}/tests/input/openfile.txt +0 -0
  143. {tripper-0.4.0 → tripper-0.4.2}/tests/input/semdata-context.json +0 -0
  144. {tripper-0.4.0 → tripper-0.4.2}/tests/input/tem.csv +0 -0
  145. {tripper-0.4.0 → tripper-0.4.2}/tests/mappings/test_cost.py +0 -0
  146. {tripper-0.4.0 → tripper-0.4.2}/tests/mappings/test_function.py +0 -0
  147. {tripper-0.4.0 → tripper-0.4.2}/tests/mappings/test_mappings.py +0 -0
  148. {tripper-0.4.0 → tripper-0.4.2}/tests/ontologies/family.ttl +0 -0
  149. {tripper-0.4.0 → tripper-0.4.2}/tests/ontologies/food-more.ttl +0 -0
  150. {tripper-0.4.0 → tripper-0.4.2}/tests/ontologies/food.ttl +0 -0
  151. {tripper-0.4.0 → tripper-0.4.2}/tests/paths.py +0 -0
  152. {tripper-0.4.0 → tripper-0.4.2}/tests/test_add_function.py +0 -0
  153. {tripper-0.4.0 → tripper-0.4.2}/tests/test_custom_backend.py +0 -0
  154. {tripper-0.4.0 → tripper-0.4.2}/tests/test_eval_function.py +0 -0
  155. {tripper-0.4.0 → tripper-0.4.2}/tests/test_get_data.py +0 -0
  156. {tripper-0.4.0 → tripper-0.4.2}/tests/test_sparql.py +0 -0
  157. {tripper-0.4.0 → tripper-0.4.2}/tripper/backends/__init__.py +0 -0
  158. {tripper-0.4.0 → tripper-0.4.2}/tripper/backends/collection.py +0 -0
  159. {tripper-0.4.0 → tripper-0.4.2}/tripper/backends/ontopy.py +0 -0
  160. {tripper-0.4.0 → tripper-0.4.2}/tripper/backends/rdflib.py +0 -0
  161. {tripper-0.4.0 → tripper-0.4.2}/tripper/context/0.2/context.json +0 -0
  162. {tripper-0.4.0 → tripper-0.4.2}/tripper/convert/__init__.py +0 -0
  163. {tripper-0.4.0 → tripper-0.4.2}/tripper/convert/convert.py +0 -0
  164. {tripper-0.4.0 → tripper-0.4.2}/tripper/interface.py +0 -0
  165. {tripper-0.4.0 → tripper-0.4.2}/tripper/mappings/__init__.py +0 -0
  166. {tripper-0.4.0 → tripper-0.4.2}/tripper/mappings/mappings.py +0 -0
  167. {tripper-0.4.0 → tripper-0.4.2}/tripper/triplestore_extend.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.9.0
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.9.0
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.9.0
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.9.0
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.9.0
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,9 +48,34 @@ 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:
@@ -93,7 +104,7 @@ 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'
107
+ if: matrix.python-version == '3.11' && github.repository == 'EMMC-ASBL/tripper'
97
108
  uses: codecov/codecov-action@v5
98
109
  with:
99
110
  token: ${{ secrets.CODECOV_TOKEN }}
@@ -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.9.0
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]"
@@ -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: 6.0.0
35
+ rev: 6.0.1
36
36
  hooks:
37
37
  - id: isort
38
38
  args:
@@ -47,31 +47,49 @@ repos:
47
47
  args: [--line-length=79]
48
48
 
49
49
  - repo: https://github.com/PyCQA/bandit
50
- rev: 1.8.2
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.14.1
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.9.0
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,5 +1,64 @@
1
1
  # Changelog
2
2
 
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
+
3
62
  ## [v0.4.0](https://github.com/EMMC-ASBL/tripper/tree/v0.4.0) (2025-02-10)
4
63
 
5
64
  [Full Changelog](https://github.com/EMMC-ASBL/tripper/compare/v0.3.4...v0.4.0)
@@ -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,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: tripper
3
- Version: 0.4.0
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>
@@ -18,33 +18,38 @@ 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.9'
21
+ License-File: LICENSE
22
+ Requires-Dist: typing-extensions>=4.7.0,<4.13.1; python_version < '3.9'
22
23
  Requires-Dist: tripper[mappings] ; extra == "datadoc"
24
+ Requires-Dist: PyLD>=2.0.0,<2.0.5 ; extra == "datadoc"
23
25
  Requires-Dist: PyYaml>=3.0.0,<6.0.3 ; extra == "datadoc"
24
26
  Requires-Dist: requests>=2.0.0,<3.4.1 ; extra == "datadoc"
25
27
  Requires-Dist: tripper[pre-commit, docs] ; extra == "dev"
26
28
  Requires-Dist: tripper[testing] ; extra == "docs"
27
29
  Requires-Dist: mike==2.1.3 ; extra == "docs"
28
30
  Requires-Dist: mkdocs==1.6.1 ; extra == "docs"
29
- Requires-Dist: mkdocs-autorefs==1.2.0 ; extra == "docs"
31
+ Requires-Dist: mkdocs-autorefs==1.4.1 ; extra == "docs"
30
32
  Requires-Dist: mkdocs-awesome-pages-plugin==2.10.1 ; extra == "docs"
31
- Requires-Dist: mkdocs-material==9.5.49 ; extra == "docs"
33
+ Requires-Dist: mkdocs-github-admonitions-plugin==0.0.3 ; extra == "docs"
34
+ Requires-Dist: mkdocs-material==9.6.11 ; extra == "docs"
32
35
  Requires-Dist: mkdocstrings==0.27.0 ; extra == "docs"
33
36
  Requires-Dist: mkdocstrings-python-legacy==0.2.4 ; extra == "docs"
34
- Requires-Dist: pint>=0.21.1,<1 ; extra == "mappings" and ( python_version<'3.9')
35
- Requires-Dist: pint>=0.24,<1 ; extra == "mappings" and ( python_version>='3.9')
36
- Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "mappings"
37
+ Requires-Dist: tripper[units] ; extra == "mappings"
37
38
  Requires-Dist: pre-commit==4.0.1 ; extra == "pre-commit"
38
- Requires-Dist: pylint==2.15.5 ; extra == "pre-commit"
39
- Requires-Dist: tripper[testing-core, mappings, datadoc] ; extra == "testing"
39
+ Requires-Dist: pylint==3.3.4 ; extra == "pre-commit"
40
+ Requires-Dist: tripper[datadoc, mappings, testing-core] ; extra == "testing"
40
41
  Requires-Dist: dlite-python>=0.5.27 ; extra == "testing" and ( python_version>='3.8')
41
42
  Requires-Dist: emmontopy>=0.5.0,<0.7.1 ; extra == "testing" and ( python_version<'3.13')
42
43
  Requires-Dist: graphviz>=0.20.1,<0.20.2 ; extra == "testing"
43
44
  Requires-Dist: numpy<2.1.0 ; extra == "testing" and ( python_version>='3.13')
44
45
  Requires-Dist: rdflib>=6.3.0,<7.0.0 ; extra == "testing"
45
46
  Requires-Dist: sparqlwrapper>=2.0.0,<2.0.1 ; extra == "testing"
46
- Requires-Dist: pytest==7.4.4 ; extra == "testing-core"
47
- Requires-Dist: pytest-cov==4.1.0 ; extra == "testing-core"
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"
48
53
  Project-URL: Changelog, https://github.com/EMMC-ASBL/tripper/blob/master/CHANGELOG.md
49
54
  Project-URL: Documentation, https://EMMC-ASBL.github.io/tripper
50
55
  Project-URL: Home, https://github.com/EMMC-ASBL/tripper
@@ -58,17 +63,20 @@ Provides-Extra: mappings
58
63
  Provides-Extra: pre-commit
59
64
  Provides-Extra: testing
60
65
  Provides-Extra: testing-core
66
+ Provides-Extra: units
61
67
 
62
- Tripper
63
- =======
64
- *Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends.*
65
-
68
+ <img src="docs/figs/tripper_logo.svg" alt="Tripper logo" align="right" width="96" height="96">
66
69
 
67
70
  [![PyPI](https://img.shields.io/pypi/v/tripper?logo=pypi)](https://pypi.org/project/tripper)
68
71
  [![Documentation](https://img.shields.io/badge/documentation-informational?logo=github)](https://emmc-asbl.github.io/tripper/latest/)
69
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)
70
73
  [![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)
71
74
 
75
+ *Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends*
76
+
77
+
78
+ Tripper
79
+ =======
72
80
 
73
81
  Getting started
74
82
  ---------------
@@ -104,6 +112,7 @@ Sub-packages
104
112
  Additional functionality beyond interfacing triplestore backends is provided by specialised sub-package:
105
113
 
106
114
  * [tripper.datadoc]: An API for data documentation.
115
+ * [tripper.units]: Working with units and quantities defined in ontologies.
107
116
  * [tripper.mappings]: Traverse mappings stored in the triplestore and find possible mapping routes.
108
117
  * [tripper.convert]: Convert between RDF and other data representations.
109
118
 
@@ -163,6 +172,7 @@ We gratefully acknowledge the following projects for supporting the development
163
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.
164
173
  - MEDIATE (2022-2025) that receives funding from the RCN, Norway; FNR, Luxenburg; SMWK Germany via the M-era.net programme, project 9557,
165
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.
166
176
 
167
177
 
168
178
 
@@ -172,6 +182,7 @@ We gratefully acknowledge the following projects for supporting the development
172
182
  [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
173
183
  [tripper.datadoc]: https://emmc-asbl.github.io/tripper/latest/datadoc/introduction/
174
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/
175
186
  [tripper.convert]: https://emmc-asbl.github.io/tripper/latest/api_reference/convert/convert/
176
187
  [Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
177
188
  [MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
@@ -1,13 +1,15 @@
1
- Tripper
2
- =======
3
- *Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends.*
4
-
1
+ <img src="docs/figs/tripper_logo.svg" alt="Tripper logo" align="right" width="96" height="96">
5
2
 
6
3
  [![PyPI](https://img.shields.io/pypi/v/tripper?logo=pypi)](https://pypi.org/project/tripper)
7
4
  [![Documentation](https://img.shields.io/badge/documentation-informational?logo=github)](https://emmc-asbl.github.io/tripper/latest/)
8
5
  [![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)
9
6
  [![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)
10
7
 
8
+ *Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends*
9
+
10
+
11
+ Tripper
12
+ =======
11
13
 
12
14
  Getting started
13
15
  ---------------
@@ -43,6 +45,7 @@ Sub-packages
43
45
  Additional functionality beyond interfacing triplestore backends is provided by specialised sub-package:
44
46
 
45
47
  * [tripper.datadoc]: An API for data documentation.
48
+ * [tripper.units]: Working with units and quantities defined in ontologies.
46
49
  * [tripper.mappings]: Traverse mappings stored in the triplestore and find possible mapping routes.
47
50
  * [tripper.convert]: Convert between RDF and other data representations.
48
51
 
@@ -102,6 +105,7 @@ We gratefully acknowledge the following projects for supporting the development
102
105
  - [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.
103
106
  - MEDIATE (2022-2025) that receives funding from the RCN, Norway; FNR, Luxenburg; SMWK Germany via the M-era.net programme, project 9557,
104
107
  - [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.
108
+ - [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.
105
109
 
106
110
 
107
111
 
@@ -111,6 +115,7 @@ We gratefully acknowledge the following projects for supporting the development
111
115
  [Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
112
116
  [tripper.datadoc]: https://emmc-asbl.github.io/tripper/latest/datadoc/introduction/
113
117
  [tripper.mappings]: https://emmc-asbl.github.io/tripper/latest/api_reference/mappings/mappings/
118
+ [tripper.units]: https://emmc-asbl.github.io/tripper/latest/units/units/
114
119
  [tripper.convert]: https://emmc-asbl.github.io/tripper/latest/api_reference/convert/convert/
115
120
  [Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
116
121
  [MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
@@ -0,0 +1,3 @@
1
+ # context
2
+
3
+ ::: tripper.datadoc.context
@@ -0,0 +1,3 @@
1
+ # errors
2
+
3
+ ::: tripper.datadoc.errors
@@ -0,0 +1,3 @@
1
+ # keywords
2
+
3
+ ::: tripper.datadoc.keywords
@@ -0,0 +1,3 @@
1
+ # session
2
+
3
+ ::: tripper.session
@@ -0,0 +1 @@
1
+ title: "units"
@@ -0,0 +1,3 @@
1
+ # units
2
+
3
+ ::: tripper.units.units
@@ -22,7 +22,8 @@ When your package is installed, this would make `mybackend1` and `mybackend2` au
22
22
 
23
23
  ```python
24
24
  >>> from tripper import Triplestore
25
- >>> ts = Triplestore(backend="mybackend1")
25
+ >>> ts = Triplestore(backend="mybackend1") # doctest: +SKIP
26
+
26
27
  ```
27
28
 
28
29
 
@@ -38,10 +39,10 @@ An explicit module path can either be absolute or relative as shown in the examp
38
39
 
39
40
  ```
40
41
  # Absolute
41
- >>> ts = Triplestore(backend="mypackage.backends.mybackend")
42
+ ts = Triplestore(backend="mypackage.backends.mybackend")
42
43
 
43
44
  # Relative to the `package` argument
44
- >>> ts = Triplestore(backend="backends.mybackend", package="mypackage")
45
+ ts = Triplestore(backend="backends.mybackend", package="mypackage")
45
46
  ```
46
47
 
47
48
  A backend is considered to be specified explicitly if the `backend` argument contain a dot (.) or if the `package` argument is provided.
@@ -13,7 +13,7 @@ Tripper already include a default list of [predefined prefixes].
13
13
  Additional prefixed can be provided in two ways.
14
14
 
15
15
  ### With the `prefixes` argument
16
- Several functions in the API (like [save_dict()], [as_jsonld()] and [TableDoc.parse_csv()]) takes a `prefixes` argument with which additional namespace prefixes can provided.
16
+ Several functions in the API (like [save_dict()], [told()] and [TableDoc.parse_csv()]) takes a `prefixes` argument with which additional namespace prefixes can provided.
17
17
 
18
18
  This may be handy when used from the Python API.
19
19
 
@@ -188,29 +188,29 @@ The content of the triplestore should now be
188
188
  ```python
189
189
  >>> print(ts.serialize())
190
190
  @prefix chameo: <https://w3id.org/emmo/domain/characterisation-methodology/chameo#> .
191
+ @prefix dcat: <http://www.w3.org/ns/dcat#> .
191
192
  @prefix kb: <http://example.com/kb#> .
192
193
  @prefix myonto: <http://example.com/myonto#> .
193
- @prefix owl: <http://www.w3.org/2002/07/owl#> .
194
194
  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
195
195
  <BLANKLINE>
196
- kb:sampleA a owl:NamedIndividual,
196
+ kb:sampleA a dcat:Resource,
197
197
  chameo:Sample ;
198
198
  myonto:fromBatch kb:batch1 .
199
199
  <BLANKLINE>
200
- kb:sampleB a owl:NamedIndividual,
200
+ kb:sampleB a dcat:Resource,
201
201
  chameo:Sample ;
202
202
  myonto:fromBatch kb:batch1 .
203
203
  <BLANKLINE>
204
- kb:sampleC a owl:NamedIndividual,
204
+ kb:sampleC a dcat:Resource,
205
205
  chameo:Sample ;
206
206
  myonto:fromBatch kb:batch2 .
207
207
  <BLANKLINE>
208
208
  kb:batch2 a myonto:Batch,
209
- owl:NamedIndividual ;
209
+ dcat:Resource ;
210
210
  myonto:batchNumber 2 .
211
211
  <BLANKLINE>
212
212
  kb:batch1 a myonto:Batch,
213
- owl:NamedIndividual ;
213
+ dcat:Resource ;
214
214
  myonto:batchNumber 1 .
215
215
  <BLANKLINE>
216
216
  <BLANKLINE>
@@ -243,7 +243,7 @@ Instead, the list of available resource types should be stored and retrieved fro
243
243
  [predefined keywords]: keywords.md
244
244
  [default context]: https://raw.githubusercontent.com/EMMC-ASBL/tripper/refs/heads/master/tripper/context/0.2/context.json
245
245
  [save_dict()]: ../api_reference/datadoc/dataset.md#tripper.datadoc.dataset.save_dict
246
- [as_jsonld()]: ../api_reference/datadoc/dataset.md#tripper.datadoc.dataset.as_jsonld
246
+ [told()]: ../api_reference/datadoc/dataset.md#tripper.datadoc.dataset.told
247
247
  [save_datadoc()]: ../api_reference/datadoc/dataset.md#tripper.datadoc.dataset.save_datadoc
248
248
  [TableDoc]: ../api_reference/datadoc/tabledoc.md/#tripper.datadoc.tabledoc.TableDoc
249
249
  [TableDoc.parse_csv()]: ../api_reference/datadoc/tabledoc.md/#tripper.datadoc.tabledoc.TableDoc.parse_csv