Class: QualityReport

QualityReport()

A DataPackage represents a hierarchical collection of packages, metadata, and data objects, modeling an OAI-ORE RDF graph. TODO: incorporate Backbone.UniqueModel

Constructor

new QualityReport()

Source:

Extends

  • Backbone.Collection

Methods

fetch()

Source:

getAllOutputIdentifiers() → {Array}

For each result in the collection, check the outputs for identifiers and return a list of all unique ids.
Since:
  • 2.34.0
Source:
Returns:
An array of unique output identifiers.
Type
Array

getAllOutputNames() → {Promise.<object>}

For all result outputs in the collection that include identifiers, get the names of those outputs from the Solr index. This is done in batches to avoid exceeding maximum lengths of Solr queries.
Since:
  • 2.34.0
Source:
Returns:
A promise that resolves to an object mapping output identifiers to their names.
Type
Promise.<object>

getCountsPerGroup(groupedResults) → {object}

Get the number of results in each group, including a total count.
Parameters:
Name Type Description
groupedResults object An object with keys for each group and an array of results for each group. If not provided, it will use the results from this.models, grouped by color.
Since:
  • 2.34.0
Source:
Returns:
An object with keys for each group and the count of results in that group, plus a total count.
Type
object

getOutputNames(ids) → {Promise.<object>}

Given a batch of output identifiers, fetch their names from the Solr index. Call getAllOutputNames instead of calling this directly.
Parameters:
Name Type Description
ids Array An array of output identifiers.
Since:
  • 2.34.0
Source:
Returns:
A promise that resolves to an object mapping output identifiers to their names.
Type
Promise.<object>

groupByType(results) → {object}

Groups the results by their type, excluding those that should not be counted in the totals (ERROR, SKIP, and optional failures).
Parameters:
Name Type Description
results Array An array of QualityCheck models.
Source:
Returns:
An object with keys for each check type and an array of results for each type.
Type
object

groupResults(results) → {object}

Returns a list of all the results in the collection, grouped by color.
Parameters:
Name Type Description
results Array An array of QualityCheck models.
Source:
Returns:
An object with keys for each color (BLUE, GREEN, ORANGE, RED) and an array of results for each color.
Type
object

initialize()

Source:

parse()

Source: