Class QueryPattern
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.QueryPattern
-
- All Implemented Interfaces:
QueryElement
public class QueryPattern extends java.lang.Object implements QueryElement
A SPARQL Query Pattern (WHERE
clause)- See Also:
- Query Pattern Definition
-
-
Field Summary
Fields Modifier and Type Field Description private GraphPatternNotTriples
where
private static java.lang.String
WHERE
-
Constructor Summary
Constructors Constructor Description QueryPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getQueryString()
QueryPattern
where(GraphPattern... patterns)
Add graph patterns to this query pattern.QueryPattern
where(GraphPatternNotTriples where)
Set this query pattern's where clause
-
-
-
Field Detail
-
WHERE
private static final java.lang.String WHERE
- See Also:
- Constant Field Values
-
where
private GraphPatternNotTriples where
-
-
Method Detail
-
where
public QueryPattern where(GraphPattern... patterns)
Add graph patterns to this query pattern. Adds the given patterns into this query pattern's group graph pattern- Parameters:
patterns
- the patterns to add- Returns:
- this
-
where
public QueryPattern where(GraphPatternNotTriples where)
Set this query pattern's where clause- Parameters:
where
- theGraphPatternNotTriples
instance to set the where clause to- Returns:
- this QueryPattern instance
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryString
in interfaceQueryElement
- Returns:
- the String representing the SPARQL syntax of this element
-
-