org.eclipse.rdf4j.sparqlbuilder.core

## Class PropertyPaths

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.core.PropertyPaths

-     public class PropertyPaths
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PropertyPaths()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static RdfPredicate` | `oneOrMore(RdfPredicate aElement)`
    `static RdfPredicate` | `path(RdfPredicate... aElements)` Construct property paths for use with the `SparqlBuilder`
    `static RdfPredicate` | `zeroOrMore(RdfPredicate aElement)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PropertyPaths

          public PropertyPaths()

  - ### Method Detail

    - #### path

          public static RdfPredicate path(RdfPredicate... aElements)

      Construct property paths for use with the `SparqlBuilder`

      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)

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.