rdf-ext / shacl-engine

A fast RDF/JS SHACL engine
MIT License
30 stars 0 forks source link

count of sh:qualifiedValueShape without sh:qualifiedValueShapesDisjoint incorrect #8

Closed bergos closed 10 months ago

bergos commented 10 months ago

Count of sh:qualifiedValueShape without sh:qualifiedValueShapesDisjoint incorrect

The count of sh:sh:qualifiedValueShape is incorrect if it's used without sh:qualifiedValueShapesDisjoint. The following example should conform, but the report says the count is 0.

Shape:

@prefix ex: <http://example.org/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix sh: <http://www.w3.org/ns/shacl#>.

ex:citizenOwnsHouseShape a sh:NodeShape;
  sh:property ex:ownsHouseShape;
  sh:targetClass ex:Citizen.

ex:isHouseShape
  sh:class ex:House.

ex:ownsHouseShape
  sh:path ex:owns;
  sh:qualifiedMinCount 1;
  sh:qualifiedValueShape ex:isHouseShape.

Date:

@prefix ex: <http://example.org/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.

ex:citizen-a a ex:Citizen;
  ex:owns ex:HouseA.

ex:HouseA a ex:House.

Thanks @benjaminaaron for reporting