W3C home > Mailing lists > Public > public-rif-wg@w3.org > April 2008

ACTION-440, Add some test cases to the WIKI page about test cases

From: Adrian Paschke <adrian.paschke@biotec.tu-dresden.de>
Date: Mon, 7 Apr 2008 16:02:48 +0200
To: "'RIF WG'" <public-rif-wg@w3.org>
Message-Id: <20080407140243.F1F1B70003FC@mailserver.biotec.tu-dresden.de>

Hello,

I have added a set of general test cases to the WIKI for testing e.g. number
of results, test variable binding, test execution time of a query. 

http://www.w3.org/2005/rules/wiki/Category:Test_Case

They are intended as abstract interfaces which can be used in concrete
implementation test cases - see also 

http://www.w3.org/2005/rules/wg/wiki/Arch/Test_Cases

For instance:

RIF Rule Program:
                 q(?X) :- p(?X)
Test Data:
                 p(1^^xsd:Integer)
                 p(2^^xsd:Integer)
                 p(3^^xsd:Integer)

Test Cases:
                 testQuery(q(1^^xsd:Integer))
                 testResult(q(?X),q(3^^xsd:Integer))
                 testQueryTime(q(?X),1000^^xsd:Long)
                 testResults(q(?X),?X,[1,2,3])


The actual implementation of the testQuery "interface" might be rule-based,
e.g.:

testQuery(?Query) :- External(Builtin(Eval(?Query)))

Best, Adrian
Received on Monday, 7 April 2008 14:03:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:33:48 GMT