|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.lehigh.swat.hawk.storage.simplememory.SerializableClass
edu.lehigh.swat.hawk.storage.simplememory.OntObject
edu.lehigh.swat.hawk.storage.simplememory.OntProperty
public class OntProperty
A simple implementation of core.OntProperty in memory.
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, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.lehigh.swat.hawk.core.OntObject |
---|
addDescription, deleteDescription, getAllDescriptions, getDescription, getID, getLabel, getOntology, getSource, setID, setLabel, setOntology, setSource |
Constructor Detail |
---|
public OntProperty()
Method Detail |
---|
public ObjectId getDomain()
getDomain
in interface OntProperty
public void setDomain(ObjectId c)
setDomain
in interface OntProperty
public ObjectId getRange()
getRange
in interface OntProperty
public void setRange(ObjectId c)
setRange
in interface OntProperty
public boolean isTransitive()
isTransitive
in interface OntProperty
public void setTransitive(boolean b)
setTransitive
in interface OntProperty
public boolean isSymmetric()
isSymmetric
in interface OntProperty
public void setSymmetric(boolean b)
setSymmetric
in interface OntProperty
public void addSubProperty(ObjectId p)
addSubProperty
in interface OntProperty
public ObjectId[] getDirectSubProperties()
getDirectSubProperties
in interface OntProperty
public void deleteSubProperty(ObjectId p)
deleteSubProperty
in interface OntProperty
public void addSuperProperty(ObjectId p)
addSuperProperty
in interface OntProperty
public ObjectId[] getDirectSuperProperties()
getDirectSuperProperties
in interface OntProperty
public void deleteSuperProperty(ObjectId p)
deleteSuperProperty
in interface OntProperty
public boolean isDeprecated()
isDeprecated
in interface OntProperty
public void setDeprecated(boolean dep)
setDeprecated
in interface OntProperty
public boolean isFunctional()
isFunctional
in interface OntProperty
public void setFunctional(boolean f)
setFunctional
in interface OntProperty
public boolean isInverseFunctional()
isInverseFunctional
in interface OntProperty
public void setInverseFuncional(boolean f)
setInverseFuncional
in interface OntProperty
public void addInverseOf(ObjectId p)
addInverseOf
in interface OntProperty
public void deleteInverseOf(ObjectId p)
deleteInverseOf
in interface OntProperty
public ObjectId[] getInverseOf()
getInverseOf
in interface OntProperty
public void addEquivalentProperty(ObjectId ec)
addEquivalentProperty
in interface OntProperty
public void deleteEquivalentProperty(ObjectId r)
deleteEquivalentProperty
in interface OntProperty
public ObjectId[] getEquivalentProperties()
getEquivalentProperties
in interface OntProperty
public java.lang.Boolean isDatatype()
isDatatype
in interface OntProperty
public void setDatatype(boolean b)
setDatatype
in interface OntProperty
public boolean isAnnotation()
isAnnotation
in interface OntProperty
public void setAnnotation(boolean b)
setAnnotation
in interface OntProperty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |