|
|||||||||||
| 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
de.fuberlin.wiwiss.wiqa.AcceptedGraph
A virtual Jena Graph that shows a filtered view on a
Dataset. Only statements matching a Policy
are in the graph. Additionally, the explain(com.hp.hpl.jena.graph.Triple) method
can generate an explanation that states why a triple
was accepted into the graph.
The graph is ÒliveÓ. Changes to the unfiltered dataset will be reflected in the graph.
Explanations are cached. clearCachedExplanations()
should be called occassionally to free all previously cached
explanations for garbage collection.
| Field Summary |
| Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
bulkHandler, capabilities, closed, gem, pm, queryHandler, reifier, style |
| Fields inherited from interface com.hp.hpl.jena.graph.Graph |
emptyGraph |
| Constructor Summary | |
AcceptedGraph(Dataset dataset,
Policy policy)
Creates a new AcceptedGraph. |
|
AcceptedGraph(Dataset dataset,
Policy policy,
Binding contextVariables)
Creates a new AcceptedGraph. |
|
| Method Summary | |
void |
clearCachedExplanations()
Frees all previously cached explanations for garbage collection. |
Explanation |
explain(Triple t)
Explains why a triple was accepted. |
Graph |
explainAsGraph(Triple t)
Explains why a triple was accepted. |
protected ExtendedIterator |
graphBaseFind(TripleMatch m)
|
Policy |
policy()
|
| Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
add, checkOpen, close, contains, contains, containsByFind, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, reifierContains, reifierSize, reifierTriples, size, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AcceptedGraph(Dataset dataset,
Policy policy)
dataset - The unfiltered datasetpolicy - The policy to be used
public AcceptedGraph(Dataset dataset,
Policy policy,
Binding contextVariables)
dataset - The unfiltered datasetpolicy - The policy to be usedcontextVariables - A set of context variables that are available in queries| Method Detail |
protected ExtendedIterator graphBaseFind(TripleMatch m)
public Policy policy()
public Explanation explain(Triple t)
clearCachedExplanations()
was called the last time.
t - The triple to be explained
public Graph explainAsGraph(Triple t)
clearCachedExplanations()
was called the last time.
TODO: Implement GraphExplanations
t - The triple to be explained
public void clearCachedExplanations()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||