[data-shapes] filtering on a class based target (#522)

sfolsom has just created a new issue for https://github.com/w3c/data-shapes:

== filtering on a class based target ==
I was looking to define a class target more narrowly based on a particular value of a particular property, and there doesn't seem to be a built in way in SHACL to do this. Then I came across https://www.w3.org/TR/shacl-af/, and I'm exploring sh:filterShape. I'm wondering if the following is valid SHACL.

:EBooksShape a sh:NodeShape ;
  sh:targetClass ex:Publication;
  sh:filterShape [
      sh:property [
        sh:path ex:carrier
        sh:value :Electronic
      ]
    ]

The use case is to define separate targets using the ex:Publication class, one for when the ex:carrier value is :Electronic, and one for when the value is :Print.

Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/522 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 21 August 2025 14:52:28 UTC