Class PropertyPaths
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.PropertyPaths
-
public class PropertyPaths extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyPaths()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RdfPredicate
oneOrMore(RdfPredicate aElement)
static RdfPredicate
path(RdfPredicate... aElements)
Construct property paths for use with theSparqlBuilder
static RdfPredicate
zeroOrMore(RdfPredicate aElement)
-
-
-
Method Detail
-
path
public static RdfPredicate path(RdfPredicate... aElements)
Construct property paths for use with theSparqlBuilder
Example:
subject.has(path(zeroOrMore(property)), object)
.- Parameters:
aElements
- the path elements- Returns:
- a property path
-
zeroOrMore
public static RdfPredicate zeroOrMore(RdfPredicate aElement)
-
oneOrMore
public static RdfPredicate oneOrMore(RdfPredicate aElement)
-
-