Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Add sitelinks per item and statements per item graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed Dec 16, 2015
1 parent 3e8a198 commit 5d62166
Show file tree
Hide file tree
Showing 2 changed files with 254 additions and 5 deletions.
137 changes: 133 additions & 4 deletions wikidata-datamodel-statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
]
}
],
"title": "Row"
"title": "Entity Statements"
},
{
"collapse": false,
Expand Down Expand Up @@ -308,7 +308,7 @@
]
}
],
"title": "New row"
"title": "Instances & Ranks"
},
{
"collapse": false,
Expand Down Expand Up @@ -588,7 +588,136 @@
]
}
],
"title": "New row"
"title": "Averages and Maxes"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"aliasColors": [

],
"bars": true,
"datasource": null,
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 9,
"isNew": true,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": false,
"total": false,
"values": false
},
"lines": false,
"linewidth": 2,
"links": [

],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [

],
"span": 6,
"stack": true,
"steppedLine": false,
"targets": [
{
"refId": "A",
"target": "aliasByNode(sortByMaxima(daily.wikidata.datamodel.item.statements.count.*), 6)"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Statements per item",
"tooltip": {
"shared": true,
"value_type": "individual"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"columns": [
{
"text": "Current",
"value": "current"
}
],
"editable": true,
"error": false,
"fontSize": "100%",
"id": 10,
"isNew": true,
"links": [

],
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"span": 6,
"styles": [
{
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"pattern": "\/Current\/",
"thresholds": [

],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"refId": "A",
"target": "aliasByNode(sortByMaxima(daily.wikidata.datamodel.item.statements.count.*), 6)"
}
],
"title": "Statements per Item",
"transform": "timeseries_aggregations",
"type": "table"
}
],
"title": "Statements per Item"
}
],
"schemaVersion": 8,
Expand Down Expand Up @@ -635,5 +764,5 @@
},
"timezone": "browser",
"title": "Wikidata Datamodel Statements",
"version": 1
"version": 3
}
122 changes: 121 additions & 1 deletion wikidata-datamodel.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,126 @@
"short",
"short"
]
},
{
"aliasColors": [

],
"bars": true,
"datasource": null,
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 14,
"isNew": true,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": false,
"total": false,
"values": false
},
"lines": false,
"linewidth": 2,
"links": [

],
"nullPointMode": "null as zero",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [

],
"span": 6,
"stack": true,
"steppedLine": false,
"targets": [
{
"refId": "A",
"target": "aliasByNode(sortByMaxima(daily.wikidata.datamodel.item.sitelinks.count.*), 6)"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Sitelinks per Item",
"tooltip": {
"shared": true,
"value_type": "individual"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
},
{
"columns": [
{
"text": "Current",
"value": "current"
}
],
"editable": true,
"error": false,
"fontSize": "100%",
"id": 15,
"isNew": true,
"links": [

],
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"span": 6,
"styles": [
{
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"pattern": "\/Current\/",
"thresholds": [

],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"refId": "A",
"target": "aliasByNode(daily.wikidata.datamodel.item.sitelinks.count.*, 6)"
}
],
"title": "Sitelinks per Item",
"transform": "timeseries_aggregations",
"type": "table"
}
],
"title": "Sitelinks"
Expand Down Expand Up @@ -721,5 +841,5 @@
},
"timezone": "browser",
"title": "Wikidata Datamodel",
"version": 16
"version": 17
}

0 comments on commit 5d62166

Please sign in to comment.