Re: Test suite skeleton

> On 10 May 2017, at 10:42, Phil Archer <phila@w3.org> wrote:
> 
> The Web Platform Test infrastructure is just a fancy name for a GitHub repo full of various files (markup and scripts) against which you can test clients, notably browsers [1]. The annotation tests, originally located in their own GH repo are now duplicated across into the central one [2]. We can, and probably should, copy our examples there too, but that's once they're all stable and essentially finished. For now we should work in our own repo (and I'm not sure whether GH supports conneg, which we really should use. If it doesn't, then the tests may need to be hosted at w3.org).
> 
> I've also been thinking more about the SHACL issue. If we don't provide those, then how will someone test whether their ODRL is valid?
> 
> An example of a vocab that has cardinality constraints is the RDF Data Cube. For that, the editor created a validator and made it available online [3] (although that link is currently broken - I've reported it). Others have since created validators. i.e. people have written software.
> 
> We can shortcut that development effort by providing the SHACL files and pointing people to the SHACL playground.


+1

The way, years ago, we tested RDFa was to provide, for each individual test, a SPARQL ASK query that checked whether a particular graph was part (or was not part) of the output. The results of a complete test runs was therefore to provide TRUE answers on the generated RDF (extracted from HTML+RDFa). In a sense, we used SHACL avant la lettre… (the main difference was that, by then, SPARQL was a standard, whereas SHACL is not yet). This system worked really well.

(We also had an automatic test harness that could run those tests; but that is a detail.)

Ivan

> 
> Although that won't help with the XML serialisations. For that we'd need an xsd. Any offers? Ahem - Stuart?
> 
> Phil
> 
> [1] https://github.com/w3c/web-platform-tests
> [2] https://github.com/w3c/web-platform-tests/tree/master/annotation-model
> [3] https://www.w3.org/2011/gld/validator/qb/
> 
> On 10/05/2017 03:19, Renato Iannella wrote:
>> 
>>> On 9 May 2017, at 17:55, Phil Archer <phila@w3.org> wrote:
>>> 
>>> This raises a question: should we include SHACL files for each of the examples?
>>> Against:
>> 
>> +1 for all the Against points.
>> 
>> The W3C Annotation WG tests: https://github.com/w3c/web-annotation-tests <https://github.com/w3c/web-annotation-tests>
>> uses something called "W3C's Web Platform Tests infrastructure”
>> 
>> What is that? and can we use it?
>> 
>> 
>> R
>> 
> 
> --
> 
> 
> Phil Archer
> Data Strategist, W3C
> http://www.w3.org/
> 
> http://philarcher.org
> +44 (0)7887 767755
> @philarcher1
> 


----
Ivan Herman, W3C
Publishing@W3C Technical Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
ORCID ID: http://orcid.org/0000-0003-0782-2704

Received on Wednesday, 10 May 2017 08:56:21 UTC