Class AbstractModelIO

All Implemented Interfaces:
DeerExecutionNode, ParameterizedDeerExecutionNode, ExecutionNode<Model>, Parameterized, Plugin, org.pf4j.ExtensionPoint
Direct Known Subclasses:
AbstractModelReader, AbstractModelWriter

public abstract class AbstractModelIO extends AbstractParameterizedExecutionNode<Model> implements ParameterizedDeerExecutionNode
  • Constructor Details

    • AbstractModelIO

      public AbstractModelIO()
  • Method Details

    • takeWorkingDirectoryFrom

      public static void takeWorkingDirectoryFrom(Supplier<String> supplier)
      Specify the supplier of the working directory injection. It must have the necessary information to construct a valid working directory path at ExecutionGraph compileCanonicalForm time.
      Parameters:
      supplier - the supplier
    • injectWorkingDirectory

      public static String injectWorkingDirectory(String pathString)
      Use this always when writing to or reading from Files whose paths are specified by parameters.
      Parameters:
      pathString - Path to inject working directory into
      Returns:
      injected path
    • deepCopy

      public Model deepCopy(Model data)
      Specified by:
      deepCopy in interface ExecutionNode<Model>
    • getType

      public Resource getType()
      Description copied from interface: Plugin
      Get the type URI resource of the ParametrizedPlugin. The type of a ParametrizedPlugin identifies the implementing class, must be unique and must not be a blank node. It is used to instantiate the class using the PluginFactory. Defaults to using the implementing classes Class.getSimpleName().
      Specified by:
      getType in interface Plugin
      Returns:
      RDF URI resource identifying the implementation class