|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.matching.RelationshipExtractor
public abstract class RelationshipExtractor
The class that represents the RelationshipExtractor component in the schema matching architecture.
Its role is to produce the semantic relationships between the schema elements based on structural
constraints. The results are based on the DegreeCombinator's relationships.
SchemaElementPair,
SchemaElementPairRelationship,
SemanticRelationship,
SchemaObject| Constructor Summary | |
|---|---|
RelationshipExtractor()
|
|
| Method Summary | |
|---|---|
protected static SemanticRelationship |
combineRelationships(SemanticRelationship rel1,
SemanticRelationship rel2)
Returns the relationship that can be deduced from the specified relationships. |
protected static boolean |
containsRelationship(SemanticRelationship[] rels,
SemanticRelationship rel)
Returns true if the specified relationship appears in the array of relationships |
protected SchemaElementPairRelationship[] |
findAtomicRelationships(SchemaObject[] sos1,
SchemaObject[] sos2)
Returns the semantic relationships between the atomic schema element pairs defined by the schema object arrays. |
protected SchemaElementPairRelationship[] |
findAtomicRelationships(SchemaObject object,
SchemaObject[] objects)
Returns a SchemaElementPairRelationship array for the specified schema objects. |
protected java.util.ArrayList |
getAllCombinations(java.lang.Object[] pairs1,
java.lang.Object[] pairs2)
|
protected SchemaElementPairRelationship[] |
getAtomicPairRelationships()
Returns the relationships of pairs of atomic schema elements. |
protected SemanticRelationship |
getAtomicRelationship(SchemaElementPair pair)
Returns the relationship of the pair of atomic schema elements |
protected java.util.ArrayList |
getAtomicRelationshipCombinations(SchemaObject[] objects1,
SchemaObject[] objects2)
Returns a list of SchemaElementPairRelationship arrays for the specified schema objects. |
protected SchemaElementPairRelationship[] |
getNonAtomicPairRelationships()
Returns the relationships of pairs of non-atomic schema elements. |
protected SemanticRelationship |
getNonAtomicRelationship(SchemaElementPair pair)
Returns the relationship of the pair of non-atomic schema elements |
protected static SemanticRelationship |
getRelationship(SchemaElementPairRelationship[] pairs)
Returns the relationship for the pair of elements. |
abstract SchemaElementPairRelationship[] |
getRelationships()
|
protected static SemanticRelationship[] |
getRelationships(java.util.ArrayList relationshipPairs)
Returns the relationships for each pair of elements in the specified list. |
protected static SemanticRelationship |
getWeakestRelationship(SemanticRelationship[] rels)
Returns the weakest relationship of the specified relationships. |
protected SchemaElementPairRelationship[] |
removeDuplicates(SchemaElementPairRelationship[] hasDups)
|
protected SchemaElementPairRelationship |
reverseRelationshipPair(SchemaElementPairRelationship rel)
Returns the reverse relationship for the specified pair. |
protected SchemaElementPairRelationship[] |
reverseRelationshipPairs(SchemaElementPairRelationship[] rels)
|
void |
setAtomicPairRelationships(SchemaElementPairRelationship[] atomic)
Sets the relationships of pairs of atomic schema elements. |
void |
setNonAtomicPairRelationships(SchemaElementPairRelationship[] nonatomic)
Sets the relationships of pairs of non-atomic schema elements. |
abstract void |
setSchemas(Schema[] schemas)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationshipExtractor()
| Method Detail |
|---|
public abstract SchemaElementPairRelationship[] getRelationships()
throws RelationshipExtractorException
RelationshipExtractorExceptionpublic abstract void setSchemas(Schema[] schemas)
protected SchemaElementPairRelationship[] getNonAtomicPairRelationships()
DegreeCombinator.
protected SchemaElementPairRelationship[] getAtomicPairRelationships()
DegreeCombinator.
public void setNonAtomicPairRelationships(SchemaElementPairRelationship[] nonatomic)
nonatomic - the relationships of pairs of non-atomic schema elementspublic void setAtomicPairRelationships(SchemaElementPairRelationship[] atomic)
DegreeCombinator.
atomic - the relationships of pairs of atomic schema elements
protected SchemaElementPairRelationship[] findAtomicRelationships(SchemaObject[] sos1,
SchemaObject[] sos2)
sos1 - the first array of schema objectssos2 - the second array of schema objects
protected SemanticRelationship getAtomicRelationship(SchemaElementPair pair)
pair - the pair of elements
protected SemanticRelationship getNonAtomicRelationship(SchemaElementPair pair)
pair - the pair of elements
protected static SemanticRelationship getWeakestRelationship(SemanticRelationship[] rels)
rels - the array of the specified relationships
protected static boolean containsRelationship(SemanticRelationship[] rels,
SemanticRelationship rel)
true if the specified relationship appears in the array of relationships
rels - the array of relationshipsrel - the relationship to look for
true if the specified relationship appears in the array of relationships, false otherwiseprotected static SemanticRelationship[] getRelationships(java.util.ArrayList relationshipPairs)
SchemaElementPairRelationship objects of the same pair of elements.
For this pair of elements a semantic relationship is computed.
relationshipPairs - the list of SchemaElementPairRelationship arrays
protected static SemanticRelationship getRelationship(SchemaElementPairRelationship[] pairs)
SchemaElementPairRelationship object for a single pair of elements.
For this pair of elements a semantic relationship is computed.
pairs - the array of SchemaElementPairRelationship objects
protected static SemanticRelationship combineRelationships(SemanticRelationship rel1,
SemanticRelationship rel2)
rel1 - the first relationshiprel2 - the second relationship
protected java.util.ArrayList getAtomicRelationshipCombinations(SchemaObject[] objects1,
SchemaObject[] objects2)
throws RelationshipExtractorException
SchemaElementPairRelationship arrays for the specified schema objects. The schema objects are wrapped into atomic schema elements and schema element pairs, whose relationships are returned. Each member of the list defines the relationships of a single pair of elements. The direction of the relationships are from the objects of the first array to the objects of the second array.
objects1 - the first array of schema objectsobjects2 - the second array of schema objects
SchemaElementPairRelationship arrays for the specified schema objects
RelationshipExtractorException - if no relationships can be found for specific pairs
protected java.util.ArrayList getAllCombinations(java.lang.Object[] pairs1,
java.lang.Object[] pairs2)
protected SchemaElementPairRelationship[] removeDuplicates(SchemaElementPairRelationship[] hasDups)
protected SchemaElementPairRelationship[] findAtomicRelationships(SchemaObject object,
SchemaObject[] objects)
SchemaElementPairRelationship array for the specified schema objects.
The schema objects are wrapped into atomic schema elements and for each pair its relationship is returned
SchemaElementPairRelationship array for the specified schema objects.protected SchemaElementPairRelationship[] reverseRelationshipPairs(SchemaElementPairRelationship[] rels)
protected SchemaElementPairRelationship reverseRelationshipPair(SchemaElementPairRelationship rel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||