Protégé-OWL 3.4.8

edu.stanford.smi.protegex.owl.swrl.bridge.builtins.rdfb
Class SWRLBuiltInLibraryImpl

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

public class SWRLBuiltInLibraryImpl
extends AbstractSWRLBuiltInLibrary

Implementations library for RDFB built-in methods. See here for documentation on this library. See here for documentation on defining SWRL built-in libraries.


Constructor Summary
SWRLBuiltInLibraryImpl()
           
 
Method Summary
 boolean hasLabel(List<BuiltInArgument> arguments)
          Returns true if the RDF resource named by the first argument has any label identified by the second argument.
 boolean hasLabelLanguage(List<BuiltInArgument> arguments)
          Returns true if the RDF resource named by the first argument has any label language identified by the second argument.
 boolean isClass(List<BuiltInArgument> arguments)
          isClass(c)
 boolean isList(List<BuiltInArgument> arguments)
          isList(l)
 boolean isProperty(List<BuiltInArgument> arguments)
          isProperty(p)
 boolean isResource(List<BuiltInArgument> arguments)
          isResource(r)
 void reset()
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.swrl.bridge.builtins.AbstractSWRLBuiltInLibrary
areAllArgumentDataValues, areAllArgumentsBooleans, areAllArgumentsDoubles, areAllArgumentsFloats, areAllArgumentsIntegers, areAllArgumentsLongs, areAllArgumentsNumeric, areAllArgumentsOfAnOrderedType, areAllArgumentsShorts, areAllArgumentsStrings, checkArgumentNumber, checkForNonVariableArguments, checkForUnboundArguments, checkForUnboundArguments, checkForUnboundArguments, checkForUnboundNonFirstArguments, checkNumberOfArgumentsAtLeast, checkNumberOfArgumentsAtLeastOne, checkNumberOfArgumentsAtMost, checkNumberOfArgumentsEqualTo, checkNumberOfArgumentsInRange, checkThatAllArgumentsAreBound, checkThatAllArgumentsAreDataValues, checkThatAllArgumentsAreFloats, checkThatAllArgumentsAreIntegers, checkThatAllArgumentsAreNumeric, checkThatAllArgumentsAreOfAnOrderedType, checkThatAllArgumentsAreStrings, checkThatArgumentIsABoolean, checkThatArgumentIsAClass, checkThatArgumentIsAClassPropertyOrIndividual, checkThatArgumentIsADataProperty, checkThatArgumentIsADataValue, checkThatArgumentIsADataValue, checkThatArgumentIsADouble, checkThatArgumentIsAFloat, checkThatArgumentIsALong, checkThatArgumentIsAnIndividual, checkThatArgumentIsAnInteger, checkThatArgumentIsAnObjectProperty, checkThatArgumentIsAProperty, checkThatArgumentIsAString, checkThatArgumentIsBound, checkThatArgumentIsNonNumeric, checkThatArgumentIsNumeric, checkThatArgumentIsOfAnOrderedType, checkThatInAntecedent, checkThatInConsequent, copyArguments, createClassArgument, createCollectionArgument, createDataPropertyArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createDataValueArgument, createIndividualArgument, createInvocationPattern, createMultiArgument, createMultiArgument, createObjectPropertyArgument, getArgumentAsABoolean, getArgumentAsAClass, getArgumentAsAClassURI, getArgumentAsADataProperty, getArgumentAsADataValue, getArgumentAsADataValue, getArgumentAsADouble, getArgumentAsADouble, getArgumentAsAFloat, getArgumentAsAFloat, getArgumentAsALong, getArgumentAsAnIndividual, getArgumentAsAnIndividualURI, getArgumentAsAnInteger, getArgumentAsAnObjectProperty, getArgumentAsAPositiveInteger, getArgumentAsAPositiveLong, getArgumentAsAProperty, getArgumentAsAPropertyURI, getArgumentAsAPropertyValue, getArgumentAsAShort, getArgumentAsAString, getArgumentAsAURI, getBuiltInBridge, getFirstUnboundArgument, getInvokingBuiltInIndex, getInvokingRuleName, getIsInConsequent, getLibraryName, getVariableName, hasUnboundArguments, invokeBuiltInMethod, invokeResetMethod, isArgumentABoolean, isArgumentAClass, isArgumentAClassPropertyOrIndividual, isArgumentADataProperty, isArgumentADatatypeValue, isArgumentADataValue, isArgumentADouble, isArgumentAFloat, isArgumentALong, isArgumentAnIndividual, isArgumentAnInteger, isArgumentAnObjectProperty, isArgumentAProperty, isArgumentAShort, isArgumentAString, isArgumentConvertableToDouble, isArgumentConvertableToFloat, isArgumentConvertableToInteger, isArgumentConvertableToLong, isArgumentConvertableToShort, isArgumentNonNumeric, isArgumentNumeric, isArgumentOfAnOrderedType, isBoundArgument, isFloatMostPreciseArgument, isIntegerMostPreciseArgument, isLongMostPreciseArgument, isShortMostPreciseArgument, isUnboundArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument, processResultArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWRLBuiltInLibraryImpl

public SWRLBuiltInLibraryImpl()
Method Detail

reset

public void reset()
Specified by:
reset in interface SWRLBuiltInLibrary
Specified by:
reset in class AbstractSWRLBuiltInLibrary

hasLabel

public boolean hasLabel(List<BuiltInArgument> arguments)
                 throws BuiltInException
Returns true if the RDF resource named by the first argument has any label identified by the second argument. If the second argument is unbound, bind it to labels of the resource.

Throws:
BuiltInException

hasLabelLanguage

public boolean hasLabelLanguage(List<BuiltInArgument> arguments)
                         throws BuiltInException
Returns true if the RDF resource named by the first argument has any label language identified by the second argument. If the second argument is unbound, bind it to label languages of the resource.

Throws:
BuiltInException

isClass

public boolean isClass(List<BuiltInArgument> arguments)
                throws BuiltInException
isClass(c)

Throws:
BuiltInException

isList

public boolean isList(List<BuiltInArgument> arguments)
               throws BuiltInException
isList(l)

Throws:
BuiltInException

isProperty

public boolean isProperty(List<BuiltInArgument> arguments)
                   throws BuiltInException
isProperty(p)

Throws:
BuiltInException

isResource

public boolean isResource(List<BuiltInArgument> arguments)
                   throws BuiltInException
isResource(r)

Throws:
BuiltInException

Protégé-OWL 3.4.8

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