Enum FNFunction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FNFunction>

    enum FNFunction
    extends java.lang.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.
    • Field Detail

      • name

        private final java.lang.String name
      • uri

        private final IRI uri
    • Constructor Detail

      • FNFunction

        private FNFunction​(java.lang.String name,
                           IRI uri)
    • Method Detail

      • values

        public static FNFunction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FNFunction c : FNFunction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FNFunction valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • byName

        public static java.util.Optional<FNFunction> byName​(java.lang.String name)
      • byUri

        public static java.util.Optional<FNFunction> byUri​(IRI uri)
      • byUri

        public static java.util.Optional<FNFunction> byUri​(java.lang.String uriAsString)
      • getName

        public java.lang.String getName()
      • getUri

        public IRI getUri()