{% extends "base.html" %} {% import "bootstrap5/utils.html" as bs_util %} {% import "utils.html" as util %} {% block title %}SeMRA{% endblock %} {% macro count_column(counter, key, icon) -%}
{% set count, suffix = format_number(counter[key]) %}

{{ count }}{{ suffix }}

{{ key }}

{% endmacro %} {% macro do_table(counter, label, is_concept=False, has_names=False, desc=None) %}

{{ label }} Summary

{% if desc is not none %} {{ desc | safe }} {% endif %}
{% if has_names %} {% endif %} {% for key, count in counter.most_common() %} {% if has_names %} {% endif %} {% endfor %}
{{ label }}NameCount
{%- if is_concept -%} {% if has_names %} {{ key[0] }} {% else %} FAILURE! {{ key }} {% endif %} {%- else -%} {% if has_names %}{{ key[0] }}{% else %}{{ key }}{% endif %} {%- endif -%} {{ key[1] }}{{ "{:,}".format(count) }}
{% endmacro %} {% block content %}
{{ bs_util.render_messages(dismissible=True, container=False) }}

Semantic Reasoning Assembler

{{ count_column(node_counter, "Concepts", "dna") }} {{ count_column(node_counter, "Equivalence Classes", "dna") }} {{ count_column(node_counter, "Mappings", "arrows-alt") }} {{ count_column(node_counter, "Evidences", "book") }} {{ count_column(node_counter, "Mapping Sets", "puzzle-piece") }}

See the API Documentation.

Mapping Sets

{% for mapping_set in mapping_sets %} {% endfor %}
Name Version License Confidence Evidences
Inferred - - - {{ "{:,}".format(evidence_type_counter["reasoned"]) }}
{{ mapping_set.name }} {{ mapping_set.version }} {% if mapping_set.license %} {% if mapping_set.license.startswith('http') %} See homepage {% else %} {{ mapping_set.license }} {% endif %} {% endif %} {{ mapping_set.confidence }} {{ "{:,}".format(mapping_set_counter[mapping_set.curie]) }}
{{ do_table(evidence_type_counter, "Evidence Type") }} {{ do_table(predicate_counter, "Predicate", desc="What predicates appear in mappings?") }} {{ do_table(justification_counter, "Mapping Justification", desc="How are mappings justified? These come from the Semantic Mapping Vocabulary (semapv).") }} {{ do_table(prefix_counter, "Prefix", has_names=True, desc="How many concepts have mappings for each resource? This is typically less than the full number of entities in that resource.") }} {{ do_table(author_counter, "Author", has_names=True, desc="Which authors contributed to mappings? This is typically a small count for mapping databases constructed using ontologies or other resources with low resolution mappings. SSSOM mappings, such as those from Biomappings, contain higher granular provenance information such as author ORCID.") }} {{ do_table(high_matches_counter, "Potential Data Issues", is_concept=True, has_names=True, desc="This table shows entities from the largest connected components in the mapping graph. These typically correspond to data issues. Click on an entity to explore the mapped entities and an interactive mapping graphing of the primary mappings to help track down the issue mappings. The interface also includes Biomappings controls so you can do local curation of negative mappings.") }}

Example Mappings

{{ util.mapping_table(example_mappings) }}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}