{% extends "base.html" %} {% import "bootstrap5/utils.html" as util %} {% block title %}{{ title }} ({{ "{:,d}".format(n_predictions) }}){% endblock %} {% macro progress_color(confidence) -%} {% if confidence > 85 %} bg-success {% elif confidence > 60 %} bg-warning {% else %} bg-danger {% endif %} {%- endmacro %} {% macro render_pagination_element(state, b) %}
  • {% if b.position == "after" %}{% endif %} {{ b.text }} {% if b.position == "before" %}{% endif %}
  • {% endmacro %} {% block content %}
    {{ util.render_messages(dismissible=True, container=False) }}
    Summarize {% set remote_unpersisted = controller.count_remote_unpersisted() %} {%- if remote_unpersisted %} Commit/Push ({{ remote_unpersisted }}) {% endif %} {%- set unpersisted = controller.count_unpersisted() %} {%- if unpersisted %} Save ({{ unpersisted }}) {% endif %} {{ title }}
    {% if query %} Query: {{ query }} ({{ "{:,d}".format(n_predictions) }} Results) {% else %}
    {% endif %}
    {% if show_relations %} {% endif %} {% for p in predictions %} {% if show_relations %} {% endif %} {% endfor %}
    Subject Subject NamePredicateObject Object Label Conf.
    {{ p.subject.curie }} {{ p.subject_name }}{{ p.predicate.curie }} {{ p.object.curie }} {{ p.object_name }}
    {% set confidence = ((p.confidence | float) * 100) | int %}
    {{ confidence }}%
    {%- if pagination_elements %} {%- endif %}
    {% endblock %}