RE: Using webservices for RDFa test suite validation

Manu,

Great job!!! This is *really* useful.

I'd very much appreciate if Ben adds an agenda item for 
tomorrow's telecon to discuss and resolve this issue finally.

Just a quick comment (regarding triples vs. N3):

'N3 Triples' is confusing (at least to me) -  should rather be N3 [1],
IMHO.

Regarding the SPARQL ASK query - these *are* the actual (plain) triples
that are expected, so if you compare:

 @prefix _5: <http://sw-app.org/mic.xhtml#>.
 @prefix foaf: <http://xmlns.com/foaf/0.1/>.

 _5:i foaf:img _5:photo. 

with

 <http://sw-app.org/mic.xhtml#i> <http://xmlns.com/foaf/0.1/img>
<http://sw-app.org/mic.xhtml#photo> .

you'll notice that the first one (N3 format) is actually just an 
abbreviated form of the latter (Triple format), where

'_5:' is replaced with  'http://sw-app.org/mic.xhtml#' and
'foaf:' with 'http://xmlns.com/foaf/0.1/'

Conclusion: I'll opt to keep the simple SPARQL form as the
'normative' one defined in the TC and convert the WHERE part 
of the SPARQL query to N3 on the fly (e.g. using Mindswap's
RDF converter [2]), if needed.

Cheers,
	Michael

[1] http://www.w3.org/DesignIssues/Notation3.html
[2] http://www.mindswap.org/2002/rdfconvert/

----------------------------------------------------------
 Michael Hausenblas, MSc.
 Institute of Information Systems & Information Management
 JOANNEUM RESEARCH Forschungsgesellschaft mbH
  
 http://www.joanneum.at/iis/
----------------------------------------------------------
 

>-----Original Message-----
>From: public-rdf-in-xhtml-tf-request@w3.org 
>[mailto:public-rdf-in-xhtml-tf-request@w3.org] On Behalf Of Manu Sporny
>Sent: Wednesday, October 17, 2007 6:15 AM
>To: RDFa mailing list
>Subject: Using webservices for RDFa test suite validation
>
>Here's a proof-of-concept implementation of what Ivan had mentioned
>earlier today in the following thread:
>
>http://www.nabble.com/pyRDFa-Test-Suite-Reviewer-tf4631832.html
#a13226355
>
>The new tool, crazyivan.py[1], will do the following:
> - Retrieve all approved or unreviewed RDFa test cases from the W3C.
> - Use the pyRDFa Distiller web service[2] to convert to RDF and run a
>   modified SPARQL query from the test suite using the sparqler
>   interface[3].
> - Dump the XHTML, N3 triples, RDF, and SPARQL to separate files.
> - Generate a test report, containing all the information necessary
>   (XHTML, N3, RDF, and SPARQL), to understand the test case.
>
>Things to note about this implementation:
> - It uses RDF and SPARQL web services to run the entire test suite.
> - Many more of the tests succeed now that we're using up-to-date
>   implementations.
> - Sometimes (roughly 1 in 500 tests) a unit test will fail because
>   (surprise, surprise) the HTTP GET fails due to some sort of
>   internal website/webservice error.
>
>All of the current XHTML, N3, RDF and review files are included in the
>attached .tar.bz2, in a directory called "online-review".
>
>The test doesn't require anything but a working version of Python and
>python-rdflib (and that's only because the test RDF manifest has to be
>queried).
>
>[1] http://en.wikipedia.org/wiki/Crazy_Ivan
>[2] http://www.w3.org/2007/08/pyRdfa/
>[3] http://www.sparql.org/sparql.html
>
>------------------------------------------------------------------
>Command line output from the crazyivan.py tool:
>
>test-online-01-approved (__main__.RDFaOnlineTest) ... ok
>test-online-06-approved (__main__.RDFaOnlineTest) ... ok
>test-online-07-approved (__main__.RDFaOnlineTest) ... ok
>test-online-08-approved (__main__.RDFaOnlineTest) ... ok
>test-online-09-approved (__main__.RDFaOnlineTest) ... ok
>test-online-10-approved (__main__.RDFaOnlineTest) ... ok
>test-online-11-approved (__main__.RDFaOnlineTest) ... FAIL
>test-online-12-approved (__main__.RDFaOnlineTest) ... ok
>test-online-13-approved (__main__.RDFaOnlineTest) ... ok
>test-online-14-approved (__main__.RDFaOnlineTest) ... ok
>test-online-15-approved (__main__.RDFaOnlineTest) ... ok
>test-online-18-approved (__main__.RDFaOnlineTest) ... ok
>test-online-19-approved (__main__.RDFaOnlineTest) ... ok
>test-online-20-approved (__main__.RDFaOnlineTest) ... ok
>test-online-21-approved (__main__.RDFaOnlineTest) ... ok
>test-online-23-approved (__main__.RDFaOnlineTest) ... ok
>test-online-25-approved (__main__.RDFaOnlineTest) ... ok
>test-online-26-approved (__main__.RDFaOnlineTest) ... ok
>test-online-27-approved (__main__.RDFaOnlineTest) ... ok
>test-online-29-approved (__main__.RDFaOnlineTest) ... FAIL
>test-online-30-approved (__main__.RDFaOnlineTest) ... ok
>test-online-31-approved (__main__.RDFaOnlineTest) ... ok
>test-online-32-approved (__main__.RDFaOnlineTest) ... ok
>test-online-33-approved (__main__.RDFaOnlineTest) ... ok
>test-online-34-approved (__main__.RDFaOnlineTest) ... ok
>test-online-35-approved (__main__.RDFaOnlineTest) ... ok
>test-online-36-approved (__main__.RDFaOnlineTest) ... ok
>test-online-37-approved (__main__.RDFaOnlineTest) ... ok
>test-online-38-approved (__main__.RDFaOnlineTest) ... ok
>test-online-41-approved (__main__.RDFaOnlineTest) ... ok
>test-online-46-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-47-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-48-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-49-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-50-unreviewed (__main__.RDFaOnlineTest) ... FAIL
>test-online-51-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-52-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-53-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-54-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-55-unreviewed (__main__.RDFaOnlineTest) ... ok
>test-online-56-unreviewed (__main__.RDFaOnlineTest) ... ERROR
>
>-- manu
>
>-- 
>Manu Sporny
>President/CEO - Digital Bazaar, Inc.
>blog: Bitmunk Launches World's First Open Music Recommendation Service
>http://blog.digitalbazaar.com/2007/09/09/bitmunk-music-recommendation/
>
>

Received on Wednesday, 17 October 2007 09:32:06 UTC