Package org.aksw.iguana.cc.storage
Interface Storage
- All Known Implementing Classes:
CSVStorage
,RDFFileStorage
,TriplestoreStorage
public interface Storage
Interface for the Result Storages
- Author:
- f.conrads
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
General purpose method to store data into the storage.void
storeResult
(org.apache.jena.rdf.model.Model data) Stores the task result into the storage.
-
Method Details
-
storeResult
void storeResult(org.apache.jena.rdf.model.Model data) Stores the task result into the storage. This method will be executed after a task has finished. Depending on the storages format, the storage class will need convert the data into the appropriate format.- Parameters:
data
- the given result model
-
storeData
General purpose method to store data into the storage. This method will mostly be used by the language processors to store their already formatted data.
The default implementation will call thestoreResult(Model)
method. This might not be the best solution for storages, that do not use RDF as their format.- Parameters:
data
- the data to store
-