|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.graph.impl.GraphBase
com.hp.hpl.jena.reasoner.BaseInfGraph
com.hp.hpl.jena.reasoner.transitiveReasoner.TransitiveInfGraph
public class TransitiveInfGraph
Implementation of InfGraph used by the TransitiveReasoner. This is returned by the TransitiveReasoner when a data graph (together with an optional schema) has been bound.
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph |
|---|
BaseInfGraph.InfCapabilities, BaseInfGraph.InfFindSafeCapabilities, BaseInfGraph.InfTransactionHandler |
| Field Summary |
|---|
| Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
|---|
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT |
| Fields inherited from interface com.hp.hpl.jena.graph.Graph |
|---|
emptyGraph |
| Constructor Summary | |
|---|---|
TransitiveInfGraph(Graph data,
TransitiveReasoner reasoner)
Constructor. |
|
| Method Summary | |
|---|---|
com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> |
find(TriplePattern pattern)
Basic pattern lookup interface. |
com.hp.hpl.jena.util.iterator.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. |
com.hp.hpl.jena.util.iterator.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. |
| Methods inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph |
|---|
cloneWithPremises, close, constructReifier, find, getBulkUpdateHandler, getDeductionsGraph, getDerivation, getGlobalProperty, getPrefixMapping, getRawGraph, getReasoner, getTransactionHandler, getVersion, graphBaseFind, graphBaseSize, isEmpty, isPrepared, rebind, rebind, reset, setDerivationLogging, testGlobalProperty, validate |
| Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
|---|
add, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getReifier, getStatisticsHandler, isClosed, isIsomorphicWith, notifyAdd, notifyDelete, queryHandler, size, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.graph.Graph |
|---|
contains, contains, delete, dependsOn, find, find, getEventManager, getReifier, getStatisticsHandler, isClosed, isIsomorphicWith, queryHandler, size |
| Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd |
|---|
add |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void prepare()
prepare in interface InfGraphprepare in class BaseInfGraphpublic Graph getSchemaGraph()
getSchemaGraph in class BaseInfGraph
public com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> findWithContinuation(TriplePattern pattern,
Finder continuation)
findWithContinuation in class BaseInfGraphpattern - 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 com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> graphBaseFind(Node subject,
Node property,
Node object)
graphBaseFind in class BaseInfGraphpublic com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> find(TriplePattern pattern)
find in class BaseInfGraphpattern - a TriplePattern to be matched against the data
public void performAdd(Triple t)
performAdd in interface com.hp.hpl.jena.graph.impl.GraphWithPerformperformAdd in class BaseInfGraphpublic void performDelete(Triple t)
performDelete in interface com.hp.hpl.jena.graph.impl.GraphWithPerformperformDelete in class BaseInfGraphpublic Capabilities getCapabilities()
getCapabilities in interface GraphgetCapabilities in class BaseInfGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||