Skip to content

SHACL validation with pySHACL¤

Python Plugin

This operator is part of a Python Plugin Package. In order to use it, you need to install it, e.g. with cmemc.

Performs SHACL validation with pySHACL. Select a Data graph and a SHACL shapes graph to get started. The plugin can output Entities, and/or produce a more detailed Validation graph by specifying a Validation graph URI. Additional configuration parameters can be set to control the output generated by the plugin. Refer to each parameter description for details.

Parameter¤

Data graph URI¤

The URI of the graph to be validated. The graph URI is selected from a list of graphs of types void:Dataset, shui:ShapeCatalog, owl:Ontology and dsm:ThesaurusProject.

  • Datatype: string
  • Default Value: None

SHACL shapes 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.

  • Datatype: string
  • Default Value: None

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.

  • Datatype: string
  • Default Value: None

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.

  • Datatype: boolean
  • 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.

  • Datatype: string
  • Default Value: None

Output entities¤

If enabled, the plugin outputs the validation results as entities and can be connected to, for instance, a CSV dataset to produce a results table.

  • Datatype: boolean
  • Default Value: false

Clear validation graph¤

If enabled, the validation graph is cleared before workflow execution.

  • Datatype: boolean
  • Default Value: true

Resolve owl:imports¤

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

  • Datatype: boolean
  • Default Value: true

Blank node skolemization¤

If enabled, blank nodes in the validation graph are skolemized into URIs.

  • Datatype: boolean
  • Default Value: true

Add labels¤

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

  • Datatype: boolean
  • Default Value: true

Add labels to focus nodes and values¤

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.

  • Datatype: boolean
  • 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.

  • Datatype: boolean
  • Default Value: false

Meta-SHACL¤

If enabled, the SHACL shapes graph is validated against the SHACL-SHACL shapes graph before validating the data graph.

  • Datatype: boolean
  • Default Value: false

Inference¤

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

  • Datatype: string
  • Default Value: none

SHACL advanced features¤

Enable SHACL advanced features.

  • Datatype: boolean
  • Default Value: false

SHACL-JS features¤

Enable SHACL-JS features.

  • Datatype: boolean
  • Default Value: false

Remove graph type http://rdfs.org/ns/void#Dataset from data graph¤

Before validating, remove the triple <data_graph_uri> a <http://rdfs.org/ns/void#Dataset> from the in-memory data graph.

  • Datatype: boolean
  • Default Value: false

Remove graph type https://vocab.eccenca.com/dsm/ThesaurusProject from data graph¤

Before validating, remove the triple <data_graph_uri> a <https://vocab.eccenca.com/dsm/ThesaurusProject> from the in-memory data graph.

  • Datatype: boolean
  • Default Value: false

Remove graph type https://vocab.eccenca.com/shui/ShapeCatalog from data graph¤

Before validating, remove the triple <data_graph_uri> a <https://vocab.eccenca.com/shui/ShapeCatalog> from the in-memory data graph.

  • Datatype: boolean
  • Default Value: false

Specify a custom max-evaluation-depth¤

specify a custom max-evaluation-depth. If you find yourself with a legitimate use case, and you are certain you need to increase this limit, and you are cetain you know what you are doing.

  • Datatype: Long
  • Default Value: 15

Comments