Class RDFFileStorage

java.lang.Object
org.aksw.iguana.cc.storage.impl.RDFFileStorage
All Implemented Interfaces:
Storage

public class RDFFileStorage extends Object implements Storage
  • Field Details

    • defaultFileNameSupplier

      protected static Supplier<String> defaultFileNameSupplier
  • Constructor Details

    • RDFFileStorage

      public RDFFileStorage(RDFFileStorage.Config config)
    • RDFFileStorage

      public RDFFileStorage()
      Uses a generated file called results_{DD}-{MM}-{YYYY}_{HH}-{mm}.ttl
    • RDFFileStorage

      public RDFFileStorage(String fileName)
      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 interface Storage
      Parameters:
      data - the given result model
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFileName

      public String getFileName()