| Package | Description |
|---|---|
| org.aksw.sparqlify.core.algorithms | |
| org.aksw.sparqlify.core.interfaces |
| Modifier and Type | Method and Description |
|---|---|
static <T extends IViewDef> |
CandidateViewSelectorBase.createViewInstance(RestrictionManagerImpl subRestrictions,
com.hp.hpl.jena.sparql.core.Quad queryQuad,
ViewQuad<T> viewQuad)
Checks whether the view quad is consistent with the current constraints
|
static ViewInstance |
SelfJoinEliminator.merge(ViewInstance a,
ViewInstance b)
Does an merge of self-joins if possible.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ListMultimap<String,ViewInstance<T>> |
ViewInstanceJoin.getInstancesGroupedByParent() |
Collection<ViewInstance<T>> |
ViewInstanceJoin.getViewInstances() |
static <T extends IViewDef> |
ViewInstanceJoin.toMap(Collection<ViewInstance<T>> viewInstances) |
| Modifier and Type | Method and Description |
|---|---|
C |
CandidateViewSelectorBase.createContext(C baseContext,
ViewInstance<T> viewInstance)
Optionally override this method to track custom information during the recursion of candidate selection of quad patterns
|
Mapping |
CandidateViewSelectorImpl.createContext(Mapping baseMapping,
ViewInstance<ViewDefinition> viewInstance)
Create a new context based on the baseContext and the current candidate viewInstance
if null is returned, the candidateViewInstance becomes rejected, otherwise, the new context
will be passed to this function together with all sub candidate viewInstances.
|
static Mapping |
MappingOpsImpl.createEmptyMapping(ViewInstance<ViewDefinition> viewInstance) |
Mapping |
MappingOpsImpl.createMapping(ViewInstance<ViewDefinition> viewInstance)
Creates a mapping from a view instance:
- For every binding variable, that maps to multiple things (contants + variables),
we need to equate all these things being mapped to
Schematically, we need to transform the binding to variable definitions from the original structure
(query view definition)
q v d
/ dx1
?x
/ \ dxn
?s
\ / dy1
?y
\ dyn
to conceptually a CNF:
(dx1 = dy1 OR ...
|
static org.aksw.sparqlify.core.algorithms.VarDefKey |
MappingOpsImpl.joinDefinitionsOnEquals(com.hp.hpl.jena.sparql.core.Var queryVar,
ViewInstance<ViewDefinition> viewInstance,
SqlTranslator sqlTranslator)
Returns a set of equals expressions,
created from equating all pickDefs to the given varDefs
The set is intended to be interpreted as a disjunction between the elements.
|
static ViewInstance |
SelfJoinEliminator.merge(ViewInstance a,
ViewInstance b)
Does an merge of self-joins if possible.
|
static ViewInstance |
SelfJoinEliminator.merge(ViewInstance a,
ViewInstance b)
Does an merge of self-joins if possible.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SelfJoinEliminator.eliminateSelfJoins(List<ViewInstance> viewInstances) |
void |
CandidateViewSelectorBase.getApplicableViewsRec2(int index,
List<com.hp.hpl.jena.sparql.core.Quad> quadOrder,
Set<ViewQuad<T>> viewQuads,
Map<com.hp.hpl.jena.sparql.core.Quad,Set<ViewQuad<T>>> candidates,
RestrictionManagerImpl restrictions,
NestedStack<ViewInstance<T>> instances,
List<RecursionResult<T,C>> result,
C baseContext) |
void |
CandidateViewSelectorImplUseTheGenericImplInstead.getApplicableViewsRec2(int index,
List<com.hp.hpl.jena.sparql.core.Quad> quadOrder,
Set<ViewQuad> viewQuads,
Map<com.hp.hpl.jena.sparql.core.Quad,Set<ViewQuad>> candidates,
RestrictionManagerImpl restrictions,
NestedStack<ViewInstance> instances,
List<ViewInstanceJoin> result,
Mapping baseMapping) |
static <T extends IViewDef> |
CandidateViewSelectorBase.getCandidateNames(NestedStack<ViewInstance<T>> instances) |
static List<String> |
CandidateViewSelectorImplUseTheGenericImplInstead.getCandidateNames(NestedStack<ViewInstance> instances) |
static <T extends IViewDef> |
CandidateViewSelectorBase.isSatisfiable(List<ViewInstance<T>> list)
TODO FIX THIS
|
static boolean |
CandidateViewSelectorImplUseTheGenericImplInstead.isSatisfiable(List<ViewInstance> list)
TODO FIX THIS
|
static <T extends IViewDef> |
ViewInstanceJoin.toMap(Collection<ViewInstance<T>> viewInstances) |
| Constructor and Description |
|---|
ViewInstanceJoin(List<ViewInstance<T>> viewInstances,
RestrictionManagerImpl restrictions) |
ViewInstanceJoin(com.google.common.collect.ListMultimap<String,ViewInstance<T>> nameToInstances,
RestrictionManagerImpl restrictions) |
| Modifier and Type | Method and Description |
|---|---|
Mapping |
MappingOps.createMapping(ViewInstance<ViewDefinition> viewInstance) |
Copyright © 2014. All rights reserved.