Skip NodeShape initialization and target definition if previously added
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.