Re: Comparing expected and actual SPARQL resultsets

Hi Dan,

What I did (and I believe AndyS does too) is that we convert the XML
result set format to RDF graphs and then compare the graphs. We did this
for the SPARQL protocol test suite in both python and java.

Just search for sparql2graph in:

http://www.w3.org/2001/sw/DataAccess/proto-tests/tools/sparqlprottests.py

Regards,

-Elias

Dan Brickley wrote:
> Hi. I'm looking at writing some tests to make sure some 
> code that generates an RDF database is behaving as expected. I 
> want to be able to compare the actual result of running some
> test queries with some expected results, presumably stored
> in the XML resultset format. Does anyone have code to do this?
> It seems related to the problem of comparing RDF graphs, but
> not quite the same...
> 
> Thanks for any thoughts and pointers,
> 
> Dan
> 
> 

Received on Thursday, 25 May 2006 22:09:26 UTC