Display test results of SPARQL 1.1 tests in a web browser
juliennauroy / sparqlscore Goto Github PK
View Code? Open in Web Editor NEWDisplay test results of SPARQL 1.1 tests in a web browser
Display test results of SPARQL 1.1 tests in a web browser
The JSON tests expect typed results to have a field "type: 'typed-literal' ". According to the SPARQL JSON Protocol, such a value does not exist; it should be "type: 'literal'" instead:
http://www.w3.org/TR/2013/REC-sparql11-results-json-20130321/#select-encode-terms
For several of the SPARQL 1.1 syntax tests, the SPARQL testsuite simply contains a dummy result with a variable named "error", indicating that parsing is expected to fail. According to the SPARQL protocol, parse errors should return an HTTP result with status code 400 (Bad Request):
http://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#query-failure
The SPARQLScore tests need to be changed accordingly.
First check if it's correctly generated
The functions ROUND, CEIL and FLOOR return by their definition an integer number without fractional part. The SPARQL 1.1 specification only requires the return value to be "numeric" and not that it matches the type of the arguments. The tests should therefore in this case only check if the results are numeric.
The error message is pretty wide. Change something in the interface. Maybe display it in a larger popup?
Now it's using some Javascript to calculate the score.
Since TFT now adds the score in its output, just integrate it.
The tests currently require that the result of AVG always is the same type as the input arguments. However, the SPARQL 1.1 specification defines AVG as to return any numeric value. The tests should therefore only check if the return type is numeric.
This also makes sense when you take e.g. the example of the average of the integers 1 and 2 - which is the double or decimal value 1.5.
The test for date subtraction in test Grid Observatory does not conform to the SPARQL 1.1 specification. The operator "-" is only defined for numeric operands.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.