Skip to content

Validate Knowledge Graph¤

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.

Start a graph validation process which verifies, that resources in a specific graph are valid according to the node shapes in a shape catalog graph.

Parameter¤

Context Graph¤

This graph holds the resources you want to validate.

  • ID: context_graph
  • Datatype: string
  • Default Value: None

Shape graph¤

This graph holds the shapes you want to use for validation.

  • ID: shape_graph
  • Datatype: string
  • Default Value: https://vocab.eccenca.com/shacl/

Result graph¤

In this graph, the validation results are materialized. If left empty, results are not materialized.

  • ID: result_graph
  • Datatype: string
  • Default Value: None

Clear result graph before validation¤

  • ID: clear_result_graph
  • Datatype: boolean
  • Default Value: false

Fail workflow on violations¤

  • ID: fail_on_violations
  • Datatype: boolean
  • Default Value: false

Output violations as entities¤

  • ID: output_results
  • Datatype: boolean
  • Default Value: true

Advanced Parameter¤

Resource Selection Query¤

The query to select the resources to validate. Use {{context_graph}} as a placeholder for the select context graph for validation.

  • ID: sparql_query
  • Datatype: code-sparql
  • Default Value:
    SELECT DISTINCT ?resource
    FROM <{{context_graph}}>
    WHERE { ?resource a ?class . FILTER isIRI(?resource) }
    

Comments