W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > August 2007

Querying all tests in DAWG manifest via Sparql

From: Christian Weiske <cweiske@cweiske.de>
Date: Sun, 12 Aug 2007 17:51:07 +0200
To: public-rdf-dawg-comments@w3.org
Message-ID: <20070812175107.0a8ad6fe@bogo>
Hello all,

I am writing the code that allows us to use the DAWG testcases in RAP,
the RDF API for PHP (http://rdfapi-php.sf.net).

To keep things as dynamic as possible I extract the test case
information from the manifest files. To achieve this, I load the N3
data and run a SPARQL query on the data set.

Unfortunately for me the tests are listed in a collection:
... mf:entries
which gets expanded to something like:
.. mf:entries
  [ rdf:first "#construct-1";
    rdf:rest [ rdf:first "#construct-2";
               rdf:rest rdf:nil ]
  ] .

This is a recursive structure I fail to query fully with a single
SPARQL query. As far as I know does SPARQL not support any recursion.

Is there a way to execute a SPARQL query that lists all test cases in a
given list?

Regards/Mit freundlichen Grüßen
Christian Weiske

Received on Sunday, 12 August 2007 15:51:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:08 UTC