Linked Open Statistical Data, Served Simply

Source: https://i.pinimg.com/originals/c3/15/9f/c3159f86c37289800ac338e4de48fe09.jpg

http://linkedsdg.apps.officialstatistics.org/graphql/

LinkedSDGs statistical data API: GraphQL + JSON-LD

Figure 1. The core of the statistical data cube model.
{
DataSet(series: SL_DOM_TSPDCW) {
_id
_type
notation
label
unitMeasure {
_id
_type
prefLabel
}
}
}
{
"data": {
"DataSet": {
"_id": "http://metadata.un.org/sdg/SL_DOM_TSPDCW",
"_type": "DataSet",
"notation": "SL_DOM_TSPDCW",
"label": "Proportion of time spent on unpaid care work, by sex, age and location (%)",
"unitMeasure": {
"_id": "http://metadata.un.org/sdg/codes/units/PERCENT",
"_type": "Code",
"prefLabel": "Percentage"
}
}
}
}
{
"data": {
"@context": "https://raw.githubusercontent.com/UNStats/LOD4Stats/master/sdg-data/sdg-series-data-cubes-context.jsonld",
"@id": "@graph",
"DataSet": {
"_id": "http://metadata.un.org/sdg/SL_DOM_TSPDCW",
"_type": "DataSet",
"notation": "SL_DOM_TSPDCW",
"label": "Proportion of time spent on unpaid care work, by sex, age and location (%)",
"unitMeasure": {
"_id": "http://metadata.un.org/sdg/codes/units/PERCENT",
"_type": "Code",
"prefLabel": "Percentage"
}
}
}
}
"DataSet": "http://purl.org/linked-data/cube#DataSet"
"Observation": "http://purl.org/linked-data/cube#Observation"
"Slice": "http://purl.org/linked-data/cube#Slice"
"unitMeasure": "http://purl.org/linked-data/sdmx/2009/attribute#unitMeasure"
"Code": "http://www.w3.org/2004/02/skos/core#Concept"
"prefLabel": "http://www.w3.org/2004/02/skos/core#prefLabel"
<http://metadata.un.org/sdg/SL_DOM_TSPDCW> <http://purl.org/linked-data/sdmx/2009/attribute#unitMeasure> <http://metadata.un.org/sdg/codes/units/PERCENT> .
<http://metadata.un.org/sdg/SL_DOM_TSPDCW> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/linked-data/cube#DataSet> .
<http://metadata.un.org/sdg/SL_DOM_TSPDCW> <http://www.w3.org/2000/01/rdf-schema#label> "Proportion of time spent on unpaid care work, by sex, age and location (%)" .
<http://metadata.un.org/sdg/SL_DOM_TSPDCW> <http://www.w3.org/2004/02/skos/core#notation> "SL_DOM_TSPDCW" .
<http://metadata.un.org/sdg/codes/units/PERCENT> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
<http://metadata.un.org/sdg/codes/units/PERCENT> <http://www.w3.org/2004/02/skos/core#prefLabel> "Percentage" .

pure GraphQL inside & (optional) linked data outside

Figure 2. LinkedSDGs statistical data API.

Why it matters?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store