eclipse-rdf4j / rdf4j

Eclipse RDF4J: scalable RDF for Java
https://rdf4j.org/
BSD 3-Clause "New" or "Revised" License
365 stars 163 forks source link

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

Open hmottestad opened 1 month ago

hmottestad commented 1 month ago

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".
}