- From: Jerven Bolleman <jerven.bolleman@sib.swiss>
- Date: Wed, 29 May 2019 17:26:06 +0200
- To: public-sparql-12@w3.org
- Cc: Ruben Taelman <ruben.taelman@ugent.be>
Dear Community,
There is a lot of thought going on in the issues. Which is fantastic.
Today I had a look at the new functions of xpath and existing ones.
So started making a table of functions on our wiki.
Ruben Taelman, was very kind to give feedback and try implementing them.
We chatted on https://gitter.im/sparql-12/community during the activity
The wiki page is
https://github.com/w3c/sparql-12/wiki/Extending-the-lists-of-expected-functions-taken-from-new-versions-of-XPath-and-XQuery
and for some of the functions started with draft mini specs on the wiki
as well. For now there are pages.
https://github.com/w3c/sparql-12/wiki/XPATH-math:PI
https://github.com/w3c/sparql-12/wiki/XPATH-math:exp
https://github.com/w3c/sparql-12/wiki/XPATH-math:exp10
https://github.com/w3c/sparql-12/wiki/XPATH-math:log
https://github.com/w3c/sparql-12/wiki/XPATH-math:log10
For me my issue was not actually knowing the rules for 'INF', '-INF' and
'NAN' in current SPARQL.
So whoever runs sparql.org, thank you for helping me with remembering
what operation does what!
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
SELECT *
WHERE {
BIND('-INF'^^xsd:double AS ?negInf)
BIND(?negInf + 1 AS ?negInfPlusOneIsInf)
BIND(?negInf - 1 AS ?negInfMinusOneIsInf)
BIND('NaN'^^xsd:double - 1 AS ?nanMinusOneIsNan)
BIND(('-INF'^^xsd:double+'INF'^^xsd:double) AS ?shouldBeNan)
}
I expect to continue next week at the same time.
However, everyone is welcome to continue and improve on these wiki pages
in the meantime ;)
Especially the test cases and examples can use a lot more work.
Regards,
Jerven
On 5/27/19 3:33 PM, Jerven Bolleman wrote:
> Dear Community,
>
> Welcome and let's get started :) We have a see of ideas and proposals to
> work with, thanks to everyone who made an issue!
>
> Now the ideas need to turn into reality, which means turn them into a
> number of mini specs that are implementable (i.e. have a good
> covering test suite, decent corner case coverage and reasonably formal).
>
> As a learning exercise I would like to start with issue
> https://github.com/w3c/sparql-12/issues/55
> and
> https://github.com/w3c/sparql-12/issues/32
>
> These are extending the number of inbuilt functions to match the XPath
> 3.1 specifications.
>
> What I want to do is have both a spec and a test suite for implementers.
> This is a training issue for us to discover how we can work together and
> encourage implementations that our wider community can build upon.
>
> For those who are interested in following along I will be working
> on it this Wednesday 1st of May 12:00 UTC time. I registered a gitter.im
> chat room on which anyone interested can join
> https://gitter.im/sparql-12/community#
>
> Of course this is not the only issue of interest and I encourage
> everyone to start on helping specifying their topic of interest.
>
> Besides specifications, we are very interested in best practices
> regarding SPARQL on the public web. I would like to start
> with using some of the things we have done for sparql.uniprot.org as
> a template (hoping you agree they are best practices ;)
>
>
> Regards,
> Jerven
Received on Wednesday, 29 May 2019 15:26:49 UTC