edu.stanford.smi.protegex.owl.swrl.bridge.builtins.temporal
Class SWRLBuiltInLibraryImpl
java.lang.Object
edu.stanford.smi.protegex.owl.swrl.bridge.builtins.SWRLBuiltInLibrary
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemporalLibraryName
public static final String TemporalLibraryName
- See Also:
- Constant Field Values
Prefix
public static final String Prefix
- See Also:
- Constant Field Values
SWRLBuiltInLibraryImpl
public SWRLBuiltInLibraryImpl()
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
Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.