{% extends "prose.html" %}

{% block title %}Bioregistry Downloads{% endblock %}

{% block styles %}
    {{ super() }}
    <link href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism.css" rel="stylesheet"/>
{% endblock %}

{% block scripts %}
    {{ super() }}
    <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
{% endblock %}

{% block content %}
    <h2>Downloads</h2>
    <p>
        The content of the Bioregistry's database is split into three sections. See the
        <a href="{{ url_for(".schema") }}">JSON schema</a> page for further documentation on their format.
    </p>
    <h3>Registry</h3>
    <p>
        The registry can be downloaded as:
    </p>
    <ul>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/src/bioregistry/data/bioregistry.json">JSON</a>
            (reference file)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/registry.yml">YAML</a>
            (auto-generated by GitHub Actions)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/registry.tsv">TSV</a>
            (auto-generated by GitHub Actions)
        </li>
    </ul>
    <p>
        The manually curated portions of these data are available under the
        <a href="https://creativecommons.org/share-your-work/public-domain/cc0/">
            <i class="fab fa-creative-commons-zero"></i> CC0 1.0 Universal License</a>. Aggregated data are
        redistributed under their original licenses.
    </p>
    <h3>Metaregistry</h3>
    <p>
        The metaregistry can be downloaded as:
    </p>
    <ul>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/src/bioregistry/data/metaregistry.json">JSON</a>
            (reference file)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/metaregistry.yml">YAML</a>
            (auto-generated by GitHub Actions)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/metaregistry.tsv">TSV</a>
            (auto-generated by GitHub Actions)
        </li>
    </ul>
    <p>
        The entirety of the metaregistry is manually curated and is available under the
        <a href="https://creativecommons.org/share-your-work/public-domain/cc0/">
            <i class="fab fa-creative-commons-zero"></i> CC0 1.0 Universal License</a>.
    </p>
    <h3>Collections</h3>
    <p>
        The collections can be downloaded as:
    </p>
    <ul>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/src/bioregistry/data/collections.json">JSON</a>
            (reference file)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/collections.yml">YAML</a>
            (auto-generated by GitHub Actions)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/collections.tsv">TSV</a>
            (auto-generated by GitHub Actions)
        </li>
    </ul>
    <p>
        The entirety of the collections is manually curated and is available under the
        <a href="https://creativecommons.org/share-your-work/public-domain/cc0/">
            <i class="fab fa-creative-commons-zero"></i> CC0 1.0 Universal License</a>.
    </p>
    <h3>RDF</h3>
    <p>
        The combine registry, metaregistry, and collections can be downloaded as RDF in the following formats. See the
        <a href="{{ url_for(".schema") }}">RDF schema</a> page for further documentation.
    </p>
    <ul>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/bioregistry.ttl">Turtle (.ttl)</a>
            (auto-generated by GitHub Actions)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/bioregistry.nt">N-Triples (.nt)</a>
            (auto-generated by GitHub Actions)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/bioregistry.rdf">RDF/XML (.xml)</a>
            (auto-generated by GitHub Actions)
        </li>
        <li>
            <a href="https://github.com/bioregistry/bioregistry/blob/main/docs/_data/bioregistry.jsonld">
                JSON-LD (.jsonld)
            </a> (auto-generated by GitHub Actions)
        </li>
    </ul>
    <p>
        The manually curated portions of these data are available under the
        <a href="https://creativecommons.org/share-your-work/public-domain/cc0/">
            <i class="fab fa-creative-commons-zero"></i> CC0 1.0 Universal License</a>. Aggregated data are
        redistributed under their original licenses.
    </p>
    <h2>Derived and Related Resources</h2>
    <h3>Bioregistry Regular Expression Report</h3>
    <p>
        The Bioregistry Regular Expression Report uses <a href="https://github.com/pyobo/pyobo">PyOBO</a> to check how
        consistent all of the regular expression patterns are with the actual identifiers from databases that are parsed
        by PyOBO. This contains most entries from the OBO Foundry that are still accessible as well as several
        additional resources such as HGNC, UniProt, etc. The automatically generated/updated report is available
        <a href="https://bioregistry.github.io/regex-report/">here</a>.
    </p>
    <h3>Bioregistry Knowledge Graph</h3>
    <p>
        Related to the RDF dump, there is preliminary work in generating a knowledge graph around the information in the
        Bioregistry, including the relations between resources, providers, and registries. It can be viewed on the
        <a href="{{ url_for("ui.resolve", prefix="ndex", identifier="aa78a43f-9c4d-11eb-9e72-0ac135e8bacf") }}">
            Network Data Exchange (NDEx)</a>.
    </p>
{% endblock %}
