Hi,

I am not aware of anything in the SHACL specs discouraging cycles in shapes, but the jena SHACL parser warns about it:

10.12.20 13:53:11.460 [main] WARN SHACL - Cycle detected : node <https://example.com/test/PersonShape>

for this minimal example:

@prefix ex:       <https://example.com/test/> .
@prefix sh:   <http://www.w3.org/ns/shacl#> .

ex:PersonShape
    a sh:NodeShape;
    sh:targetClass ex:Person ;
    sh:property [ sh:path ex:mother ;
                sh:node ex:PersonShape ] .

ex:alice a ex:Person .

ex:bob a ex:Person ;
    ex:mother ex:alice .


Is that intended behaviour? Does that mean we should try to get rid of any cycles?
Or, alternatively, could we lower the loglevel on this one?

Cheers,
Florian

Reply via email to