String without the notion of a character #43

Closed
r12a opened this Issue Mar 16, 2017 · 4 comments

Comments

Projects
None yet
3 participants

r12a commented Mar 16, 2017

[comment from @fsasaki ]
5. On string-based constraints components This section
http://w3c.github.io/data-shapes/shacl/#core-components-string

defines the length of a string, without the notion of a character.

Probably the implementations will just rely on SPARQL 1.1. here as well, but this should be pointed out explicitly, see the language matching comment.

[additional comment from i18n telecon]
Don't base 'character' on 16-bit code units. Use Unicode code points.

r12a added the i18n-comment label Mar 16, 2017

r12a referenced this issue in w3c/i18n-activity Mar 16, 2017

Open

String without the notion of a character #373

Contributor

HolgerKnublauch commented Mar 17, 2017

In the textual definitions of sh:maxLength and sh:minLength, we do have hyperlinks to the SPARQL 1.1 str function, which handles this. Again, I am not convinced that anything else needs to be said here, and welcome group discussion.

fsasaki commented Mar 18, 2017

I guess you mean the hyperlink in this sentence.

For each value node v where the length of the string representation of v (as defined by the SPARQL str function) is greater than $maxLength, or where v is a blank node, there is a validation result with v as sh:value.

I would see a value in making the notion of a string more explicit. See also the additional comment

Don't base 'character' on 16-bit code units. Use Unicode code points.

Contributor

HolgerKnublauch commented Mar 22, 2017

We have added a reference to the SPARQL STRLEN function to clarify the semantics, see https://www.w3.org/2017/03/22-shapes-minutes.html#item04

fsasaki commented Mar 22, 2017

IMO looks good, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment