W3C home > Mailing lists > Public > www-rdf-rules@w3.org > January 2003

RE: RDF query testcases?

From: Libby Miller <Libby.Miller@bristol.ac.uk>
Date: Thu, 16 Jan 2003 14:59:29 +0000 (GMT)
To: "Seaborne, Andy" <Andy_Seaborne@hplb.hpl.hp.com>
cc: "'Libby Miller'" <Libby.Miller@bristol.ac.uk>, "'www-rdf-rules@w3.org'" <www-rdf-rules@w3.org>
Message-ID: <Pine.GSO.4.44.0301161453550.9686-100000@mail.ilrt.bris.ac.uk>


Thanks Andy - I'm just having a look at

Jena-1.6.0/src/com/hp/hpl/jena/rdf/query/test/*

What you've done is build the models up by hand into a Jena model and
then queried them. This is definitely an advantage over specifying the
RDF/XML files, because you're not testing the parser as well as the
query engine. But to be more general, we'd have to specify a file format of
some kind - I'm wondering whether RDF/XML is the one or whether
N-triples would improve the matter or complicate things....what do you
think?

Would you be happy for me to try to get your tests into my RDF manifest
or something similar? (I don't have an RDF schema for that btw Alberto).

cheers

Libby


On Thu, 16 Jan 2003, Seaborne, Andy wrote:

>
> The test cases for the RDQL in Jena are shipped with the standard Jena
> distribution - you can pull them out of the CVS repository on SourceForge as
> well.
>
> The control (manifest) file is not RDF - but it could be.  Tests take the
> form
> (query, data, expected result set) and there is code that tests the expected
> result set is equivalent (same values for variables, subject to bNode-isms,
> number or rows etc) to the actual results obtained.  I don't test failure
> cases (i.e. that queries that are wrong fail in the expectedly wrong way).
>
> For the FAQ: Alberto has gone a great job with:
>
> http://rdfstore.sourceforge.net/2002/06/24/rdf-query/query-use-cases.html
>
> 	Andy
>
> -----Original Message-----
> From: Libby Miller [mailto:Libby.Miller@bristol.ac.uk]
> Sent: 15 January 2003 23:40
> To: www-rdf-rules@w3.org
> Cc: public-esw@w3.org
> Subject: RDF query testcases?
>
>
>
>
> Hi all
>
> We have some effort in SWAD-Europe [1] to write a document about RDF
> query [see [2]]. Part of this will be FAQ-based - a start is here [3],
> (and I'd be grateful for any FAQs or answers).
>
> The main reason for sending this message it because I've chatted to a
> few people who feel that a collection of RDF query testcases would be a
> useful thing to have, and I can put some effort into this - maybe as a
> minimum, finding out what's already available, and maybe look into some
> ways of enabling one query language implementation to use another's
> testcases.
>
> So, would anyone out there like to share their test and their
> experiences of writing them? I can infer that Jena and 4suite have
> them; I think Mozilla has some too. I've got some here for Inkling:
>
> http://swordfish.rdfweb.org/rdfquery/tests/
> http://swordfish.rdfweb.org/rdfquery/rdf/
> http://swordfish.rdfweb.org/rdfquery/queries/
>
> Basically the test scripts read in
> http://swordfish.rdfweb.org/rdfquery/rdf/query-results-manifest.rdf
>
> which specifies the RDF/XML file to pull in, the query to use and the
> expected number of rows in the resulting table. So it's only a very
> basic test of whether the query engine is functioning.
>
> Any more? Any thoughts?
>
> cheers,
>
> Libby
>
> [1] http://www.w3.org/2001/sw/Europe/
> [2] http://www.w3.org/2001/sw/Europe/plan/workpackages/live/esw-wp-7.html
> [3] http://www.w3.org/2001/sw/Europe/reports/rdf_ql_comparison_report/
>
>
>
Received on Thursday, 16 January 2003 10:01:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:53:10 GMT