'SHACL rule to compare the count of something with a value of another property
Suppose I have data like:
ex:Bob a ex:Person ;
ex:follower ex:Jon ;
ex:follower ex:Alice;
ex:maxNumFollower 1.
I want to write a SHACL constraint that expresses that the number of the followers is less than or equal to the value of maxNumFollower. For instance here, we have two followers but the max is 1. So I want to raise a violation. Is this possible?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
