Yes, sh:values rules can access other properties that are also computed via
sh:values. But for this to work, you are limited to using
sh:path ex:someInferredProperty
no path expressions like alternativePath will work for those. I guess you could
try to express this via https://w3c.github.io/shacl/shacl-af/#union
Holger
> On 26 Apr 2023, at 5:54 pm, [email protected] <[email protected]>
> wrote:
>
> So I have written a few sh:values rules that count how many values of
> particular property shapes exist in a graph:
>
> <Screenshot 2023-04-26 094626.jpg>
>
> These are all powered by simple sh:values statements, like this:
>
> sh:values [
> sh:count [
> sh:path enterprise_schemas:whatIs ;
> ] ;
> ] ;
>
> Now I want to count how many of those property shapes are currently returning
> "0" as a value -- in this example, the expected count would be 1 -- and
> return that as the value of an additional property shape, ex:gapCount.
>
> Can we do this with SHACL? It seems like it should be possible. I've played
> around with various combinations of sh:count, sh:alternativePath, and so on,
> but haven't hit upon a way that works and would love some advice.
>
> Carl
>
>
> --
> The topics of this mailing list include TopBraid EDG and related technologies
> such as SHACL.
> To post to this group, send email to [email protected]
> ---
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/2e4d286a-4d79-4abd-ae9c-5c9e456c4130n%40googlegroups.com
>
> <https://groups.google.com/d/msgid/topbraid-users/2e4d286a-4d79-4abd-ae9c-5c9e456c4130n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <Screenshot 2023-04-26 094626.jpg>
--
The topics of this mailing list include TopBraid EDG and related technologies
such as SHACL.
To post to this group, send email to [email protected]
---
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/76E394E8-0EEF-4E33-8D9E-594C6D919A90%40topquadrant.com.