public class TripleIndex extends Object
TriplePatterns with SPARQL PartialSolutions and computes
new solutions in response to incoming RDF statements.| Constructor and Description |
|---|
TripleIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Returns this index to its original, empty state
|
void |
index(TriplePattern p,
VarList tuple,
PartialSolution ps)
Recursively associates a triple pattern with a partial solution such as a query
|
void |
match(VarList tuple,
org.openrdf.model.Statement st,
SolutionHandler binder)
Recursively matches a tuple pattern (at the top level, an RDF statement) against all indexed patterns,
handling matching partial solutions.
|
void |
print()
Prints a plain text representation of this index to standard output
|
boolean |
visitPartialSolutions(Visitor<PartialSolution> v)
Visits all partial solutions in the database.
|
public void clear()
public void index(TriplePattern p, VarList tuple, PartialSolution ps)
p - the triple pattern against which incoming statements will logically be matchedtuple - the remaining portion of the triple pattern to be indexed at this levelps - the partial solution to store.
When incoming statements match against the triple pattern, this partial solution will be retrieved.public void match(VarList tuple, org.openrdf.model.Statement st, SolutionHandler binder)
tuple - the remaining portion of the statement to be matchedst - the original statementbinder - a handler for matching partial solutionspublic boolean visitPartialSolutions(Visitor<PartialSolution> v)
v - a visitor for partial solutionsVisitors may choose to abort the traversal)public void print()
Copyright © 2014. All Rights Reserved.