Loading Pipfile +1 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ jinja2 = "*" dominate = "*" markdown = "*" pygments = "*" beautifulsoup4 = "*" [dev-packages] pytest = "*" Pipfile.lock +26 −1 Original line number Diff line number Diff line { "_meta": { "hash": { "sha256": "fcc4505ca4139dc762204a1d5d5b1b2c93fb4ba7f7f8458e3d1fbc907544e8bf" "sha256": "3ea1c1b66331595be357927e997c45458818799398be5d0a76d74775b8dec1c4" }, "pipfile-spec": 6, "requires": {}, Loading @@ -14,6 +14,15 @@ ] }, "default": { "beautifulsoup4": { "hashes": [ "sha256:9bbbb14bfde9d79f38b8cd5f8c7c85f4b8f2523190ebed90e950a8dea4cb1c4b", "sha256:dbb3c4e1ceae6aefebdaf2423247260cd062430a410e38c66f2baa50a8437195" ], "index": "pypi", "markers": "python_full_version >= '3.7.0'", "version": "==4.13.4" }, "certifi": { "hashes": [ "sha256:2e0c7ce7cb5d8f8634ca55d2ba7e6ec2689a2fd6537d8dec1296a477a4910057", Loading Loading @@ -456,6 +465,22 @@ "markers": "python_version >= '3.7'", "version": "==5.0.2" }, "soupsieve": { "hashes": [ "sha256:6e60cc5c1ffaf1cebcc12e8188320b72071e922c2e897f737cadce79ad5d30c4", "sha256:ad282f9b6926286d2ead4750552c8a6142bc4c783fd66b0293547c8fe6ae126a" ], "markers": "python_version >= '3.8'", "version": "==2.7" }, "typing-extensions": { "hashes": [ "sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36", "sha256:d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76" ], "markers": "python_version >= '3.9'", "version": "==4.14.1" }, "urllib3": { "hashes": [ "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", Loading saref_pypeline/_logging.py 0 → 100644 +10 −0 Original line number Diff line number Diff line import logging TRACE_LEVEL = 5 logging.addLevelName(TRACE_LEVEL, "TRACE") def trace(self, message, *args, **kwargs): if self.isEnabledFor(TRACE_LEVEL): self._log(TRACE_LEVEL, message, args, **kwargs) logging.Logger.trace = trace No newline at end of file saref_pypeline/checkers/BaseChecker.py +2 −0 Original line number Diff line number Diff line Loading @@ -46,3 +46,5 @@ class BaseChecker: if not any(isinstance(h, FirstEventHandler) for h in self.logger.handlers): self.logger.addHandler(FirstEventHandler(f"""{'#'*nb_hash} Issues in {self.project_version} w.r.t. {self.display_name}""")) def __str__(self): return self.logger.name saref_pypeline/checkers/BaseGraphDocumentSHACLChecker.py +3 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ from saref_pypeline.checkers import BaseGraphDocumentChecker from saref_pypeline.entities import SAREFGraphDocument import time from typing import TYPE_CHECKING from saref_pypeline.utils import skip_if_filtered if TYPE_CHECKING: from saref_pypeline.pipeline import SAREFPipeline Loading Loading @@ -50,6 +52,7 @@ class BaseGraphDocumentSHACLChecker(BaseGraphDocumentChecker): def update_shapes_graph(self, shapes_graph: Graph): pass @skip_if_filtered def check_clause(self): start_time = time.time() dataset = self.pipeline.dataset Loading Loading
Pipfile +1 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ jinja2 = "*" dominate = "*" markdown = "*" pygments = "*" beautifulsoup4 = "*" [dev-packages] pytest = "*"
Pipfile.lock +26 −1 Original line number Diff line number Diff line { "_meta": { "hash": { "sha256": "fcc4505ca4139dc762204a1d5d5b1b2c93fb4ba7f7f8458e3d1fbc907544e8bf" "sha256": "3ea1c1b66331595be357927e997c45458818799398be5d0a76d74775b8dec1c4" }, "pipfile-spec": 6, "requires": {}, Loading @@ -14,6 +14,15 @@ ] }, "default": { "beautifulsoup4": { "hashes": [ "sha256:9bbbb14bfde9d79f38b8cd5f8c7c85f4b8f2523190ebed90e950a8dea4cb1c4b", "sha256:dbb3c4e1ceae6aefebdaf2423247260cd062430a410e38c66f2baa50a8437195" ], "index": "pypi", "markers": "python_full_version >= '3.7.0'", "version": "==4.13.4" }, "certifi": { "hashes": [ "sha256:2e0c7ce7cb5d8f8634ca55d2ba7e6ec2689a2fd6537d8dec1296a477a4910057", Loading Loading @@ -456,6 +465,22 @@ "markers": "python_version >= '3.7'", "version": "==5.0.2" }, "soupsieve": { "hashes": [ "sha256:6e60cc5c1ffaf1cebcc12e8188320b72071e922c2e897f737cadce79ad5d30c4", "sha256:ad282f9b6926286d2ead4750552c8a6142bc4c783fd66b0293547c8fe6ae126a" ], "markers": "python_version >= '3.8'", "version": "==2.7" }, "typing-extensions": { "hashes": [ "sha256:38b39f4aeeab64884ce9f74c94263ef78f3c22467c8724005483154c26648d36", "sha256:d1e1e3b58374dc93031d6eda2420a48ea44a36c2b4766a4fdeb3710755731d76" ], "markers": "python_version >= '3.9'", "version": "==4.14.1" }, "urllib3": { "hashes": [ "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", Loading
saref_pypeline/_logging.py 0 → 100644 +10 −0 Original line number Diff line number Diff line import logging TRACE_LEVEL = 5 logging.addLevelName(TRACE_LEVEL, "TRACE") def trace(self, message, *args, **kwargs): if self.isEnabledFor(TRACE_LEVEL): self._log(TRACE_LEVEL, message, args, **kwargs) logging.Logger.trace = trace No newline at end of file
saref_pypeline/checkers/BaseChecker.py +2 −0 Original line number Diff line number Diff line Loading @@ -46,3 +46,5 @@ class BaseChecker: if not any(isinstance(h, FirstEventHandler) for h in self.logger.handlers): self.logger.addHandler(FirstEventHandler(f"""{'#'*nb_hash} Issues in {self.project_version} w.r.t. {self.display_name}""")) def __str__(self): return self.logger.name
saref_pypeline/checkers/BaseGraphDocumentSHACLChecker.py +3 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ from saref_pypeline.checkers import BaseGraphDocumentChecker from saref_pypeline.entities import SAREFGraphDocument import time from typing import TYPE_CHECKING from saref_pypeline.utils import skip_if_filtered if TYPE_CHECKING: from saref_pypeline.pipeline import SAREFPipeline Loading Loading @@ -50,6 +52,7 @@ class BaseGraphDocumentSHACLChecker(BaseGraphDocumentChecker): def update_shapes_graph(self, shapes_graph: Graph): pass @skip_if_filtered def check_clause(self): start_time = time.time() dataset = self.pipeline.dataset Loading