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


java.lang.Object
   com.hp.hpl.jena.graph.impl.GraphBase
      com.hp.hpl.jena.reasoner.BaseInfGraph
         com.hp.hpl.jena.reasoner.rdfsReasoner1.RDFSInfGraph

RDFSInfGraph
public class RDFSInfGraph extends BaseInfGraph (Code)
An RDFS reasoner that has been bound to both a TBox and an ABox. It cannot be bound any futher. Once this Bound reasoner has been created all the class, property and associated declarations have been extracted and cached and all queries are answerable directly from the cached results or from query rewrites.

Initially the subClass/subProperty caches are shared with the parent RDFSReasoner so they can be shared across instance data. However, if any update includes any such declarations then the caches have to be cloned and separated.


author:
   Dave Reynolds
version:
   $Revision: 1.25 $ on $Date: 2008/01/02 12:06:44 $


Field Summary
protected  FGraphaxioms
    
protected static  Triple[]baseAxioms
    
protected static  BRWRule[]brules
    
protected  HashMapdtRange
    
protected  booleanhaveSplitSubClassCache
    
protected static  Loglogger
    
protected  PatternRouterrouter
    
protected static  BaseFRule[]rules
    
protected  booleanscanProperties
    
protected  TransitiveGraphCachesubClassCache
    
protected  TransitiveGraphCachesubPropertyCache
    
protected  Findertbox
    
protected  FindertripleCache
    

Constructor Summary
public  RDFSInfGraph(RDFSReasoner reasoner, Graph data)
    

Method Summary
public  voidaddBRule(BRWRule rule)
     Add a new backchaining rule into the rule set.
public  voidassertTriple(Triple t)
     Assert a triple into the triple cache.
public  ExtendedIteratorfindNested(TriplePattern pattern, Finder continuation, HashSet firedRules)
     Variant on find called by backward rules, additional argument used to pass set of instantiated rules to prevent run-away rule firing.
public  ExtendedIteratorfindProperties()
     Variant on find called by special backward rules that need to list all pre-registered properties.
public  ExtendedIteratorfindRawWithContinuation(TriplePattern pattern, Finder continuation)
    
public  ExtendedIteratorfindWithContinuation(TriplePattern pattern, Finder continuation)
     Extended find interface used in situations where the implementator may or may not be able to answer the complete query.
public  booleangetScanProperties()
     Returns the scanProperties flag.

If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached.

public  GraphgetSchemaGraph()
     Return the schema graph, if any, bound into this inference graph.
public  booleanisProperty(Node prop)
     Variant on find called by special backward rules that need to list check for a specific preregistered property.
public  voidprepare()
     Perform any initial processing and caching.
public  voidsetScanProperties(boolean scanProperties)
     Sets the scanProperties flag

If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached.

public  StringtoString()
     Printable version of the whole reasoner state.
public  ValidityReportvalidate()
     Test the consistency of the bound data.

Field Detail
axioms
protected FGraph axioms(Code)
Cache of axiomatci triples to be included in the tripleCache



baseAxioms
protected static Triple[] baseAxioms(Code)
The RDFS built in axioms



brules
protected static BRWRule[] brules(Code)
The RDFS special case backward rule set



dtRange
protected HashMap dtRange(Code)
Optional map of property node to datatype ranges



haveSplitSubClassCache
protected boolean haveSplitSubClassCache(Code)
Flag to indicate that this cache has already been split off from the parent reasoner



logger
protected static Log logger(Code)



router
protected PatternRouter router(Code)
Router which maps queries onto different cache components that can answer then



rules
protected static BaseFRule[] rules(Code)
The RDFS forward rule set



scanProperties
protected boolean scanProperties(Code)
Flag to control whether properties are eagerly scanned



subClassCache
protected TransitiveGraphCache subClassCache(Code)
The precomputed cache of the subClass graph



subPropertyCache
protected TransitiveGraphCache subPropertyCache(Code)
The precomputed cache of the subProperty graph



tbox
protected Finder tbox(Code)
The data supplied as a tbox, may be null, will be included as part of tripleCache if not null



tripleCache
protected Finder tripleCache(Code)
Cache of precomputed triples which are added to data - this includes the tbox, axioms and forward deductions




