bordercloud / tft Goto Github PK
View Code? Open in Web Editor NEWTFT (Tester for Triplestore) is a script PHP to pass tests through a SPARQL service.
TFT (Tester for Triplestore) is a script PHP to pass tests through a SPARQL service.
That's my the first and the only attempt to use the thing:
TFT$ ./tft-testsuite -a -t fuseki -q http://localhost:8820/sparql -u http://localhost:8820/sparql
PHP Fatal error: Call to undefined function curl_init() in lib/sparql/Curl.php on line 41
The commits in use are as follows:
$ git clone --recursive https://github.com/BorderCloud/TFT.git
Cloning into 'TFT'...
remote: Counting objects: 348, done.
remote: Total 348 (delta 0), reused 0 (delta 0), pack-reused 348
Receiving objects: 100% (348/348), 94.72 KiB | 137.00 KiB/s, done.
Resolving deltas: 100% (216/216), done.
Checking connectivity... done.
Submodule 'lib/sparql' (https://github.com/BorderCloud/SPARQL.git) registered for path 'lib/sparql'
Submodule 'tests/TFT-tests' (https://github.com/BorderCloud/TFT-tests.git) registered for path 'tests/TFT-tests'
Cloning into 'lib/sparql'...
remote: Counting objects: 203, done.
remote: Total 203 (delta 0), reused 0 (delta 0), pack-reused 203
Receiving objects: 100% (203/203), 55.52 KiB | 0 bytes/s, done.
Resolving deltas: 100% (121/121), done.
Checking connectivity... done.
Submodule path 'lib/sparql': checked out '9c7fd5caef0c77ede9ce265ec32fa6fcda24688c'
Cloning into 'tests/TFT-tests'...
remote: Counting objects: 1178, done.
remote: Total 1178 (delta 0), reused 0 (delta 0), pack-reused 1177
Receiving objects: 100% (1178/1178), 184.82 KiB | 108.00 KiB/s, done.
Resolving deltas: 100% (433/433), done.
Checking connectivity... done.
Submodule path 'tests/TFT-tests': checked out 'b2ef414a16af11420b91f8623f1d99bd7fc702ea'
(tried 2016-Dec-18)
I've never dealt with php so I don't know what should I try next. Any instructions are welcome.
What exactly needs to be set up? Clearly, I cannot build Stardog since I don't have the source.
Can I run TFT without docker? (It appears that with the right combination of options when running php ./tft, that I can do this.) I am happy to manually pre-load the test cases into my local database.
Thanks.
The namespace defined in the recommendation (http://www.w3.org/2005/sparql-results#) is different from the one used in the various schemas (http://www.w3.org/2007/SPARQL/results#).
Need to check the SPARQL results in XML.
This is NOT an issue, but posted for your awareness. (There is no discussion page.)
Documentation is at Running TFT.
Please let me know if you have feedback or if I should create a pull request for any of the changes.
As Sebastian Schaffert said:
SPARQL Syntax Tests: Status Code 400 for error should be honoured
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.
Good remark. For the moment, I didn't test seriously the protocol. I wrote your "enhancement" in my todo list.
Test.php (TODO : catch the status code)
NegativeSyntaxTest.php (TODO : test the status code 400)
NegativeUpdateSyntaxTest.php (TODO : test the status code 400)
Stardog is returning a xsd:dayTimeDuration
instead of xsd:duration
as the type for the value PT55M
. Now, I couldn't find the reference to the standard describing the expected the datatype for a datetime difference, but since xsd:dayTimeDuration
is a subclass of xsd:duration
, I think that the result should be considered valid.
Also note that the expected result provides more digits, e.g., PT55M0.000S
, but I don't know is this would be a problem as well.
The result matches the expected value, but the parsing differs in structure, which causes the test to fail.
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.