rdf4j icon indicating copy to clipboard operation
rdf4j copied to clipboard

SHACL - validation of sh:qualifiedMaxCount may sometimes not when a statement matching the path is added

Open hmottestad opened this issue 1 year ago • 0 comments

Shape

rdf4j:SHACLShapeGraph {
  ex:PersonShape a sh:NodeShape;
    sh:targetClass ex:Person;
    sh:property [
        sh:path ex:name;
		sh:qualifiedValueShape [sh:datatype xsd:string ; ] ;
		sh:qualifiedMaxCount 1 ;
      ] .
}

Initial data

ex:person1 a ex:Person ;
    ex:name "en val"@en, "whatever" .

SPARQL update

INSERT DATA {
    ex:person1 ex:name  "other".
}

hmottestad avatar Sep 30 '24 07:09 hmottestad