java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.hp.hpl.jena.reasoner.rulesys.test.TestRDFSRules
- All Implemented Interfaces:
- junit.framework.Test
- public class TestRDFSRules
- extends junit.framework.TestCase
Test suite to test the production rule version of the RDFS implementation.
The tests themselves have been replaced by an updated version
of the top level TestRDFSReasoners but this file is maintained for now since
the top level timing test can sometimes be useful.
* @author
Dave Reynolds * @version $Revision: 1.21 $ on $Date: 2005/04/11 11:27:04 $
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
NAMESPACE
public static final java.lang.String NAMESPACE
- Base URI for the test names
- See Also:
- Constant Field Values
logger
protected static org.apache.commons.logging.Log logger
TestRDFSRules
public TestRDFSRules(java.lang.String name)
- Boilerplate for junit
suite
public static junit.framework.TestSuite suite()
- Boilerplate for junit.
This is its own test suite
hiddenTestRDFSReasonerDebug
public void hiddenTestRDFSReasonerDebug()
throws java.io.IOException
- Test a single RDFS case.
testRDFSFBReasoner
public void testRDFSFBReasoner()
throws java.io.IOException
- Test the basic functioning of the hybrid RDFS rule reasoner
testRDFSExptReasoner
public void testRDFSExptReasoner()
throws java.io.IOException
- Test the basic functioning of the hybrid RDFS rule reasoner with TGC cache
testRDFSDescription
public void testRDFSDescription()
- Test the capabilities description.
doTiming
private static void doTiming(com.hp.hpl.jena.reasoner.Reasoner r,
com.hp.hpl.jena.rdf.model.Model tbox,
com.hp.hpl.jena.rdf.model.Model data,
java.lang.String name,
int loop)
- Time a trial list of results from an inf graph.
main
public static void main(java.lang.String[] args)
- Simple timing test used to just a broad feel for how performance of the
pure FPS rules compares with the hand-crafted version.
The test ontology and data is very small. The test query is designed to
require an interesting fraction of the inferences to be made but not all of them.
The bigger the query the more advantage the FPS (which eagerly computes everything)
would have over the normal approach.