Constructor Detail
RDFSInfGraph
public RDFSInfGraph(RDFSReasoner reasoner, Graph data)(Code)
Constructor
Parameters:
  data - the raw data graph being bound to the reasoner
Parameters:
  reasoner - the RDFSReasoner which spawned this InfGraph




Method Detail
addBRule
public void addBRule(BRWRule rule)(Code)
Add a new backchaining rule into the rule set. Called by FRules when they fire



assertTriple
public void assertTriple(Triple t)(Code)
Assert a triple into the triple cache. Called by FRules when they fire



findNested
public ExtendedIterator findNested(TriplePattern pattern, Finder continuation, HashSet firedRules)(Code)
Variant on find called by backward rules, additional argument used to pass set of instantiated rules to prevent run-away rule firing.



findProperties
public ExtendedIterator findProperties()(Code)
Variant on find called by special backward rules that need to list all pre-registered properties. The iterator returns Nodes not triples.



findRawWithContinuation
public ExtendedIterator findRawWithContinuation(TriplePattern pattern, Finder continuation)(Code)
Variant on find called by special backward rules that only access the raw data and axioms and bypass further rules



findWithContinuation
public ExtendedIterator findWithContinuation(TriplePattern pattern, Finder continuation)(Code)
Extended find interface used in situations where the implementator may or may not be able to answer the complete query. It will attempt to answer the pattern but if its answers are not known to be complete then it will also pass the request on to the nested Finder to append more results.
Parameters:
  pattern - a TriplePattern to be matched against the data
Parameters:
  continuation - either a Finder or a normal Graph whichwill be asked for additional match results if the implementormay not have completely satisfied the query.



getScanProperties
public boolean getScanProperties()(Code)
Returns the scanProperties flag.

If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached. This is expensive but without this some cases of rdf:_n properties will not be handled.

This method is just here for development purposes and will be replaced by the configuration machinery

boolean



getSchemaGraph
public Graph getSchemaGraph()(Code)
Return the schema graph, if any, bound into this inference graph.



isProperty
public boolean isProperty(Node prop)(Code)
Variant on find called by special backward rules that need to list check for a specific preregistered property.



prepare
public void prepare()(Code)
Perform any initial processing and caching. This call is optional. Most engines either have negligable set up work or will perform an implicit "prepare" if necessary. The call is provided for those occasions where substantial preparation work is possible (e.g. running a forward chaining rule system) and where an application might wish greater control over when this prepration is done.



setScanProperties
public void setScanProperties(boolean scanProperties)(Code)
Sets the scanProperties flag

If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached. This is expensive but without this some cases of rdf:_n properties will not be handled.

This method is just here for development purposes and will be replaced by the configuration machinery


Parameters:
  scanProperties - The scanProperties to set



toString
public String toString()(Code)
Printable version of the whole reasoner state. Used during debugging



validate
public ValidityReport validate()(Code)
Test the consistency of the bound data. This normally tests the validity of the bound instance data against the bound schema data. a ValidityReport structure



