Interface TriplePattern
- All Superinterfaces:
GraphPattern, QueryElement
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault TriplePatternandHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Boolean... objects) default TriplePatternandHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Number... objects) default TriplePatternandHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, String... objects) default TriplePatternandHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Value... objects) default TriplePatternandHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, RdfObject... objects) Add a property path with an object list describing this triple pattern's subjectdefault TriplePatternConvenience version ofandHas(RdfPredicate, RdfObject...)that takes Boolean and converts them to BooleanLiteralsdefault TriplePatternConvenience version ofandHas(RdfPredicate, RdfObject...)that takes Numbers and converts them to NumberLiteralsdefault TriplePatternConvenience version ofandHas(RdfPredicate, RdfObject...)that takes Strings and converts them to StringLiteralsdefault TriplePatternAdd predicate-object lists describing this triple pattern's subjectandHas(RdfPredicateObjectList... lists) Add predicate-object lists describing this triple pattern's subjectdefault TriplePatternandHas(RdfPredicate predicate, Boolean... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Boolean and converts them to BooleanLiteralsdefault TriplePatternandHas(RdfPredicate predicate, Number... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Numbers and converts them to NumberLiteralsdefault TriplePatternandHas(RdfPredicate predicate, String... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Strings and converts them to StringLiteralsdefault TriplePatternandHas(RdfPredicate predicate, Value... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)that takesValues and converts them to StringLiteralsdefault TriplePatternandHas(RdfPredicate predicate, RdfObject... objects) Add predicate-object lists describing this triple pattern's subjectdefault TriplePatternUse the built-in RDF shortcutaforrdf:typeto specify the subject's typedefault booleanisEmpty()Methods inherited from interface GraphPattern
and, filter, filterExists, filterExists, filterNotExists, from, minus, optional, optional, union, valuesModifier and TypeMethodDescriptiondefault GraphPatternand(GraphPattern... patterns) Convert this graph pattern into a group graph pattern, combining this graph pattern with the given patterns:default GraphPatternfilter(Expression<?> constraint) Convert this graph pattern into a group graph pattern and add a filter:default GraphPatternfilterExists(boolean exists, GraphPattern... patterns) Create anEXISTSorNOT EXISTSfilter expression with the given patterns based on theexistsparamater and add it to this graph pattern (converting this to a group graph pattern in the process)default GraphPatternfilterExists(GraphPattern... patterns) Create anEXISTS{}filter expression with the given graph patterns and add it to this graph pattern (converting this to a group graph pattern in the process):default GraphPatternfilterNotExists(GraphPattern... patterns) Create aNOT EXISTS{}filter expression with the given graph patterns and add it to this graph pattern (converting this to a group graph pattern in the process):default GraphPatternConvert this graph pattern into a named group graph pattern:default GraphPatternminus(GraphPattern... patterns) Create aMINUSgraph pattern with the given graph patterns and add it to this graph pattern (converting this to a group graph pattern in the process):default GraphPatternoptional()Convert this graph pattern into an optional group graph pattern:default GraphPatternoptional(boolean isOptional) Specify if this graph pattern should be optional.default GraphPatternunion(GraphPattern... patterns) Convert this graph pattern into an alternative graph pattern, combining this graph pattern with the given patterns:default GraphPatternvalues(Consumer<Values.VariablesBuilder> valuesConfigurer) Methods inherited from interface QueryElement
getQueryString
-
Field Details
-
SUFFIX
- See Also:
-
-
Method Details
-
andHas
Add predicate-object lists describing this triple pattern's subject- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Add predicate-object lists describing this triple pattern's subject- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Add predicate-object lists describing this triple pattern's subject- Parameters:
lists- theRdfPredicateObjectList(s) to add- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takesValues and converts them to StringLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Strings and converts them to StringLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Strings and converts them to StringLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Boolean and converts them to BooleanLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Boolean and converts them to BooleanLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Numbers and converts them to NumberLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
Convenience version ofandHas(RdfPredicate, RdfObject...)that takes Numbers and converts them to NumberLiterals- Parameters:
predicate- the predicate to use to describe this triple pattern's subjectobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
default TriplePattern andHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, RdfObject... objects) Add a property path with an object list describing this triple pattern's subject- Parameters:
propertyPathConfigurer- an object accepting anEmptyPropertyPathBuilderthat configures it as neededobjects- the corresponding object(s)- Returns:
- this triple pattern
-
andHas
default TriplePattern andHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Value... objects) -
andHas
default TriplePattern andHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, String... objects) -
andHas
default TriplePattern andHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Number... objects) -
andHas
default TriplePattern andHas(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Boolean... objects) -
andIsA
Use the built-in RDF shortcutaforrdf:typeto specify the subject's type- Parameters:
object- the object describing this triple pattern's subject'srdf:type- Returns:
- this triple pattern
- See Also:
-
isEmpty
default boolean isEmpty()- Specified by:
isEmptyin interfaceGraphPattern- Returns:
- if this pattern is a collection of GraphPatterns (ie., Group or Alternative patterns), returns if the collection contains any patterns
-