|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.disi.smatch.components.Configurable
it.unitn.disi.smatch.MatchManager
public class MatchManager
MatchManager controls the process of matching, loads contexts and performs other auxiliary work.
| Field Summary | |
|---|---|
static java.lang.String |
configFileCmdLineKey
|
static java.lang.String |
DEFAULT_CONFIG_FILE_NAME
Default configuration file name. |
static java.lang.String |
propCmdLineKey
|
| Fields inherited from class it.unitn.disi.smatch.components.Configurable |
|---|
GLOBAL_PREFIX, globalComponents, properties |
| Constructor Summary | |
|---|---|
MatchManager()
|
|
MatchManager(java.util.Properties properties)
Constructor class with initialization. |
|
MatchManager(java.lang.String propFileName)
Constructor class with initialization. |
|
| Method Summary | |
|---|---|
void |
classify(IContext context)
Performs the second step of the semantic matching algorithm. |
IContext |
createContext()
Creates a context instance. |
IContextMapping<IAtomicConceptOfLabel> |
elementLevelMatching(IContext sourceContext,
IContext targetContext)
Performs the third step of semantic matching algorithm. |
IContextMapping<INode> |
filterMapping(IContextMapping<INode> mapping)
Filters a mapping. |
IContextLoader |
getContextLoader()
Returns currently configured context loader. |
IContextPreprocessor |
getContextPreprocessor()
Returns currently configured context preprocessor. |
IContextRenderer |
getContextRenderer()
Returns currently configured context renderer. |
static IMatchManager |
getInstance()
|
IMappingFactory |
getMappingFactory()
Returns mapping factory. |
IMappingLoader |
getMappingLoader()
Returns currently configured mapping loader. |
IMappingRenderer |
getMappingRenderer()
Returns currently configured mapping renderer. |
java.util.Properties |
getProperties()
|
IContext |
loadContext(java.lang.String fileName)
Uses current loader to load the context from external source into internal data structure. |
IContextMapping<INode> |
loadMapping(IContext ctxSource,
IContext ctxTarget,
java.lang.String inputFile)
Loads the mapping between source and target contexts using the current mapping loader. |
static void |
main(java.lang.String[] args)
Provides a command line interface to the match manager. |
IContextMapping<INode> |
match(IContext sourceContext,
IContext targetContext)
Performs the whole matching process. |
void |
offline(IContext context)
Performs the first two steps of the semantic matching algorithm. |
IContextMapping<INode> |
online(IContext sourceContext,
IContext targetContext)
Performs the last two steps of the semantic matching algorithm. |
void |
preprocess(IContext context)
Performs the first step of the semantic matching algorithm. |
void |
renderContext(IContext ctxSource,
java.lang.String fileName)
Renders the context using a current renderer. |
void |
renderMapping(IContextMapping<INode> mapping,
java.lang.String outputFile)
Renders the mapping using a current mapping renderer. |
boolean |
setProperties(java.util.Properties newProperties)
Sets component configuration properties. |
IContextMapping<INode> |
structureLevelMatching(IContext sourceContext,
IContext targetContext,
IContextMapping<IAtomicConceptOfLabel> acolMapping)
Performs the fourth step of semantic matching algorithm. |
| Methods inherited from class it.unitn.disi.smatch.components.Configurable |
|---|
configureComponent, getComponentProperties, loadProperties, makeComponentPrefix, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.unitn.disi.smatch.components.IConfigurable |
|---|
setProperties |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_CONFIG_FILE_NAME
public static final java.lang.String configFileCmdLineKey
public static final java.lang.String propCmdLineKey
| Constructor Detail |
|---|
public MatchManager()
throws SMatchException
SMatchException
public MatchManager(java.lang.String propFileName)
throws SMatchException
propFileName - the name of the properties file
SMatchException - SMatchException
public MatchManager(java.util.Properties properties)
throws SMatchException
properties - the properties
SMatchException - SMatchException| Method Detail |
|---|
public static IMatchManager getInstance()
throws SMatchException
SMatchExceptionpublic IContext createContext()
IMatchManager
createContext in interface IMatchManagerpublic IMappingFactory getMappingFactory()
IMatchManager
getMappingFactory in interface IMatchManager
public IContext loadContext(java.lang.String fileName)
throws SMatchException
IMatchManager
loadContext in interface IMatchManagerfileName - a string passed to the current loader
SMatchException - SMatchExceptionpublic IContextLoader getContextLoader()
IMatchManager
getContextLoader in interface IMatchManager
public void renderContext(IContext ctxSource,
java.lang.String fileName)
throws SMatchException
IMatchManager
renderContext in interface IMatchManagerctxSource - context to be renderedfileName - a render destination passed to the context renderer
SMatchException - SMatchExceptionpublic IContextRenderer getContextRenderer()
IMatchManager
getContextRenderer in interface IMatchManager
public IContextMapping<INode> loadMapping(IContext ctxSource,
IContext ctxTarget,
java.lang.String inputFile)
throws SMatchException
IMatchManager
loadMapping in interface IMatchManagerctxSource - source contextctxTarget - target contextinputFile - a mapping location passed to the mapping loader
SMatchException - SMatchExceptionpublic IMappingLoader getMappingLoader()
IMatchManager
getMappingLoader in interface IMatchManager
public void renderMapping(IContextMapping<INode> mapping,
java.lang.String outputFile)
throws SMatchException
IMatchManager
renderMapping in interface IMatchManagermapping - a mappingoutputFile - a render destination passed to the mapping renderer
SMatchException - SMatchExceptionpublic IMappingRenderer getMappingRenderer()
IMatchManager
getMappingRenderer in interface IMatchManager
public IContextMapping<INode> filterMapping(IContextMapping<INode> mapping)
throws SMatchException
IMatchManager
filterMapping in interface IMatchManagermapping - a mapping to filter
SMatchException - SMatchException
public IContextMapping<IAtomicConceptOfLabel> elementLevelMatching(IContext sourceContext,
IContext targetContext)
throws SMatchException
IMatchManager
elementLevelMatching in interface IMatchManagersourceContext - interface of source context with concept at node formulatargetContext - interface of target context with concept at node formula
SMatchException - SMatchException
public IContextMapping<INode> structureLevelMatching(IContext sourceContext,
IContext targetContext,
IContextMapping<IAtomicConceptOfLabel> acolMapping)
throws SMatchException
IMatchManager
structureLevelMatching in interface IMatchManagersourceContext - interface of source context with concept at node formulatargetContext - interface of target context with concept at node formulaacolMapping - mapping between atomic concepts of labels in the contexts
SMatchException - SMatchException
public void offline(IContext context)
throws SMatchException
IMatchManager
offline in interface IMatchManagercontext - interface to context to be preprocessed
SMatchException - SMatchException
public IContextMapping<INode> online(IContext sourceContext,
IContext targetContext)
throws SMatchException
IMatchManager
online in interface IMatchManagersourceContext - interface to preprocessed source context to be matchedtargetContext - interface to preprocessed target context to be matched
SMatchException - SMatchException
public IContextMapping<INode> match(IContext sourceContext,
IContext targetContext)
throws SMatchException
IMatchManager
match in interface IMatchManagersourceContext - interface to source context to be matchedtargetContext - interface to target context to be matched
SMatchException - SMatchException
public boolean setProperties(java.util.Properties newProperties)
throws ConfigurableException
IConfigurable
setProperties in interface IConfigurablesetProperties in class ConfigurablenewProperties - a new configuration
ConfigurableException - ConfigurableExceptionpublic java.util.Properties getProperties()
getProperties in interface IConfigurablegetProperties in class Configurable
public void preprocess(IContext context)
throws SMatchException
IMatchManager
preprocess in interface IMatchManagercontext - interface to a context to be preprocessed
SMatchException - SMatchExceptionpublic IContextPreprocessor getContextPreprocessor()
IMatchManager
getContextPreprocessor in interface IMatchManager
public void classify(IContext context)
throws SMatchException
IMatchManager
classify in interface IMatchManagercontext - interface to the preprocessed context
SMatchException - SMatchException
public static void main(java.lang.String[] args)
throws java.io.IOException,
ConfigurableException
args - command line arguments
java.io.IOException - IOException
ConfigurableException - ConfigurableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||