com.clarkparsia.pellet.rules.builtins
Interface Function

All Known Implementing Classes:
NumericAdapter, StringFunctionAdapter

public interface Function

Title: Function

Description: Interface for built-ins that can bind the first argument to a built-in atom to a new value.

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Ron Alford

Method Summary
 Literal apply(ABox abox, Literal expected, Literal... args)
          Apply the function against a set of arguments.
 

Method Detail

apply

Literal apply(ABox abox,
              Literal expected,
              Literal... args)
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.



Copyright © 2004 Evren Sirin. All Rights Reserved.