public class VirtInfGraph extends VirtGraph implements com.hp.hpl.jena.reasoner.InfGraph
| Constructor and Description |
|---|
VirtInfGraph(java.lang.String _ruleSet,
boolean useSameAs,
java.lang.String graphName) |
VirtInfGraph(java.lang.String _ruleSet,
boolean useSameAs,
java.lang.String graphName,
java.lang.String url_hostlist,
java.lang.String user,
java.lang.String password) |
VirtInfGraph(java.lang.String _ruleSet,
boolean useSameAs,
java.lang.String graphName,
java.lang.String url_hostlist,
java.lang.String user,
java.lang.String password,
boolean roundrobin) |
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.graph.Graph |
cloneWithPremises(com.hp.hpl.jena.graph.Graph premises)
Return a new inference graph which is a clone of the current graph
together with an additional set of data premises.
|
com.hp.hpl.jena.util.iterator.ExtendedIterator<com.hp.hpl.jena.graph.Triple> |
find(com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.graph.Node property,
com.hp.hpl.jena.graph.Node object,
com.hp.hpl.jena.graph.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.
|
com.hp.hpl.jena.graph.Graph |
getDeductionsGraph()
Returns a derivations graph.
|
java.util.Iterator<com.hp.hpl.jena.reasoner.Derivation> |
getDerivation(com.hp.hpl.jena.graph.Triple triple)
Return the derivation of the given triple (which is the result of
some previous find operation).
|
com.hp.hpl.jena.graph.Node |
getGlobalProperty(com.hp.hpl.jena.graph.Node property)
Test a global boolean property of the graph.
|
com.hp.hpl.jena.graph.Graph |
getRawGraph()
Return the raw RDF data Graph being processed (i.e. the argument
to the Reasonder.bind call that created this InfGraph).
|
com.hp.hpl.jena.reasoner.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(com.hp.hpl.jena.graph.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(com.hp.hpl.jena.graph.Node property)
A convenience version of getGlobalProperty which can only return
a boolean result.
|
com.hp.hpl.jena.reasoner.ValidityReport |
validate()
Test the consistency of the bound data.
|
clear, clear, close, createRuleSet, getBulkUpdateHandler, getConnection, getCount, getDataSource, getFetchSize, getGraphName, getGraphPassword, getGraphUrl, getGraphUser, getPrefixMapping, getQueryTimeout, getReadFromAllGraphs, getRuleSet, getSameAs, getTransactionHandler, getXAResource, graphBaseFind, Node2Str, Object2Node, performAdd, performDelete, read, reifierSize, reifierTriples, remove, remove, removeRuleSet, setFetchSize, setQueryTimeout, setReadFromAllGraphs, setRuleSet, setSameAsadd, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getStatisticsHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toStringpublic VirtInfGraph(java.lang.String _ruleSet,
boolean useSameAs,
java.lang.String graphName)
public VirtInfGraph(java.lang.String _ruleSet,
boolean useSameAs,
java.lang.String graphName,
java.lang.String url_hostlist,
java.lang.String user,
java.lang.String password)
public VirtInfGraph(java.lang.String _ruleSet,
boolean useSameAs,
java.lang.String graphName,
java.lang.String url_hostlist,
java.lang.String user,
java.lang.String password,
boolean roundrobin)
public com.hp.hpl.jena.graph.Graph getRawGraph()
getRawGraph in interface com.hp.hpl.jena.reasoner.InfGraphpublic com.hp.hpl.jena.reasoner.Reasoner getReasoner()
getReasoner in interface com.hp.hpl.jena.reasoner.InfGraphpublic void rebind(com.hp.hpl.jena.graph.Graph data)
rebind in interface com.hp.hpl.jena.reasoner.InfGraphdata - the new raw data graphpublic void rebind()
rebind in interface com.hp.hpl.jena.reasoner.InfGraphpublic void prepare()
prepare in interface com.hp.hpl.jena.reasoner.InfGraphpublic void reset()
reset in interface com.hp.hpl.jena.reasoner.InfGraphpublic com.hp.hpl.jena.graph.Node getGlobalProperty(com.hp.hpl.jena.graph.Node property)
getGlobalProperty in interface com.hp.hpl.jena.reasoner.InfGraphproperty - the URI of the property to be testedpublic boolean testGlobalProperty(com.hp.hpl.jena.graph.Node property)
testGlobalProperty in interface com.hp.hpl.jena.reasoner.InfGraphpublic com.hp.hpl.jena.reasoner.ValidityReport validate()
validate in interface com.hp.hpl.jena.reasoner.InfGraphpublic com.hp.hpl.jena.util.iterator.ExtendedIterator<com.hp.hpl.jena.graph.Triple> find(com.hp.hpl.jena.graph.Node subject,
com.hp.hpl.jena.graph.Node property,
com.hp.hpl.jena.graph.Node object,
com.hp.hpl.jena.graph.Graph param)
find in interface com.hp.hpl.jena.reasoner.InfGraphsubject - 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 com.hp.hpl.jena.graph.Graph cloneWithPremises(com.hp.hpl.jena.graph.Graph premises)
public void setDerivationLogging(boolean logOn)
setDerivationLogging in interface com.hp.hpl.jena.reasoner.InfGraphpublic java.util.Iterator<com.hp.hpl.jena.reasoner.Derivation> getDerivation(com.hp.hpl.jena.graph.Triple triple)
getDerivation in interface com.hp.hpl.jena.reasoner.InfGraphpublic com.hp.hpl.jena.graph.Graph getDeductionsGraph()
getDeductionsGraph in interface com.hp.hpl.jena.reasoner.InfGraph