This finds 3 pairs of shapes with the same localname (see ########), same SPARQL and similar description.
PREFIX afn: <http://jena.apache.org/ARQ/function#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
select ?shape ?descr ?sparql {
?x sh:select ?sparql.
?shape sh:sparql|sh:target ?x.
?shape sh:property?/sh:description ?descr
bind(afn:localname(?shape) as ?shapeLocalname)
values ?duplicate { #######
"DanglingReferences"
"IdentifiedObject.description-stringLength"
"IdentifiedObject.name-stringLength"
}
filter(?shapeLocalname=?duplicate)
}
Eliminate 3 duplicates
This finds 3 pairs of shapes with the same localname (see
########), same SPARQL and similar description.Eliminate 3 duplicates