edu.lehigh.swat.hawk.storage.simplememory
Class OntProperty

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.OntObject
      extended by edu.lehigh.swat.hawk.storage.simplememory.OntProperty
All Implemented Interfaces:
OntObject, OntProperty, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
OntProperty

public class OntProperty
extends OntObject
implements OntProperty

A simple implementation of core.OntProperty in memory.

See Also:
Serialized Form

Constructor Summary
OntProperty()
          Constructor
 
Method Summary
 void addEquivalentProperty(ObjectId ec)
          Add a equivalent property.
 void addInverseOf(ObjectId p)
          Add a 'inverseOf' property
 void addSubProperty(ObjectId p)
          add a direct subProperty $memo: currently we only set bi-directional links to those porperties who are in the same document.
 void addSuperProperty(ObjectId p)
          add a direct super Property
 void deleteEquivalentProperty(ObjectId r)
          Delete a equivalent property.
 void deleteInverseOf(ObjectId p)
          delete a 'inverseOf' property
 void deleteSubProperty(ObjectId p)
          delete a direct subProperty
 void deleteSuperProperty(ObjectId p)
          delete a direct super Property
 ObjectId[] getDirectSubProperties()
          get the direct subProperties
 ObjectId[] getDirectSuperProperties()
          get the direct super Properties
 ObjectId getDomain()
          get the domain
 ObjectId[] getEquivalentProperties()
          Get the equivalent properties.
 ObjectId[] getInverseOf()
          get the 'inverseOf' properties
 ObjectId getRange()
          get the range
 boolean isAnnotation()
          Tell this property is AnnotationProperty or not.
 java.lang.Boolean isDatatype()
          Tell this property is ObjectProperty or DatatypeProperty.
 boolean isDeprecated()
          Test if this property is deprecated.
 boolean isFunctional()
          Test if this property is functional.
 boolean isInverseFunctional()
          Test if this property is inverse functional.
 boolean isSymmetric()
          test if this property is symetric
 boolean isTransitive()
          test if this property is transitive
 void setAnnotation(boolean b)
          Set this property to be DatatypeProperty or not.
 void setDatatype(boolean b)
          Set this property to be DatatypeProperty or ObjectProperty.
 void setDeprecated(boolean dep)
          Set the property to be deprecated.
 void setDomain(ObjectId c)
          set the domain
 void setFunctional(boolean f)
          Set the property to be functional.
 void setInverseFuncional(boolean f)
          Set the property to be inverse functional.
 void setRange(ObjectId c)
          set the domain
 void setSymmetric(boolean b)
          set the property to be symetric or not
 void setTransitive(boolean b)
          set the property to be transitive or not
 
Methods inherited from class edu.lehigh.swat.hawk.storage.simplememory.OntObject
addDescription, clone, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.lehigh.swat.hawk.core.OntObject
addDescription, clone, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource
 

Constructor Detail

OntProperty

public OntProperty()
Constructor

Method Detail

getDomain

public ObjectId getDomain()
get the domain

Specified by:
getDomain in interface OntProperty

setDomain

public void setDomain(ObjectId c)
set the domain

Specified by:
setDomain in interface OntProperty

getRange

public ObjectId getRange()
get the range

Specified by:
getRange in interface OntProperty

setRange

public void setRange(ObjectId c)
set the domain

Specified by:
setRange in interface OntProperty

isTransitive

public boolean isTransitive()
test if this property is transitive

Specified by:
isTransitive in interface OntProperty

setTransitive

public void setTransitive(boolean b)
set the property to be transitive or not

Specified by:
setTransitive in interface OntProperty

isSymmetric

public boolean isSymmetric()
test if this property is symetric

Specified by:
isSymmetric in interface OntProperty

setSymmetric

public void setSymmetric(boolean b)
set the property to be symetric or not

Specified by:
setSymmetric in interface OntProperty

addSubProperty

public void addSubProperty(ObjectId p)
add a direct subProperty $memo: currently we only set bi-directional links to those porperties who are in the same document.

Specified by:
addSubProperty in interface OntProperty

getDirectSubProperties

public ObjectId[] getDirectSubProperties()
get the direct subProperties

Specified by:
getDirectSubProperties in interface OntProperty

deleteSubProperty

public void deleteSubProperty(ObjectId p)
delete a direct subProperty

Specified by:
deleteSubProperty in interface OntProperty

addSuperProperty

public void addSuperProperty(ObjectId p)
add a direct super Property

Specified by:
addSuperProperty in interface OntProperty

getDirectSuperProperties

public ObjectId[] getDirectSuperProperties()
get the direct super Properties

Specified by:
getDirectSuperProperties in interface OntProperty

deleteSuperProperty

public void deleteSuperProperty(ObjectId p)
delete a direct super Property

Specified by:
deleteSuperProperty in interface OntProperty

isDeprecated

public boolean isDeprecated()
Test if this property is deprecated.

Specified by:
isDeprecated in interface OntProperty

setDeprecated

public void setDeprecated(boolean dep)
Set the property to be deprecated.

Specified by:
setDeprecated in interface OntProperty

isFunctional

public boolean isFunctional()
Test if this property is functional.

Specified by:
isFunctional in interface OntProperty

setFunctional

public void setFunctional(boolean f)
Set the property to be functional.

Specified by:
setFunctional in interface OntProperty

isInverseFunctional

public boolean isInverseFunctional()
Test if this property is inverse functional.

Specified by:
isInverseFunctional in interface OntProperty

setInverseFuncional

public void setInverseFuncional(boolean f)
Set the property to be inverse functional.

Specified by:
setInverseFuncional in interface OntProperty

addInverseOf

public void addInverseOf(ObjectId p)
Add a 'inverseOf' property

Specified by:
addInverseOf in interface OntProperty

deleteInverseOf

public void deleteInverseOf(ObjectId p)
delete a 'inverseOf' property

Specified by:
deleteInverseOf in interface OntProperty

getInverseOf

public ObjectId[] getInverseOf()
get the 'inverseOf' properties

Specified by:
getInverseOf in interface OntProperty

addEquivalentProperty

public void addEquivalentProperty(ObjectId ec)
Add a equivalent property.

Specified by:
addEquivalentProperty in interface OntProperty

deleteEquivalentProperty

public void deleteEquivalentProperty(ObjectId r)
Delete a equivalent property.

Specified by:
deleteEquivalentProperty in interface OntProperty

getEquivalentProperties

public ObjectId[] getEquivalentProperties()
Get the equivalent properties.

Specified by:
getEquivalentProperties in interface OntProperty

isDatatype

public java.lang.Boolean isDatatype()
Tell this property is ObjectProperty or DatatypeProperty. Null means unknown.

Specified by:
isDatatype in interface OntProperty

setDatatype

public void setDatatype(boolean b)
Set this property to be DatatypeProperty or ObjectProperty.

Specified by:
setDatatype in interface OntProperty

isAnnotation

public boolean isAnnotation()
Tell this property is AnnotationProperty or not.

Specified by:
isAnnotation in interface OntProperty

setAnnotation

public void setAnnotation(boolean b)
Set this property to be DatatypeProperty or not.

Specified by:
setAnnotation in interface OntProperty