Schnittstelle IPASSReaderWriter

Alle bekannten Implementierungsklassen:
PASSReaderWriter

public interface IPASSReaderWriter
  • Methodendetails

    • loadModels

      List<IPASSProcessModel> loadModels(List<String> filepaths, boolean overrideOWLParsingStructure)
      Loads in all the required files given by filepaths. The files must be written in correct owl format. If the structure defining owl files are passed alongside the model defining ones, it must be declared via boolean that the current parsing structure should be overwritten. It is advised to only load the structure defining owl files once via loadOWLParsingStructure(List), because the creation of the parsing structure is likely to be an expensive operation.
      Parameter:
      filepaths - The list of filepaths to valid formatted owl files
      overrideOWLParsingStructure - Default false, should be set true when the structure defining owl files are passed alongside the model defining ones, and the current parsing structure should be overwritten.
      Gibt zurück:
      A list of IPASSProcessModel the were created from the given owl
    • loadModels

      List<IPASSProcessModel> loadModels(List<String> filepaths)
      Loads in all the required files given by filepaths. The files must be written in correct owl format. If the structure defining owl files are passed alongside the model defining ones, it must be declared via boolean that the current parsing structure should be overwritten. It is advised to only load the structure defining owl files once via loadOWLParsingStructure(List), because the creation of the parsing structure is likely to be an expensive operation.
      Parameter:
      filepaths - The list of filepaths to valid formatted owl files
      Gibt zurück:
      A list of IPASSProcessModel the were created from the given owl
    • loadOWLParsingStructure

      void loadOWLParsingStructure(List<String> filepathsToOWLFiles)
      The abstract pass ont and/or the standard pass ont must be given either inside the same owl file or as seperate files. These files will be used to create a parsing structure for models. This operation is likely to be an expensive one and should only be used once if loaded models share the same structure.
      Parameter:
      filepathsToOWLFiles - The list of filepaths to valid formatted owl files containing the structure for models and components
    • exportModel

      org.apache.jena.rdf.model.Model exportModel(IPASSProcessModel model, String filepath)
      Exports the given model as rdf/owl formatted file. The file will be saved under filename, this might be given as dynamic or static filepath.
      Parameter:
      model - the model that should be exported
      filepath - the path where the file will be saved
      Gibt zurück:
      The model
    • setModelElementFactory

      Allows to set another factory to create the elements. The standard factory BasicPASSProcessModelElementFactory is used automatically and decides on mapped elements based on the name similarity. If the factory should choose other elements, a new factory can be inserted here.
      Parameter:
      factory -