Package org.aksw.facete.v4.impl
Class ElementGenerator
java.lang.Object
org.aksw.facete.v4.impl.ElementGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.jena.sparql.syntax.Elementprotected com.google.common.collect.SetMultimap<ScopedFacetPath,org.apache.jena.sparql.expr.Expr> protected TreeData<ScopedFacetPath>Hierarchy of all referenced paths.protected ScopedFacetPathprotected FacetPathMappingprotected PropertyResolver -
Constructor Summary
ConstructorsConstructorDescriptionElementGenerator(FacetPathMapping pathMapping, com.google.common.collect.SetMultimap<ScopedFacetPath, org.apache.jena.sparql.expr.Expr> constraintIndex, ScopedFacetPath focusPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpr(org.apache.jena.sparql.expr.Expr expr) voidaddPath(ScopedFacetPath facetPath) static ElementGeneratorDeprecated.static ElementGeneratorstatic com.google.common.collect.SetMultimap<ScopedFacetPath,org.apache.jena.sparql.expr.Expr> createConstraintIndex(FacetConstraints constraints, TreeData<ScopedFacetPath> treeData) createMapFacetsAndValues(ScopedFacetPath facetOriginPath, org.aksw.commons.util.direction.Direction direction, boolean applySelfConstraints, boolean negated, boolean includeAbsent) Create a map for each constrained property to a relation that yields its values.static MappedQuerystatic MappedQuerycreateQuery(Fragment1 baseConcept, TreeData<org.aksw.jenax.path.core.FacetPath> rawTreeData, com.google.common.collect.SetMultimap<org.aksw.jenax.path.core.FacetPath, org.apache.jena.sparql.expr.Expr> constraintIndex, Predicate<org.aksw.jenax.path.core.FacetPath> isProjected) Expressions based on NodeCustomcreateRelationFacetValue(ScopedFacetPath focus, ScopedFacetPath facetPath, org.aksw.commons.util.direction.Direction direction, Fragment1 pFilter, Fragment1 oFilter, boolean applySelfConstraints, boolean includeAbsent) createRelationForPath(ScopedFacetPath childPath, boolean applySelfConstraints, boolean negated, boolean includeAbsent) static com.google.common.collect.SetMultimap<VarScope,org.apache.jena.sparql.expr.Expr> createUnscopedConstraintExprs(Collection<org.apache.jena.sparql.expr.Expr> scopedExprs) getAvailableValuesAt(ScopedFacetPath path, boolean applySelfConstraints) org.apache.jena.sparql.syntax.ElementgetRemainingFacetsWithoutAbsent(ScopedFacetPath sourceFacetPath, org.aksw.commons.util.direction.Direction direction, boolean negated, boolean includeAbsent) voidsetBaseElement(org.apache.jena.sparql.syntax.Element baseElement) Collection<org.apache.jena.sparql.expr.Expr>transformAddScope(Collection<org.apache.jena.sparql.expr.Expr> exprs, VarScope scope)
-
Field Details
-
baseElement
protected org.apache.jena.sparql.syntax.Element baseElement -
focusPath
-
pathMapping
-
propertyResolver
-
facetTree
Hierarchy of all referenced paths. Serves as the basis for graph pattern creation. -
constraintIndex
protected com.google.common.collect.SetMultimap<ScopedFacetPath,org.apache.jena.sparql.expr.Expr> constraintIndex
-
-
Constructor Details
-
ElementGenerator
public ElementGenerator(FacetPathMapping pathMapping, com.google.common.collect.SetMultimap<ScopedFacetPath, org.apache.jena.sparql.expr.Expr> constraintIndex, ScopedFacetPath focusPath)
-
-
Method Details
-
setBaseElement
public void setBaseElement(org.apache.jena.sparql.syntax.Element baseElement) -
getBaseElement
public org.apache.jena.sparql.syntax.Element getBaseElement() -
getPathMapping
-
addPath
-
addExpr
public void addExpr(org.apache.jena.sparql.expr.Expr expr) -
configure
-
configure
Deprecated. -
createUnscopedConstraintExprs
public static com.google.common.collect.SetMultimap<VarScope,org.apache.jena.sparql.expr.Expr> createUnscopedConstraintExprs(Collection<org.apache.jena.sparql.expr.Expr> scopedExprs) -
createConstraintIndex
public static com.google.common.collect.SetMultimap<ScopedFacetPath,org.apache.jena.sparql.expr.Expr> createConstraintIndex(FacetConstraints constraints, TreeData<ScopedFacetPath> treeData) -
createQuery
-
transformAddScope
public Collection<org.apache.jena.sparql.expr.Expr> transformAddScope(Collection<org.apache.jena.sparql.expr.Expr> exprs, VarScope scope) -
createQuery
public static MappedQuery createQuery(Fragment1 baseConcept, TreeData<org.aksw.jenax.path.core.FacetPath> rawTreeData, com.google.common.collect.SetMultimap<org.aksw.jenax.path.core.FacetPath, org.apache.jena.sparql.expr.Expr> constraintIndex, Predicate<org.aksw.jenax.path.core.FacetPath> isProjected) Expressions based on NodeCustom -
getAvailableValuesAt
-
createRelationFacetValue
public Fragment3 createRelationFacetValue(ScopedFacetPath focus, ScopedFacetPath facetPath, org.aksw.commons.util.direction.Direction direction, Fragment1 pFilter, Fragment1 oFilter, boolean applySelfConstraints, boolean includeAbsent) -
createMapFacetsAndValues
public Map<String,Fragment3> createMapFacetsAndValues(ScopedFacetPath facetOriginPath, org.aksw.commons.util.direction.Direction direction, boolean applySelfConstraints, boolean negated, boolean includeAbsent) Create a map for each constrained property to a relation that yields its values. The key of the map should probably be the facet FacetStep?! -
createRelationForPath
public MappedElement createRelationForPath(ScopedFacetPath childPath, boolean applySelfConstraints, boolean negated, boolean includeAbsent) -
getRemainingFacetsWithoutAbsent
public Fragment2 getRemainingFacetsWithoutAbsent(ScopedFacetPath sourceFacetPath, org.aksw.commons.util.direction.Direction direction, boolean negated, boolean includeAbsent)
-