{% 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) %}
{{ label }} Summary
{% 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 %}{{ mapping_set.license }}{% endif %} {{ mapping_set.confidence }} {{ "{:,}".format(mapping_set_counter[mapping_set.curie]) }}
{{ do_table(evidence_type_counter, "Evidence Type") }} {{ do_table(predicate_counter, "Predicate") }} {{ do_table(justification_counter, "Mapping Justification") }} {{ do_table(prefix_counter, "Prefix", has_names=True) }} {{ do_table(author_counter, "Author", has_names=True) }} {{ do_table(high_matches_counter, "Potential Data Issues", is_concept=True, has_names=True) }}
Example Mappings
{{ util.mapping_table(example_mappings) }}
{% endblock %}