{% macro mapping_table(converter, mappings, show_record=True, show_triple=True) %} {% if show_record %}{% endif %} {% if show_triple %}{% endif %} {%- for mapping in mappings %} {%- if show_record %} {%- endif %} {%- if show_triple %} {%- endif %} {%- endfor %}
RecordTripleSubject Subject ID Predicate Object Object ID Justification Confidence Author
RecordTriple{{ mapping.subject_name }} {{ mapping.subject.curie }} {{ mapping.predicate.curie }} {{ mapping.object_name }} {{ mapping.object.curie }} {{ mapping.justification.identifier }} {% if mapping.confidence %}{{ mapping.confidence | round(3) }}{% endif %} {% if mapping.author %}{{ mapping.author.curie }}{% endif %}
{% endmacro %}