Class MatcherURL
java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL
- All Implemented Interfaces:
eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
,eu.sealsproject.platform.res.tool.api.IPlugin
,eu.sealsproject.platform.res.tool.api.IToolBridge
- Direct Known Subclasses:
MatcherCombination
,MatcherFile
public abstract class MatcherURL
extends eu.sealsproject.platform.res.tool.impl.AbstractPlugin
implements eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
RawMatcher which implements the minimal interface for being executed under
the SEALS platform. The only method which should be implemented is the
align(URL, URL, URL) method.
- Author:
- Sven Hertling
-
Constructor Summary
Constructors Constructor Description MatcherURL()
-
Method Summary
Modifier and Type Method Description URL
align(URL source, URL target)
Aligns two ontologies specified via their URL and returns the URL of the resulting alignment, which should be stored locally.URL
align(URL source, URL target, URL inputAlignment)
Aligns two ontologies specified via their URL, with an input alignment specified by its URL, and returns the URL of the resulting alignment, which should be stored locally.boolean
canExecute()
In our case the DemoMatcher can be executed on the fly.eu.sealsproject.platform.res.tool.api.ToolType
getType()
This tool is an ontology matching tool.abstract URL
match(URL source, URL target, URL inputAlignment)
Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin
getId, getVersion, setId, setVersion
-
Constructor Details
-
MatcherURL
public MatcherURL()
-
-
Method Details
-
align
public URL align(URL source, URL target) throws eu.sealsproject.platform.res.tool.api.ToolBridgeException, eu.sealsproject.platform.res.tool.api.ToolExceptionAligns two ontologies specified via their URL and returns the URL of the resulting alignment, which should be stored locally.- Specified by:
align
in interfaceeu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
- Parameters:
source
- this url represents the source ontologytarget
- this url represents the target ontology- Returns:
- a url which points to the resulting alignment, which should be stored locally
- Throws:
eu.sealsproject.platform.res.tool.api.ToolBridgeException
eu.sealsproject.platform.res.tool.api.ToolException
-
align
public URL align(URL source, URL target, URL inputAlignment) throws eu.sealsproject.platform.res.tool.api.ToolBridgeException, eu.sealsproject.platform.res.tool.api.ToolExceptionAligns two ontologies specified via their URL, with an input alignment specified by its URL, and returns the URL of the resulting alignment, which should be stored locally.- Specified by:
align
in interfaceeu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge
- Parameters:
source
- this url represents the source ontologytarget
- this url represents the target ontologyinputAlignment
- this url represents the input alignment- Returns:
- a url which points to the resulting alignment, which should be stored locally in the alignment format http://alignapi.gforge.inria.fr/format.html
- Throws:
eu.sealsproject.platform.res.tool.api.ToolBridgeException
eu.sealsproject.platform.res.tool.api.ToolException
-
match
- Throws:
Exception
-
canExecute
public boolean canExecute()In our case the DemoMatcher can be executed on the fly. In case prerequisites are required it can be checked here.- Specified by:
canExecute
in interfaceeu.sealsproject.platform.res.tool.api.IToolBridge
- Returns:
- value which represents the boolean value if the matcher can be executed
-
getType
public eu.sealsproject.platform.res.tool.api.ToolType getType()This tool is an ontology matching tool. SEALS supports the evaluation of different tool types like e.g., reasoner and storage systems.- Specified by:
getType
in interfaceeu.sealsproject.platform.res.tool.api.IToolBridge
- Returns:
- the type of system - in this case OntologyMatchingTool
-