java.lang.Object
java.lang.Enum<FNFunction>
org.eclipse.rdf4j.queryrender.sparql.experimental.FNFunction
All Implemented Interfaces:
Serializable, Comparable<FNFunction>

enum FNFunction extends Enum<FNFunction>
Some functions that are declared as built-in in the SPARQL 1.1 specification are also identifiable as URI functions in the fn: namespace. RDF4J immediately converts them into the URI representation when parsing. This leads to failures, however, with some triple stores (like Blazegraph) that do not understand the URI representation of built-ins and try to process them as custom URI functions.
  • Enum Constant Details

  • Field Details

    • name

      private final String name
    • uri

      private final IRI uri
  • Constructor Details

    • FNFunction

      private FNFunction(String name, IRI uri)
  • Method Details

    • values

      public static FNFunction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FNFunction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • byName

      public static Optional<FNFunction> byName(String name)
    • byUri

      public static Optional<FNFunction> byUri(IRI uri)
    • byUri

      public static Optional<FNFunction> byUri(String uriAsString)
    • getName

      public String getName()
    • getUri

      public IRI getUri()