|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
ADD, DELETE, ORDERED, SIZE |
Method Summary | |
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. |
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. |
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 |
add, capabilities, close, contains, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, queryHandler, size |
Method Detail |
public Graph getRawGraph()
public Reasoner getReasoner()
public void rebind(Graph data)
data
- the new raw data graphpublic void rebind()
public void prepare()
public void reset()
public Node getGlobalProperty(Node property)
property
- the URI of the property to be tested
public boolean testGlobalProperty(Node property)
public ValidityReport validate()
public ExtendedIterator 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.public void setDerivationLogging(boolean logOn)
public java.util.Iterator getDerivation(Triple triple)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |