org.semwebcentral.sweetrules.sweetonto
Class SweetPredicateExtensionWrapper

java.lang.Object
  extended byPredicate
      extended byorg.semwebcentral.sweetrules.sweetonto.SweetPredicateExtensionWrapper

public class SweetPredicateExtensionWrapper
extends Predicate

The wrapper exclusively for use in translating the instance data (both class and property instances) to SWRL. It stores the SWRL atom type of the predicate

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

Field Summary
private  java.lang.String objectDataType
          The object data type
private  java.lang.String swrlAtomType
          The SWRL atom type
 
Constructor Summary
SweetPredicateExtensionWrapper(boolean isPositive, java.lang.String predicateName, int arity, java.lang.String swrlAtomType)
          The constructor for predicate extension wrapper
SweetPredicateExtensionWrapper(Predicate predicate, java.lang.String swrlAtomType, java.lang.String objectDataType)
          Utility constructor to construct a wrapped predicate from an unwrapped one
 
Method Summary
 java.lang.String getObjectDataType()
          Gets the object data type
 java.lang.String getSWRLAtomType()
          Gets 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


objectDataType

private java.lang.String objectDataType
The object data type

Constructor Detail

SweetPredicateExtensionWrapper

public SweetPredicateExtensionWrapper(boolean isPositive,
                                      java.lang.String predicateName,
                                      int arity,
                                      java.lang.String swrlAtomType)
The constructor for predicate extension wrapper

Parameters:
isPositive - Indicates whether the predicate is positive or negated
predicateName - Name of the predicate
arity - Arity of the predicate
swrlAtomType - The SWRL atom type of the predicate

SweetPredicateExtensionWrapper

public SweetPredicateExtensionWrapper(Predicate predicate,
                                      java.lang.String swrlAtomType,
                                      java.lang.String objectDataType)
Utility constructor to construct a wrapped predicate from an unwrapped one

Parameters:
predicate - The predicate to be wrapped
swrlAtomType - The SWRL atom type of the predicate
objectDataType - The data type for the object part of the corresponding OWL Property (This parameter is applicable to data type properties only. It can be null for other types)
Method Detail

getSWRLAtomType

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

Returns:
The SWRL atom type

getObjectDataType

public java.lang.String getObjectDataType()
Gets the object data type

Returns:
The object data type