org.semwebcentral.sweetrules.sweetonto
Class SweetLiteralWrapper

java.lang.Object
  extended byLiteral
      extended byorg.semwebcentral.sweetrules.sweetonto.SweetLiteralWrapper

public class SweetLiteralWrapper
extends Literal

This is wrapper for the Literal class of edu.unika... This stores properties which indicate whether it should be a classAtom, propertyAtom etc

Author:
Dr. Benjamin Grosof, Shashidhara K Ganjugunte, Dr. Said Tabet, Chitravanu Neogy, Sumit Bhansali
See Also:
Serialized Form

Field Summary
private  java.lang.String swrlAtomType
          The SWRL atom type denoting whether the rule should be translated as a "classAtom" or "individualPropertyAtom" e.t.c.
 
Constructor Summary
SweetLiteralWrapper(Predicate predicate, boolean isPositive, Term[] terms, boolean hasDisjunctionVariable, java.lang.String swrlAtomType)
          Constructor for a wrapped literal
SweetLiteralWrapper(Predicate predicate, boolean isPositive, Term[] terms, java.lang.String swrlAtomType)
          Constructor for a wrapped literal with the default value of false to the hasDisjunctionVariable (this is set inside the super class)
 
Method Summary
 java.lang.String getSWRLAtomType()
          This returns the SWRL atom type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swrlAtomType

private java.lang.String swrlAtomType
The SWRL atom type denoting whether the rule should be translated as a "classAtom" or "individualPropertyAtom" e.t.c.

Constructor Detail

SweetLiteralWrapper

public SweetLiteralWrapper(Predicate predicate,
                           boolean isPositive,
                           Term[] terms,
                           boolean hasDisjunctionVariable,
                           java.lang.String swrlAtomType)
Constructor for a wrapped literal

Parameters:
predicate - The predicate
isPositive - if true the literal is positive otherwise it is negated
terms - Literal terms
hasDisjunctionVariable - This is true if the literal is disjunctive

SweetLiteralWrapper

public SweetLiteralWrapper(Predicate predicate,
                           boolean isPositive,
                           Term[] terms,
                           java.lang.String swrlAtomType)
Constructor for a wrapped literal with the default value of false to the hasDisjunctionVariable (this is set inside the super class)

Parameters:
predicate - The predicate
isPositive - if true the literal is positive otherwise it is negated
terms - Literal terms
swrlAtomType - The SWRL atom type for e.g. classAtom, individualPropertyAtom etc
Method Detail

getSWRLAtomType

public java.lang.String getSWRLAtomType()
This returns the SWRL atom type

Returns:
The SWRL atom type