Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.swrl.bridge.builtins.temporal
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.temporal.SWRLBuiltInLibraryImpl

public class SWRLBuiltInLibraryImpl
extends SWRLBuiltInLibrary

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


Field Summary
static String Prefix
           
static String TemporalLibraryName
           
 
Constructor Summary
SWRLBuiltInLibraryImpl()
           
 
Method Summary
 boolean add(List<Argument> arguments)
          Returns true if the first timestamp argument is equal to the second timestamps argument plus the third count argument at the granularity specified by the fourth argument.
 boolean after(List<Argument> arguments)
           
 boolean before(List<Argument> arguments)
           
 boolean contains(List<Argument> arguments)
           
 boolean duration(List<Argument> arguments)
          Accepts either three or four arguments.
 boolean during(List<Argument> arguments)
           
 boolean equals(List<Argument> arguments)
           
 boolean finishedBy(List<Argument> arguments)
           
 boolean finishes(List<Argument> arguments)
           
 boolean meets(List<Argument> arguments)
           
 boolean metBy(List<Argument> arguments)
           
 boolean overlappedBy(List<Argument> arguments)
           
 boolean overlaps(List<Argument> arguments)
           
 void reset()
           
 boolean startedBy(List<Argument> arguments)
           
 boolean starts(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

TemporalLibraryName

public static final String TemporalLibraryName
See Also:
Constant Field Values

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

equals

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

before

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

after

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

meets

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

metBy

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

overlaps

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

overlappedBy

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

contains

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

during

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

starts

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

startedBy

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

finishes

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

finishedBy

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

duration

public boolean duration(List<Argument> arguments)
                 throws BuiltInException
Accepts either three or four arguments. Returns true if the first duration argument is equal to the difference between two timestamps at the granularity specified by the final argument. The timestamps are specified as either a mixture of two ValidInstant or datetime arguments or in single ValidPeriod argument. If the duration argument is unbound, it is assigned to the time difference between the two timestamps.

Throws:
BuiltInException

add

public boolean add(List<Argument> arguments)
            throws BuiltInException
Returns true if the first timestamp argument is equal to the second timestamps argument plus the third count argument at the granularity specified by the fourth argument. The timestamps are specified as either a ValidInstant, or xsd:DateTime arguments. If the first argument is unbound, it is assigned the result of the addition.

Throws:
BuiltInException

Protégé-OWL 3.3.1

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