it.unitn.disi.smatch.matchers.element
Class MatcherLibrary

java.lang.Object
  extended by it.unitn.disi.smatch.matchers.element.MatcherLibrary
All Implemented Interfaces:
IMatcherLibrary

public class MatcherLibrary
extends java.lang.Object
implements IMatcherLibrary

This class performs all element level matching routines and provides library of Element level matchers.

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk, Aliaksandr Autayeu avtaev@gmail.com

Constructor Summary
MatcherLibrary()
           
 
Method Summary
 IMatchMatrix elementLevelMatching(IContext sourceContext, IContext targetContext)
          Performs Step 3 of semantic matching algorithm
 char getRelation(IAtomicConceptOfLabel sourceACoL, IAtomicConceptOfLabel targetACoL)
           
static IMatchMatrix readMatrix(java.lang.String fileName)
           
static void writeMatrix(IMatchMatrix h, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatcherLibrary

public MatcherLibrary()
Method Detail

getRelation

public char getRelation(IAtomicConceptOfLabel sourceACoL,
                        IAtomicConceptOfLabel targetACoL)

elementLevelMatching

public IMatchMatrix elementLevelMatching(IContext sourceContext,
                                         IContext targetContext)
                                  throws SMatchException
Performs Step 3 of semantic matching algorithm

Specified by:
elementLevelMatching in interface IMatcherLibrary
Parameters:
sourceContext - source context
targetContext - target context
Returns:
matrix of semantic relatons between nodes in both contexts
Throws:
SMatchException

writeMatrix

public static void writeMatrix(IMatchMatrix h,
                               java.lang.String fileName)

readMatrix

public static IMatchMatrix readMatrix(java.lang.String fileName)


© 2010 Knowdive @ DISI