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

Support for date ranges #108

Open
labra opened this issue Nov 11, 2020 · 2 comments
Open

Support for date ranges #108

labra opened this issue Nov 11, 2020 · 2 comments

Comments

@labra
Copy link
Contributor

labra commented Nov 11, 2020

ShEx supports range comparisons with (Min/Max)(In/Ex)clusive but it is limited to numbers. I think it would be easy to extend it to other datatypes like dates. For example, we could express:

:User {
 :birthDate MinInclusive "2000-01-01T12:00:00"^^xsd:dateTime
}
@ludwigschub
Copy link

Technically this could already be achieved by specifying a min value of seconds-since-epoch or?

@ericprud
Copy link
Contributor

ericprud commented May 6, 2021

Not currently, XSD numeric comparisons are only spec'd for XSD numeric types.
but we could go where no RDF or XML language has gone before (afaik):

:User {
 :birthDate MinInclusive 2000-01-01T12:00:00Z
   // wd:proposed 2021-06-06T18:35:00-01:00;
 :asValueSetValue [ 1 'a' 2000-01-01T12:00:00Z ] ;
}

c.f. yacker ShEx2_dateTime example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants