Sparql.anything

Github page
 * https://github.com/SPARQL-Anything/sparql.anything

Run inside docker
 * https://github.com/SPARQL-Anything/sparql.anything/blob/v0.9-DEV/BROWSER.md

IMPORTANT NOTES
 * Docker container allows remote execution of commands through SPARQL-query (command parameter)
 * It allows reading local files (least location and from-archive parameters.

Urls when container is up


 * Web UI
 * http://localhost:3000/sparql


 * SPARQL Endpoint
 * http://localhost:3000/sparql.anything

Example query
Example for querying population grouped by gender. (ie. data for age pyramid) from Stats.fi

Example age pyramid
{ "width": 640, "height": 400, "data": [ {     "name": "pop2000", "values":[ {"year":2000,"age":0,"sex":1,"people":9735380}, {"year":2000,"age":0,"sex":2,"people":9310714}, {"year":2000,"age":5,"sex":1,"people":10552146}, {"year":2000,"age":5,"sex":2,"people":10069564}, {"year":2000,"age":10,"sex":1,"people":10563233}, {"year":2000,"age":10,"sex":2,"people":10022524}, {"year":2000,"age":15,"sex":1,"people":10237419}, {"year":2000,"age":15,"sex":2,"people":9692669}, {"year":2000,"age":20,"sex":1,"people":9731315}, {"year":2000,"age":20,"sex":2,"people":9324244}, {"year":2000,"age":25,"sex":1,"people":9659493}, {"year":2000,"age":25,"sex":2,"people":9518507}, {"year":2000,"age":30,"sex":1,"people":10205879}, {"year":2000,"age":30,"sex":2,"people":10119296}, {"year":2000,"age":35,"sex":1,"people":11475182}, {"year":2000,"age":35,"sex":2,"people":11635647}, {"year":2000,"age":40,"sex":1,"people":11320252}, {"year":2000,"age":40,"sex":2,"people":11488578}, {"year":2000,"age":45,"sex":1,"people":9925006}, {"year":2000,"age":45,"sex":2,"people":10261253}, {"year":2000,"age":50,"sex":1,"people":8507934}, {"year":2000,"age":50,"sex":2,"people":8911133}, {"year":2000,"age":55,"sex":1,"people":6459082}, {"year":2000,"age":55,"sex":2,"people":6921268}, {"year":2000,"age":60,"sex":1,"people":5123399}, {"year":2000,"age":60,"sex":2,"people":5668961}, {"year":2000,"age":65,"sex":1,"people":4453623}, {"year":2000,"age":65,"sex":2,"people":4804784}, {"year":2000,"age":70,"sex":1,"people":3792145}, {"year":2000,"age":70,"sex":2,"people":5184855}, {"year":2000,"age":75,"sex":1,"people":2912655}, {"year":2000,"age":75,"sex":2,"people":4355644}, {"year":2000,"age":80,"sex":1,"people":1902638}, {"year":2000,"age":80,"sex":2,"people":3221898}, {"year":2000,"age":85,"sex":1,"people":970357}, {"year":2000,"age":85,"sex":2,"people":1981156}, {"year":2000,"age":90,"sex":1,"people":336303}, {"year":2000,"age":90,"sex":2,"people":1064581}] } ],  "scales": [ {     "name": "g", "type": "ordinal", "domain": [2, 1], "range": "width" },   {      "name": "y", "type": "ordinal", "range": "height", "reverse": true, "domain": {"data": "pop2000", "field": "age"} },   {      "name": "c", "type": "ordinal", "domain": [1, 2], "range": ["#1f77b4", "#e377c2"] } ],  "marks": [ {     "type": "text", "interactive": false, "from": { "data": "pop2000", "transform": [{"type":"aggregate", "groupby":["age"]}] },     "properties": { "enter": { "x": {"field": {"group": "width"}, "mult": 0.5, "offset": -15}, "y": {"scale": "y", "field": "age", "offset": 11}, "text": {"field": "age"}, "baseline": {"value": "middle"}, "align": {"value": "center"}, "fill": {"value": "#000"} }     }    },    {      "type": "group", "from": { "data": "pop2000", "transform": [ {"type":"facet", "groupby": ["sex"]}, {"type":"formula", "field":"reverse", "expr":"datum.key==2"} ]     },      "properties": { "update": { "x": {"scale": "g", "field": "key"}, "y": {"value": 0}, "width": {"scale": "g", "band": true, "offset": -30}, "height": {"field": {"group": "height"}} }     },      "scales": [ {         "name": "x", "type": "linear", "range": "width", "reverse": {"field": "reverse"}, "nice": true, "domain": {"data": "pop2000", "field": "people"} }     ],      "axes": [ {"type": "x", "scale": "x", "format": "s"} ],     "marks": [ {         "type": "rect", "properties": { "enter": { "x": {"scale": "x", "field": "people"}, "x2": {"scale": "x", "value": 0}, "y": {"scale": "y", "field": "age"}, "height": {"scale": "y", "band": true, "offset": -1}, "fillOpacity": {"value": 0.6}, "fill": {"scale": "c", "field": "sex"} }         }        }      ]    }  ] }