Protégé-OWL 3.3.1

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

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

public class SWRLBuiltInLibraryImpl
extends SWRLBuiltInLibrary
implements QueryLibrary

Implementation library for SWRL query built-ins. See here for documentation on this built-in library.


Field Summary
static String Prefix
           
 
Constructor Summary
SWRLBuiltInLibraryImpl()
           
 
Method Summary
 boolean avg(List<Argument> arguments)
           
 boolean columnNames(List<Argument> arguments)
           
 boolean count(List<Argument> arguments)
           
 Result getQueryResult(String ruleName)
          Get a result object for a particular rule.
 boolean max(List<Argument> arguments)
           
 boolean min(List<Argument> arguments)
           
 boolean orderBy(List<Argument> arguments)
           
 boolean orderByDescending(List<Argument> arguments)
           
 void reset()
           
 boolean select(List<Argument> arguments)
           
 boolean selectDistinct(List<Argument> arguments)
           
 boolean sum(List<Argument> arguments)
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.swrl.bridge.builtins.SWRLBuiltInLibrary
getInvokingBridge, getInvokingBuiltInIndex, getInvokingRuleName, getLibraryName, invokeBuiltInMethod, invokeResetMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Prefix

public static final String Prefix
See Also:
Constant Field Values
Constructor Detail

SWRLBuiltInLibraryImpl

public SWRLBuiltInLibraryImpl()
Method Detail

reset

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

getQueryResult

public Result getQueryResult(String ruleName)
                      throws ResultException
Get a result object for a particular rule. Return null if no result is generated for this rule.

Specified by:
getQueryResult in interface QueryLibrary
Throws:
ResultException

select

public boolean select(List<Argument> arguments)
               throws BuiltInException
Throws:
BuiltInException

selectDistinct

public boolean selectDistinct(List<Argument> arguments)
                       throws BuiltInException
Throws:
BuiltInException

count

public boolean count(List<Argument> arguments)
              throws BuiltInException
Throws:
BuiltInException

min

public boolean min(List<Argument> arguments)
            throws BuiltInException
Throws:
BuiltInException

max

public boolean max(List<Argument> arguments)
            throws BuiltInException
Throws:
BuiltInException

sum

public boolean sum(List<Argument> arguments)
            throws BuiltInException
Throws:
BuiltInException

avg

public boolean avg(List<Argument> arguments)
            throws BuiltInException
Throws:
BuiltInException

columnNames

public boolean columnNames(List<Argument> arguments)
                    throws BuiltInException
Throws:
BuiltInException

orderBy

public boolean orderBy(List<Argument> arguments)
                throws BuiltInException
Throws:
BuiltInException

orderByDescending

public boolean orderByDescending(List<Argument> arguments)
                          throws BuiltInException
Throws:
BuiltInException

Protégé-OWL 3.3.1

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