org.aksw.simba.benchmark.comparisons

## Class DBPSBSimilarityError

- java.lang.Object
- - org.aksw.simba.benchmark.comparisons.DBPSBSimilarityError

-     public class DBPSBSimilarityError
      extends java.lang.Object

  Benchmark Queries.
  Author:
    Saleem

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) static java.io.BufferedWriter` | `bwd`
    `static int` | `dbq`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DBPSBSimilarityError()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Set<java.lang.String>` | `getBenchmarkQueries(java.lang.String queryFileWithStats, int numberOfQueries)` Get benchmark queries
    `static java.util.List<java.lang.Double[]>` | `getDimensionWiseVectors(java.util.Map<java.lang.String,java.lang.Double[]> normalizedVectors)` Get the dimension-wise vectors of the the normalized vectors
    `static void` | `main(java.lang.String[] args)`
    `static void` | `printBenchmarkQueries(java.util.Set<java.lang.String> queries)` Print benchmark queries into console

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

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

- - ### Field Detail

    - #### bwd

          static java.io.BufferedWriter bwd

    - #### dbq

          public static int dbq

  - ### Constructor Detail

    - #### DBPSBSimilarityError

          public DBPSBSimilarityError()

  - ### Method Detail

    - #### main

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

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

    - #### getDimensionWiseVectors

          public static java.util.List<java.lang.Double[]> getDimensionWiseVectors(java.util.Map<java.lang.String,java.lang.Double[]> normalizedVectors)

      Get the dimension-wise vectors of the the normalized vectors
      Parameters:
        `normalizedVectors` - Map of query ids to corresponding normalized vectors
      Returns:
        List of dimension wise vectors

    - #### getBenchmarkQueries

          public static java.util.Set<java.lang.String> getBenchmarkQueries(java.lang.String queryFileWithStats,
                                                                            int numberOfQueries)
                                                                     throws java.io.IOException

      Get benchmark queries
      Parameters:
        `queryFileWithStats` - Clean queries file with stats
        `numberOfQueries` - The number of queries to be included in benchmark
      Returns:
        queries The required benchmark queries
      Throws:
        `java.io.IOException`

    - #### printBenchmarkQueries

          public static void printBenchmarkQueries(java.util.Set<java.lang.String> queries)

      Print benchmark queries into console
      Parameters:
        `queries` - queries