{% extends "bootstrap-base.html" %} {% macro sparql_to_table_post(panel, options={}) -%} // {{ panel }} table sparqlToDataTablePost(`# tool: scholia {% include aspect + '_' + panel + '.sparql' %} `, "#{{ panel }}-table", "{{ aspect }}_{{ panel }}.sparql", options={{ options | tojson }}); {%- endmacro %} {% macro sparql_to_table(panel, options={}) -%} // {{ panel }} table sparqlToDataTable(`# tool: scholia {% include aspect + '_' + panel + '.sparql' %} `, "#{{ panel }}-table", "{{ aspect }}_{{ panel }}.sparql", options={{ options | tojson }}); {%- endmacro %} {% macro sparql_to_iframe(panel) -%} // {{ panel }} iframe sparqlToIframe(`# tool: scholia {% include aspect + '_' + panel + '.sparql' %}`, "#{{ panel }}-iframe", "{{ aspect }}_{{ panel }}.sparql"); {%- endmacro %} {% macro sparql_to_matrix(panel) -%} // {{ panel }} matrix sparqlToMatrix(`# tool: scholia {% include aspect + '_' + panel + '.sparql' %}`, "#{{ panel }}", "{{ aspect }}_{{ panel }}.sparql"); {%- endmacro %} {% macro sparql_to_pathway_viewer(panel) -%} // {{ panel }} optional viewer sparqlToPathWayPageViewer(`# tool: scholia {% include aspect + '_' + panel + '.sparql' %}`, "{{ aspect }}_{{ panel }}.sparql" ); {%- endmacro %} {% macro sparql_to_404shortinchikey(panel) -%} // {{ panel }} short_inchikey sparqlToShortInchiKey(`# tool: scholia {% include aspect + '_' + panel + '.sparql' %}`, "{{inchikey}}", "#{{ panel }}-table", "{{ aspect }}_{{ panel }}.sparql" ); {%- endmacro %} {% macro ask_query_callback(panel) -%} // {{ panel }} ask query askQuery("{{ panel }}", `# tool: scholia {% include 'ask_' + aspect + '_' + panel + '.sparql' %}`, () => { {{ caller() }}; }); {%- endmacro %} {% block metas %} {% endblock metas %} {% block head %} {{super()}} {% include "favicon.html" %} {% endblock %} {% block title %}Scholia{% endblock %} {% block scripts %} {{super()}} {% endblock %} {% block navbar %} {% endblock %} {% block content %}