|
|||||||||||
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.rdfsReasoner1.RDFSInfGraph
An RDFS reasoner that has been bound to both a TBox and an ABox. It cannot be bound any futher. Once this Bound reasoner has been created all the class, property and associated declarations have been extracted and cached and all queries are answerable directly from the cached results or from query rewrites.
Initially the subClass/subProperty caches are shared with the parent RDFSReasoner so they can be shared across instance data. However, if any update includes any such declarations then the caches have to be cloned and separated.
Field Summary |
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
ADD, DELETE, ORDERED, SIZE |
Constructor Summary | |
RDFSInfGraph(RDFSReasoner reasoner,
Graph data)
Constructor |
Method Summary | |
void |
addBRule(BRWRule rule)
Add a new backchaining rule into the rule set. |
void |
assertTriple(Triple t)
Assert a triple into the triple cache. |
ExtendedIterator |
findNested(TriplePattern pattern,
Finder continuation,
java.util.HashSet firedRules)
Variant on find called by backward rules, additional argument used to pass set of instantiated rules to prevent run-away rule firing. |
ExtendedIterator |
findProperties()
Variant on find called by special backward rules that need to list all pre-registered properties. |
ExtendedIterator |
findRawWithContinuation(TriplePattern pattern,
Finder continuation)
Variant on find called by special backward rules that only access the raw data and axioms and bypass further rules |
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. |
boolean |
getScanProperties()
Returns the scanProperties flag. |
Graph |
getSchemaGraph()
Return the schema graph, if any, bound into this inference graph. |
boolean |
isProperty(Node prop)
Variant on find called by special backward rules that need to list check for a specific preregistered property. |
void |
prepare()
Perform any initial processing and caching. |
void |
setScanProperties(boolean scanProperties)
Sets the scanProperties flag If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached. |
java.lang.String |
toString()
Printable version of the whole reasoner state. |
ValidityReport |
validate()
Test the consistency of the bound data. |
Methods inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph |
add, capabilities, cloneWithPremises, contains, contains, delete, find, find, find, find, getDerivation, getGlobalProperty, getRawGraph, getReasoner, rebind, rebind, reset, setDerivationLogging, size, testGlobalProperty |
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, 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 RDFSInfGraph(RDFSReasoner reasoner, Graph data)
data
- the raw data graph being bound to the reasonerreasoner
- the RDFSReasoner which spawned this InfGraphMethod Detail |
public boolean getScanProperties()
If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached. This is expensive but without this some cases of rdf:_n properties will not be handled.
This method is just here for development purposes and will be replaced by the configuration machinery
public void setScanProperties(boolean scanProperties)
If this is set to true then when a reasoner instance is constructed the whole data graph is scanned to detect all properties and the results are cached. This is expensive but without this some cases of rdf:_n properties will not be handled.
This method is just here for development purposes and will be replaced by the configuration machinery
scanProperties
- The scanProperties to setpublic Graph getSchemaGraph()
getSchemaGraph
in class BaseInfGraph
public void prepare()
prepare
in interface InfGraph
prepare
in class BaseInfGraph
public ExtendedIterator 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 findNested(TriplePattern pattern, Finder continuation, java.util.HashSet firedRules)
public ExtendedIterator findRawWithContinuation(TriplePattern pattern, Finder continuation)
public ExtendedIterator findProperties()
public boolean isProperty(Node prop)
public ValidityReport validate()
validate
in interface InfGraph
validate
in class BaseInfGraph
public void assertTriple(Triple t)
public void addBRule(BRWRule rule)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |