Protégé-OWL 3.4.8

edu.stanford.smi.protegex.owl.swrl.bridge.builtins
Class AbstractSWRLBuiltInLibrary

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.swrl.bridge.builtins.AbstractSWRLBuiltInLibrary
All Implemented Interfaces:
SWRLBuiltInLibrary
Direct Known Subclasses:
SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl, SWRLBuiltInLibraryImpl

public abstract class AbstractSWRLBuiltInLibrary
extends Object
implements SWRLBuiltInLibrary

A class that must be subclassed by a class implementing a library of SWRL built-in methods. See here for documentation.

Provides a large number of argument processing methods.


Constructor Summary
AbstractSWRLBuiltInLibrary(String libraryName)
           
 
Method Summary
 boolean areAllArgumentDataValues(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsBooleans(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsDoubles(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsFloats(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsIntegers(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsLongs(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsNumeric(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsOfAnOrderedType(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsShorts(List<BuiltInArgument> arguments)
           
 boolean areAllArgumentsStrings(List<BuiltInArgument> arguments)
           
 void checkArgumentNumber(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkForNonVariableArguments(List<BuiltInArgument> arguments, String message)
           
 void checkForUnboundArguments(List<BuiltInArgument> arguments)
           
 void checkForUnboundArguments(List<BuiltInArgument> arguments, String message)
           
 void checkForUnboundArguments(String ruleName, String builtInName, List<BuiltInArgument> arguments)
           
 void checkForUnboundNonFirstArguments(List<BuiltInArgument> arguments)
           
 void checkNumberOfArgumentsAtLeast(int expectingAtLeast, int actual)
           
 void checkNumberOfArgumentsAtLeastOne(List<BuiltInArgument> arguments)
           
 void checkNumberOfArgumentsAtMost(int expectingAtMost, int actual)
           
 void checkNumberOfArgumentsEqualTo(int expecting, int actual)
           
 void checkNumberOfArgumentsInRange(int expectingAtLeast, int expectingAtMost, int actual)
           
 void checkThatAllArgumentsAreBound(List<BuiltInArgument> arguments)
           
 void checkThatAllArgumentsAreDataValues(List<BuiltInArgument> arguments)
           
 void checkThatAllArgumentsAreFloats(List<BuiltInArgument> arguments)
           
 void checkThatAllArgumentsAreIntegers(List<BuiltInArgument> arguments)
           
 void checkThatAllArgumentsAreNumeric(List<BuiltInArgument> arguments)
           
 void checkThatAllArgumentsAreOfAnOrderedType(List<BuiltInArgument> arguments)
           
 void checkThatAllArgumentsAreStrings(List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsABoolean(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAClass(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAClassPropertyOrIndividual(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsADataProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsADataValue(BuiltInArgument argument)
           
 void checkThatArgumentIsADataValue(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsADouble(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAFloat(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsALong(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAnIndividual(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAnInteger(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAnObjectProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsAString(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsBound(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsNonNumeric(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsNumeric(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatArgumentIsOfAnOrderedType(int argumentNumber, List<BuiltInArgument> arguments)
           
 void checkThatInAntecedent()
           
 void checkThatInConsequent()
           
 List<BuiltInArgument> copyArguments(List<BuiltInArgument> arguments)
           
 ClassArgument createClassArgument(String classURI)
           
 CollectionArgument createCollectionArgument(String collectionName, String collectionGroupID)
           
 DataPropertyArgument createDataPropertyArgument(String propertyURI)
           
 SWRLLiteralArgumentReference createDataValueArgument(boolean b)
           
 SWRLLiteralArgumentReference createDataValueArgument(Byte b)
           
 SWRLLiteralArgumentReference createDataValueArgument(DataValue dataValue)
           
 SWRLLiteralArgumentReference createDataValueArgument(double d)
           
 SWRLLiteralArgumentReference createDataValueArgument(float f)
           
 SWRLLiteralArgumentReference createDataValueArgument(int i)
           
 SWRLLiteralArgumentReference createDataValueArgument(long l)
           
 SWRLLiteralArgumentReference createDataValueArgument(Object o)
           
 SWRLLiteralArgumentReference createDataValueArgument(short s)
           
 SWRLLiteralArgumentReference createDataValueArgument(String s)
           
 SWRLLiteralArgumentReference createDataValueArgument(XSDType xsd)
           
 SWRLIndividualArgumentReference createIndividualArgument(String individualURI)
           
 String createInvocationPattern(SWRLBuiltInBridge invokingBridge, String invokingRuleName, int invokingBuiltInIndex, boolean isInConsequent, List<BuiltInArgument> arguments)
          Create a string that represents a key of a unique invocation pattern for a built-in for a bridge/rule/built-in/arguments combination.
 MultiArgument createMultiArgument()
           
 MultiArgument createMultiArgument(List<BuiltInArgument> arguments)
           
 ObjectPropertyArgument createObjectPropertyArgument(String propertyURI)
           
 boolean getArgumentAsABoolean(int argumentNumber, List<BuiltInArgument> arguments)
           
 ClassArgument getArgumentAsAClass(int argumentNumber, List<BuiltInArgument> arguments)
           
 String getArgumentAsAClassURI(int argumentNumber, List<BuiltInArgument> arguments)
           
 DataPropertyArgument getArgumentAsADataProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 DataValue getArgumentAsADataValue(BuiltInArgument argument)
           
 DataValue getArgumentAsADataValue(int argumentNumber, List<BuiltInArgument> arguments)
           
 double getArgumentAsADouble(BuiltInArgument argument)
           
 double getArgumentAsADouble(int argumentNumber, List<BuiltInArgument> arguments)
           
 float getArgumentAsAFloat(BuiltInArgument argument)
           
 float getArgumentAsAFloat(int argumentNumber, List<BuiltInArgument> arguments)
           
 long getArgumentAsALong(int argumentNumber, List<BuiltInArgument> arguments)
           
 SWRLIndividualArgumentReference getArgumentAsAnIndividual(int argumentNumber, List<BuiltInArgument> arguments)
           
 String getArgumentAsAnIndividualURI(int argumentNumber, List<BuiltInArgument> arguments)
           
 int getArgumentAsAnInteger(int argumentNumber, List<BuiltInArgument> arguments)
           
 ObjectPropertyArgument getArgumentAsAnObjectProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 int getArgumentAsAPositiveInteger(int argumentNumber, List<BuiltInArgument> arguments)
           
 long getArgumentAsAPositiveLong(int argumentNumber, List<BuiltInArgument> arguments)
           
 PropertyArgument getArgumentAsAProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 String getArgumentAsAPropertyURI(int argumentNumber, List<BuiltInArgument> arguments)
           
 Object getArgumentAsAPropertyValue(int argumentNumber, List<BuiltInArgument> arguments)
          Take an bound Argument object with types ClassArgument, PropertyArgument, IndividualArgument, or DataValueArgument and return it as a property value representation.
 short getArgumentAsAShort(int argumentNumber, List<BuiltInArgument> arguments)
           
 String getArgumentAsAString(int argumentNumber, List<BuiltInArgument> arguments)
           
 String getArgumentAsAURI(int argumentNumber, List<BuiltInArgument> arguments)
           
 SWRLBuiltInBridge getBuiltInBridge()
           
 int getFirstUnboundArgument(List<BuiltInArgument> arguments)
          Get 0-offset position of first unbound argument; return -1 if no unbound arguments are found.
 int getInvokingBuiltInIndex()
           
 String getInvokingRuleName()
           
 boolean getIsInConsequent()
           
 String getLibraryName()
           
 String getVariableName(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean hasUnboundArguments(List<BuiltInArgument> arguments)
           
 boolean invokeBuiltInMethod(Method method, SWRLBuiltInBridge bridge, String ruleName, String prefix, String builtInMethodName, int builtInIndex, boolean isInConsequent, List<BuiltInArgument> arguments)
           
 void invokeResetMethod(SWRLBuiltInBridge bridge)
           
 boolean isArgumentABoolean(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAClass(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAClassPropertyOrIndividual(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentADataProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentADatatypeValue(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentADataValue(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentADouble(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAFloat(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentALong(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAnIndividual(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAnInteger(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAnObjectProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAProperty(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAShort(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentAString(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentConvertableToDouble(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentConvertableToFloat(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentConvertableToInteger(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentConvertableToLong(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentConvertableToShort(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentNonNumeric(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentNumeric(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isArgumentOfAnOrderedType(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isBoundArgument(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean isFloatMostPreciseArgument(List<BuiltInArgument> arguments)
           
 boolean isIntegerMostPreciseArgument(List<BuiltInArgument> arguments)
           
 boolean isLongMostPreciseArgument(List<BuiltInArgument> arguments)
           
 boolean isShortMostPreciseArgument(List<BuiltInArgument> arguments)
           
 boolean isUnboundArgument(int argumentNumber, List<BuiltInArgument> arguments)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, BuiltInArgument resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, byte resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, Collection<BuiltInArgument> resultArguments)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, double resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, float resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, int resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, long resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, short resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, String resultArgument)
           
 boolean processResultArgument(List<BuiltInArgument> arguments, int resultArgumentNumber, SWRLLiteralArgumentReference resultArgument)
           
abstract  void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSWRLBuiltInLibrary

public AbstractSWRLBuiltInLibrary(String libraryName)
Method Detail

getLibraryName

public String getLibraryName()
Specified by:
getLibraryName in interface SWRLBuiltInLibrary

getBuiltInBridge

public SWRLBuiltInBridge getBuiltInBridge()
                                   throws SWRLBuiltInLibraryException
Specified by:
getBuiltInBridge in interface SWRLBuiltInLibrary
Throws:
SWRLBuiltInLibraryException

getInvokingRuleName

public String getInvokingRuleName()
                           throws SWRLBuiltInLibraryException
Specified by:
getInvokingRuleName in interface SWRLBuiltInLibrary
Throws:
SWRLBuiltInLibraryException

getInvokingBuiltInIndex

public int getInvokingBuiltInIndex()
                            throws SWRLBuiltInLibraryException
Specified by:
getInvokingBuiltInIndex in interface SWRLBuiltInLibrary
Throws:
SWRLBuiltInLibraryException

getIsInConsequent

public boolean getIsInConsequent()
                          throws SWRLBuiltInLibraryException
Specified by:
getIsInConsequent in interface SWRLBuiltInLibrary
Throws:
SWRLBuiltInLibraryException

checkThatInConsequent

public void checkThatInConsequent()
                           throws BuiltInException
Specified by:
checkThatInConsequent in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatInAntecedent

public void checkThatInAntecedent()
                           throws BuiltInException
Specified by:
checkThatInAntecedent in interface SWRLBuiltInLibrary
Throws:
BuiltInException

reset

public abstract void reset()
                    throws SWRLBuiltInLibraryException
Specified by:
reset in interface SWRLBuiltInLibrary
Throws:
SWRLBuiltInLibraryException

invokeResetMethod

public void invokeResetMethod(SWRLBuiltInBridge bridge)
                       throws SWRLBuiltInLibraryException
Specified by:
invokeResetMethod in interface SWRLBuiltInLibrary
Throws:
SWRLBuiltInLibraryException

invokeBuiltInMethod

public boolean invokeBuiltInMethod(Method method,
                                   SWRLBuiltInBridge bridge,
                                   String ruleName,
                                   String prefix,
                                   String builtInMethodName,
                                   int builtInIndex,
                                   boolean isInConsequent,
                                   List<BuiltInArgument> arguments)
                            throws BuiltInException
Specified by:
invokeBuiltInMethod in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkNumberOfArgumentsAtLeastOne

public void checkNumberOfArgumentsAtLeastOne(List<BuiltInArgument> arguments)
                                      throws BuiltInException
Throws:
BuiltInException

checkNumberOfArgumentsEqualTo

public void checkNumberOfArgumentsEqualTo(int expecting,
                                          int actual)
                                   throws InvalidBuiltInArgumentNumberException
Specified by:
checkNumberOfArgumentsEqualTo in interface SWRLBuiltInLibrary
Throws:
InvalidBuiltInArgumentNumberException

checkNumberOfArgumentsAtLeast

public void checkNumberOfArgumentsAtLeast(int expectingAtLeast,
                                          int actual)
                                   throws InvalidBuiltInArgumentNumberException
Specified by:
checkNumberOfArgumentsAtLeast in interface SWRLBuiltInLibrary
Throws:
InvalidBuiltInArgumentNumberException

checkNumberOfArgumentsAtMost

public void checkNumberOfArgumentsAtMost(int expectingAtMost,
                                         int actual)
                                  throws InvalidBuiltInArgumentNumberException
Specified by:
checkNumberOfArgumentsAtMost in interface SWRLBuiltInLibrary
Throws:
InvalidBuiltInArgumentNumberException

checkNumberOfArgumentsInRange

public void checkNumberOfArgumentsInRange(int expectingAtLeast,
                                          int expectingAtMost,
                                          int actual)
                                   throws InvalidBuiltInArgumentNumberException
Specified by:
checkNumberOfArgumentsInRange in interface SWRLBuiltInLibrary
Throws:
InvalidBuiltInArgumentNumberException

checkThatAllArgumentsAreDataValues

public void checkThatAllArgumentsAreDataValues(List<BuiltInArgument> arguments)
                                        throws BuiltInException
Specified by:
checkThatAllArgumentsAreDataValues in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatAllArgumentsAreNumeric

public void checkThatAllArgumentsAreNumeric(List<BuiltInArgument> arguments)
                                     throws BuiltInException
Specified by:
checkThatAllArgumentsAreNumeric in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatAllArgumentsAreIntegers

public void checkThatAllArgumentsAreIntegers(List<BuiltInArgument> arguments)
                                      throws BuiltInException
Specified by:
checkThatAllArgumentsAreIntegers in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsShorts

public boolean areAllArgumentsShorts(List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
areAllArgumentsShorts in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsIntegers

public boolean areAllArgumentsIntegers(List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
areAllArgumentsIntegers in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsLongs

public boolean areAllArgumentsLongs(List<BuiltInArgument> arguments)
                             throws BuiltInException
Specified by:
areAllArgumentsLongs in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsFloats

public boolean areAllArgumentsFloats(List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
areAllArgumentsFloats in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsDoubles

public boolean areAllArgumentsDoubles(List<BuiltInArgument> arguments)
                               throws BuiltInException
Specified by:
areAllArgumentsDoubles in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentConvertableToDouble

public boolean isArgumentConvertableToDouble(int argumentNumber,
                                             List<BuiltInArgument> arguments)
                                      throws BuiltInException
Specified by:
isArgumentConvertableToDouble in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentConvertableToFloat

public boolean isArgumentConvertableToFloat(int argumentNumber,
                                            List<BuiltInArgument> arguments)
                                     throws BuiltInException
Specified by:
isArgumentConvertableToFloat in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentConvertableToLong

public boolean isArgumentConvertableToLong(int argumentNumber,
                                           List<BuiltInArgument> arguments)
                                    throws BuiltInException
Specified by:
isArgumentConvertableToLong in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentConvertableToInteger

public boolean isArgumentConvertableToInteger(int argumentNumber,
                                              List<BuiltInArgument> arguments)
                                       throws BuiltInException
Specified by:
isArgumentConvertableToInteger in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentConvertableToShort

public boolean isArgumentConvertableToShort(int argumentNumber,
                                            List<BuiltInArgument> arguments)
                                     throws BuiltInException
Specified by:
isArgumentConvertableToShort in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isShortMostPreciseArgument

public boolean isShortMostPreciseArgument(List<BuiltInArgument> arguments)
                                   throws BuiltInException
Specified by:
isShortMostPreciseArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isIntegerMostPreciseArgument

public boolean isIntegerMostPreciseArgument(List<BuiltInArgument> arguments)
                                     throws BuiltInException
Specified by:
isIntegerMostPreciseArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isLongMostPreciseArgument

public boolean isLongMostPreciseArgument(List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
isLongMostPreciseArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isFloatMostPreciseArgument

public boolean isFloatMostPreciseArgument(List<BuiltInArgument> arguments)
                                   throws BuiltInException
Specified by:
isFloatMostPreciseArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsBooleans

public boolean areAllArgumentsBooleans(List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
areAllArgumentsBooleans in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentDataValues

public boolean areAllArgumentDataValues(List<BuiltInArgument> arguments)
                                 throws BuiltInException
Specified by:
areAllArgumentDataValues in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsNumeric

public boolean areAllArgumentsNumeric(List<BuiltInArgument> arguments)
                               throws BuiltInException
Specified by:
areAllArgumentsNumeric in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsStrings

public boolean areAllArgumentsStrings(List<BuiltInArgument> arguments)
                               throws BuiltInException
Specified by:
areAllArgumentsStrings in interface SWRLBuiltInLibrary
Throws:
BuiltInException

areAllArgumentsOfAnOrderedType

public boolean areAllArgumentsOfAnOrderedType(List<BuiltInArgument> arguments)
                                       throws BuiltInException
Specified by:
areAllArgumentsOfAnOrderedType in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatAllArgumentsAreFloats

public void checkThatAllArgumentsAreFloats(List<BuiltInArgument> arguments)
                                    throws BuiltInException
Specified by:
checkThatAllArgumentsAreFloats in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatAllArgumentsAreStrings

public void checkThatAllArgumentsAreStrings(List<BuiltInArgument> arguments)
                                     throws BuiltInException
Specified by:
checkThatAllArgumentsAreStrings in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatAllArgumentsAreOfAnOrderedType

public void checkThatAllArgumentsAreOfAnOrderedType(List<BuiltInArgument> arguments)
                                             throws BuiltInException
Specified by:
checkThatAllArgumentsAreOfAnOrderedType in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsADataValue

public void checkThatArgumentIsADataValue(BuiltInArgument argument)
                                   throws BuiltInException
Throws:
BuiltInException

checkThatArgumentIsNumeric

public void checkThatArgumentIsNumeric(int argumentNumber,
                                       List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
checkThatArgumentIsNumeric in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsOfAnOrderedType

public void checkThatArgumentIsOfAnOrderedType(int argumentNumber,
                                               List<BuiltInArgument> arguments)
                                        throws BuiltInException
Specified by:
checkThatArgumentIsOfAnOrderedType in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentOfAnOrderedType

public boolean isArgumentOfAnOrderedType(int argumentNumber,
                                         List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
isArgumentOfAnOrderedType in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAnIndividual

public boolean isArgumentAnIndividual(int argumentNumber,
                                      List<BuiltInArgument> arguments)
                               throws BuiltInException
Specified by:
isArgumentAnIndividual in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentADatatypeValue

public boolean isArgumentADatatypeValue(int argumentNumber,
                                        List<BuiltInArgument> arguments)
                                 throws BuiltInException
Throws:
BuiltInException

checkThatArgumentIsAnIndividual

public void checkThatArgumentIsAnIndividual(int argumentNumber,
                                            List<BuiltInArgument> arguments)
                                     throws BuiltInException
Specified by:
checkThatArgumentIsAnIndividual in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsADataValue

public void checkThatArgumentIsADataValue(int argumentNumber,
                                          List<BuiltInArgument> arguments)
                                   throws BuiltInException
Specified by:
checkThatArgumentIsADataValue in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAnIndividualURI

public String getArgumentAsAnIndividualURI(int argumentNumber,
                                           List<BuiltInArgument> arguments)
                                    throws BuiltInException
Specified by:
getArgumentAsAnIndividualURI in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAnIndividual

public SWRLIndividualArgumentReference getArgumentAsAnIndividual(int argumentNumber,
                                                                 List<BuiltInArgument> arguments)
                                                          throws BuiltInException
Specified by:
getArgumentAsAnIndividual in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAClassURI

public String getArgumentAsAClassURI(int argumentNumber,
                                     List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
getArgumentAsAClassURI in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAClass

public ClassArgument getArgumentAsAClass(int argumentNumber,
                                         List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
getArgumentAsAClass in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAProperty

public PropertyArgument getArgumentAsAProperty(int argumentNumber,
                                               List<BuiltInArgument> arguments)
                                        throws BuiltInException
Throws:
BuiltInException

getArgumentAsAnObjectProperty

public ObjectPropertyArgument getArgumentAsAnObjectProperty(int argumentNumber,
                                                            List<BuiltInArgument> arguments)
                                                     throws BuiltInException
Specified by:
getArgumentAsAnObjectProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsADataProperty

public DataPropertyArgument getArgumentAsADataProperty(int argumentNumber,
                                                       List<BuiltInArgument> arguments)
                                                throws BuiltInException
Specified by:
getArgumentAsADataProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAURI

public String getArgumentAsAURI(int argumentNumber,
                                List<BuiltInArgument> arguments)
                         throws BuiltInException
Specified by:
getArgumentAsAURI in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAPropertyURI

public String getArgumentAsAPropertyURI(int argumentNumber,
                                        List<BuiltInArgument> arguments)
                                 throws BuiltInException
Specified by:
getArgumentAsAPropertyURI in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkArgumentNumber

public void checkArgumentNumber(int argumentNumber,
                                List<BuiltInArgument> arguments)
                         throws BuiltInException
Specified by:
checkArgumentNumber in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentNumeric

public boolean isArgumentNumeric(int argumentNumber,
                                 List<BuiltInArgument> arguments)
                          throws BuiltInException
Specified by:
isArgumentNumeric in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentNonNumeric

public boolean isArgumentNonNumeric(int argumentNumber,
                                    List<BuiltInArgument> arguments)
                             throws BuiltInException
Specified by:
isArgumentNonNumeric in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsNonNumeric

public void checkThatArgumentIsNonNumeric(int argumentNumber,
                                          List<BuiltInArgument> arguments)
                                   throws BuiltInException
Specified by:
checkThatArgumentIsNonNumeric in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAnInteger

public void checkThatArgumentIsAnInteger(int argumentNumber,
                                         List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
checkThatArgumentIsAnInteger in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAnInteger

public boolean isArgumentAnInteger(int argumentNumber,
                                   List<BuiltInArgument> arguments)
                            throws BuiltInException
Specified by:
isArgumentAnInteger in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAnInteger

public int getArgumentAsAnInteger(int argumentNumber,
                                  List<BuiltInArgument> arguments)
                           throws BuiltInException
Specified by:
getArgumentAsAnInteger in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAPositiveInteger

public int getArgumentAsAPositiveInteger(int argumentNumber,
                                         List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
getArgumentAsAPositiveInteger in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAShort

public boolean isArgumentAShort(int argumentNumber,
                                List<BuiltInArgument> arguments)
                         throws BuiltInException
Specified by:
isArgumentAShort in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAShort

public short getArgumentAsAShort(int argumentNumber,
                                 List<BuiltInArgument> arguments)
                          throws BuiltInException
Specified by:
getArgumentAsAShort in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentADataValue

public boolean isArgumentADataValue(int argumentNumber,
                                    List<BuiltInArgument> arguments)
                             throws BuiltInException
Specified by:
isArgumentADataValue in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAProperty

public boolean isArgumentAProperty(int argumentNumber,
                                   List<BuiltInArgument> arguments)
                            throws BuiltInException
Specified by:
isArgumentAProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentADataProperty

public boolean isArgumentADataProperty(int argumentNumber,
                                       List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
isArgumentADataProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAnObjectProperty

public boolean isArgumentAnObjectProperty(int argumentNumber,
                                          List<BuiltInArgument> arguments)
                                   throws BuiltInException
Specified by:
isArgumentAnObjectProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAProperty

public void checkThatArgumentIsAProperty(int argumentNumber,
                                         List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
checkThatArgumentIsAProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAnObjectProperty

public void checkThatArgumentIsAnObjectProperty(int argumentNumber,
                                                List<BuiltInArgument> arguments)
                                         throws BuiltInException
Specified by:
checkThatArgumentIsAnObjectProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsADataProperty

public void checkThatArgumentIsADataProperty(int argumentNumber,
                                             List<BuiltInArgument> arguments)
                                      throws BuiltInException
Specified by:
checkThatArgumentIsADataProperty in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAClassPropertyOrIndividual

public void checkThatArgumentIsAClassPropertyOrIndividual(int argumentNumber,
                                                          List<BuiltInArgument> arguments)
                                                   throws BuiltInException
Specified by:
checkThatArgumentIsAClassPropertyOrIndividual in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAClassPropertyOrIndividual

public boolean isArgumentAClassPropertyOrIndividual(int argumentNumber,
                                                    List<BuiltInArgument> arguments)
                                             throws BuiltInException
Specified by:
isArgumentAClassPropertyOrIndividual in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAClass

public boolean isArgumentAClass(int argumentNumber,
                                List<BuiltInArgument> arguments)
                         throws BuiltInException
Specified by:
isArgumentAClass in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAClass

public void checkThatArgumentIsAClass(int argumentNumber,
                                      List<BuiltInArgument> arguments)
                               throws BuiltInException
Specified by:
checkThatArgumentIsAClass in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsADataValue

public DataValue getArgumentAsADataValue(int argumentNumber,
                                         List<BuiltInArgument> arguments)
                                  throws BuiltInException
Specified by:
getArgumentAsADataValue in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsADataValue

public DataValue getArgumentAsADataValue(BuiltInArgument argument)
                                  throws BuiltInException
Specified by:
getArgumentAsADataValue in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsALong

public void checkThatArgumentIsALong(int argumentNumber,
                                     List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
checkThatArgumentIsALong in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentALong

public boolean isArgumentALong(int argumentNumber,
                               List<BuiltInArgument> arguments)
                        throws BuiltInException
Specified by:
isArgumentALong in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsALong

public long getArgumentAsALong(int argumentNumber,
                               List<BuiltInArgument> arguments)
                        throws BuiltInException
Specified by:
getArgumentAsALong in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAPositiveLong

public long getArgumentAsAPositiveLong(int argumentNumber,
                                       List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
getArgumentAsAPositiveLong in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAFloat

public void checkThatArgumentIsAFloat(int argumentNumber,
                                      List<BuiltInArgument> arguments)
                               throws BuiltInException
Specified by:
checkThatArgumentIsAFloat in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAFloat

public boolean isArgumentAFloat(int argumentNumber,
                                List<BuiltInArgument> arguments)
                         throws BuiltInException
Specified by:
isArgumentAFloat in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAFloat

public float getArgumentAsAFloat(int argumentNumber,
                                 List<BuiltInArgument> arguments)
                          throws BuiltInException
Specified by:
getArgumentAsAFloat in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAFloat

public float getArgumentAsAFloat(BuiltInArgument argument)
                          throws BuiltInException
Specified by:
getArgumentAsAFloat in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsADouble

public void checkThatArgumentIsADouble(int argumentNumber,
                                       List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
checkThatArgumentIsADouble in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentADouble

public boolean isArgumentADouble(int argumentNumber,
                                 List<BuiltInArgument> arguments)
                          throws BuiltInException
Specified by:
isArgumentADouble in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsADouble

public double getArgumentAsADouble(int argumentNumber,
                                   List<BuiltInArgument> arguments)
                            throws BuiltInException
Specified by:
getArgumentAsADouble in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsADouble

public double getArgumentAsADouble(BuiltInArgument argument)
                            throws BuiltInException
Specified by:
getArgumentAsADouble in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsABoolean

public void checkThatArgumentIsABoolean(int argumentNumber,
                                        List<BuiltInArgument> arguments)
                                 throws BuiltInException
Specified by:
checkThatArgumentIsABoolean in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentABoolean

public boolean isArgumentABoolean(int argumentNumber,
                                  List<BuiltInArgument> arguments)
                           throws BuiltInException
Specified by:
isArgumentABoolean in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsABoolean

public boolean getArgumentAsABoolean(int argumentNumber,
                                     List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
getArgumentAsABoolean in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsAString

public void checkThatArgumentIsAString(int argumentNumber,
                                       List<BuiltInArgument> arguments)
                                throws BuiltInException
Specified by:
checkThatArgumentIsAString in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isArgumentAString

public boolean isArgumentAString(int argumentNumber,
                                 List<BuiltInArgument> arguments)
                          throws BuiltInException
Specified by:
isArgumentAString in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAString

public String getArgumentAsAString(int argumentNumber,
                                   List<BuiltInArgument> arguments)
                            throws BuiltInException
Specified by:
getArgumentAsAString in interface SWRLBuiltInLibrary
Throws:
BuiltInException

hasUnboundArguments

public boolean hasUnboundArguments(List<BuiltInArgument> arguments)
                            throws BuiltInException
Specified by:
hasUnboundArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatAllArgumentsAreBound

public void checkThatAllArgumentsAreBound(List<BuiltInArgument> arguments)
                                   throws BuiltInException
Specified by:
checkThatAllArgumentsAreBound in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkThatArgumentIsBound

public void checkThatArgumentIsBound(int argumentNumber,
                                     List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
checkThatArgumentIsBound in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isUnboundArgument

public boolean isUnboundArgument(int argumentNumber,
                                 List<BuiltInArgument> arguments)
                          throws BuiltInException
Specified by:
isUnboundArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

isBoundArgument

public boolean isBoundArgument(int argumentNumber,
                               List<BuiltInArgument> arguments)
                        throws BuiltInException
Throws:
BuiltInException

getFirstUnboundArgument

public int getFirstUnboundArgument(List<BuiltInArgument> arguments)
                            throws BuiltInException
Get 0-offset position of first unbound argument; return -1 if no unbound arguments are found.

Specified by:
getFirstUnboundArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkForUnboundArguments

public void checkForUnboundArguments(List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
checkForUnboundArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkForUnboundArguments

public void checkForUnboundArguments(List<BuiltInArgument> arguments,
                                     String message)
                              throws BuiltInException
Specified by:
checkForUnboundArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkForNonVariableArguments

public void checkForNonVariableArguments(List<BuiltInArgument> arguments,
                                         String message)
                                  throws BuiltInException
Specified by:
checkForNonVariableArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkForUnboundNonFirstArguments

public void checkForUnboundNonFirstArguments(List<BuiltInArgument> arguments)
                                      throws BuiltInException
Specified by:
checkForUnboundNonFirstArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getVariableName

public String getVariableName(int argumentNumber,
                              List<BuiltInArgument> arguments)
                       throws BuiltInException
Specified by:
getVariableName in interface SWRLBuiltInLibrary
Throws:
BuiltInException

getArgumentAsAPropertyValue

public Object getArgumentAsAPropertyValue(int argumentNumber,
                                          List<BuiltInArgument> arguments)
                                   throws BuiltInException
Take an bound Argument object with types ClassArgument, PropertyArgument, IndividualArgument, or DataValueArgument and return it as a property value representation. Class, property and individual argumenst are represented by their URIs; data value objects are represented by the appropriate Java type. Primitive XSD datatypes that do not have a corresponding Java type are not yet supported.

Specified by:
getArgumentAsAPropertyValue in interface SWRLBuiltInLibrary
Throws:
BuiltInException

createInvocationPattern

public String createInvocationPattern(SWRLBuiltInBridge invokingBridge,
                                      String invokingRuleName,
                                      int invokingBuiltInIndex,
                                      boolean isInConsequent,
                                      List<BuiltInArgument> arguments)
                               throws BuiltInException
Create a string that represents a key of a unique invocation pattern for a built-in for a bridge/rule/built-in/arguments combination.

Specified by:
createInvocationPattern in interface SWRLBuiltInLibrary
Throws:
BuiltInException

checkForUnboundArguments

public void checkForUnboundArguments(String ruleName,
                                     String builtInName,
                                     List<BuiltInArgument> arguments)
                              throws BuiltInException
Specified by:
checkForUnboundArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

copyArguments

public List<BuiltInArgument> copyArguments(List<BuiltInArgument> arguments)
                                    throws BuiltInException
Specified by:
copyArguments in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     Collection<BuiltInArgument> resultArguments)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     BuiltInArgument resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     SWRLLiteralArgumentReference resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     short resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     int resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     long resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     float resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     double resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     byte resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

processResultArgument

public boolean processResultArgument(List<BuiltInArgument> arguments,
                                     int resultArgumentNumber,
                                     String resultArgument)
                              throws BuiltInException
Specified by:
processResultArgument in interface SWRLBuiltInLibrary
Throws:
BuiltInException

createClassArgument

public ClassArgument createClassArgument(String classURI)
Specified by:
createClassArgument in interface SWRLBuiltInLibrary

createIndividualArgument

public SWRLIndividualArgumentReference createIndividualArgument(String individualURI)
Specified by:
createIndividualArgument in interface SWRLBuiltInLibrary

createObjectPropertyArgument

public ObjectPropertyArgument createObjectPropertyArgument(String propertyURI)
Specified by:
createObjectPropertyArgument in interface SWRLBuiltInLibrary

createDataPropertyArgument

public DataPropertyArgument createDataPropertyArgument(String propertyURI)
Specified by:
createDataPropertyArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(DataValue dataValue)

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(String s)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(boolean b)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(int i)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(long l)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(float f)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(double d)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(short s)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(Byte b)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(XSDType xsd)
Specified by:
createDataValueArgument in interface SWRLBuiltInLibrary

createDataValueArgument

public SWRLLiteralArgumentReference createDataValueArgument(Object o)
                                                     throws DataValueConversionException
Throws:
DataValueConversionException

createMultiArgument

public MultiArgument createMultiArgument()
Specified by:
createMultiArgument in interface SWRLBuiltInLibrary

createMultiArgument

public MultiArgument createMultiArgument(List<BuiltInArgument> arguments)
Specified by:
createMultiArgument in interface SWRLBuiltInLibrary

createCollectionArgument

public CollectionArgument createCollectionArgument(String collectionName,
                                                   String collectionGroupID)

Protégé-OWL 3.4.8

Submit a bug report or feature request
Copyright (c) 1998-2012 Stanford University.