Ah, very clever! I didn't think of using the sh:path side instead.

Steve




On Tue, Mar 1, 2022 at 1:14 PM Holger Knublauch <hol...@topquadrant.com>
wrote:

> Yes your observation is correct. In this case you can formulate it the
> other way around, with the expression as sh:path and hasDomain as
> sh:equals. Or, of course, use SPARQL directly.
>
> But a SHACL 1.1 WG will almost certainly generalise this to allow paths in
> both places. (And it would rename the property to sh:equalProperty because
> many users misinterpret the name).
>
> Holger
>
>
>
> On 2 Mar 2022, at 4:47 am, Steve Ray <st...@steveray.com> wrote:
>
> I was trying to use sh:equals in a property shape as follows:
>
>    sh:property [
>        sh:path s223:hasDomain ;
>        sh:class s223:Domain ;
>        sh:maxCount 1 ;
>        sh:minCount 1 ;
>        sh:equals ( s223:isContainedIn s223:hasDomain ) ;
>      ] ;
>
> ...and discovered to my disappointment that I cannot use a property path
> as the value of sh:equals. I do see that the SHACL spec says it must be an
> IRI, but it seems so natural to be able to validate using a property path
> here. Was there a reason it is limited to an IRI?
>
> Steve
>
>
>
> --
> 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 topbraid-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/CAGUep85b3A-j%3DfjJSYNUpjbSsr9Ge4ffNO5DqcNuBJv4HBmn1Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/topbraid-users/CAGUep85b3A-j%3DfjJSYNUpjbSsr9Ge4ffNO5DqcNuBJv4HBmn1Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> 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 topbraid-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/D63F9A4D-B965-4DA2-BCAD-9D195E19AD3D%40topquadrant.com
> <https://groups.google.com/d/msgid/topbraid-users/D63F9A4D-B965-4DA2-BCAD-9D195E19AD3D%40topquadrant.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/CAGUep87Aa66kSprDxnHUaioeDOmHMqaWUMk2gOmgjb5NdL%3DfdQ%40mail.gmail.com.

Reply via email to