{%- extends "base.html" %} {%- import "macros.html" as utils %} {%- block title %}NFDI Dashboard{% endblock %} {%- macro external_mapping_card(title, external_prefix, mappings) %}
{{ title }} Collection Mapping
{%- if external_prefix == "tib.collection" %} Import of TIB OLS collections was implemented in #1762. {%- else %} Import of BARTOC collections was implemented in #1888. {%- endif %} The data can be synced by running python -m bioregistry.curation.nfdi.sync.
{%- for collection_id, external_id in mappings.items() %} {%- endfor %}
Collection Consortium {{ title }} Collection
{{ collection_id }} {{ collections[collection_id].name.removesuffix(" Collection") }} {{ external_id }}
{%- endmacro %} {%- macro render_nfdi_collection(collection) %} {%- set collection_short_name = collection.name.removesuffix(" Collection").removesuffix(" Resources") %} {%- set collection_missing_resources = (collection.get_prefixes() == ["bioregistry"]) %} {# #}
{%- endmacro %} {%- block container %}
{%- for collection in sort_collections(collections.values()) %} {{ render_nfdi_collection(collection) }} {%- endfor %}
Curation Tasks
{%- for collection in collections.values() %} {%- set n_total = collection.resources | length %} {%- set n_license = collection_to_license_needs_curation[collection.identifier] | length %} {%- set n_domain = collection_to_domain_needs_curation[collection.identifier] | length %} {%- set n_download = collection_to_download_need_curation[collection.identifier] | length %} {%- if n_license or n_domain or n_download %} {%- endif %} {%- endfor %}
Collection Consortium Resources Missing License Resources Missing Domain Resources Missing Download
{{ collection.identifier }} {{ collection.name.removesuffix(" Collection") }} {% if n_license %}{{ n_license }} ({{ (0.5 + 100 * n_license / n_total) | int }}%){% endif %} {% if n_domain %}{{ n_domain }} ({{ (0.5 + 100 * n_domain / n_total) | int }}%){% endif %} {% if n_download %}{{ n_download }} ({{ (0.5 + 100 * n_download / n_total) | int }}%){% endif %}
Resource used by more than two consortia
{%- for prefix, count in prefix_counter.most_common() %} {%- if count > 2 and prefix != 'bioregistry' %} {%- endif %} {%- endfor %}
Prefix Name # Consortia
{{ utils.render_prefix(prefix) }} {{ manager.get_name(prefix) }} {{ count }}
{{ external_mapping_card("TIB", "tib.collection", tib_collection_mappings) }} {{ external_mapping_card("BARTOC", "bartoc", bartoc_collection_mappings) }}
TIB OLS Opportunities

There are {{ tib_opportunities | length }} resources appearing in NFDI collections that have concrete download links in {{ config.METAREGISTRY_TITLE }}, but are not yet indexed in the TIB OLS. Download All OLS Configurations

{% for collection_id, prefixes in collection_to_tib_opportunities.items() %} {% endfor %}
Collection Consortium # Resources Example OLS Config.
{{ collection_id }} {{ collections[collection_id].name.removesuffix(" Collection") }} {{ prefixes | length }} {{ manager.get_name(prefixes[0]) }} ({{ prefixes[0] }})
First Party Resources

The following resources are made by the consortium.

{%- for resource, consortia in first_party %} {%- endfor %}
Prefix Name Consortia
{{ utils.render_prefix(resource.prefix) }} {{ resource.get_name() }} {%- for consortium in consortia %} {{ consortium.name.removesuffix(" Collection") }} {%- endfor %}
{%- endblock %}