{% extends 'base.html' %}

{% block title %}{{ _('Datasets') }} - MetaBrainz Foundation{% endblock %}

{% block content %}

  <div class="row">
    <div class="col-md-12">
      <h1 class="page-title">{{ _('The MetaBrainz Datasets') }}</h1>
     
      <p>
        The MetaBrainz core mission is to curate and maintain public datasets that anyone can download
        and use. We ask <a href="{{ url_for('supporters.account_type') }}">commercial supporters</a> to
         <a href="{{ url_for('supporters.account_type') }}">support us</a> in order to help fund the
        creation and maintenance of these datasets. Personal use of our datasets will always be free.
        We appreciate <a href="{{ url_for('payments.donate') }}">end user donations</a> as well!
      </p>

      <p>
        Our datasets fit into two main categories: Main project data dumps, containing the entirety of
        the data for a given project, and derived data dumps that are based on the data in our main project
        databases and have a more specific purpose.
      </p>

      <h2>Database Dumps</h2>
    </div>
  </div>

  <div class="dataset-flex-container">

    <div class="dataset-card">
      <div class="dataset-card-logo">
        <a href="/datasets/postgres-dumps#musicbrainz">
          <img class="logo" src="{{ url_for('static', filename='img/projects/musicbrainz-crate.png') }}" alt="MusicBrainz logo on a shipping crate" />
        </a>
      </div>
      <div class="dataset-card-text">
          <h4>
            <a href="/datasets/postgres-dumps#musicbrainz">
              <span class="dataset-card-heading">MusicBrainz PostgreSQL Data</span>
            </a>
          </h4>
          <p>
            This data dump includes all public portions of the data from our MusicBrainz project.
            All artists, releases, recordings, labels and the relationships between them, and
            much more data, including everything needed to run your own copy of MusicBrainz is
            included.
          </p>
          <p>
            <a href="/datasets/postgres-dumps#musicbrainz">Read more...</a>
          </p>
      </div>
    </div>

    <div class="dataset-card">
      <div class="dataset-card-logo">
        <a href="/datasets/postgres-dumps#musicbrainz-json">
          <img class="logo" src="{{ url_for('static', filename='img/projects/musicbrainz-crate.png') }}" alt="MusicBrainz logo on a shipping crate" />
        </a>
      </div>
      <div class="dataset-card-text">
          <h4>
            <a href="/datasets/postgres-dumps#musicbrainz-json">
              <span class="dataset-card-heading">MusicBrainz JSON Data</span>
            </a>
          </h4>
          <p>
            We also provide the MusicBrainz data in the easily consumable format of JSON documents. If you
            simply cannot work with PostgreSQL or you prefer to work with a document oriented data store, then this
            data dump is for you.
          </p>
          <p>
            <a href="/datasets/postgres-dumps#musicbrainz-json">Read more...</a>
          </p>
      </div>
    </div>

    <div class="dataset-card">
      <div class="dataset-card-logo">
        <a href="/datasets/postgres-dumps#listenbrainz">
          <img class="logo" src="{{ url_for('static', filename='img/projects/listenbrainz-crate.png') }}" alt="ListenBrainz logo on a shipping crate" />
        </a>
      </div>
      <div class="dataset-card-text">
          <h4>
            <a href="/datasets/postgres-dumps#listenbrainz">
              <span class="dataset-card-heading">ListenBrainz PostgreSQL Data</span>
            </a>
          </h4>
          <p>
            ListenBrainz collects user listening information and creates insights for its users
            about their own listening habits, as well as providing various tools for discovering new
            music. All of this data, indexed against MusicBrainz, is available for
            download.
          </p>
          <p>
            <a href="/datasets/postgres-dumps#listenbrainz">Read more...</a>
          </p>
      </div>
    </div>

    <div class="dataset-card">
      <div class="dataset-card-logo">
        <a href="/datasets/postgres-dumps#critiquebrainz">
          <img class="logo" src="{{ url_for('static', filename='img/projects/critiquebrainz-crate.png') }}" alt="CritiqueBrainz logo on a shipping crate" />
        </a>
      </div>
      <div class="dataset-card-text">
          <h4>
            <a href="/datasets/postgres-dumps#critiquebrainz">
              <span class="dataset-card-heading">CritiqueBrainz PostgreSQL Data</span>
            </a>
          </h4>
          <p>
            The <a href="https://critiquebrainz.org">CritiqueBrainz project</a> collects user reviews of music and
            books, based on the data of the <a href="https://musicbrainz.org">MusicBrainz</a> and
            <a href="https://bookbrainz.org">BookBrainz</a> projects. All of the reviews and everything
            necessary to run your own copy of CritiqueBrainz is included in these data dumps.
          </p>
          <p>
            <a href="/datasets/postgres-dumps#critiquebrainz">Read more...</a>
          </p>
      </div>
    </div>

  </div>

  <div class="row">
    <div class="col-md-12">
      <h2>Derived Dumps</h2>
  
      <p>
        Derived dumps take data from one project and transform it into a new dataset that solves a different problem.
      </p>
    </div>
  </div>

  <div class="dataset-flex-container">

    <div class="dataset-card">
      <div class="dataset-card-logo">
        <a href="/datasets/derived-dumps#canonical">
          <img class="logo" src="{{ url_for('static', filename='img/projects/musicbrainz-crate.png') }}" alt="MusicBrainz logo on a shipping crate" />
        </a>
      </div>
      <div class="dataset-card-text">
          <h4>
            <a href="/datasets/derived-dumps#canonical">
              <span class="dataset-card-heading">MusicBrainz Canonical Data Dumps</span>
            </a>
          </h4>
          <p>
            These dumps contain canonical MusicBrainz data, which makes it easier to reason about the core
            metadata in MusicBrainz, providing one single record for each musical recording and release in
            the database. This dataset is useful for matching data to or from MusicBrainz.
          </p>
          <p>
            <a href="/datasets/derived-dumps#canonical">Read more...</a>
          </p>
      </div>
    </div>

    <div class="dataset-card">
      <div class="dataset-card-logo">
        <a href="/datasets/derived-dumps#mhld">
          <img class="logo" src="{{ url_for('static', filename='img/projects/listenbrainz-crate.png') }}" alt="ListenBrainz logo on a shipping crate" />
        </a>
      </div>
      <div class="dataset-card-text">
          <h4>
            <a href="/datasets/derived-dumps#mhld">
              <span class="dataset-card-heading">MHLD+ Data Dump</span>
            </a>
          </h4>
          <p>
              The Music Listening Histories Dataset collects a large number of music listening
              events assembled from more than 27 billion time-stamped logs extracted from Last.fm.
              Using the MusicBrainz canonical data, we cleaned up errors in the data
              in order to provide an improved version of this dataset.
          </p>
          <p>
            <a href="/datasets/derived-dumps#mhld">Read more...</a>
          </p>
      </div>
    </div>

  </div>


{% endblock %}
