public interface InfGraph extends Graph
emptyGraph
Modifier and Type | Method and Description |
---|---|
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.
|
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 derivation 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.
|
add, clear, close, contains, contains, delete, dependsOn, find, find, find, getCapabilities, getEventManager, getPrefixMapping, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, remove, size
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 testedboolean testGlobalProperty(Node property)
ValidityReport validate()
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)
Iterator<Derivation> getDerivation(Triple triple)
Graph getDeductionsGraph()
Licenced under the Apache License, Version 2.0