Skip to content

Skip NodeShape initialization and target definition if previously added

Nicola Stoira requested to merge issue-17 into master

The idea is to execute

shapesGraph.add((shape_uri, RDF.type, SHACL.NodeShape))
shapesGraph.add((shape_uri, SHACL.severity, SHACL.Info))
define_target_class(class_element=class_element, shapesGraph=shapesGraph, shapeURI=shape_uri, exceptionsByClass=exceptionsByClass)

only if (shape_uri, RDF.type, SHACL.NodeShape) is not already in the shapesGraph. This avoids having duplicated targets.

Merge request reports