Package org.aksw.iguana.cc.storage.impl
Class RDFFileStorage
java.lang.Object
org.aksw.iguana.cc.storage.impl.RDFFileStorage
- All Implemented Interfaces:
Storage
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionUses a generated file called results_{DD}-{MM}-{YYYY}_{HH}-{mm}.ttlRDFFileStorage
(String fileName) Uses the provided filename.RDFFileStorage
(RDFFileStorage.Config config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
storeResult
(org.apache.jena.rdf.model.Model data) Stores the task result into the storage.toString()
-
Field Details
-
defaultFileNameSupplier
-
-
Constructor Details
-
RDFFileStorage
-
RDFFileStorage
public RDFFileStorage()Uses a generated file called results_{DD}-{MM}-{YYYY}_{HH}-{mm}.ttl -
RDFFileStorage
Uses the provided filename. If the filename is null or empty, a generated file called results_{DD}-{MM}-{YYYY}_{HH}-{mm}.ttl is used. The file extension determines the file format.- Parameters:
fileName
- the filename to use
-
-
Method Details
-
storeResult
public void storeResult(org.apache.jena.rdf.model.Model data) Description copied from interface:Storage
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.- Specified by:
storeResult
in interfaceStorage
- Parameters:
data
- the given result model
-
toString
-
getFileName
-