Class TriplePatternImpl

java.lang.Object
se.liu.ida.hefquin.base.query.impl.TriplePatternImpl
All Implemented Interfaces:
Query, SPARQLGraphPattern, TriplePattern

public class TriplePatternImpl extends Object implements TriplePattern
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.jena.graph.Triple
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TriplePatternImpl(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
     
    TriplePatternImpl(org.apache.jena.graph.Triple jenaObject)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Applies the given solution mapping to this graph pattern and returns the resulting graph pattern in which all occurrences of the variables bound by the given solution mapping are replaced by the RDF terms that the solution mappings assigns to these variables.
    org.apache.jena.graph.Triple
    Returns a representation of this triple pattern as an object of the class Triple of the Jena API.
    boolean
     
    Returns a set of all triple patterns that are contained within this graph pattern.
    Set<org.apache.jena.sparql.core.Var>
    Returns the set of all variables mentioned in this graph pattern, except for the variables that occur only in expressions (in FILTER or in BIND).
    Set<org.apache.jena.sparql.core.Var>
    Returns the variables that are guaranteed to be bound in every solution mapping produced for this graph pattern.
    int
    Returns the number of times any RDF term is mentioned in this graph pattern (if the same term is mentioned multiple times, then each of these mentions is counted), but ignores terms mentions in expressions (in FILTER or in BIND).
    int
    Returns the number of times any variable is mentioned in this graph pattern (if the same variable is mentioned multiple times, then each of these mentions is counted), but ignores variable mentions in expressions (in FILTER or in BIND).
    Set<org.apache.jena.sparql.core.Var>
    Returns the variables that may be bound in solution mappings produced for this graph pattern, but that are not guaranteed to be bound in every such solution mapping.
    int
     
    merge(TriplePattern tp, org.apache.jena.sparql.syntax.Element elmt)
    Merges the given triple pattern into the given graph pattern.
    Return a BGP that contains this triple pattern plus all triple patterns of the given BGP.
    Merges this graph pattern with the given graph pattern, using join semantics, and returns the resulting, merged pattern.
    Returns a BGP that contains this triple pattern plus all triple patterns of the given BGP.
    int
    Returns the number of distinct variables in this triple pattern.
    Returns a string representation of the triple

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface se.liu.ida.hefquin.base.query.SPARQLGraphPattern

    getExpectedVariables, mergeWith, mergeWith
  • Field Details

    • jenaObj

      protected final org.apache.jena.graph.Triple jenaObj
  • Constructor Details

    • TriplePatternImpl

      public TriplePatternImpl(org.apache.jena.graph.Triple jenaObject)
    • TriplePatternImpl

      public TriplePatternImpl(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
  • Method Details