Class TripleBasedStorage

  • All Implemented Interfaces:
    Storage
    Direct Known Subclasses:
    NTFileStorage, TriplestoreStorage

    public abstract class TripleBasedStorage
    extends java.lang.Object
    implements Storage
    This Storage will save all the metric results as triples
    Author:
    f.conrads
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addData​(org.apache.jena.rdf.model.Model data)
      Add Triples as they are
      void addMetaData​(java.util.Properties p)
      Add meta data from the experiment task for example: Query ID and Query text, ExperimentID, WorkerID,...
      void endTask​(java.lang.String taskID)
      Ends the task and adds a rdfs:endDate triple with the current time
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.aksw.iguana.rp.storage.Storage

        commit
    • Constructor Detail

      • TripleBasedStorage

        public TripleBasedStorage()
    • Method Detail

      • addMetaData

        public void addMetaData​(java.util.Properties p)
        Description copied from interface: Storage
        Add meta data from the experiment task for example: Query ID and Query text, ExperimentID, WorkerID,...
        Specified by:
        addMetaData in interface Storage
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • endTask

        public void endTask​(java.lang.String taskID)
        Ends the task and adds a rdfs:endDate triple with the current time
        Specified by:
        endTask in interface Storage
        Parameters:
        taskID -
      • addData

        public void addData​(org.apache.jena.rdf.model.Model data)
        Description copied from interface: Storage
        Add Triples as they are
        Specified by:
        addData in interface Storage