Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat(excel-to-json): allow comments in class and property definitions (…
…#111) * Updating code to handle rdfs:comments in 4 languages in classe and property definition * Updating Excel examples to handle rdfs:comment in 4 languages * chore: add dependencies for python 3.10 compatibility * refactor: minor code changes * docs: update tooling documentation * docs: update documentation according to changes, add excel template files * chore: remove vars.mk * refactor: remove code smell * refactor: reduce code smell * test: add unit test for creating resources from excel
- Loading branch information
Showing
with
185 additions
and 93 deletions.
- +0 −2 Makefile
- +5 −3 README.md
- BIN docs/assets/images/img-properties-example.png
- BIN docs/assets/images/img-resources-example-1.png
- BIN docs/assets/templates/properties_template.xlsx
- BIN docs/assets/templates/resources_template.xlsx
- +6 −0 docs/dsp-tools-excel.md
- +27 −16 knora/dsplib/utils/excel_to_json_properties.py
- +70 −56 knora/dsplib/utils/excel_to_json_resources.py
- +0 −1 pyproject.toml
- +2 −0 requirements.txt
- +17 −9 test/unittests/BUILD.bazel
- +58 −0 test/unittests/test_excel_to_resource.py
- BIN testdata/Properties.xlsx
- BIN testdata/Resources.xlsx
- +0 −6 vars.mk
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,6 +1,5 @@ | ||
[tool.autopep8] | ||
max_line_length = 180 | ||
experimental = true | ||
|
||
[tool.mypy] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,30 +1,38 @@ | ||
# make the python rules available | ||
load("@rules_python//python:defs.bzl", "py_test") | ||
|
||
# make the dependencies from requirements.txt available | ||
load("@knora_py_deps//:requirements.bzl", "requirement") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
py_test( | ||
name = "test_langstring", | ||
srcs = ["test_langstring.py"], | ||
) | ||
|
||
py_test( | ||
name = "test_value", | ||
srcs = ["test_value.py"], | ||
deps = [ | ||
"//knora/dsplib/models:group", | ||
"//knora/dsplib/models:helpers", | ||
"//knora/dsplib/models:value", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "test_id_to_iri", | ||
srcs = ["test_id_to_iri.py"], | ||
data = [ | ||
"//testdata", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "test_excel_to_resource", | ||
srcs = ["test_excel_to_resource.py"], | ||
data = [ | ||
"//testdata", | ||
], | ||
) |
Oops, something went wrong.