|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.unima.alcomox.mapping.Correspondence
public class Correspondence
A correspondence represents a (simple) semantic relation between two entities belonging to different ontologies. The enties are first only referred to by their uris (unbound correspondence), when the container mapping is bound to the ontologies the entities attributed are set to the internal entity representation.
Constructor Summary | |
---|---|
Correspondence(java.lang.String sourceEntityUri,
java.lang.String targetEntityUri,
SemanticRelation relation)
Constructs an unbound correspondence with confidence value set to 1.0. |
|
Correspondence(java.lang.String sourceConcept,
java.lang.String targetConcept,
SemanticRelation relation,
double confidence)
Constructs an unbound correspondence with confidence value set to 1.0. |
Method Summary | |
---|---|
int |
compareTo(Correspondence correspondence)
|
boolean |
equals(java.lang.Object thatObject)
|
double |
getConfidence()
|
int |
getId()
|
SemanticRelation |
getRelation()
|
Entity |
getSourceEntity()
|
java.lang.String |
getSourceEntityId()
|
java.lang.String |
getSourceEntityUri()
|
java.lang.String |
getSourceNamespace()
|
Entity |
getTargetEntity()
|
java.lang.String |
getTargetEntityId()
|
java.lang.String |
getTargetEntityUri()
|
java.lang.String |
getTargetNamespace()
|
int |
hashCode()
|
void |
invert()
|
protected void |
invertRelation()
|
boolean |
isEquivOrSub()
|
boolean |
isEquivOrSuper()
|
void |
setConfidence(double confidence)
|
void |
setRelation(SemanticRelation relation)
|
void |
setSourceEntity(Entity entity)
|
void |
setSourceEntityUri(java.lang.String sourceEntity)
|
void |
setSourceNamespace(java.lang.String namespace)
|
void |
setTargetEntity(Entity entity)
|
void |
setTargetEntityUri(java.lang.String targetEntity)
|
void |
setTargetNamespace(java.lang.String namespace)
|
void |
setTopConfidence()
Sets the confidence value to 1.0 without need to catch a Exception. |
java.lang.String |
toShortString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Correspondence(java.lang.String sourceEntityUri, java.lang.String targetEntityUri, SemanticRelation relation) throws CorrespondenceException
sourceEntityUri
- Uri of the source entity.targetEntityUri
- Uri of the target entity.relation
- Semantic relation between two entities.
CorrespondenceException
- Thrown if the uris are not wellformed (in a weak sense).
Checking wether the uri reference can be resolved does not occur in this context.public Correspondence(java.lang.String sourceConcept, java.lang.String targetConcept, SemanticRelation relation, double confidence) throws CorrespondenceException
sourceEntityUri
- Uri of the source entity.targetEntityUri
- Uri of the target entity.relation
- Semantic relation between two entities.confidence
- Confidence value of this correspondence.
CorrespondenceException
- Thrown if the uris are not wellformed (in a weak sense) and
if the confidence value is not in the range from 0.0 to 1.0.
Checking wether the uri reference can be resolved does not occur in this context.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toShortString()
public int getId()
public boolean equals(java.lang.Object thatObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Correspondence correspondence)
compareTo
in interface java.lang.Comparable<Correspondence>
public java.lang.String getSourceEntityUri()
public java.lang.String getTargetEntityUri()
public SemanticRelation getRelation()
public double getConfidence()
public Entity getSourceEntity()
public Entity getTargetEntity()
public java.lang.String getSourceNamespace()
public java.lang.String getTargetNamespace()
public boolean isEquivOrSuper()
public boolean isEquivOrSub()
public void setSourceEntityUri(java.lang.String sourceEntity) throws CorrespondenceException
CorrespondenceException
public void setTargetEntityUri(java.lang.String targetEntity) throws CorrespondenceException
CorrespondenceException
public void setConfidence(double confidence)
public void setTopConfidence()
public void setRelation(SemanticRelation relation)
public void setSourceEntity(Entity entity)
public void setTargetEntity(Entity entity)
public java.lang.String getSourceEntityId()
public java.lang.String getTargetEntityId()
public void setSourceNamespace(java.lang.String namespace)
public void setTargetNamespace(java.lang.String namespace)
public void invert()
protected void invertRelation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |