Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying both a literal datatype and a value set in ShExC #121

Open
tombaker opened this issue Feb 4, 2023 · 1 comment
Open

Specifying both a literal datatype and a value set in ShExC #121

tombaker opened this issue Feb 4, 2023 · 1 comment

Comments

@tombaker
Copy link
Contributor

tombaker commented Feb 4, 2023

I expected the following to work:

my:IssueShape {
  ex:status xsd:integer [0 1];
}

However, it apparently only works with AND:

PREFIX my: <http://my.example/>
PREFIX ex: <http://ex.example/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

my:IssueShape {
  ex:status [0 1] AND xsd:integer;
}
@tombaker
Copy link
Contributor Author

tombaker commented Feb 4, 2023

This is the error encountered (line breaks inserted for readability):

error parsing input schema:
Parse error on line 7:
...:status xsd:integer [0 1];}
-----------------------^
Expecting 'IT_OR', 'IT_AND', 'REGEXP', 'IT_LENGTH', 'IT_MINLENGTH', 'IT_MAXLENGTH', 'IT_MININCLUSIVE', 
'IT_MINEXCLUSIVE', 'IT_MAXINCLUSIVE', 'IT_MAXEXCLUSIVE', 'IT_TOTALDIGITS', 'IT_FRACTIONDIGITS', 
'}', '|', ',', ';', '*', '+', '?', 'REPEAT_RANGE', '//', '%', got '['

@ericprud ericprud transferred this issue from shexSpec/spec Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants