Interface TriplePattern
- All Superinterfaces:
GraphPattern
,QueryElement
Denotes a SPARQL Triple Pattern
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault TriplePattern
andHas
(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Boolean... objects) default TriplePattern
andHas
(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Number... objects) default TriplePattern
andHas
(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, String... objects) default TriplePattern
andHas
(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, Value... objects) default TriplePattern
andHas
(Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer, RdfObject... objects) Add a property path with an object list describing this triple pattern's subjectdefault TriplePattern
Convenience version ofandHas(RdfPredicate, RdfObject...)
that takes Boolean and converts them to BooleanLiteralsdefault TriplePattern
Convenience version ofandHas(RdfPredicate, RdfObject...)
that takes Numbers and converts them to NumberLiteralsdefault TriplePattern
Convenience version ofandHas(RdfPredicate, RdfObject...)
that takes Strings and converts them to StringLiteralsdefault TriplePattern
Add predicate-object lists describing this triple pattern's subjectandHas
(RdfPredicateObjectList... lists) Add predicate-object lists describing this triple pattern's subjectdefault TriplePattern
andHas
(RdfPredicate predicate, Boolean... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)
that takes Boolean and converts them to BooleanLiteralsdefault TriplePattern
andHas
(RdfPredicate predicate, Number... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)
that takes Numbers and converts them to NumberLiteralsdefault TriplePattern
andHas
(RdfPredicate predicate, String... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)
that takes Strings and converts them to StringLiteralsdefault TriplePattern
andHas
(RdfPredicate predicate, Value... objects) Convenience version ofandHas(RdfPredicate, RdfObject...)
that takesValue
s and converts them to StringLiteralsdefault TriplePattern
andHas
(RdfPredicate predicate, RdfObject... objects) Add predicate-object lists describing this triple pattern's subjectdefault TriplePattern
Use the built-in RDF shortcuta
forrdf:type
to specify the subject's typedefault boolean
isEmpty()
Methods inherited from interface org.eclipse.rdf4j.sparqlbuilder.graphpattern.GraphPattern
and, filter, filterExists, filterExists, filterNotExists, from, minus, optional, optional, union
Methods 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 takesValue
s 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 anEmptyPropertyPathBuilder
that 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 shortcuta
forrdf:type
to 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:
isEmpty
in interfaceGraphPattern
- Returns:
- if this pattern is a collection of GraphPatterns (ie., Group or Alternative patterns), returns if the collection contains any patterns
-