public abstract class AbstractGSPDataOperationLoader extends AbstractOperationLoader
Constructor and Description |
---|
AbstractGSPDataOperationLoader() |
Modifier and Type | Method and Description |
---|---|
protected abstract Operation |
createOperation(String name,
Model data)
Create a GSP operation that runs on the default graph
|
protected abstract Operation |
createOperation(String name,
Model data,
String graphUri)
Creates a GSP operation that runs on a specified graph
|
OperationLoaderArgument[] |
getArguments()
Gets a description of the configuration arguments that this loader
expects to receive
|
Operation |
load(File baseDir,
String[] args)
Load an operation described by the given arguments
|
protected Model |
loadModel(File baseDir,
String file)
Loads the data to be added
|
getInputStream, getNameArgument, readFile, resolveFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getPreferredName
public Operation load(File baseDir, String[] args) throws IOException
OperationLoader
baseDir
- Base directoryargs
- ArgumentsIOException
protected Model loadModel(File baseDir, String file) throws IOException
baseDir
- Base Directoryfile
- FilenameIOException
protected abstract Operation createOperation(String name, Model data)
name
- Namedata
- Data to be addedprotected abstract Operation createOperation(String name, Model data, String graphUri)
name
- Namedata
- Data to be addedgraphUri
- Graph URIpublic OperationLoaderArgument[] getArguments()
OperationLoader
Copyright © 2015. All rights reserved.