Class PropertyPathBuilder
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.constraint.propertypath.builder.PropertyPathBuilder
- Since:
- 4.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
(package private)
PropertyPathBuilder
(IRI predicate) (package private)
PropertyPathBuilder
(Iri predicate) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the path.group()
Enclose the path with`(` and `)`
.private PropertyPath
inv()
Invert whatever comes next (i.e.static PropertyPathBuilder
static PropertyPathBuilder
Append`+`
to the path.or
(Consumer<EmptyPropertyPathBuilder> subtreeBuilder) Append`|`
and the product of thesubtreeBuilder
to the path.Append`|` path
to the path.or
(PropertyPath path) Append`|` path
to the path.Append`|` predicate
to the path.then
(Consumer<EmptyPropertyPathBuilder> subtreeBuilder) Append`/`
and the product of thesubtreeBuilder
to the path.Append`/` path
to the path.then
(PropertyPath path) Append`/` path
to the path.Append`/` predicate
to the path.private PropertyPathBuilder
withSubtree
(Consumer<EmptyPropertyPathBuilder> subtreeBuilder, BiFunction<PropertyPath, PropertyPath, PropertyPath> assembler) Append`*`
to the path.Append`?`
to the path.
-
Field Details
-
head
-
-
Constructor Details
-
Method Details
-
of
-
of
-
build
Build the path.- Returns:
-
inv
Invert whatever comes next (i.e. append^
. -
groupIfNotGrouped
-
then
Append`/` predicate
to the path. -
then
Append`/` path
to the path. -
then
Append`/` path
to the path. -
then
Append`/`
and the product of thesubtreeBuilder
to the path. -
withSubtree
private PropertyPathBuilder withSubtree(Consumer<EmptyPropertyPathBuilder> subtreeBuilder, BiFunction<PropertyPath, PropertyPath, PropertyPath> assembler) -
or
Append`|` predicate
to the path. -
or
Append`|` path
to the path. -
or
Append`|` path
to the path. -
or
Append`|`
and the product of thesubtreeBuilder
to the path. -
zeroOrMore
Append`*`
to the path. -
oneOrMore
Append`+`
to the path. -
zeroOrOne
Append`?`
to the path. -
group
Enclose the path with`(` and `)`
.
-