java.lang.Object
eu.sealsproject.platform.res.tool.impl.AbstractPlugin
All Implemented Interfaces:
IMatcher<URL,​URL,​URL>, eu.sealsproject.platform.res.domain.omt.IOntologyMatchingToolBridge, eu.sealsproject.platform.res.tool.api.IPlugin, eu.sealsproject.platform.res.tool.api.IToolBridge

public class MatcherCLIFromFile
extends MatcherCLI
Read the file "external/external_command.txt" and start an external process. The whole content of the file is used and newlines are ignored. For replacements in this string have a look at MatcherCLI.getCommand()
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected Path filePath  
    private static org.slf4j.Logger LOGGER  
  • Constructor Summary

    Constructors
    Constructor Description
    MatcherCLIFromFile()  
  • Method Summary

    Modifier and Type Method Description
    protected String getCommand()
    The command which should be executed as one string (containing potentially multiple arguments).The line is splitted by whitespace but quotations are respected.

    Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.external.cli.MatcherCLI

    isUsingStdOut, match, match

    Methods inherited from class de.uni_mannheim.informatik.dws.melt.matching_base.MatcherURL

    align, align, canExecute, getType

    Methods inherited from class eu.sealsproject.platform.res.tool.impl.AbstractPlugin

    getId, getVersion, setId, setVersion

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface eu.sealsproject.platform.res.tool.api.IPlugin

    getId, getVersion
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • filePath

      protected Path filePath
  • Constructor Details

    • MatcherCLIFromFile

      public MatcherCLIFromFile()
  • Method Details

    • getCommand

      protected String getCommand() throws IOException
      Description copied from class: MatcherCLI
      The command which should be executed as one string (containing potentially multiple arguments).The line is splitted by whitespace but quotations are respected. An argument line can contain scopes (scopes are only printed if all variables in a scope can be replaced). The following varaibles are replaced:
      • ${source} with source URI
      • ${target} with target URI
      • ${inputAlignment} with inputAlignment URI
      • ${parameters} with parameters URI
      • system properties like ${line.separator} or ${file.separator} ${java.io.tmpdir}
      • environment variables like ${PATH}
      • JVM arguments like ${Xmx} which is replaced by e.g. -Xmx10G
      For more see ExternalProcess.addSubstitutionForSystemProperties(), ExternalProcess.addSubstitutionForEnvironmentVariables() and ExternalProcess.addSubstitutionForJVMArguments(). The String can also contain scopes which are created with $[...]. The scope is only printed if all variables in the scope can be replaced. This is good for named arguments like: $[-i ${inputAlignment}] then only -i is printed if the input alignment is set.
      Specified by:
      getCommand in class MatcherCLI
      Returns:
      the string which represents the command to execute.
      Throws:
      IOException