|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InfGraph
Extends the Graph interface to give additional means to query an inferred graph. Many entailments from the raw data are made to appear as if they are extract triples in the inferred graph and so appear through the normal Graph.find interface. However, here are two extensions required. Firstly, the ability to ask about global properties of the whole graph (e.g. consistency). Secondly, the ability to temporarily construct expressions (encoded in RDF) which form more complex queries.
Field Summary |
---|
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
---|
emptyGraph |
Method Summary | |
---|---|
com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> |
find(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. |
Graph |
getDeductionsGraph()
Returns a derivations graph. |
java.util.Iterator<Derivation> |
getDerivation(Triple triple)
Return the derivation of the given triple (which is the result of some previous find operation). |
Node |
getGlobalProperty(Node property)
Test a global boolean property of the graph. |
Graph |
getRawGraph()
Return the raw RDF data Graph being processed (i.e. |
Reasoner |
getReasoner()
Return the Reasoner which is being used to answer queries to this graph. |
void |
prepare()
Perform any initial processing and caching. |
void |
rebind()
Cause the inference graph to reconsult the underlying graph to take into account changes. |
void |
rebind(Graph data)
Replace the underlying data graph for this inference graph and start any inferences over again. |
void |
reset()
Reset any internal caches. |
void |
setDerivationLogging(boolean logOn)
Switch on/off drivation logging |
boolean |
testGlobalProperty(Node property)
A convenience version of getGlobalProperty which can only return a boolean result. |
ValidityReport |
validate()
Test the consistency of the bound data. |
Methods inherited from interface com.hp.hpl.jena.graph.Graph |
---|
close, contains, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, queryHandler, size |
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd |
---|
add |
Method Detail |
---|
Graph getRawGraph()
Reasoner getReasoner()
void rebind(Graph data)
data
- the new raw data graphvoid rebind()
void prepare()
void reset()
Node getGlobalProperty(Node property)
property
- the URI of the property to be tested
boolean testGlobalProperty(Node property)
ValidityReport validate()
com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> find(Node subject, Node property, Node object, Graph param)
subject
- the subject Node of the query triple, may be a Node in
the graph or a node in the parameter micro-graph or nullproperty
- the property to be retrieved or nullobject
- the object Node of the query triple, may be a Node in
the graph or a node in the parameter micro-graph.param
- a small graph encoding an expression which the subject and/or
object nodes refer.void setDerivationLogging(boolean logOn)
java.util.Iterator<Derivation> getDerivation(Triple triple)
Graph getDeductionsGraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |