public class Mapping extends Object implements Comparable<Mapping>
Representation of a matching result. A possible use of this multi-leveled mappings representation could be by representing three different mapping levels:
KnowledgeChunk
sKnowledgeChunk
's properties (e.g. similarity between
religions of Italy and religions of France)Predicate
s (e.g. two property values)Modifier | Constructor and Description |
---|---|
protected |
Mapping()
Empty constructor needed for Hibernate compatibility.
|
|
Mapping(String source,
String target,
Double similarity,
Double confidence,
Relation relation)
Main constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Mapping map) |
String |
getComment()
Getter for the
comment property. |
Double |
getConfidence()
Getter for the
confidence property of this mapping. |
Integer |
getId() |
Boolean |
getIsUserValid() |
MappingSet |
getMappingSet()
Getter for the mappingSet property of this Mapping.
|
MappingSet |
getMatchingAxioms()
Getter for the
matchingAxioms property of this mapping. |
Relation |
getRelation()
Getter for the
relation property. |
Double |
getSimilarity()
Getter for the
similarity property of this mapping. |
String |
getSource_element()
Getter for the
source_element property of this mapping. |
String |
getTarget_element()
Getter for the
target_element property of this mapping. |
void |
setComment(String comment)
Setter for the
comment property. |
void |
setConfidence(Double confidence)
Setter for the
confidence property of this mapping. |
protected void |
setId(Integer id) |
void |
setIsUserValid(Boolean isUserValid) |
void |
setMappingSet(MappingSet mappingSet)
Setter for the mappingSet property of this Mapping.
|
void |
setMatchingAxioms(MappingSet matchingAxioms)
Setter for the
matchingAxioms property of this mapping. |
protected void |
setRelation(Relation relation)
Setter for the
relation property. |
void |
setSimilarity(Double similarity)
Setter for the
similarity property of this mapping. |
protected void |
setSource_element(String source_element)
Setter for the
source_element property of this mapping. |
protected void |
setTarget_element(String target_element)
Setter for the
target_element property of this mapping. |
String |
toString()
Returns a string representation of the current
Mapping . |
protected Mapping()
Empty constructor needed for Hibernate compatibility. Direct use is discouraged. Use
MappingSet.addMapping
instead.
public Mapping(String source, String target, Double similarity, Double confidence, Relation relation)
MappingSet.addMapping
instead.source
- target
- similarity
- confidence
- relation
- MappingSet.addMapping(Relation, String, String, MappingSet, double, double)
public int compareTo(Mapping map)
compareTo
in interface Comparable<Mapping>
public String toString()
Mapping
.public String getComment()
comment
property.public Relation getRelation()
relation
property.Relation
representing the similarity relation of this Mappings.Relation
public MappingSet getMappingSet()
MappingSet
being the "container" of this mapping.MappingSet
public void setMappingSet(MappingSet mappingSet)
mappingSet
- an object of type MappingSet
being the "container" of this mapping.MappingSet
public void setComment(String comment)
comment
property.comment
- a string representing a comment about this mapping.public Double getConfidence()
confidence
property of this mapping.public void setConfidence(Double confidence)
confidence
property of this mapping.confidence
- a value that represents the level of "certainty" of this mapping.public Boolean getIsUserValid()
public void setIsUserValid(Boolean isUserValid)
protected void setRelation(Relation relation)
relation
property.relation
- an object of type Relation
representing the similarity relation of this Mappings.Relation
public Integer getId()
protected void setId(Integer id)
public String getSource_element()
source_element
property of this mapping.rdf_id
.protected void setSource_element(String source_element)
source_element
property of this mapping.source_element
- a string representing the identifier of the first element in this mapping (using the KC db as
data container this field will be the KC rdf_id
.public String getTarget_element()
target_element
property of this mapping.rdf_id
.protected void setTarget_element(String target_element)
target_element
property of this mapping.target_element
- a string representing the identifier of the second element in this mapping (using the KC db as
data container this field will be the KC rdf_id
.public Double getSimilarity()
similarity
property of this mapping.source_element
and target_element
.public void setSimilarity(Double similarity)
similarity
property of this mapping.similarity
- the value of similarity between source_element
and target_element
.public void setMatchingAxioms(MappingSet matchingAxioms)
matchingAxioms
property of this mapping.matchingAxioms
- an object of type MappingSet
representing the set of detail mappings
that formed the current higher-level mapping.MappingSet
public MappingSet getMatchingAxioms()
matchingAxioms
property of this mapping.MappingSet
representing the set of detail mappings
that formed the current higher-level mapping.MappingSet