On 9/06/2020 17:04, Simon Cox wrote:
Is it possible in SHACL to test if an IRI matches a pattern (e.g. contains a substring). `sh:pattern` is restricted to string-literals.

sh:pattern should work. See https://www.w3.org/TR/shacl/#PatternConstraintComponent it uses the equivalent of the str(?valueNode) function so it will convert URI nodes to strings before applying the regex.

Holger


In SPARQL you can cast an IRI to a string to manipulate or match it. Is there a native way in SHACL to do this?
--
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/69e03c16-9790-4d44-98ba-b5ca0b9cefado%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/69e03c16-9790-4d44-98ba-b5ca0b9cefado%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/a3657636-57dd-f9c2-4844-27a9bad972e0%40topquadrant.com.

Reply via email to