Java Doc for WebOntTests.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » reasoner » dig » test » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.reasoner.dig.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.reasoner.dig.test.WebOntTests

WebOntTests
public class WebOntTests (Code)

Test harness for running the WebOnt working group tests on the DIG reasoner interface. This class is derived from Dave's com.hp.hpl.jena.reasoner.rulesys.test.WebOntTestHarness WebOntTestHarness .


author:
   Ian Dickinson, HP Labs ( email
author:
  
)
version:
   Release @release@ ($Id: eclipse-template.txt,v 1.2 2003/10/20
version:
   22:03:02 ian_dickinson Exp $)


Field Summary
final public static  ListACCEPTABLE_TEST_LEVELS
    
public static  StringBASE_RESULTS_URI
    
final public static  StringBASE_TESTDIR
    
public static  StringBASE_URI
    
final public static  String[]BLOCKED_TESTS
    
final public static  StringOTEST_NS
    
final public static  String[]STATUS_FLAGS
     The list of status values to include.
final public static  String[]TEST_DIRS
    
protected static  ListUNSAFE_PREMISE_PREDICATES
    
protected static  booleans_approvedOnly
    
protected static  booleans_includeModified
    

Constructor Summary
public  WebOntTests()
    

Method Summary
protected  voidaddSubGraph(Resource root, Model premises)
     Add the reachable sub-graph from root, unless it traverses a predicate that we might be trying to establish.
public  booleandoRunTest(Resource test)
     Run a single test of any sort, return true if the test succeeds.
public  ListfindTestsOfType(Resource testType)
    
public  ModelgetDoc(Resource test, Property docType, boolean processImports)
     Load the premises or conclusions for the test, optional performing import processing.
public  ModelgetDoc(Resource test, Property docType)
     Load the premises or conclusions for the test.
protected  voidinitResults()
     Initialize the result model.
protected  ListlistQueryRoots(Model m)
     The query roots of are the set of subjects we want to ask the DIG reasoner about ...
protected  ModelloadAllTestDefinitions()
    
public static  ModelloadFile(String file, Model model)
     Utility to load a file into a model a Model.
public static  voidmain(String[] args)
    
public  voidrunTest(String test)
     Run a single test of any sort, performing any appropriate logging and error reporting.
public  voidrunTest(Resource test)
     Run a single test of any sort, performing any appropriate logging and error reporting.
public  voidrunTests()
     Run all relevant tests.
public  voidrunTests(List tests)
     Run all tests in the given list.
protected  booleansafePremise(Property p)
    

Answer true if p is a property that is safe to add as a premise without assertng what we are trying to find out.

public  booleantestEntailment(Model conclusions, InfGraph inf)
     Test a conclusions graph against a result graph.

Field Detail
ACCEPTABLE_TEST_LEVELS
final public static List ACCEPTABLE_TEST_LEVELS(Code)
List of acceptable test levels



BASE_RESULTS_URI
public static String BASE_RESULTS_URI(Code)
The base URI for the results file



BASE_TESTDIR
final public static String BASE_TESTDIR(Code)
The base directory for the working group test files to use



BASE_URI
public static String BASE_URI(Code)
The base URI in which the files are purported to reside



BLOCKED_TESTS
final public static String[] BLOCKED_TESTS(Code)
List of tests that are blocked because they test language features beyond OWL DL



OTEST_NS
final public static String OTEST_NS(Code)
The namespace for terms in the owl test ontology



STATUS_FLAGS
final public static String[] STATUS_FLAGS(Code)
The list of status values to include. If approvedOnly then only the first entry is allowed



TEST_DIRS
final public static String[] TEST_DIRS(Code)
The list of subdirectories to process (omits the rdf/rdfs dirs)



UNSAFE_PREMISE_PREDICATES
protected static List UNSAFE_PREMISE_PREDICATES(Code)
List of predicates we don't want in the premises (because we will try to prove them)



s_approvedOnly
protected static boolean s_approvedOnly(Code)
Set to true to use approved tests only



s_includeModified
protected static boolean s_includeModified(Code)
Set to true to include modified test versions




Constructor Detail
WebOntTests
public WebOntTests()(Code)




Method Detail
addSubGraph
protected void addSubGraph(Resource root, Model premises)(Code)
Add the reachable sub-graph from root, unless it traverses a predicate that we might be trying to establish.
Parameters:
  root -
Parameters:
  premises -



doRunTest
public boolean doRunTest(Resource test) throws IOException(Code)
Run a single test of any sort, return true if the test succeeds.



findTestsOfType
public List findTestsOfType(Resource testType)(Code)
Return a list of all tests of the given type, according to the current filters



getDoc
public Model getDoc(Resource test, Property docType, boolean processImports) throws IOException(Code)
Load the premises or conclusions for the test, optional performing import processing.



getDoc
public Model getDoc(Resource test, Property docType) throws IOException(Code)
Load the premises or conclusions for the test.



initResults
protected void initResults()(Code)
Initialize the result model.



listQueryRoots
protected List listQueryRoots(Model m)(Code)
The query roots of are the set of subjects we want to ask the DIG reasoner about ... we interpret this as every named resource in the given model



loadAllTestDefinitions
protected Model loadAllTestDefinitions()(Code)
Load all of the known manifest files into a single model



loadFile
public static Model loadFile(String file, Model model) throws IOException(Code)
Utility to load a file into a model a Model. Files are assumed to be relative to the BASE_URI.
Parameters:
  file - the file name, relative to baseDir the loaded Model



main
public static void main(String[] args) throws IOException(Code)



runTest
public void runTest(String test)(Code)
Run a single test of any sort, performing any appropriate logging and error reporting.



runTest
public void runTest(Resource test)(Code)
Run a single test of any sort, performing any appropriate logging and error reporting.



runTests
public void runTests()(Code)
Run all relevant tests.



runTests
public void runTests(List tests)(Code)
Run all tests in the given list.



safePremise
protected boolean safePremise(Property p)(Code)

Answer true if p is a property that is safe to add as a premise without assertng what we are trying to find out. Properties ruled out by this test are owl:equivalentClass, owl:equivalentProperty, etc.
Parameters:
  p - A property to test True if p is safe to add to the premises




testEntailment
public boolean testEntailment(Model conclusions, InfGraph inf)(Code)
Test a conclusions graph against a result graph. This works by translating the conclusions graph into a find query which contains one variable for each distinct bNode in the conclusions graph.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__w__w__._j_a___v_a__2_s__.___c_o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.