-
Notifications
You must be signed in to change notification settings - Fork 28
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
W3C test suite #17
Comments
@robstewart57 I've just committed an update to |
Update on RDF/XML tests (as of b84de4a):
Uh-oh :) |
But we're doing slightly better on Turtle tests, with my latest fixes:
|
So a 0.6% pass rate for the XML tests leaves room for improvement :-) A 63% pass rate for the Turtle tests is a lot more respectable. It's a great job that we've picked up the W3C tests. I'm travelling for the next two weeks, but after that I would like to tackle some of these bugs, probably starting with the failing Turtle tests given its simpler syntax. |
Btw, I got a reply from @gkellogg saying they're going to fix those bugs in W3C test files. That's very nice. I'll start compiling a list of the bugs, as we find more. |
UPDATE. The list of culprits:
With the above tests disabled, I'm getting:
|
@robstewart57 Whenever you're going to start fixing TurtleParser, could you start with #15 ? This would enable me to load "manifest.ttl" of "RDF Entailment" test suite and possibly get some test results from it. Since we don't handle TriG and N-Quads in RDF4H, this should be the last W3C test suite. (Although I don't think we're handling RDF entailment at all. But let's have the tests for it, for completeness sake). |
For the sake of documentation, #15 is fixed. |
At the moment when I try testing, I get an unknown pattern
Is this what I should be seeing at this point? |
No, please do not touch RDF Entailment tests yet. You can ignore their results. Since we do not handle any kind of inference in RDF4H, I just left those tests half-way through and switched to #12 . I'll get back, of course, but I think we should finish with that issue first. You can either comment those tests out or add some temporal stub, if that's bothering you. The rest of W3C tests should be working, though. |
How do I disable the entailment tests in order to test the rest of the W3C tests? |
I've just tried my "w3test" branch, no local changes - tests run just fine. The HEAD is "a07888b Merge branch 'master' into w3tests". (It appears I did not commit RDF entailment tests themselves, so the issue that you've mentioned should not happen ;) ). Prehaps you need to update your local branch? (Btw, you may need to uncomment "W3CNTripleTest.tests" in |
I've just tried this again, having merged my w3tests with the current head of my master ( dd936aa ). I've just re-ran
@cordawyn I don't understand why you do not also see this error, apart from if your |
@robstewart57 I've just pulled the latest changes, re-downloaded W3C test files afresh and run the tests. No, I'm not getting that error :-/ (Speaking of W3C tests - they seem to have updated the files (hopefully, thanks to our input), but the turtle tests are now packed in a directory, so they get unpacked to "data/w3c/turtle/TurtleTests/". You'll have to update the path in |
It doesn't happen with
If I comment back in the
The example:
|
Only the tests in the manifest of "rdf-mt", that we do not use, have |
Aha, thanks! Yes, somehow the
|
As of deb4632 :
About half the parsec combinators follow the W3C grammar rules for Turtle. The other combinators are combinations of numerous grammar rules, so are less easy to correspond (and therefore to debug). This perhaps reflects the accepted proposoals in the change log added after the first |
As of f891ac5 :
(I'm now out of action for a couple of weeks) |
RDF newbie here - how concerned should I be about these failures? |
Hi @ddssff These failing cases are corner cases for the N3, TTL and RDF/XML parsers. This unit test suite is the one specified by the W3C RDF specification. It's on my TODO list to squish these parser bugs in the next month or so. As a side point, I notice that you clones from amccausl/RDF4H . The upstream version of RDF4H is this repository at https://github.com/robstewart57/rdf4h . Do please create Github issues to track any bugs you encounter with RDF4H. |
When I can carve out some time, I'd like to get these added to our copies of the various language test suites. |
Thanks, I found the newer repo a few minutes later. I will be in touch. |
@robstewart57 Rob, I'm trying the latest stuff from master branch, but the tests (
So it seems to stumble while reading the manifest file:
If, however, I provide some base URI for the parser, even more terrible things happen:
|
An update.. For e62e714 across all tests, i.e. API property and test cases and the W3C test cases:
Which is down from about 180 failing test cases a few months ago, prior to the current round of test driven development, so progress is good if a little steady. |
The current W3C test results are:
All 136 tests passed (0.14s)
All 596 tests passed (1.17s)
47 out of 162 tests failed (1.03s) I will close this issue ticket once all RDF/XML parser bugs have been fixed. |
This library finally has 100% compliance with the W3c tests in
https://travis-ci.org/robstewart57/rdf4h Thanks to @wismill for the Turtle parser and XML parser bug fixes! This compliance is reflected in release 4.0.0 of this library. |
I suggest we discuss implementing W3C test suite in this thread.
It is currently developed in my repository, in "w3tests" branch: https://github.com/cordawyn/rdf4h/tree/w3tests
The text was updated successfully, but these errors were encountered: