- From: Eric Prud'hommeaux via GitHub <sysbot+gh@w3.org>
- Date: Sat, 23 Dec 2017 20:03:42 +0000
- To: public-shex-dev@w3.org
ericprud has just created a new issue for https://github.com/shexSpec/shex: == Token for "any language-tagged string" == I had an [action item](https://github.com/shexSpec/shex/blob/master/meetings/20171121-minutes.md#pending-actions) to draft a proposal for an intuitive token for "any language-tagged string". I ended up using `@~` instead of `@*` ([see shex.js example](http://rawgit.com/shexSpec/shex.js/langString-ATstar/doc/shex-simple.html?schema=PREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0A%0A%3C%23LangString%3E%20rdf%3AlangString%0A%0A%3C%23LangStem%3E%20%5B%40en~%5D%0A%0A%3C%23Empty%3E%20%5B%40~%5D%0A%0A%3C%23EmptyExclEN%3E%20%5B%40~%20-%20%40en%5D%20%23%20rejects%20%22ab%22%40en%0A%0A%3C%23EmptyExclFR%3E%20%5B%40~%20-%20%40fr%5D%0A%0A%23%20%3C%23EmptyExclEmpty%3E%20%5B%40~%20-%20%40~%5D%20%3C--%20not%20valid%20in%20grammar%0A%0A%23%20%3C%23DotExclEmpty%3E%20%5B.%20-%20%40~%5D%20%3C--%20not%20valid%20in%20grammar%0A%0A%0A&data=&shape-map=%22ab%22%40en%40%3C%23LangString%3E%2C%0A%22ab%22%40en%40%3C%23LangStem%3E%2C%0A%22ab%22%40en%40%3C%23Empty%3E%2C%0A%22ab%22%40en%40%3C%23EmptyExclEN%3E%2C%0A%22ab%22%40en%40%3C%23EmptyExclFR%3E&interface=human®expEngine=threaded-val-nerr)). This worked in `shex.js` with [fewer than 10 changed lines](https://github.com/shexSpec/shex.js/commit/113c7ef28e57658f043a91839eb1ccf9dc8241d8). ``` <#LangString> rdf:langString <#LangStem> [@en~] <#Empty> [@~] <#EmptyExclEN> [@~ - @en] # rejects "ab"@en <#EmptyExclFR> [@~ - @fr] # <#EmptyExclEmpty> [@~ - @~] <-- not valid in grammar # <#DotExclEmpty> [. - @~] <-- not valid in grammar ``` Please view or discuss this issue at https://github.com/shexSpec/shex/issues/78 using your GitHub account
Received on Saturday, 23 December 2017 20:03:44 UTC