Fields inherited from com.hp.hpl.jena.reasoner.BaseInfGraph
protected FGraph fdata(Code)(Java Doc)
protected boolean isPrepared(Code)(Java Doc)
protected Reasoner reasoner(Code)(Java Doc)
protected boolean recordDerivations(Code)(Java Doc)
protected volatile int version(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.reasoner.BaseInfGraph
public InfGraph cloneWithPremises(Graph premises)(Code)(Java Doc)
public void close()(Code)(Java Doc)
public Reifier constructReifier()(Code)(Java Doc)
protected void discardState()(Code)(Java Doc)
public ExtendedIterator find(Node subject, Node property, Node object, Graph param)(Code)(Java Doc)
public ExtendedIterator find(TriplePattern pattern)(Code)(Java Doc)
abstract public ExtendedIterator findWithContinuation(TriplePattern pattern, Finder continuation)(Code)(Java Doc)
public BulkUpdateHandler getBulkUpdateHandler()(Code)(Java Doc)
public Capabilities getCapabilities()(Code)(Java Doc)
public Graph getDeductionsGraph()(Code)(Java Doc)
public Iterator getDerivation(Triple triple)(Code)(Java Doc)
public Node getGlobalProperty(Node property)(Code)(Java Doc)
public PrefixMapping getPrefixMapping()(Code)(Java Doc)
public Graph getRawGraph()(Code)(Java Doc)
public Reasoner getReasoner()(Code)(Java Doc)
abstract public Graph getSchemaGraph()(Code)(Java Doc)
public TransactionHandler getTransactionHandler()(Code)(Java Doc)
public int getVersion()(Code)(Java Doc)
public ExtendedIterator graphBaseFind(TripleMatch m)(Code)(Java Doc)
public ExtendedIterator graphBaseFind(Node subject, Node property, Node object)(Code)(Java Doc)
public int graphBaseSize()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public boolean isPrepared()(Code)(Java Doc)
public synchronized void performAdd(Triple t)(Code)(Java Doc)
public void performDelete(Triple t)(Code)(Java Doc)
public void prepare()(Code)(Java Doc)
public void rebind(Graph data)(Code)(Java Doc)
public void rebind()(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setDerivationLogging(boolean logOn)(Code)(Java Doc)
public boolean testGlobalProperty(Node property)(Code)(Java Doc)
public ValidityReport validate()(Code)(Java Doc)

Fields inherited from com.hp.hpl.jena.graph.impl.GraphBase
protected BulkUpdateHandler bulkHandler(Code)(Java Doc)
protected Capabilities capabilities(Code)(Java Doc)
protected boolean closed(Code)(Java Doc)
protected GraphEventManager gem(Code)(Java Doc)
protected PrefixMapping pm(Code)(Java Doc)
protected QueryHandler queryHandler(Code)(Java Doc)
protected Reifier reifier(Code)(Java Doc)
protected GraphStatisticsHandler statisticsHandler(Code)(Java Doc)
final protected ReificationStyle style(Code)(Java Doc)

Methods inherited from com.hp.hpl.jena.graph.impl.GraphBase
public void add(Triple t)(Code)(Java Doc)
protected void checkOpen()(Code)(Java Doc)
public void close()(Code)(Java Doc)
protected Reifier constructReifier()(Code)(Java Doc)
final public boolean contains(Triple t)(Code)(Java Doc)
final public boolean contains(Node s, Node p, Node o)(Code)(Java Doc)
final protected boolean containsByFind(Triple t)(Code)(Java Doc)
protected GraphStatisticsHandler createStatisticsHandler()(Code)(Java Doc)
final public void delete(Triple t)(Code)(Java Doc)
public boolean dependsOn(Graph other)(Code)(Java Doc)
final public ExtendedIterator find(TripleMatch m)(Code)(Java Doc)
final public ExtendedIterator find(Node s, Node p, Node o)(Code)(Java Doc)
public ExtendedIterator forTestingOnly_graphBaseFind(TripleMatch tm)(Code)(Java Doc)
public BulkUpdateHandler getBulkUpdateHandler()(Code)(Java Doc)
public Capabilities getCapabilities()(Code)(Java Doc)
public GraphEventManager getEventManager()(Code)(Java Doc)
public PrefixMapping getPrefixMapping()(Code)(Java Doc)
public Reifier getReifier()(Code)(Java Doc)
public GraphStatisticsHandler getStatisticsHandler()(Code)(Java Doc)
public TransactionHandler getTransactionHandler()(Code)(Java Doc)
protected boolean graphBaseContains(Triple t)(Code)(Java Doc)
abstract protected ExtendedIterator graphBaseFind(TripleMatch m)(Code)(Java Doc)
protected ExtendedIterator graphBaseFind(Node s, Node p, Node o)(Code)(Java Doc)
protected int graphBaseSize()(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public boolean isIsomorphicWith(Graph g)(Code)(Java Doc)
public void notifyAdd(Triple t)(Code)(Java Doc)
public void notifyDelete(Triple t)(Code)(Java Doc)
public void performAdd(Triple t)(Code)(Java Doc)
public void performDelete(Triple t)(Code)(Java Doc)
public QueryHandler queryHandler()(Code)(Java Doc)
protected boolean reifierContains(Triple t)(Code)(Java Doc)
protected int reifierSize()(Code)(Java Doc)
protected ExtendedIterator reifierTriples(TripleMatch m)(Code)(Java Doc)
final public int size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public static String toString(String prefix, Graph that)(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.