Java Doc for GenericRuleReasoner.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » reasoner » rulesys » 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.rulesys 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.reasoner.rulesys.FBRuleReasoner
      com.hp.hpl.jena.reasoner.rulesys.GenericRuleReasoner

All known Subclasses:   com.hp.hpl.jena.reasoner.rulesys.OWLMiniReasoner,  com.hp.hpl.jena.reasoner.rulesys.RDFSRuleReasoner,  com.hp.hpl.jena.reasoner.rulesys.RDFSForwardRuleReasoner,  com.hp.hpl.jena.reasoner.rulesys.DAMLMicroReasoner,  com.hp.hpl.jena.reasoner.rulesys.OWLMicroReasoner,
GenericRuleReasoner
public class GenericRuleReasoner extends FBRuleReasoner (Code)
A reasoner interface that is able to invoke any of the useful rule engine combinations. The rule set can be set after the reasoner instance is created. The mode can be set to forward, backward or hybrid. The OWL-specific rule augmentation can be included. Each of these settings can be controlled using the configuration graph, specific methods calls or generic setParameter calls.
author:
   Dave Reynolds
version:
   $Revision: 1.35 $ on $Date: 2008/01/22 16:16:24 $

Inner Class :public static class RuleMode

Field Summary
final public static  RuleModeBACKWARD
    
final public static  RuleModeFORWARD
    
final public static  RuleModeFORWARD_RETE
    
final public static  RuleModeHYBRID
    
protected  LPRuleStorebRuleStore
    
final protected static  booleancachePreload
    
protected  booleanenableOWLTranslation
    
protected  booleanenableTGCCaching
    
public  booleanfilterFunctors
    
protected  RuleModemode
    
protected  HashSetpreprocessorHooks
    

Constructor Summary
public  GenericRuleReasoner(List rules)
     Constructor.
public  GenericRuleReasoner(ReasonerFactory factory, Resource configuration)
    
public  GenericRuleReasoner(List rules, ReasonerFactory factory)
    
protected  GenericRuleReasoner(List rules, Graph schemaGraph, ReasonerFactory factory, RuleMode mode)
     Internal constructor, used to generated a partial binding of a schema to a rule reasoner instance.

Method Summary
public  voidaddPreprocessingHook(RulePreprocessHook hook)
     Add a new preprocessing hook defining an operation that should be run when the inference graph is being prepared.
public  InfGraphbind(Graph data)
     Attach the reasoner to a set of RDF data to process. The reasoner may already have been bound to specific rules or ontology axioms (encoded in RDF) through earlier bindRuleset calls.
