- From: Andy Seaborne via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Feb 2025 16:04:18 +0000
- To: public-shacl@w3.org
afs has just created a new issue for https://github.com/w3c/data-shapes: == sh:pattern does not allow testing IRIs == > `sh:pattern` is defined by: > > > The values of `sh:pattern` in a shape are valid pattern arguments for the [SPARQL REGEX function](https://www.w3.org/TR/sparql11-query/#func-regex). > > Right. And the first argument is a defined as literal. > > ```sparql > # this is valid > BIND(regex(str(<>), 'foo') as ?foo) > > # but this is not > BIND(regex(<>, 'foo') as ?foo) > ``` _Originally posted by @tpluscode in [#228](https://github.com/w3c/data-shapes/issues/228#issuecomment-2637039780)_ > Isn't this highlighted line a test of `sh:pattern` against an IRI ... > > https://github.com/w3c/data-shapes/blob/380d4ee454cb7c2b3426754a343c1927dba4509b/data-shapes-test-suite/tests/core/node/pattern-001.ttl#L15 > > and this line the corresponding XFAIL result? > > https://github.com/w3c/data-shapes/blob/380d4ee454cb7c2b3426754a343c1927dba4509b/data-shapes-test-suite/tests/core/node/pattern-001.ttl#L41 _Originally posted by @ajnelson-nist in [#228](https://github.com/w3c/data-shapes/issues/228#issuecomment-2637163242)_ Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/230 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 February 2025 16:04:19 UTC