|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.miningmart.schemamatching.MmSchemaMatcher
public abstract class MmSchemaMatcher
Abstract superclass of schema matching methods in the MiningMart environment. Whenever a concrete subclass of this subclass is implemented, you can add a name representing its matcher to the String array edu.udo.cs.miningmart.m4.M4Interface.AVAILABLE_MATCHERS, and add a call to an instantiation of that class to the method edu.udo.cs.miningmart.m4.core.M4InterfaceImpl.findConnection(...) at the place indicated there. Then the matcher implemented by your subclass is automatically available in the GUI.
| Field Summary | |
|---|---|
protected static double |
THRESHOLD
|
| Constructor Summary | |
|---|---|
MmSchemaMatcher()
|
|
| Method Summary | ||
|---|---|---|
double |
getDatatypeSimilarity(BaseAttribute ba1,
BaseAttribute ba2)
Returns the similarity based on the conceptual data types of the given BaseAttributes |
|
abstract double |
getDirectSimilarity(BaseAttribute ba1,
BaseAttribute ba2)
Returns the double value that this matcher considers as the similarity between ba1 and ba2, based only on information related to these BaseAttributes. |
|
abstract double |
getDirectSimilarity(Concept con1,
Concept con2)
Returns the double value that this matcher considers as the similarity between con1 and con2, based only on the information in these concepts but not on dependent attributes (like BaseAttributes). |
|
|
getGlobalSimilarity(java.util.Collection<U> singleObjects1,
java.util.Collection<U> singleObjects2,
java.util.Collection<MatchingResult<U>> singleMappings)
Computes a global similarity from a matrix of local similarities. |
|
abstract double |
getNameSimilarity(java.lang.String str1,
java.lang.String str2)
Returns the double value that this matcher considers as the similarity between the two given Strings. |
|
double |
getSimilarity(Concept con1,
Concept con2)
Returns the global (overall) similarity of the two Concepts, considering any indirect or direct attributes, for example their Features. |
|
double |
getSimilarity(Relation rel1,
Relation rel2)
Returns the similarity between the given relationships, which is not computed based on their names but on the similarity of the concepts they link. |
|
abstract double |
getSimilarityInvolvingConcepts(BaseAttribute ba1,
BaseAttribute ba2)
Returns the double value that this matcher considers as the similarity between ba1 and ba2, taking the similarity of their respective concepts into accounts as well. |
|
|
getSimilarityMatrix(java.util.Collection<U> oneDimension,
java.util.Collection<U> secondDimension)
Returns a similarity matrix between the objects of the given collection. |
|
MatchingResult<BaseAttribute>[][] |
getSimilarityMatrix(Concept con1,
Concept con2)
Returns a matrix (instance of class edu.udo.miningmart.schemamatching.MatchingResult) of n x m Dimension, where n and m are the number of features of each of the given concepts. |
|
|
getSimilarMatchingsGreedy(MatchingResult<U>[][] similarityMatrix,
boolean useThreshold)
Returns all matchings from the given matrix (that exceed the threshold similarity, if that parameter is TRUE). |
|
abstract double |
getStringSimilarity(java.lang.String str1,
java.lang.String str2)
Returns the double value that this matcher considers as the similarity between the two given Strings. |
|
boolean |
objectsAreSimilar(ParameterObject obj1,
ParameterObject obj2)
Returns TRUE if this matcher thinks the two given objects are similar. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final double THRESHOLD
| Constructor Detail |
|---|
public MmSchemaMatcher()
| Method Detail |
|---|
public abstract double getDirectSimilarity(BaseAttribute ba1,
BaseAttribute ba2)
throws SchemaMatchException
ba1 - One BaseAttributeba2 - Another BaseAttribute
SchemaMatchException
public abstract double getDirectSimilarity(Concept con1,
Concept con2)
throws SchemaMatchException
con1 - One Conceptcon2 - Another Concept
SchemaMatchException
public abstract double getSimilarityInvolvingConcepts(BaseAttribute ba1,
BaseAttribute ba2)
throws SchemaMatchException
ba1 - One BaseAttributeba2 - Another BaseAttribute
SchemaMatchException
public double getDatatypeSimilarity(BaseAttribute ba1,
BaseAttribute ba2)
throws SchemaMatchException
ba1 - One BaseAttributeba2 - Another BaseAttribute
SchemaMatchException
public abstract double getNameSimilarity(java.lang.String str1,
java.lang.String str2)
throws SchemaMatchException
str1 - One Stringstr2 - Another String
SchemaMatchException
public abstract double getStringSimilarity(java.lang.String str1,
java.lang.String str2)
throws SchemaMatchException
str1 - One Stringstr2 - Another String
SchemaMatchException
public double getSimilarity(Relation rel1,
Relation rel2)
throws SchemaMatchException
rel1 - a relationrel2 - another relation
SchemaMatchException
public double getSimilarity(Concept con1,
Concept con2)
throws SchemaMatchException
con1 - A conceptcon2 - Another concept
SchemaMatchException
public <U extends ParameterObject> double getGlobalSimilarity(java.util.Collection<U> singleObjects1,
java.util.Collection<U> singleObjects2,
java.util.Collection<MatchingResult<U>> singleMappings)
throws SchemaMatchException
singleObjects1 - singleObjects2 - singleMappings -
SchemaMatchException
public <U extends ParameterObject> MatchingResult<U>[][] getSimilarityMatrix(java.util.Collection<U> oneDimension,
java.util.Collection<U> secondDimension)
throws SchemaMatchException
oneDimension - one collectionsecondDimension - second collectiontheMatcherToUse - the matcher that computes the similarity between
an object of the first and an object of the second collection
SchemaMatchException
public MatchingResult<BaseAttribute>[][] getSimilarityMatrix(Concept con1,
Concept con2)
throws SchemaMatchException
con1 - A conceptcon2 - Another concept
MatchingResults (direct similarity matrix)
SchemaMatchException
public boolean objectsAreSimilar(ParameterObject obj1,
ParameterObject obj2)
throws SchemaMatchException
obj1 - one objectobj2 - another object
SchemaMatchException
public <U extends ParameterObject> java.util.Collection<MatchingResult<U>> getSimilarMatchingsGreedy(MatchingResult<U>[][] similarityMatrix,
boolean useThreshold)
similarityMatrix - a similarity matrix
SchemaMatchException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||