-
Notifications
You must be signed in to change notification settings - Fork 23
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
How to run SPARQL Test Suite? #47
Comments
Everyone has their own mechanism for running the tests. Typically, parsing the appropriate test manifest (such as [this one](http://w3c.github.io/rdf-tests/sparql11/data-r2/regex/manifest.ttl, and iterating through each entry. There are some basic instructions for running tests here. Typically, they involve creating a dataset and parsing and running the associated query, where either the result-set or RDF Graph is expected to match that referenced from |
Thank you for the introduction 👍 |
there was a test harness which was introduced by an effort at inria (https://hal.inria.fr/hal-01104252/document), but i do not know its current status. |
Apache Jena provides a command line I'm sure other toolkits tat submitted reports provide ways to run the tests. |
@lisp Sparqlscore is always active but my time is limited. I will write the doc this week but you can see my script. update: insert new examples |
in SWObjects, you can |
For reference, here's a tool for executing SPARQL-style test manifests for JavaScript implementations: https://www.npmjs.com/package/rdf-test-suite |
These links are dead: I think this issue is still relevant: how do we run the SPARQL test suite? Also why is the following still the case when we have a standard SPARQL protocol?
|
@BorderCloud I don't understand why your approach requires a Docker image per product? I'm thinking we just need a "test driver" Docker image, so that the actual triplestore is accessed via a SPARQL endpoint URL and the tests are executed over HTTP. |
Where do you still find these links? The first would never have worked with a GitHub repo, the second was obsoleted as part of #84 and #90. Generally, tests can be run from https://w3c.github.io/rdf-tests/sparql/ by following the manifests. Exceptions are for the protocol test, which require an endpoint. I spent some time trying to make the manifests contain everything necessary to provision a local server to provide the appropriate responses (see #79), although this hasn't progressed in a while. This would be true for both sparql/sparql11/protocol and sparql/sparql11/http-rdf-update.
The top-level README could use some more specific instructions.
I run from https://w3c.github.io/rdf-tests/sparql with a local cache that prevents actual network access. Others run differently. Generally, tests (RDF and SPARQL) should be run as if accessing from GitHub.io, other than the protocol tests which require a runner be provisioned someplace. |
I really want to contribute new tests for SPARQL REGEX (#46). What is the easiest way to run the suite and produce an implementation report assuming I have an SPARQL endpoint running at
http://localhost:8080
?I found kasei/sparql11-protocolvalidator, but I am unfamiliar with PERL (and PERL cgi). Could someone give me a hint?
The text was updated successfully, but these errors were encountered: