Class TwoWayBinding

java.lang.Object
org.aksw.jena_sparql_api.views.TwoWayBinding
Type Parameters:
K -
V -

public class TwoWayBinding extends Object
In its current state this class only hides the copying that should be avoided by a view
Author:
raven
  • Constructor Details

    • TwoWayBinding

      public TwoWayBinding()
  • Method Details

    • keySet

      public Set<org.apache.jena.sparql.core.Var> keySet()
      Returns union of the keySets of equiMap.getEquivalences and equiMap.getKeyToValue
      Returns:
    • copySubstitute

      public TwoWayBinding copySubstitute(Map<? extends org.apache.jena.graph.Node,org.apache.jena.graph.Node> map)
      Copies the map. Leave null for a deep copy
      Parameters:
      map -
      Returns:
    • clear

      public void clear()
    • getEquiMap

      public EquiMap<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> getEquiMap()
    • put

      public boolean put(org.apache.jena.sparql.core.Var a, org.apache.jena.graph.Node b)
    • makeEqual

      public boolean makeEqual(org.apache.jena.sparql.core.Var a, org.apache.jena.sparql.core.Var b)
    • add

      public boolean add(org.apache.jena.graph.Node a, org.apache.jena.graph.Node b)
      Returns false if the entry could not be added due to not being compatible with the remaining mappings.
      Parameters:
      entry -
      Returns:
    • addAll

      public void addAll(TwoWayBinding other)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isCompatible

      public boolean isCompatible(TwoWayBinding other)
    • getVarMappingTwoWay

      public static TwoWayBinding getVarMappingTwoWay(org.apache.jena.sparql.core.Quad a, org.apache.jena.sparql.core.Quad b)
    • getQueryVariables

      public Set<org.apache.jena.sparql.core.Var> getQueryVariables()
    • getVariableMap

      public org.aksw.commons.collections.multimaps.ISetMultimap<org.apache.jena.sparql.core.Var,org.apache.jena.sparql.core.Var> getVariableMap()
      Returns:
      The multimap that maps query variables to the corresponding set of view variables
    • getConstantMap

      public Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> getConstantMap()
      Returns:
      The map that maps query variables to an optionally associated constant
    • getViewVariablesForQueryVariable

      public Set<org.apache.jena.sparql.core.Var> getViewVariablesForQueryVariable(org.apache.jena.sparql.core.Var queryVar)
    • getViewVariables

      public Set<org.apache.jena.sparql.core.Var> getViewVariables()