The short answer is no, sh:paths cannot be dynamic. Your use case can be covered by SHACL-SPARQL though.

Holger


On 28/08/2020 01:12, Angelo Frozza wrote:
Hi all,

I want to know if SHACL allows defining a pattern for values in the  sh:path element, for example, something like:

  sh:property [
       sh:path ex:name??? ;
       sh:node xsd:string;
    ].
Where the part "???"  is dynamic.

This property could validate data graphs as:

ex:name01 "John"; #OK
ex:name02 "Mary; #OK
ex:name03 120;    #ERR

Hugs,

Angelo
--
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 <mailto:topbraid-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/b1635683-c6f5-4991-a69e-9e1c1d56203dn%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/b1635683-c6f5-4991-a69e-9e1c1d56203dn%40googlegroups.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/02c0172c-e99e-0d87-40fa-b4664136ac62%40topquadrant.com.

Reply via email to