org.aksw.simba.benchmark.log.operations

## Class RKBExplorerLogReader

- java.lang.Object
- - org.aksw.simba.benchmark.log.operations.RKBExplorerLogReader

-     public class RKBExplorerLogReader
      extends java.lang.Object

  RKBExplorer Log reader
  Author:
    Saleem

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RKBExplorerLogReader()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.HashMap<java.lang.String,java.util.Set<java.lang.String>>` | `getBritishMuseumLogQueries(java.lang.String logDir)` Get british museum log queries (the majority of all)
    `java.util.Map<java.lang.String,java.util.Set<java.lang.String>>` | `getBritishMuseumQueryExecutions(java.lang.String queryLogDir)` This method reads all the query logs in a directory and returns a map of the query to all its corresponding submissions.
    `static java.util.ArrayList<java.lang.String>` | `getRKBEndpoints(java.lang.String queryLogsDir)` The RKB Explorer list of SPARQL endpoints
    `static void` | `main(java.lang.String[] args)`
    `static void` | `writeEndpointLogs(java.lang.String endpoint, java.lang.String queryLogsDir, java.lang.String outputDir)` Write the endpoint log into a separate file
    `static void` | `writeRKBExploreEndpointsLogs(java.lang.String queryLogsDir, java.lang.String outputDir)` Write RKBEXploere query logs into files for each SPARQL endpoint, i.e., one per endpoint

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RKBExplorerLogReader

          public RKBExplorerLogReader()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.io.IOException,
                                  org.openrdf.query.QueryEvaluationException,
                                  org.openrdf.repository.RepositoryException,
                                  org.openrdf.query.MalformedQueryException

      Throws:
        `java.io.IOException`
        `org.openrdf.query.QueryEvaluationException`
        `org.openrdf.repository.RepositoryException`
        `org.openrdf.query.MalformedQueryException`

    - #### getBritishMuseumLogQueries

          public static java.util.HashMap<java.lang.String,java.util.Set<java.lang.String>> getBritishMuseumLogQueries(java.lang.String logDir)
                                                                                                                throws java.io.IOException

      Get british museum log queries (the majority of all)
      Parameters:
        `logDir` - Log directory containing log finels
      Returns:
        queries A map of queries
      Throws:
        `java.io.IOException`

    - #### getBritishMuseumQueryExecutions

          public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getBritishMuseumQueryExecutions(java.lang.String queryLogDir)
                                                                                                          throws java.io.IOException

      This method reads all the query logs in a directory and returns a map of the query to all its corresponding submissions. Where a submission contain the sender IP and the submission date and time
      Parameters:
        `queryLogDir` - Query Log Directory
      Returns:
        Query to corresponding submissions hash map
      Throws:
        `java.io.IOException` - Io exceptions

    - #### writeRKBExploreEndpointsLogs

          public static void writeRKBExploreEndpointsLogs(java.lang.String queryLogsDir,
                                                          java.lang.String outputDir)
                                                   throws java.io.IOException

      Write RKBEXploere query logs into files for each SPARQL endpoint, i.e., one per endpoint
      Parameters:
        `queryLogsDir` - Query log directory
        `outputDir` - Output directory
      Throws:
        `java.io.IOException` - Execptions

    - #### writeEndpointLogs

          public static void writeEndpointLogs(java.lang.String endpoint,
                                               java.lang.String queryLogsDir,
                                               java.lang.String outputDir)
                                        throws java.io.IOException

      Write the endpoint log into a separate file
      Parameters:
        `queryLogsDir` - Query log directory
        `outputDir` - Output directory
      Throws:
        `java.io.IOException` - Execptions

    - #### getRKBEndpoints

          public static java.util.ArrayList<java.lang.String> getRKBEndpoints(java.lang.String queryLogsDir)
                                                                       throws java.io.IOException

      The RKB Explorer list of SPARQL endpoints
      Parameters:
        `queryLogsDir` - Logs directory
      Returns:
        endpoint List of SPARQL endpoints
      Throws:
        `java.io.IOException` - Exceptions