Class ElementUtils
java.lang.Object
se.liu.ida.hefquin.jenaext.sparql.syntax.ElementUtils
This class provides useful functionality related to Jena's
 representation of graph patterns as 
Element objects.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.sparql.syntax.ElementcreateElementGroupIfNeeded(List<org.apache.jena.sparql.syntax.Element> elmts) If the given list contains multiple elements, this function returns anElementGroupcontaining these elements.static org.apache.jena.sparql.syntax.Elementmerge(org.apache.jena.graph.Triple tp, org.apache.jena.sparql.syntax.Element elmt) Merges the given triple pattern into the graph pattern represented by the givenElementobject, using join semantics.static org.apache.jena.sparql.syntax.Elementmerge(org.apache.jena.sparql.core.VarExprList exprs, org.apache.jena.sparql.syntax.Element elmt) Merges the given expressions as BIND clauses into the graph pattern represented by the givenElementobject.static org.apache.jena.sparql.syntax.Elementmerge(org.apache.jena.sparql.expr.ExprList exprs, org.apache.jena.sparql.syntax.Element elmt) Merges the given expressions as filters into the graph pattern represented by the givenElementobject. 
- 
Constructor Details
- 
ElementUtils
public ElementUtils() 
 - 
 - 
Method Details
- 
merge
public static org.apache.jena.sparql.syntax.Element merge(org.apache.jena.sparql.expr.ExprList exprs, org.apache.jena.sparql.syntax.Element elmt) Merges the given expressions as filters into the graph pattern represented by the givenElementobject. - 
merge
public static org.apache.jena.sparql.syntax.Element merge(org.apache.jena.sparql.core.VarExprList exprs, org.apache.jena.sparql.syntax.Element elmt) Merges the given expressions as BIND clauses into the graph pattern represented by the givenElementobject. - 
merge
public static org.apache.jena.sparql.syntax.Element merge(org.apache.jena.graph.Triple tp, org.apache.jena.sparql.syntax.Element elmt) Merges the given triple pattern into the graph pattern represented by the givenElementobject, using join semantics. - 
createElementGroupIfNeeded
public static org.apache.jena.sparql.syntax.Element createElementGroupIfNeeded(List<org.apache.jena.sparql.syntax.Element> elmts) If the given list contains multiple elements, this function returns anElementGroupcontaining these elements. If the list contains a single element only, this element is returned. 
 -