Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions dqgen/resources/asciidoc_templates/instance.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
{% call mc.render_fetch_results(content, error) %}
{% set compress_uris = simplify_uri_columns_in_tabular(data_frame=content,namespace_inventory=namespaces,error_fail=False) %}
{% endraw %}
== {{ operation|title }} {{ class_name }}s

The table below lists the {{ operation }} *{{ cls }}*

*Query identifier:* {{ query_file }}

=== {{ operation|title }} {{ class_name }}s
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} {{ class_name }}s") {{ "}}" }}
{% raw %}
{% endcall %}
{% endif %}
{% endraw %}

{% endraw %}
3 changes: 0 additions & 3 deletions dqgen/resources/asciidoc_templates/main.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% import "macros.adoc" as mc %}
{% block content %}
{% endraw %}

This report is automatically generated from the {% raw %}{{ conf.dataset_name }}{% endraw %} RDF dataset on {% raw %}{{ conf.timestamp }}{% endraw %}
and aims at presenting the difference between two versions of an RDFS/OWL vocabulary following the {% raw %}{{ conf.application_profile }}{% endraw %} application profile.

Expand Down Expand Up @@ -42,8 +41,6 @@ and aims at presenting the difference between two versions of an RDFS/OWL vocabu
{% endfor %}
{% raw %}
== Prefixes

{{ mc.render_namespaces(namespaces.namespaces_as_dict()) }}
{% endblock %}
{% endraw %}

10 changes: 2 additions & 8 deletions dqgen/resources/asciidoc_templates/property.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
{% call mc.render_fetch_results(content, error) %}
{% set compress_uris = simplify_uri_columns_in_tabular(data_frame=content,namespace_inventory=namespaces,error_fail=False) %}
{% endraw %}
=== {{ operation|title }} {{ property_name }}

The table below lists the {{ operation }} *{{ property }}*

*Query identifier:* {{ query_file }}

==== {{ operation|title }} {{ property_name }}
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} {{ property_name }}") {{ "}}" }}
{% raw %}
{% endcall %}
{% endif %}
{% endraw %}

{% endraw %}
10 changes: 2 additions & 8 deletions dqgen/resources/asciidoc_templates/reified_property.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
{% call mc.render_fetch_results(content, error) %}
{% set compress_uris = simplify_uri_columns_in_tabular(data_frame=content,namespace_inventory=namespaces,error_fail=False) %}
{% endraw %}
=== {{ operation|title }} reified {{ property_name }}

The table below lists the {{ operation }} *{{ property }} / {{ object_property }}*

*Query identifier:* {{ query_file }}

==== {{ operation|title }} reified {{ property_name }}
{{ "{{" }} mc.pandas_table(content, "{{ operation|title }} reified {{ property_name }}") {{ "}}" }}
{% raw %}
{% endcall %}
{% endif %}
{% endraw %}

{% endraw %}
8 changes: 2 additions & 6 deletions dqgen/resources/asciidoc_templates/static/macros.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
{% endif %}
{%- endmacro %}


{% macro pandas_table(df, caption, column_labels={}) -%}
{% if (df is defined) and (df is not none) %}
{% set df = df.fillna(value="") %}
.{{ caption }}
[cols="{{ df.columns|length }}*", options="header"]
|===
{% for column in df.columns %}
Expand All @@ -47,8 +47,6 @@

{% endfor %}
|===

.{{ caption }}
{% else %}
{{ render_error("How did you get here? did you forget to use 'render_fetch_results' macro?") }}
{% endif %}
Expand All @@ -63,6 +61,7 @@
{% endmacro %}

{% macro render_namespaces(namesapces_dist) %}
.Prefixes
[cols="1,3", options="header"]
|===
|Namespace
Expand All @@ -74,7 +73,4 @@

{% endfor %}
|===

.Prefixes
{% endmacro %}

5 changes: 1 addition & 4 deletions dqgen/resources/asciidoc_templates/statistics.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{% import "macros.adoc" as mc %}
{% endraw %}
== Statistics

{% for class_key , class_data in data_source.items() %}
=== {{ class_data.label }}
{% if class_data.description is not undefined %}
Expand Down Expand Up @@ -52,6 +51,4 @@
{% endfor %}
{% endfor %}
|===

{% endfor %}

{% endfor %}