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


com.hp.hpl.jena.reasoner.BaseInfGraph
   com.hp.hpl.jena.reasoner.dig.DIGInfGraph

DIGInfGraph
public class DIGInfGraph extends BaseInfGraph (Code)

An InfGraph that performs reasoning via a DIG interface to an external reasoner.


author:
   Ian Dickinson, HP Labs
author:
   (email)
version:
   CVS $Id: DIGInfGraph.java,v 1.17 2008/01/02 12:07:11 andy_seaborne Exp $


Field Summary
protected  DIGAdapterm_adapter
    

Constructor Summary
public  DIGInfGraph(Graph data, DIGReasoner reasoner)
    

Method Summary
public  ExtendedIteratorfind(Node subject, Node property, Node object, Graph param)
    

An extension of the Graph.find interface which allows the caller to encode complex expressions in RDF and then refer to those expressions within the query triple.

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  GraphgetSchemaGraph()
     Return the schema graph, if any, bound into this inference graph.
public synchronized  voidperformAdd(Triple t)
    
public  voidperformDelete(Triple t)
    
public  voidprepare()
     Perform any initial processing and caching.
public  voidrebind(Graph data)
     Replace the underlying data graph for this inference graph and start any inferences over again.
public  voidsetDerivationLogging(boolean logOn)
    
public  ValidityReportvalidate()
    

Test the consistency of the model.


Field Detail
m_adapter
protected DIGAdapter m_adapter(Code)
The DIG adapter we will use to communicate with the external reasoner




Constructor Detail
DIGInfGraph
public DIGInfGraph(Graph data, DIGReasoner reasoner)(Code)
Constructor
Parameters:
  data - the raw data file to be augmented with entailments
Parameters:
  reasoner - the engine, with associated tbox data, whose find interfacecan be used to extract all entailments from the data.




Method Detail
find
public ExtendedIterator find(Node subject, Node property, Node object, Graph param)(Code)

An extension of the Graph.find interface which allows the caller to encode complex expressions in RDF and then refer to those expressions within the query triple. For example, one might encode a class expression and then ask if there are any instances of this class expression in the InfGraph. In the case of the DIGInfGraph, this is exactly the use case we assume. In particular, we expect that the object node is the subject of one or more sentences in param which completely define the class description.


Parameters:
  subject - the subject Node of the query triple, may be a Node inthe graph or a node in the parameter micro-graph or null
Parameters:
  property - the property to be retrieved or null
Parameters:
  object - the object Node of the query triple, may be a Node inthe graph or a node in the parameter micro-graph.
Parameters:
  param - a small graph encoding an expression which the subject and/orobject nodes refer.




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.

DIG implementation note: the default call into this method from the base inference graph makes the continuation a query of the base graph. Since DIGAdapter already queries the base graph, there is no futher need to query it through the continuation. Consequently, this implementation does not call the continuation. Client code that wishes to provide a non-default continuation should sub-class DIGInfGraph and provide a suitable call to the continuation.find().


Parameters:
  pattern - a TriplePattern to be matched against the data
Parameters:
  continuation - Not used in this implementation



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



performAdd
public synchronized void performAdd(Triple t)(Code)

Add one triple to the data graph, mark the graph not-prepared, but don't run prepare() just yet.


Parameters:
  t - A triple to add to the graph



performDelete
public void performDelete(Triple t)(Code)

Delete one triple from the data graph, mark the graph not-prepared, but don't run prepare() just yet.


Parameters:
  t - A triple to remove from the graph



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.



rebind
public void rebind(Graph data)(Code)
Replace the underlying data graph for this inference graph and start any inferences over again. This is primarily using in setting up ontology imports processing to allow an imports multiunion graph to be inserted between the inference graph and the raw data, before processing.
Parameters:
  data - the new raw data graph



setDerivationLogging
public void setDerivationLogging(boolean logOn)(Code)
Switch on/off drivation logging - not supported with DIG reasoner



validate
public ValidityReport validate()(Code)

Test the consistency of the model. This looks for overall inconsistency, and for any unsatisfiable classes.

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)

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