public class TransitiveInfGraph extends BaseInfGraph
The cached property and class graphs are calculated by the reasoner when the schema is bound. If the data graph does not include schema information then the caches generated at schema binding stage are reused here. Otherwise the caches are regenerated.
BaseInfGraph.InfCapabilities, BaseInfGraph.InfFindSafeCapabilities, BaseInfGraph.InfTransactionHandler
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
emptyGraph
Constructor and Description |
---|
TransitiveInfGraph(Graph data,
TransitiveReasoner reasoner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ExtendedIterator<Triple> |
find(TriplePattern pattern)
Basic pattern lookup interface.
|
ExtendedIterator<Triple> |
findWithContinuation(TriplePattern pattern,
Finder continuation)
Extended find interface used in situations where the implementator
may or may not be able to answer the complete query.
|
Capabilities |
getCapabilities()
Answer the InfCapabilities of this InfGraph.
|
Graph |
getSchemaGraph()
Return the schema graph, if any, bound into this inference graph.
|
ExtendedIterator<Triple> |
graphBaseFind(Node subject,
Node property,
Node object)
Returns an iterator over Triples.
|
void |
performAdd(Triple t)
Add one triple to the data graph, run any rules triggered by
the new data item, recursively adding any generated triples.
|
void |
performDelete(Triple t)
Removes the triple t (if possible) from the set belonging to this graph.
|
void |
prepare()
Perform any initial processing and caching.
|
clear, cloneWithPremises, close, find, getDeductionsGraph, getDerivation, getGlobalProperty, getPrefixMapping, getRawGraph, getReasoner, getTransactionHandler, getVersion, graphBaseSize, isEmpty, isPrepared, rebind, rebind, remove, reset, setDerivationLogging, testGlobalProperty, validate
add, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getStatisticsHandler, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, size, toString, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, contains, contains, delete, dependsOn, find, find, find, getEventManager, getStatisticsHandler, isClosed, isIsomorphicWith, size
public TransitiveInfGraph(Graph data, TransitiveReasoner reasoner)
reasoner
- the parent instance of the transitive reasoner,
including any precomputed class and property cachesdata
- the data graph being bound in.public void prepare()
prepare
in interface InfGraph
prepare
in class BaseInfGraph
public Graph getSchemaGraph()
getSchemaGraph
in class BaseInfGraph
public ExtendedIterator<Triple> findWithContinuation(TriplePattern pattern, Finder continuation)
findWithContinuation
in class BaseInfGraph
pattern
- a TriplePattern to be matched against the datacontinuation
- either a Finder or a normal Graph which
will be asked for additional match results if the implementor
may not have completely satisfied the query.public ExtendedIterator<Triple> graphBaseFind(Node subject, Node property, Node object)
public ExtendedIterator<Triple> find(TriplePattern pattern)
find
in class BaseInfGraph
pattern
- a TriplePattern to be matched against the datapublic void performAdd(Triple t)
performAdd
in interface GraphWithPerform
performAdd
in class BaseInfGraph
public void performDelete(Triple t)
performDelete
in interface GraphWithPerform
performDelete
in class BaseInfGraph
public Capabilities getCapabilities()
getCapabilities
in interface Graph
getCapabilities
in class BaseInfGraph
Licenced under the Apache License, Version 2.0