|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.ldap.container.LdapSolutionGenerator
public class LdapSolutionGenerator
Provides Glitter with query access to LDAP data. The LDAP data is exposed as RDF according to the mapping rules defined in the given LdapRdfMapping.
| Constructor Summary | |
|---|---|
LdapSolutionGenerator(javax.naming.directory.DirContext ldapContext,
LdapMapping mapping)
|
|
| Method Summary | |
|---|---|
boolean |
canBindGraphVariables()
Informative method. |
boolean |
canHandleSimultaneousRequests()
Informative method. |
void |
cleanup()
Called after all calls to generateSolutions. |
SolutionSet |
generateSolutions(TreeNode node,
IRIReference namedGraph,
Variable namedGraphVariable,
SolutionSet requiredBindings)
Checks that named graph is correct and accepts TriplePatternNodes. |
SolutionSet |
generateSolutions(TriplePattern pattern,
Variable namedGraphVariable)
Handle TriplePattern queries. |
QueryExecutionPlan |
getQueryExecutionPlan()
|
QueryExecutionServices |
getQueryExecutionServices()
|
QueryInformation |
getQueryInformation()
|
RDFDataset<?> |
getRDFDataset()
|
void |
initialize()
Called before any calls to generateSolutions but after all calls to set*. |
void |
setIncludeInferredTriples(boolean includeInferredTriples)
|
void |
setOntology(java.net.URI ontology)
|
void |
setQueryExecutionPlan(QueryExecutionPlan plan)
|
void |
setQueryExecutionServices(QueryExecutionServices services)
|
void |
setQueryInformation(QueryInformation query)
|
void |
setRDFDataset(RDFDataset<?> dataset)
|
boolean |
sortedSolutions()
|
boolean |
usesRequiredBindings()
Informative method. |
boolean |
willHandleFilters(java.util.Set<Expression> filters)
Many backends do not implement filters, in which case Glitter will filter results even if the solution generator handles a node which subsumes filters. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapSolutionGenerator(javax.naming.directory.DirContext ldapContext,
LdapMapping mapping)
| Method Detail |
|---|
public SolutionSet generateSolutions(TreeNode node,
IRIReference namedGraph,
Variable namedGraphVariable,
SolutionSet requiredBindings)
throws GlitterException
generateSolutions in interface SolutionGeneratornode - The node in the tree for which bindings are desired.namedGraph - If not null, the solutions should be generated by
matching against this graph from the named graph part of the RDF
dataSet. Otherwise, the solutions should be generated from the default
graph. (i.e., if not null, treat this graph as the default graph)namedGraphVariable - If not null and this SolutionGenerator returns
true for canBindGraphVariables(), then this is the variable that should be
bound to the named graph IRI from which solutions are found.requiredBindings - Known bindings at this point in the AST.
Every returned solution should be a superset of one solution from the
required bindings. (That is, unbound variables can be bound, but all
bound variables must remain bound to the same value.) Note that Glitter
enforces this constraint when combining pattern solutions.
In general, if generateSolutions returns a value (null or otherwise), then
the SolutionGenerator will not be called again for any descendants of
node. If an exception is thrown, then generateSolution may be called for
descendant (simpler) nodes.
GlitterException
CannotGenerateSolutionsException - if the SolutionGenerator does not
wish to handle this tree node.
public SolutionSet generateSolutions(TriplePattern pattern,
Variable namedGraphVariable)
public void initialize()
throws GlitterException
SolutionGenerator
initialize in interface SolutionGeneratorGlitterExceptionpublic boolean canBindGraphVariables()
SolutionGenerator
canBindGraphVariables in interface SolutionGeneratorRDFDatasetpublic boolean canHandleSimultaneousRequests()
SolutionGenerator
canHandleSimultaneousRequests in interface SolutionGenerator
public void cleanup()
throws GlitterException
SolutionGenerator
cleanup in interface SolutionGeneratorGlitterExceptionpublic QueryExecutionPlan getQueryExecutionPlan()
getQueryExecutionPlan in interface SolutionGeneratorpublic QueryExecutionServices getQueryExecutionServices()
getQueryExecutionServices in interface SolutionGeneratorpublic QueryInformation getQueryInformation()
getQueryInformation in interface SolutionGeneratorpublic RDFDataset<?> getRDFDataset()
getRDFDataset in interface SolutionGeneratorpublic void setIncludeInferredTriples(boolean includeInferredTriples)
setIncludeInferredTriples in interface SolutionGeneratorincludeInferredTriples - Whether or not inferred triples should contribute to bindings.public void setOntology(java.net.URI ontology)
setOntology in interface SolutionGeneratorontology - The ontology in effect for inferred triples.public void setQueryExecutionPlan(QueryExecutionPlan plan)
setQueryExecutionPlan in interface SolutionGeneratorplan - The execution plan in use.public void setQueryExecutionServices(QueryExecutionServices services)
setQueryExecutionServices in interface SolutionGeneratorpublic void setQueryInformation(QueryInformation query)
setQueryInformation in interface SolutionGeneratorquery - Information on the parsed and prepared query.public void setRDFDataset(RDFDataset<?> dataset)
setRDFDataset in interface SolutionGeneratordataset - The RDFDataset against which the query is being executed.public boolean sortedSolutions()
sortedSolutions in interface SolutionGeneratorpublic boolean usesRequiredBindings()
SolutionGenerator
usesRequiredBindings in interface SolutionGeneratorpublic boolean willHandleFilters(java.util.Set<Expression> filters)
SolutionGenerator
willHandleFilters in interface SolutionGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||