|
|||||||||||
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
A base level implementation of the InfGraph interface.
Field Summary |
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
ADD, DELETE, ORDERED, SIZE |
Constructor Summary | |
BaseInfGraph(Graph data,
Reasoner reasoner)
Constructor |
Method Summary | |
void |
add(Triple t)
Add one triple to the data graph, run any rules triggered by the new data item, recursively adding any generated triples. |
int |
capabilities()
Returns the bitwise or of ADD, DELETE, SIZE and ORDERED, to show the capabilities of this implementation of Graph. |
InfGraph |
cloneWithPremises(Graph premises)
Return a new inference graph which is a clone of the current graph together with an additional set of data premises. |
boolean |
contains(Node s,
Node p,
Node o)
Test if the graph contains the given triple. |
boolean |
contains(Triple t)
Test if the graph contains the given triple. |
void |
delete(Triple t)
Removes the triple t (if possible) from the set belonging to this graph. |
ExtendedIterator |
find(Node subject,
Node property,
Node object)
Returns an iterator over Triples. |
ExtendedIterator |
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. |
ExtendedIterator |
find(TripleMatch m)
Returns an iterator over Triples. |
ExtendedIterator |
find(TriplePattern pattern)
Basic pattern lookup interface. |
abstract ExtendedIterator |
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. |
java.util.Iterator |
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. the argument to the Reasonder.bind call that created this InfGraph). |
Reasoner |
getReasoner()
Return the Reasoner which is being used to answer queries to this graph. |
abstract Graph |
getSchemaGraph()
Return the schema graph, if any, bound into this inference 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 |
int |
size()
Return the number of triples in the just the base graph |
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 class com.hp.hpl.jena.graph.impl.GraphBase |
close, dependsOn, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, toString, withReification |
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 |
close, dependsOn, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, queryHandler |
Constructor Detail |
public BaseInfGraph(Graph data, Reasoner reasoner)
data
- the raw data file to be augmented with entailmentsreasoner
- the engine, with associated tbox data, whose find interface
can be used to extract all entailments from the data.Method Detail |
public Graph getRawGraph()
getRawGraph
in interface InfGraph
public Reasoner getReasoner()
getReasoner
in interface InfGraph
public void rebind(Graph data)
rebind
in interface InfGraph
data
- the new raw data graphpublic void rebind()
rebind
in interface InfGraph
public void reset()
reset
in interface InfGraph
public void prepare()
prepare
in interface InfGraph
public Node getGlobalProperty(Node property)
getGlobalProperty
in interface InfGraph
property
- the URI of the property to be tested
public boolean testGlobalProperty(Node property)
testGlobalProperty
in interface InfGraph
public ValidityReport validate()
validate
in interface InfGraph
public ExtendedIterator find(Node subject, Node property, Node object, Graph param)
find
in interface InfGraph
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.public ExtendedIterator find(TripleMatch m)
find
in interface Graph
Graph.find(TripleMatch)
public abstract ExtendedIterator findWithContinuation(TriplePattern pattern, Finder continuation)
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 find(Node subject, Node property, Node object)
find
in interface Graph
Graph.find(Node, Node, Node)
public ExtendedIterator find(TriplePattern pattern)
pattern
- a TriplePattern to be matched against the data
public boolean contains(Triple t)
contains
in interface Graph
public boolean contains(Node s, Node p, Node o)
contains
in interface Graph
public void setDerivationLogging(boolean logOn)
setDerivationLogging
in interface InfGraph
public java.util.Iterator getDerivation(Triple triple)
getDerivation
in interface InfGraph
public int size()
size
in interface Graph
Graph.size()
public void add(Triple t)
add
in interface Graph
public int capabilities()
capabilities
in interface Graph
Graph.capabilities()
public void delete(Triple t)
delete
in interface Graph
Graph.delete(Triple)
public abstract Graph getSchemaGraph()
public InfGraph cloneWithPremises(Graph premises)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |