edu.stanford.smi.protegex.owl.swrl.bridge.builtins
Class BuiltInLibraryManager
java.lang.Object
edu.stanford.smi.protegex.owl.swrl.bridge.builtins.BuiltInLibraryManager
public abstract class BuiltInLibraryManager
- extends Object
This class manages the dynamic loading of SWRL built-in libraries and the invocation of built-ins in those libraries. A library is
identified by a prefix and this prefix is used to find and dynamically load a Java class implementing the built-ins in this library. For
example, the core SWRL built-in library is identified by the
prefix swrlb; built-ins in this library can then be referred to in SWRL rules using this profix followed by the built-in name, e.g.,
swrlb:lessThanOrEqual.
See here for documentation on defining these built-in libraries.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuiltInLibraryManager
public BuiltInLibraryManager()
invokeSWRLBuiltIn
public static boolean invokeSWRLBuiltIn(SWRLRuleEngineBridge bridge,
String ruleName,
String builtInName,
int builtInIndex,
boolean isInConsequent,
List<BuiltInArgument> arguments)
throws BuiltInException
- Invoke a SWRL built-in. This method is called from the invokeSWRLBuiltIn method in the bridge and should not be called directly from a
rule engine. The built-in name should be the fully qualified name of the built-in (e.g.,
http://www.w3.org/2003/11/swrlb#lessThanOrEqual).
- Throws:
BuiltInException
invokeAllBuiltInLibrariesResetMethod
public static void invokeAllBuiltInLibrariesResetMethod(SWRLRuleEngineBridge bridge)
throws SWRLRuleEngineBridgeException
- Throws:
SWRLRuleEngineBridgeException
Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.