Skip to main content

Validate your Knowledge Graphs based on tests generated from SHACL shapes.

Project description

cmem-plugin-pyshacl

This is a plugin for eccenca Corporate Memory plugin performing SHACL validation with pySHACL.

Installation

cmemc admin workspace python install cmem-plugin-pyshacl

Options

Data graph URI

The URI of the graph to be validated. The graph URI is selected from a list of graphs of types:

  • di:Dataset
  • dsm:ThesaurusProject
  • owl:Ontology
  • shui:ShapeCatalog
  • void:Dataset

SHACL graph URI

The URI of the graph containing the SHACL shapes to be validated against. The graph URI is selected from a list of graphs of type shui:ShapeCatalog.

Generate validation graph

If enabled, the validation graph is posted to the CMEM instance with the graph URI specified with the validation graph URI option. Default value: false.

Validation graph URI

If the generate validation graph option is enabled the validation graph is posted to the CMEM instance with this graph URI.

Output entities

If enabled, the plugin outputs the validation results and can be connected to, for instance, a CSV dataset to produce a results table. Default value: false.

Clear validation graph

If enabled, the validation graph is cleared before workflow execution. Default value: true.

Advanced Options

Resolve owl:imports

If enabled, the graph tree defined with owl:imports in the data graph is resolved. Default value: true.

Blank node skolemization

If enabled, blank nodes in the validation graph are skolemized into URIs. Default value: true.

Add labels

If enabled, rdfs:label triples are added to the validation graph for instances of sh:ValidationReport and sh:ValidationResult. Default value: true.

Add labels from data and SHACL graphs

If enabled along with the add labels option, rdfs:label triples are added for the focus nodes, values and SHACL shapes in the validation graph. The labels are taken from the specified data and SHACL graphs. Default value: false.

Add shui:conforms flag to focus node resources

If enabled, shui:conforms false triples are added to the focus nodes in the validation graph. Default value: false.

Meta-SHACL

If enabled, the SHACL shapes graph is validated against the SHACL-SHACL shapes graph before validating the data graph. Default value: false.

Ontology graph URI

The URI of a graph containing extra ontological information. RDFS and OWL definitions from this are used to inoculate the data graph. The graph URI is selected from a list of graphs of type owl:Ontology.

Inference

If enabled, OWL inferencing expansion of the data graph is performed before validation. Options are RDFS, OWLRL, Both, None. Default value: None.

Advanced

Enable SHACL Advanced Features. Default value: false.

Parameter Input

In order to set options via the input the following parameter names can be used:

Option Name
Data graph URI data_graph_uri
SHACL graph URI shacl_graph_uri
Generate validation graph generate_graph
Validation graph URI validation_graph_uri
Output entities output_entities
Clear validation graph clear_validation_graph
Resolve owl:imports owl_imports
Blank node skolemization skolemize
Add labels add_labels
Add labels from data and SHACL graphs include_graphs_labels
Add shui:conforms flag to focus node resources add_shui_conforms
Meta-SHACL meta_shacl
Ontology graph URI ontology_graph_uri
Inference inference
Advanced advanced

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmem_plugin_pyshacl-4.2.0rc4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

cmem_plugin_pyshacl-4.2.0rc4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file cmem_plugin_pyshacl-4.2.0rc4.tar.gz.

File metadata

  • Download URL: cmem_plugin_pyshacl-4.2.0rc4.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.17 Linux/5.15.0-1041-azure

File hashes

Hashes for cmem_plugin_pyshacl-4.2.0rc4.tar.gz
Algorithm Hash digest
SHA256 c785f20e94f42ef620293daa183a565933403f31df6be2029485decde0715cd8
MD5 480a0052d8000dc26ba33fa55d1266ef
BLAKE2b-256 09a993d1fc5723bace7901d34d1787c36d16bac0f96a87f1b9e27b73eaab8654

See more details on using hashes here.

File details

Details for the file cmem_plugin_pyshacl-4.2.0rc4-py3-none-any.whl.

File metadata

File hashes

Hashes for cmem_plugin_pyshacl-4.2.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6e8d9c7a96a0d2e0b85803b42869f938cde49a3a3e2a25fbba555737afa612
MD5 044568bc7a4c6323b7f5dadf33f52c2e
BLAKE2b-256 7d8f7796af15b18ccf3878d1cedd72a2884d31ffbc68008a130d5fb5f157e0ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page