Class StringFunctionAdapter

  • All Implemented Interfaces:
    Function

    public class StringFunctionAdapter
    extends java.lang.Object
    implements Function

    Title: String-to-String Function Adapter

    Description: Adapter from StringToStringFunction to Function

    Copyright: Copyright (c) 2008

    Company: Clark & Parsia, LLC.

    Author:
    Ron Alford
    • Field Detail

      • _datatypeURI

        public final java.lang.String _datatypeURI
    • Method Detail

      • apply

        public Literal apply​(ABox abox,
                             Literal expected,
                             Literal... litArgs)
        Description copied from interface: Function
        Apply the function against a set of arguments. Test the _expected argument against the result. Return null if the arguments were invalid. If '_expected' was not null and matched the result, return '_expected'. If '_expected' was not null and did not match, return null; Otherwise, return the result.
        Specified by:
        apply in interface Function
        Returns:
        the literal that result of the application of the function again the Abox