- From: Pablo Menéndez ◔_◔ via GitHub <sysbot+gh@w3.org>
- Date: Mon, 10 Feb 2020 11:29:23 +0000
- To: public-shex-dev@w3.org
mistermboy has just created a new issue for https://github.com/shexSpec/shex:
== [Validating RDF Data] Example 44 : Product's status must start with... ==
This is the example 44 of the [Validating RDF Data book](https://book.validatingrdf.com/bookHtml010.html):
```
prefix codes: <http://example.codes/>
:Product {
:status [ codes:good.~ codes:bad.~ ]
}
```
I was looking at the grammars and I think that none of them allows you to do that inside a "valueSetValue":
[Master branch grammar](https://github.com/shexSpec/grammar/blob/master/bnf) and [Shex2.1 branch grammar](https://github.com/shexSpec/grammar/blob/shex2.1/bnf)
```
[47] valueSetValue ::= iriRange | literal
[48] iriRange ::= iri ('~' exclusion*)? | '.' exclusion+
[49] exclusion ::= '-' iri '~'?
```
[Shex.io grammar](http://shex.io/shex-semantics/#shexc)
```
[49] valueSetValue ::= iriRange | literalRange | languageRange | exclusion+
[50] exclusion ::= '-' (iri | literal | LANGTAG) '~'?
[51] iriRange ::= iri ('~' exclusion*)?
[53] literalRange ::= literal ('~' literalExclusion*)?
[54] literalExclusion ::= '-' literal '~'?
[55] languageRange ::= LANGTAG ('~' languageExclusion*)? | '@' '~' languageExclusion*
[56] languageExclusion ::= '-' LANGTAG '~'?
```
Please view or discuss this issue at https://github.com/shexSpec/shex/issues/99 using your GitHub account
Received on Monday, 10 February 2020 11:29:55 UTC