Quantcast
Channel: public-shacl Mail Archives
Viewing all articles
Browse latest Browse all 203

[data-shapes] sh:pattern does not allow testing IRIs (#230)

$
0
0
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

Viewing all articles
Browse latest Browse all 203

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>