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


com.hp.hpl.jena.rdf.model.InfModel

All known Subclasses:   com.hp.hpl.jena.rdf.model.impl.InfModelImpl,
InfModel
public interface InfModel extends Model(Code)
An extension to the normal Model interface that supports access to any underlying inference capability.

In Jena the primary use of inference is to generate additional entailments from a set of RDF data. These entailments just appear as additional RDF data in the inferred model and are accessed through the normal API. For example, if an inference engine can determine the class of a resource "foo" is "fooClass" then all Model API calls such as listStatements and getProperty should act as if the triple:

 foo rdf:type fooClass .
 
were in the data.

A few reasoner services cannot be made directly available in this way and the InfGraph extension gives access to these - specifically access to validation/consistency checking, derivation traces and find-with-posits.

Note that this interface, and especially the interface onto ValidityReports and Derivations are not yet stable.


author:
   Dave Reynolds
version:
   $Revision: 1.13 $ on $Date: 2008/01/02 12:05:46 $




Method Summary
public  ModelgetDeductionsModel()
     Returns a derivations model.
public  IteratorgetDerivation(Statement statement)
     Return the derivation of the given statement (which should be the result of some previous list operation).
public  ModelgetRawModel()
     Return the raw RDF model being processed (i.e.
public  ReasonergetReasoner()
     Return the Reasoner which is being used to answer queries to this graph.
public  StmtIteratorlistStatements(Resource subject, Property predicate, RDFNode object, Model posit)
     Find all the statements matching a pattern.

Return an iterator over all the statements in a model that match a pattern.

public  voidprepare()
     Perform any initial processing and caching.
public  voidrebind()
     Cause the inference model to reconsult the underlying data to take into account changes.
public  voidreset()
     Reset any internal caches.
public  voidsetDerivationLogging(boolean logOn)
     Switch on/off drivation logging.
public  ValidityReportvalidate()
     Test the consistency of the underlying data.



Method Detail
getDeductionsModel
public Model getDeductionsModel()(Code)
Returns a derivations model. The rule reasoners typically create a graph containing those triples added to the base graph due to rule firings. In some applications it can useful to be able to access those deductions directly, without seeing the raw data which triggered them. In particular, this allows the forward rules to be used as if they were rewrite transformation rules. the deductions model, if relevant for this class of inferenceengine or null if not.



getDerivation
public Iterator getDerivation(Statement statement)(Code)
Return the derivation of the given statement (which should be the result of some previous list operation). Not all reasoneers will support derivations. an iterator over Derivation records or null if there is no derivation informationavailable for this triple.
See Also:   com.hp.hpl.jena.reasoner.Derivation
See Also:    Derviation



getRawModel
public Model getRawModel()(Code)
Return the raw RDF model being processed (i.e. the argument to the Reasonder.bind call that created this InfModel).



getReasoner
public Reasoner getReasoner()(Code)
Return the Reasoner which is being used to answer queries to this graph.



listStatements
public StmtIterator listStatements(Resource subject, Property predicate, RDFNode object, Model posit)(Code)
Find all the statements matching a pattern.

Return an iterator over all the statements in a model that match a pattern. The statements selected are those whose subject matches the subject argument, whose predicate matches the predicate argument and whose object matchesthe object argument. If an argument is null it matches anything.

The s/p/o terms may refer to resources which are temporarily defined in the "posit" model. This allows one, for example, to query what resources are of type CE where CE is a class expression rather than a named class - put CE in the posit arg.

an iterator over the subjects
Parameters:
  subject - The subject sought
Parameters:
  predicate - The predicate sought
Parameters:
  object - The value sought



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 rather than just leaving to be done at first query time.



rebind
public void rebind()(Code)
Cause the inference model to reconsult the underlying data to take into account changes. Normally changes are made through the InfModel's add and remove calls are will be handled appropriately. However, in some cases changes are made "behind the InfModels's back" and this forces a full reconsult of the changed data.



reset
public void reset()(Code)
Reset any internal caches. Some systems, such as the tabled backchainer, retain information after each query. A reset will wipe this information preventing unbounded memory use at the expense of more expensive future queries. A reset does not cause the raw data to be reconsulted and so is less expensive than a rebind.



setDerivationLogging
public void setDerivationLogging(boolean logOn)(Code)
Switch on/off drivation logging. If this is switched on then every time an inference is a made that fact is recorded and the resulting record can be access through a later getDerivation call. This may consume a lot of space!



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

Logically inconsistent models will be indicated by a ValidityReport which reports isValid() as false. Additional non-fatal problems, such as uninstantiatable classes, may be reported as warnings. a ValidityReport structure




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