Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.reasoner.rulesys.test
Class TestRDFSRules  view TestRDFSRules download TestRDFSRules.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.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 $


Field Summary
protected static org.apache.commons.logging.Log logger
           
static java.lang.String NAMESPACE
          Base URI for the test names
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestRDFSRules(java.lang.String name)
          Boilerplate for junit
 
Method Summary
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.
 void hiddenTestRDFSReasonerDebug()
          Test a single RDFS case.
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.
static junit.framework.TestSuite suite()
          Boilerplate for junit.
 void testRDFSDescription()
          Test the capabilities description.
 void testRDFSExptReasoner()
          Test the basic functioning of the hybrid RDFS rule reasoner with TGC cache
 void testRDFSFBReasoner()
          Test the basic functioning of the hybrid RDFS rule reasoner
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

TestRDFSRules

public TestRDFSRules(java.lang.String name)
Boilerplate for junit

Method Detail

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.