Interface Fragment2

All Superinterfaces:
Fragment, GeneralizedFragment2, HasElement
All Known Implementing Classes:
Fragment2Impl, PropertyRelation

public interface Fragment2 extends GeneralizedFragment2
  • Method Details

    • getSourceVar

      org.apache.jena.sparql.core.Var getSourceVar()
    • getTargetVar

      org.apache.jena.sparql.core.Var getTargetVar()
    • getSourceVars

      default Set<org.apache.jena.sparql.core.Var> getSourceVars()
      Specified by:
      getSourceVars in interface GeneralizedFragment2
    • getTargetVars

      default Set<org.apache.jena.sparql.core.Var> getTargetVars()
      Specified by:
      getTargetVars in interface GeneralizedFragment2
    • getMarkedVars

      default Set<org.apache.jena.sparql.core.Var> getMarkedVars()
    • getIntermediaryVars

      default Set<org.apache.jena.sparql.core.Var> getIntermediaryVars()
    • reverse

      default Fragment2 reverse()
    • isEmpty

      default boolean isEmpty()
      An empty relation does is equivalent to a zero-length path, i.e. it navigates from a set of resources to the same set of resources. It is expressed as an empty graph pattern (ElementGroup), and equal variables in source and target;
      Returns:
    • getSourceConcept

      default Concept getSourceConcept()
    • getTargetConcept

      default Concept getTargetConcept()
    • applyNodeTransform

      default Fragment2 applyNodeTransform(org.apache.jena.sparql.graph.NodeTransform nodeTransform)
      Specified by:
      applyNodeTransform in interface Fragment
    • getAsTripleOrTriplePath

      default org.apache.jena.sparql.core.TriplePath getAsTripleOrTriplePath()
      Upgrades triples to triple paths.
    • getAsTriplePath

      default org.apache.jena.sparql.core.TriplePath getAsTriplePath()
      If the relation is backed by a single ElementPathBlock with only a single TriplePath then return it - otherwise return null.
    • getAsTriple

      default org.apache.jena.graph.Triple getAsTriple()