Class PropertyPathBuilder
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.constraint.propertypath.builder.PropertyPathBuilder
-
public class PropertyPathBuilder extends Object
- Since:
- 4.0.0
- Author:
- Florian Kleedorfer
-
-
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 `)`.PropertyPathBuilderinv()Invert whatever comes next (i.e.static PropertyPathBuilderof(IRI predicate)static PropertyPathBuilderof(Iri predicate)PropertyPathBuilderoneOrMore()Append`+`to the path.PropertyPathBuilderor(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(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.PropertyPathBuilderzeroOrMore()Append`*`to the path.PropertyPathBuilderzeroOrOne()Append`?`to the path.
-
-
-
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^.
-
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(Consumer<EmptyPropertyPathBuilder> subtreeBuilder)
Append`/`and the product of thesubtreeBuilderto the path.
-
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(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 `)`.
-
-