Class BuiltinRegistry

java.lang.Object
org.apache.jena.reasoner.rulesys.BuiltinRegistry
Direct Known Subclasses:
MapBuiltinRegistry, OverrideBuiltinRegistry

public abstract class BuiltinRegistry extends Object
  • Field Details

    • theRegistry

      public static BuiltinRegistry theRegistry
      The default base registry
  • Constructor Details

    • BuiltinRegistry

      public BuiltinRegistry()
  • Method Details

    • register

      public abstract void register(Builtin impl)
      Register an implementation for a given builtin using its default name.
      Parameters:
      impl - the implementation of the builtin
    • register

      public abstract void register(String functor, Builtin impl)
      Register an implementation for a given builtin functor.
      Parameters:
      functor - the name of the functor used to invoke the builtin
      impl - the implementation of the builtin
    • getImplementation

      public abstract Builtin getImplementation(String functor)
      Find the implementation of the given builtin functor.
      Parameters:
      functor - the name of the functor being invoked.
      Returns:
      a Builtin or null if there is none registered under that name
    • getImplementationByURI

      public abstract Builtin getImplementationByURI(String uri)
      Find the implementation of the given builtin functor.
      Parameters:
      uri - the URI of the builtin to be retrieved
      Returns:
      a Builtin or null if there is none registered under that name