Beispiel #1
0
  /**
   * Returns all Id3 property-values for the Mp3 as an Iterator of Triples.
   *
   * @return ClosableIterator
   * @throws QueryException
   */
  public ClosableIterator getStatements() throws QueryException {

    ClosableIterator schemaProperties = null;
    try {
      schemaProperties = getSchemaProperties();
      String query = getStatementsQuery(mp3.getResource(), schemaProperties);
      return model.query(query);
    } catch (Exception exception) {
      throw new QueryException("Failed to getStatements.", exception);
    } finally {
      if (schemaProperties != null) {
        schemaProperties.close();
      }
    }
  }