|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.unima.alcomox.mapping.SemanticRelation
public class SemanticRelation
A semantic relation can be used to express equivalence, subsumption or disjointness between entities of different ontologies.
Field Summary | |
---|---|
static int |
DIS
Relation of disjointness, e.g. |
static int |
EQUIV
Relation of equivalence, e.g. |
static int |
NA
Relation thats not available. |
static int |
SUB
Relation of subsumption, e.g. |
static int |
SUPER
Relation of supsumption, e.g. |
Constructor Summary | |
---|---|
SemanticRelation(int type)
Constructs a semantic relation of a certain type. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
Checks equality of this and that semantic relation. |
SemanticRelation |
getInverse()
Returns the inverse semantic relation of this semantic relation. |
int |
getType()
|
int |
hashCode()
|
java.lang.String |
toString()
Returns the string representation of this semantic relation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NA
public static final int EQUIV
public static final int SUB
public static final int SUPER
public static final int DIS
Constructor Detail |
---|
public SemanticRelation(int type) throws CorrespondenceException
type
- The type of the semantic relation.
CorrespondenceException
- Thrown, if a not existing type of relation is chosen.Method Detail |
---|
public int getType()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
that
- That semantic relation.
public int hashCode()
hashCode
in class java.lang.Object
public SemanticRelation getInverse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |