Example #1
0
  /**
   * Creates a SPARQL representation of the query, sends it to Sesame, and returns descriptions of
   * any matching resources.
   *
   * @param user User ID
   * @param time Time it took the user to construct the query
   * @return AnchorInfo[][], feedback texts describing the search results, or null if the user's
   *     session is expired
   */
  public AnchorInfo[][] getSPARQL(String user, long time) {
    if (!userMap.containsKey(user)) return null;

    LiberSession session = userMap.get(user);
    synchronized (session) {
      return session.getSPARQL(time);
    }
  }