Interface TriplePattern
- All Superinterfaces:
GraphPattern,QueryElement
Denotes a SPARQL Triple Pattern
- See Also:
-
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 org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPattern
and, filter, filterExists, filterExists, filterNotExists, from, minus, optional, optional, union, valuesMethods inherited from interface org.eclipse.rdf4j.sparqlbuilder.core.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
-