Class PropertyPathBuilder
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.constraint.propertypath.builder.PropertyPathBuilder
-
public class PropertyPathBuilder extends java.lang.Object- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private PropertyPathhead
-
Constructor Summary
Constructors Modifier Constructor Description privatePropertyPathBuilder()(package private)PropertyPathBuilder(IRI predicate)(package private)PropertyPathBuilder(Iri predicate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyPathbuild()Build the path.PropertyPathBuildergroup()Enclose the path with`(` and `)`.private PropertyPathgroupIfNotGrouped(PropertyPath path)PropertyPathBuilderinv()Invert whatever comes next (i.e.static PropertyPathBuilderof(IRI predicate)static PropertyPathBuilderof(Iri predicate)PropertyPathBuilderoneOrMore()Append`+`to the path.PropertyPathBuilderor(java.util.function.Consumer<EmptyPropertyPathBuilder> subtreeBuilder)Append`|`and the product of thesubtreeBuilderto the path.PropertyPathBuilderor(IRI predicate)Append`|` pathto the path.PropertyPathBuilderor(PropertyPath path)Append`|` pathto the path.PropertyPathBuilderor(Iri predicate)Append`|` predicateto the path.PropertyPathBuilderthen(java.util.function.Consumer<EmptyPropertyPathBuilder> subtreeBuilder)Append`/`and the product of thesubtreeBuilderto the path.PropertyPathBuilderthen(IRI predicate)Append`/` pathto the path.PropertyPathBuilderthen(PropertyPath path)Append`/` pathto the path.PropertyPathBuilderthen(Iri predicate)Append`/` predicateto the path.private PropertyPathBuilderwithSubtree(java.util.function.Consumer<EmptyPropertyPathBuilder> subtreeBuilder, java.util.function.BiFunction<PropertyPath,PropertyPath,PropertyPath> assembler)PropertyPathBuilderzeroOrMore()Append`*`to the path.PropertyPathBuilderzeroOrOne()Append`?`to the path.
-
-
-
Field Detail
-
head
private PropertyPath head
-
-
Method Detail
-
of
public static PropertyPathBuilder of(Iri predicate)
-
of
public static PropertyPathBuilder of(IRI predicate)
-
build
public PropertyPath build()
Build the path.- Returns:
-
inv
public PropertyPathBuilder inv()
Invert whatever comes next (i.e. append^.
-
groupIfNotGrouped
private PropertyPath groupIfNotGrouped(PropertyPath path)
-
then
public PropertyPathBuilder then(Iri predicate)
Append`/` predicateto the path.
-
then
public PropertyPathBuilder then(IRI predicate)
Append`/` pathto the path.
-
then
public PropertyPathBuilder then(PropertyPath path)
Append`/` pathto the path.
-
then
public PropertyPathBuilder then(java.util.function.Consumer<EmptyPropertyPathBuilder> subtreeBuilder)
Append`/`and the product of thesubtreeBuilderto the path.
-
withSubtree
private PropertyPathBuilder withSubtree(java.util.function.Consumer<EmptyPropertyPathBuilder> subtreeBuilder, java.util.function.BiFunction<PropertyPath,PropertyPath,PropertyPath> assembler)
-
or
public PropertyPathBuilder or(Iri predicate)
Append`|` predicateto the path.
-
or
public PropertyPathBuilder or(IRI predicate)
Append`|` pathto the path.
-
or
public PropertyPathBuilder or(PropertyPath path)
Append`|` pathto the path.
-
or
public PropertyPathBuilder or(java.util.function.Consumer<EmptyPropertyPathBuilder> subtreeBuilder)
Append`|`and the product of thesubtreeBuilderto the path.
-
zeroOrMore
public PropertyPathBuilder zeroOrMore()
Append`*`to the path.
-
oneOrMore
public PropertyPathBuilder oneOrMore()
Append`+`to the path.
-
zeroOrOne
public PropertyPathBuilder zeroOrOne()
Append`?`to the path.
-
group
public PropertyPathBuilder group()
Enclose the path with`(` and `)`.
-
-