W3C home > Mailing lists > Public > public-sparql-12@w3.org > February 2020

Re: SEP2: Add Support Durations, Dates, and Times

From: John Snelson <John.Snelson@marklogic.com>
Date: Mon, 10 Feb 2020 11:05:06 +0000
To: "public-sparql-12@w3.org" <public-sparql-12@w3.org>
Message-ID: <50537057-e564-f7dc-133d-888aa1d57c9e@marklogic.com>
Hi Jerven, Gregory,

Thanks for this! Looks like a good start. I can't open github issues 
that aren't labelled "New Feature", which doesn't seem to fit the situation.

Here are my comments:

1) We should document the mapping of SPARQL function names to F&O 
function names. For instance, I'm assuming YEAR(xs:date) maps to 
fn:year-from-date().

2) We should extend ADJUST() to work with argument types of xs:date and 
xs:time as well.

3) We are missing the following operator: xs:time + xs:dayTimeDuration

Otherwise everything looks good.

FYI MarkLogic already implements these datatypes in RDF and SPARQL, and 
supports the operators. It also supports all the F&O functions under 
their original names, ie:

prefix fn: <http://www.w3.org/2005/xpath-functions#>
prefix xs: <http://www.w3.org/2001/XMLSchema#>

select (fn:year-from-date(xs:date("2020-02-10")) as ?year) {}

John

On 06/02/2020 19:33, Jerven Tjalling Bolleman wrote:
> Dear Community,
>
> The first SPARQL Enhancement Proposal (SEP)[1] has been proposed ;) 
> It’s thanks to the work of Gregory Williams.
>
> Have a suggestion to improve it, make a pull request !
> If you have an issue with it, open an issue on github !
> Both are super welcome.
>
> Would you like a different SEP? Write it up and make a PR to the 
> repository. We are very open to merging them especially if there are 
> reusable tests associated with them.
>
> Regards,
> Jerven
>
> [1] https://github.com/w3c/sparql-12/blob/master/SEP/SEP-0002/sep-0002.md



-- 
John Snelson, Principal Engineer              http://twitter.com/jpcs

MarkLogic Corporation                         http://www.marklogic.com

Received on Monday, 10 February 2020 11:05:59 UTC

This archive was generated by hypermail 2.4.0 : Monday, 10 February 2020 11:06:00 UTC