net.sf.sparql.benchmarking.loader.gsp
Class AbstractGSPDataOperationLoader

java.lang.Object
  extended by net.sf.sparql.benchmarking.loader.AbstractOperationLoader
      extended by net.sf.sparql.benchmarking.loader.gsp.AbstractGSPDataOperationLoader
All Implemented Interfaces:
OperationLoader
Direct Known Subclasses:
GSPPostOperationLoader, GSPPutOperationLoader

public abstract class AbstractGSPDataOperationLoader
extends AbstractOperationLoader

Abstract operation loader for basic GSP operations

Author:
rvesse

Constructor Summary
AbstractGSPDataOperationLoader()
           
 
Method Summary
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
 
Methods inherited from class net.sf.sparql.benchmarking.loader.AbstractOperationLoader
getInputStream, getNameArgument, readFile, resolveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.sparql.benchmarking.loader.OperationLoader
getDescription, getPreferredName
 

Constructor Detail

AbstractGSPDataOperationLoader

public AbstractGSPDataOperationLoader()
Method Detail

load

public Operation load(File baseDir,
                      String[] args)
               throws IOException
Description copied from interface: OperationLoader
Load an operation described by the given arguments

Parameters:
baseDir - Base directory
args - Arguments
Returns:
Operation
Throws:
IOException

loadModel

protected Model loadModel(File baseDir,
                          String file)
                   throws IOException
Loads the data to be added

Parameters:
baseDir - Base Directory
file - Filename
Returns:
Model
Throws:
IOException

createOperation

protected abstract Operation createOperation(String name,
                                             Model data)
Create a GSP operation that runs on the default graph

Parameters:
name - Name
data - Data to be added
Returns:
GSP operation

createOperation

protected abstract Operation createOperation(String name,
                                             Model data,
                                             String graphUri)
Creates a GSP operation that runs on a specified graph

Parameters:
name - Name
data - Data to be added
graphUri - Graph URI
Returns:
GSP operation

getArguments

public OperationLoaderArgument[] getArguments()
Description copied from interface: OperationLoader
Gets a description of the configuration arguments that this loader expects to receive

Returns:
Arguments


Copyright © 2014. All Rights Reserved.