Re: RDFa Test Suite EARL reports

Actually, there is no good doc on running locally in the README, I'll fix that!

Basically, if you're running on something with Ruby installed, you should be able to do the following:

git clone git@github.com:rdfa/rdfa-website.git
cd rdfa-website
[sudo] gem install bundler
bundle install
bundle exec shotgun

This will create an instance, usually running on port 9393. If you access as http://localhost:9393/test-suite/, it will re-write test URIs to http://rdfainfo.digitalbazaar.com/test-suite/ so that processors can see any tests that are already uploaded. If you want to run with a local endpoint, run with something else such as http://127.0.0.1/test-suite/, which will inhibit the URI rewriting.

As an example, you could download the service I run at http://rdf.greggkellogg.net/, which can be cloned from git@github.com:gkellogg/rdf-portal.git and run basically the same way:

git clone git@github.com:gkellogg/rdf-portal.git
cd rdf-portal
bundle install
bundle exec shotgun -p 3000

This would run that service on port 3000, and you could use that as the processor URI such as http://localhost:3000/distiller?raw=true&in_fmt=rdfa&uri=, and the two services would talk to each other all on your same machine.

BTW, shotgun is basically like rackup, but it automatically reloads source that is changed.

Gregg

On Mar 7, 2012, at 3:41 PM, Gregg Kellogg wrote:

> Use rdfainfo.digitalbazaar.com for now.
> 
> Clone from github/rdfa/rdfa-website. There are some instructions to run in the readme; basic rack site with Bundler.
> 
> Gregg Kellogg
> Sent from my iPhone
> 
> On Mar 7, 2012, at 1:52 PM, "Dan Brickley" <danbri@danbri.org> wrote:
> 
>> On 5 March 2012 05:21, Gregg Kellogg <gregg@kellogg-assoc.com> wrote:
>>> The test suite [1] has been updated to generate EARL reports. Note that many tests can't run properly until the domain is updated to http://rdfa.info.
>> 
>> [1] is 404, and guessing my way to http://rdfa.info/test-suite fails
>> too. Is there a stable URL you can share for the test suite?
>> 
>> I'm also interested to find how to run the test suite offline. Github I guess?
>> 
>> Dan
>> 
>>> To generate a report, select a version and host language (at this point, only XML1+RDFa 1.1 and XHTML1+RDFa 1.1 with and without Vocabulary Expansion,are needed). Select to processor, or add one to the text field. Note that you must tab out of the field in order for the URL to be updated. Select "Run All Tests", and when complete, you can click "EARL Report". At this point, you can either see the formatted HTML+RDFa report (such as it is), but not do a view source, or you can see the source. I know ReSpec is able to do both, and if anyone would like to step in to improve this, feel free.
>>> 
>>> If you have a processor that is not in the drop-down, you can either update it in GitHub [1], or send a request into the list, and one of the committers will take care of it. You don't need to have your processor in the list to run either the tests, or the report, but reporting is better when there's a name to add to the report.
>>> 
>>> When done, please send a link, or the body of the HTML source of the EARL report in to be compiled into a comprehensive report required to exit CR for RDFa Core 1.1 and XHTML+RDFa 1.1.
>>> 
>>> A sample report output for RDF.rb running XML1+RDFa 1.1 can be found here [3].
>>> 
>>> Gregg
>>> 
>>> [1] http://rdfainfo.digitalbazaar.com/test-suite
>>> [2] https://github.com/rdfa/rdfa-website/blob/master/public/javascripts/models/version-model.js
>>> [3] http://rdf.greggkellogg.net/rdfa-xml-earl.html
>>> 
>>> 
>> 
> 

Received on Wednesday, 7 March 2012 23:14:11 UTC