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 DebugOWL  view DebugOWL download DebugOWL.java

java.lang.Object
  extended bycom.hp.hpl.jena.reasoner.rulesys.test.DebugOWL

public class DebugOWL
extends java.lang.Object

Test harnness for investigating OWL reasoner correctness and performance on specific local test files. Unit testing is done using OWLWGTester or simplar, this code is a debugging tools rather than a tester.

Version:
$Revision: 1.30 $ on $Date: 2005/04/11 11:26:59 $

Field Summary
(package private)  com.hp.hpl.jena.graph.Node[] concepts
          Concepts created by testGenerator, [layer, index]
static int EXPT
          reasoner config: experimental ruleset and config
(package private)  com.hp.hpl.jena.reasoner.InfGraph infgraph
          The inference graph under test
(package private)  com.hp.hpl.jena.graph.Node[] instances
          Instances of each concept
(package private) static org.apache.commons.logging.Log logger
           
static int OWL
          reasoner config: normal OWL forward
static int OWLExpt
          reasoner config: experimental OWL
static int OWLFB
          reasoner config: normal OWL-FB
(package private)  com.hp.hpl.jena.graph.Node[] properties
          Instance properties
static int RDFSFB
          reasoner config: normal RDFS
static int RDFSFinal
          reasoner config: final RDFS - hybrid + TGC
static int RDFSLPExpt
          reasoner config: LP RDFS exp
(package private)  com.hp.hpl.jena.reasoner.Reasoner reasoner
          The base reasoner being tested
(package private)  com.hp.hpl.jena.graph.Graph schema
          The (optional) schema graph used in interpreting the test data
(package private)  com.hp.hpl.jena.graph.Graph testdata
          The raw tests data as a Graph
 
Constructor Summary
DebugOWL(int config)
          Construct an empty test harness.
 
Method Summary
 void createTest(int depth, int NS, int NI, boolean withProps)
          Create an artificial data set.
 void init()
          Configure the inference graph ready for testing.
(package private)  long list(com.hp.hpl.jena.graph.Node s, com.hp.hpl.jena.graph.Node p, com.hp.hpl.jena.graph.Node o, boolean print)
          Test and time an general access operation.
(package private)  long listC0(boolean print)
          Test and time an predefined class extension listing
 void listClassesOn(java.lang.String filename)
          Run default test on a named file.
 void load(java.lang.String testFile)
          Load a test data set from file.
 void load(java.lang.String schemaFile, java.lang.String testFile)
          Load both a schema and an instance data file.
static void main(java.lang.String[] args)
           
 void runListClassesTest(int depth, int NS, int NI, boolean withProps)
          Create and run a list classes test.
 void runVolz()
          Run a standard test squence based on Volz et al sets
 void runVolz(int depth, int NS, int NI, boolean withProps)
          Create and run a volz test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reasoner

com.hp.hpl.jena.reasoner.Reasoner reasoner
The base reasoner being tested


testdata

com.hp.hpl.jena.graph.Graph testdata
The raw tests data as a Graph


schema

com.hp.hpl.jena.graph.Graph schema
The (optional) schema graph used in interpreting the test data


infgraph

com.hp.hpl.jena.reasoner.InfGraph infgraph
The inference graph under test


concepts

com.hp.hpl.jena.graph.Node[] concepts
Concepts created by testGenerator, [layer, index]


instances

com.hp.hpl.jena.graph.Node[] instances
Instances of each concept


properties

com.hp.hpl.jena.graph.Node[] properties
Instance properties


logger

static org.apache.commons.logging.Log logger

EXPT

public static final int EXPT
reasoner config: experimental ruleset and config

See Also:
Constant Field Values

OWLFB

public static final int OWLFB
reasoner config: normal OWL-FB

See Also:
Constant Field Values

OWL

public static final int OWL
reasoner config: normal OWL forward

See Also:
Constant Field Values

RDFSFB

public static final int RDFSFB
reasoner config: normal RDFS

See Also:
Constant Field Values

RDFSFinal

public static final int RDFSFinal
reasoner config: final RDFS - hybrid + TGC

See Also:
Constant Field Values

OWLExpt

public static final int OWLExpt
reasoner config: experimental OWL

See Also:
Constant Field Values

RDFSLPExpt

public static final int RDFSLPExpt
reasoner config: LP RDFS exp

See Also:
Constant Field Values
Constructor Detail

DebugOWL

public DebugOWL(int config)
Construct an empty test harness.

Method Detail

load

public void load(java.lang.String testFile)
Load a test data set from file.


load

public void load(java.lang.String schemaFile,
                 java.lang.String testFile)
Load both a schema and an instance data file.


createTest

public void createTest(int depth,
                       int NS,
                       int NI,
                       boolean withProps)
Create an artificial data set. This variant puts schema and instance data into the same testdata graph.


init

public void init()
Configure the inference graph ready for testing.


listC0

long listC0(boolean print)
Test and time an predefined class extension listing


list

long list(com.hp.hpl.jena.graph.Node s,
          com.hp.hpl.jena.graph.Node p,
          com.hp.hpl.jena.graph.Node o,
          boolean print)
Test and time an general access operation.


runListClassesTest

public void runListClassesTest(int depth,
                               int NS,
                               int NI,
                               boolean withProps)
Create and run a list classes test.


runVolz

public void runVolz(int depth,
                    int NS,
                    int NI,
                    boolean withProps)
Create and run a volz test.


runVolz

public void runVolz()
Run a standard test squence based on Volz et al sets


listClassesOn

public void listClassesOn(java.lang.String filename)
Run default test on a named file.


main

public static void main(java.lang.String[] args)