Skip to content

Commit

Permalink
add SHACL-JS option
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Nov 15, 2024
1 parent 66f91bc commit 6149745
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .idea/cmem-plugin-pyshacl.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)


## [unreleased]

### Added

- Option to enable SHACL-JS Features

## [5.0.2] 2024-11-13

### Fixed
Expand Down
13 changes: 12 additions & 1 deletion cmem_plugin_pyshacl/plugin_pyshacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,15 @@ def langfilter(lbl: Literal) -> bool: # noqa: ARG001
param_type=BoolParameterType(),
name="advanced",
label="SHACL Advanced Features",
description="Enable SHACL Advanced Features.",
description="Enable SHACL advanced features.",
default_value=False,
advanced=True,
),
PluginParameter(
param_type=BoolParameterType(),
name="js",
label="SHACL-JS Features",
description="Enable SHACL-JS features.",
default_value=False,
advanced=True,
),
Expand Down Expand Up @@ -325,6 +333,7 @@ def __init__( # noqa: PLR0913
meta_shacl: bool = False,
inference: str = "none",
advanced: bool = False,
js: bool = False,
remove_dataset_graph_type: bool = False,
remove_thesaurus_graph_type: bool = False,
remove_shape_catalog_graph_type: bool = False,
Expand All @@ -345,6 +354,7 @@ def __init__( # noqa: PLR0913
self.meta_shacl = meta_shacl
self.inference = inference
self.advanced = advanced
self.js = js
self.remove_dataset_graph_type = remove_dataset_graph_type
self.remove_thesaurus_graph_type = remove_thesaurus_graph_type
self.remove_shape_catalog_graph_type = remove_shape_catalog_graph_type
Expand Down Expand Up @@ -633,6 +643,7 @@ def execute( # noqa: C901
meta_shacl=self.meta_shacl,
inference=self.inference,
advanced=self.advanced,
js=self.js,
max_validation_depth=self.max_validation_depth,
inplace=True,
)
Expand Down
Loading

0 comments on commit 6149745

Please sign in to comment.