-
Notifications
You must be signed in to change notification settings - Fork 13
/
analytics_platform_health.html
164 lines (147 loc) · 7.35 KB
/
analytics_platform_health.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
---
title: Platform health
layout: default
permalink: /analytics/platform-health/
---
{% include breadcrumbs.html parent="Analytics" %}
<style>
.report-good {
color: #3F784C;
}
.report-bad {
color: #B20D30;
}
</style>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs/dt-1.12.1/fh-3.2.3/datatables.min.css" />
<h1>{{ page.title }}</h1>
<h2>Organizations</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th rowspan="2">Name</th>
<th><abbr title="Description">Desc</abbr></th>
<th>Logo</th>
<th>Type</th>
<th>Portal</th>
<th>Website</th>
<th>Twitter</th>
<th>GSS</th>
<th><abbr title="Wikidata">WD (Org)</abbr></th>
<th><abbr title="Wikidata">WD (Portal)</abbr></th>
<th><abbr title="What Do They Know">WDTK</abbr></th>
<th>Portal type</th>
</tr>
{% assign org_count = site.organizations.size %}
{% assign desc_count = site.organizations | where_exp: "item", "item.description.size > 0" | size %}
{% assign logo_count = site.organizations | where_exp: "item", "item.logo.size > 0" | size %}
{% assign type_count = site.organizations | where_exp: "item", "item.type.size > 0" | size %}
{% assign portal_count = site.organizations | where_exp: "item", "item.portal_url.size > 0" | size %}
{% assign website_count = site.organizations | where_exp: "item", "item.org_url.size > 0" | size %}
{% assign twitter_count = site.organizations | where_exp: "item", "item.twitter_handle.size > 0" | size %}
{% assign gss_count = site.organizations | where_exp: "item", "item.gss_code.size > 0" | size %}
{% assign wd_org_count = site.organizations | where_exp: "item", "item.wikidata_org_qid.size > 0" | size %}
{% assign wd_portal_count = site.organizations | where_exp: "item", "item.wikidata_portal_qid.size > 0" | size %}
{% assign wdtk_count = site.organizations | where_exp: "item", "item.wdtk_id.size > 0" | size %}
{% assign portal_type_count = site.organizations | where_exp: "item", "item.portal_type.size > 0" | size %}
<tr>
<th>{{ desc_count }}/{{org_count}}</th>
<th>{{ logo_count }}/{{org_count}}</th>
<th>{{ type_count }}/{{org_count}}</th>
<th>{{ portal_count }}/{{org_count}}</th>
<th>{{ website_count }}/{{org_count}}</th>
<th>{{ twitter_count }}/{{org_count}}</th>
<th>{{ gss_count }}/{{org_count}}</th>
<th>{{ wd_org_count }}/{{org_count}}</th>
<th>{{ wd_portal_count }}/{{org_count}}</th>
<th>{{ wdtk_count }}/{{org_count}}</th>
<th>{{ portal_type_count }}/{{org_count}}</th>
</tr>
</thead>
<tbody>
{% for org in site.organizations %}
<tr>
<td><a href="{{ site.baseurl }}{{ org.url }}">{{ org.title }}</a></td>
<td>
{% if org.description.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.logo.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.type.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.portal_url.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.org_url.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.twitter_handle.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.gss_code.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.wikidata_org_qid.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.wikidata_portal_qid.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.wdtk_id.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
<td>
{% if org.portal_type.size > 0 %} <i class="fa fa-check report-good"></i><span class="sr-only">Yes</span> {% else %} <i class="fa fa-times report-bad"></i><span class="sr-only">No</span> {% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>Dataset organizations with no record</h2>
{% assign dataset_orgs_list = site.datasets | map: "organization" | uniq %}
{% assign orgs_list = site.organizations | map: "title" %}
{% assign found_mismatch_no_record = false %}
<ul>
{% for dataset_org in dataset_orgs_list %}
{% unless orgs_list contains dataset_org %}
<li>{{ dataset_org }}</li>
{% assign found_mismatch_no_record = true %}
{% endunless %}
{% endfor %}
</ul>
{% if found_mismatch_no_record != true %}
<p>None!</p>
{% endif %}
<h2>Datasets missing original link</h2>
{% assign missing_data_datasets = site.datasets | where_exp:"item","item.original_dataset_link == ''" %}
<ul>
{% for dataset in missing_data_datasets %}
<li><a href="{{ site.baseurl }}{{ dataset.url }}">{{dataset.organization}} - {{ dataset.title }}</a></li>
{% endfor %}
</ul>
{% if missing_data_datasets.size == 0 %}
<p>None!</p>
{% endif %}
<h2>Datasets missing license data</h2>
{% assign found_mismatch_license_data = false %}
<ul>
{% for dataset in site.datasets %}
{% if site.data.licenses[dataset.license] == null %}
<li><a href="{{ site.baseurl }}{{ dataset.url }}">{{dataset.organization}} - {{ dataset.title }}</a> [Invalid value: {{dataset.license}}]</li>
{%endif%}
{% assign found_mismatch_license_data = true %}
{% endfor %}
</ul>
{% if found_mismatch_license_data != true %}
<p>None!</p>
{% endif %}
<script type="text/javascript" src="https://cdn.datatables.net/v/bs/dt-1.12.1/fh-3.2.3/datatables.min.js"></script>
<script>
$('table').DataTable({
fixedHeader: true,
dom: 't',
paging: false,
orderCellsTop: true
});
</script>