W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > May 2012

Re: What and where are the definitive RDFa 1.0 and 1.1 tests?

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Thu, 17 May 2012 15:15:49 -0400
To: Dave Beckett <dave@dajobe.org>
CC: W3C RDFWA WG <public-rdfa-wg@w3.org>, Toby Inkster <tai@g5n.co.uk>
Message-ID: <B56B28A8-96EE-4A79-B9CC-B27507D3D666@greggkellogg.net>
Dave, good points. I've updated the RDFa Info site developer page [1] to reference version and host-language specific test manifests. These are updated, so that the informationResourceInput and informationResourceResults refer to the test source updated with version and host-language specific formatting. This should allow you to download the manifest you need, and iterate over the test cases to retrieve each individual input and result.

Note that the content is built dynamically, so after an update, it may take a little time to re-render each manifest. (I'm also seeing some sporadic Internal Server Errors, which will take Manu coming back from vacation to resolve).

As an example, see the HTML5+RDFa manifest in Turtle [2]. The URI patterns for each manifest is predictable.

Hopefully, this will make life easier for people wanting local access to individual test suites.


[1] http://rdfa.info/dev/
[2] http://rdfa.info/test-suite/rdfa1.1/html5/manifest.ttl

On May 17, 2012, at 10:44 AM, Dave Beckett wrote:

> On 5/16/12 4:26 PM, Gregg Kellogg wrote:
>> In the case or 0209, it is expected to return false, as indicated in the expectedResults field.
> Thanks.  The manifest file was hard to find except via Toby's pointer to a
> github repository.  Maybe you should add a link and explain how to use it.
> I would be making guesses what all the other fields mean.
>> Note that there's an alternative to running the test suite through http://rdfa.info/test-suite. You can download the rdfa-website from github, and follow the README instructions to run bin/run-suite, which will call a local command to return results given input on STDIN.
> I tried that but the gem instructions failed with a mysterious error so I
> took the much simpler route of turning the proto-files into legal xhtml/svg
> and the output sparql into legal n-triples which is MUCH easier to test
> with and adds no extra test builder dependencies for me.
> Thanks
> Dave
>> Otherwise, to download all of the tests and sparql results would require processing the manifest and constructing a URL for each test and result file and them downloading them. I could probably come up with something you could run locally to re-create all the test and result files locally, but you'd need to run some Ruby.
>> Gregg
>> On May 16, 2012, at 2:43 PM, Toby Inkster wrote:
>>> On Wed, 16 May 2012 14:27:49 -0700
>>> Dave Beckett <dave@dajobe.org> wrote:
>>>> It's not clear to me what are the definitive tests.
>>> They are here:
>>> https://github.com/rdfa/rdfa-website/tree/master/tests
>>> The text files need reformatting slightly to achieve valid XHTML 1,
>>> HTML 4, HTML 5, etc. You then parse them into a graph and then execute
>>> the accompanying SPARQL ASK query.
>>> There is a test manifest here:
>>> https://github.com/rdfa/rdfa-website/blob/master/manifest.ttl
>>> That allows you to determine which tests apply to which versions of
>>> RDFa, and which host languages. It also indicates whether the ASK query
>>> is a negative one. (i.e. the test passes when the ASK returns false.)
>>> -- 
>>> Toby A Inkster
>>> <mailto:mail@tobyinkster.co.uk>
>>> <http://tobyinkster.co.uk>
Received on Thursday, 17 May 2012 19:16:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:56 UTC