Parameters:
  data - the RDF data to be processed, some reasoners may restrictthe range of RDF which is legal here (e.g.
public  ReasonerbindSchema(Graph tbox)
     Precompute the implications of a schema graph.
protected  booleandoSetParameter(Property parameter, Object value)
     Internal version of setParameter that does not directly raise an exception on parameters it does not reconize.
protected  booleandoSetResourceParameter(Property parameter, Resource value)
    
protected  LPRuleStoregetBruleStore()
     Return the prepared backward only rules.
protected synchronized  InfGraphgetPreload()
     Get the single static precomputed rule closure.
public  voidremovePreprocessingHook(RulePreprocessHook hook)
     Remove a preprocessing hook.
public  voidsetFunctorFiltering(boolean param)
     Set to true to cause functor-valued literals to be dropped from rule output.
public  voidsetMode(RuleMode mode)
     Set the direction of rule inference desired. If set to a pure mode (FORWARD, BACKWARD) then the rules will be interpreted as operating in that direction which ever direction they were written in.
public  voidsetOWLTranslation(boolean enableOWLTranslation)
     Set to true to enable translation of selected parts of an OWL schema to additional rules.
public  voidsetRules(List rules)
     Set (or change) the rule set that this reasoner should execute.
public  voidsetTransitiveClosureCaching(boolean enableTGCCaching)
     Set to true to enable caching of subclass/subproperty lattices in a specialized cache rather than using the rule systems.

Field Detail
BACKWARD
final public static RuleMode BACKWARD(Code)
Constant - the mode description for pure backward chaining



FORWARD
final public static RuleMode FORWARD(Code)
Constant - the mode description for pure forward chaining



FORWARD_RETE
final public static RuleMode FORWARD_RETE(Code)
Constant - the mode description for pure forward chaining, using RETE engine



HYBRID
final public static RuleMode HYBRID(Code)
Constant - the mode description for mixed forward/backward, this is the default mode



bRuleStore
protected LPRuleStore bRuleStore(Code)
Prepared set of rules used for Backward-only mode



cachePreload
final protected static boolean cachePreload(Code)
Flag, if true we cache the closure of the pure rule set with its axioms



enableOWLTranslation
protected boolean enableOWLTranslation(Code)
Flag, if true then rules will be augmented by OWL translations of the schema



enableTGCCaching
protected boolean enableTGCCaching(Code)
Flag, if true then subClass and subProperty lattices will be optimized using TGCs, only applicable to HYBRID reasoners



filterFunctors
public boolean filterFunctors(Code)
Flag, if true then find results will be filtered to remove functors and illegal RDF



mode
protected RuleMode mode(Code)
the current rule mode



preprocessorHooks
protected HashSet preprocessorHooks(Code)
Optional set of preprocessing hooks to be run in sequence during preparation time, only applicable to HYBRID modes




Constructor Detail
GenericRuleReasoner
public GenericRuleReasoner(List rules)(Code)
Constructor. This is the raw version that does not reference a ReasonerFactory and so has no capabilities description.
Parameters:
  rules - a list of Rule instances which defines the ruleset to process



GenericRuleReasoner
public GenericRuleReasoner(ReasonerFactory factory, Resource configuration)(Code)
Constructor
Parameters:
  factory - the parent reasoner factory which is consulted to answer capability questions
Parameters:
  configuration - RDF node to configure the rule set and mode, can be null



GenericRuleReasoner
public GenericRuleReasoner(List rules, ReasonerFactory factory)(Code)
Constructor
Parameters:
  rules - a list of Rule instances which defines the ruleset to process
Parameters:
  factory - the parent reasoner factory which is consulted to answer capability questions



GenericRuleReasoner
protected GenericRuleReasoner(List rules, Graph schemaGraph, ReasonerFactory factory, RuleMode mode)(Code)
Internal constructor, used to generated a partial binding of a schema to a rule reasoner instance.




Method Detail
addPreprocessingHook
public void addPreprocessingHook(RulePreprocessHook hook)(Code)
Add a new preprocessing hook defining an operation that should be run when the inference graph is being prepared. This can be used to generate additional data-dependent rules or translations. This is only guaranted to be implemented for the HYBRID mode.



bind
public InfGraph bind(Graph data) throws ReasonerException(Code)
Attach the reasoner to a set of RDF data to process. The reasoner may already have been bound to specific rules or ontology axioms (encoded in RDF) through earlier bindRuleset calls.
Parameters:
  data - the RDF data to be processed, some reasoners may restrictthe range of RDF which is legal here (e.g. syntactic restrictions in OWL). an inference graph through which the data+reasoner can be queried.
throws:
  ReasonerException - if the data is ill-formed according to theconstraints imposed by this reasoner.



bindSchema
public Reasoner bindSchema(Graph tbox) throws ReasonerException(Code)
Precompute the implications of a schema graph. The statements in the graph will be combined with the data when the final InfGraph is created.



doSetParameter
protected boolean doSetParameter(Property parameter, Object value)(Code)
Internal version of setParameter that does not directly raise an exception on parameters it does not reconize. false if the parameter was not recognized



doSetResourceParameter
protected boolean doSetResourceParameter(Property parameter, Resource value)(Code)



getBruleStore
protected LPRuleStore getBruleStore()(Code)
Return the prepared backward only rules.



getPreload
protected synchronized InfGraph getPreload()(Code)
Get the single static precomputed rule closure.



removePreprocessingHook
public void removePreprocessingHook(RulePreprocessHook hook)(Code)
Remove a preprocessing hook. defining an operation that



setFunctorFiltering
public void setFunctorFiltering(boolean param)(Code)
Set to true to cause functor-valued literals to be dropped from rule output. Default is true.



setMode
public void setMode(RuleMode mode)(Code)
Set the direction of rule inference desired. If set to a pure mode (FORWARD, BACKWARD) then the rules will be interpreted as operating in that direction which ever direction they were written in. In HYBRID mode then the direction of the rule itself which control whether it is used in forward or backward mode. In addition, HYBRID mode allows forward rules to generate addition backward rules.



setOWLTranslation
public void setOWLTranslation(boolean enableOWLTranslation)(Code)
Set to true to enable translation of selected parts of an OWL schema to additional rules. At present only intersction statements are handled this way. The translation is only applicable in HYBRID mode.



setRules
public void setRules(List rules)(Code)
Set (or change) the rule set that this reasoner should execute. This will not affect inference models already created from this reasoner.
Parameters:
  rules - a list of Rule objects



setTransitiveClosureCaching
public void setTransitiveClosureCaching(boolean enableTGCCaching)(Code)
Set to true to enable caching of subclass/subproperty lattices in a specialized cache rather than using the rule systems. This has substantially higher performance but it is done as a separate initialization pass and so can only work correct with some rule sets. This is only guaranteed to be implemented for the HYBRID mode.



Fields inherited from com.hp.hpl.jena.reasoner.rulesys.FBRuleReasoner
final protected static boolean cachePreload(Code)(Java Doc)
protected Capabilities capabilities(Code)(Java Doc)
protected Resource configuration(Code)(Java Doc)
protected ReasonerFactory factory(Code)(Java Doc)
protected InfGraph preload(Code)(Java Doc)
protected boolean recordDerivations(Code)(Java Doc)
protected List rules(Code)(Java Doc)
protected Graph schemaGraph(Code)(Java Doc)
boolean traceOn(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.reasoner.rulesys.FBRuleReasoner
public void addDescription(Model configSpec, Resource base)(Code)(Java Doc)
public FBRuleReasoner addRules(List rules)(Code)(Java Doc)
public InfGraph bind(Graph data) throws ReasonerException(Code)(Java Doc)
public Reasoner bindSchema(Graph tbox) throws ReasonerException(Code)(Java Doc)
public Reasoner bindSchema(Model tbox) throws ReasonerException(Code)(Java Doc)
protected boolean doSetParameter(Property parameter, Object value)(Code)(Java Doc)
protected boolean doSetRDFNodeParameter(Property parameter, RDFNode value)(Code)(Java Doc)
protected boolean doSetResourceParameter(Property parameter, Resource value)(Code)(Java Doc)
public Capabilities getGraphCapabilities()(Code)(Java Doc)
protected synchronized InfGraph getPreload()(Code)(Java Doc)
public Model getReasonerCapabilities()(Code)(Java Doc)
public List getRules()(Code)(Java Doc)
public boolean isTraceOn()(Code)(Java Doc)
protected void loadConfiguration(Resource configuration)(Code)(Java Doc)
public static List loadRules(String fileName)(Code)(Java Doc)
public void setDerivationLogging(boolean logOn)(Code)(Java Doc)
public void setParameter(Property parameter, Object value)(Code)(Java Doc)
public void setRules(List rules)(Code)(Java Doc)
public void setTraceOn(boolean state)(Code)(Java Doc)
public boolean supportsProperty(Property property)(Code)(Java Doc)
public synchronized void tablePredicate(Node predicate)(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.