Package alps.java.api.parsing
Schnittstelle IPASSReaderWriter
- Alle bekannten Implementierungsklassen:
PASSReaderWriter
public interface IPASSReaderWriter
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.apache.jena.rdf.model.Model
exportModel
(IPASSProcessModel model, String filepath) Exports the given model as rdf/owl formatted file.loadModels
(List<String> filepaths) Loads in all the required files given by filepaths.loadModels
(List<String> filepaths, boolean overrideOWLParsingStructure) Loads in all the required files given by filepaths.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.void
Allows to set another factory to create the elements.
-
Methodendetails
-
loadModels
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 vialoadOWLParsingStructure(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 filesoverrideOWLParsingStructure
- 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
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 vialoadOWLParsingStructure(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
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
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 exportedfilepath
- the path where the file will be saved- Gibt zurück:
- The model
-
setModelElementFactory
void setModelElementFactory(IPASSProcessModelElementFactory<IParseablePASSProcessModelElement> factory) Allows to set another factory to create the elements. The standard factoryBasicPASSProcessModelElementFactory
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
-
-