Class ElementServiceWithValues

java.lang.Object
org.apache.jena.sparql.syntax.Element
org.apache.jena.sparql.syntax.ElementService
se.liu.ida.hefquin.jenaext.sparql.syntax.ElementServiceWithValues

public class ElementServiceWithValues extends org.apache.jena.sparql.syntax.ElementService
Represents the combination of a SERVICE clause that has a variable as service node, together with a set of possible service URIs to be used for that variable.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Set<org.apache.jena.graph.Node>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ElementServiceWithValues(org.apache.jena.sparql.core.Var v, org.apache.jena.sparql.syntax.Element el, boolean silent, Set<org.apache.jena.graph.Node> values)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equalTo(org.apache.jena.sparql.syntax.Element other, org.apache.jena.sparql.util.NodeIsomorphismMap isoMap)
     
    Set<org.apache.jena.graph.Node>
    Returns the set of possible URIs for the variable of this SERVICE clause.

    Methods inherited from class org.apache.jena.sparql.syntax.ElementService

    getElement, getServiceNode, getSilent, hashCode, visit

    Methods inherited from class org.apache.jena.sparql.syntax.Element

    equals, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • values

      protected final Set<org.apache.jena.graph.Node> values
  • Constructor Details

    • ElementServiceWithValues

      public ElementServiceWithValues(org.apache.jena.sparql.core.Var v, org.apache.jena.sparql.syntax.Element el, boolean silent, Set<org.apache.jena.graph.Node> values)
      Parameters:
      v - - the variable that is the service node of this SERVICE clause
      el - - represents the graph pattern inside the SERVICE clause
      silent - - true if the SERVICE clause has the SILENT keyword
      values - - set of possible URIs for the given variable
  • Method Details

    • getPossibleValues

      public Set<org.apache.jena.graph.Node> getPossibleValues()
      Returns the set of possible URIs for the variable of this SERVICE clause.
      Returns:
      the set of possible service URIs
    • equalTo

      public boolean equalTo(org.apache.jena.sparql.syntax.Element other, org.apache.jena.sparql.util.NodeIsomorphismMap isoMap)
      Overrides:
      equalTo in class org.apache.jena.sparql.syntax.ElementService