Statistical LOD of Japan can be retrieved by using SPARQL. Retrieval results are obtained by sending queries via API. We support SPARQL 1.1 query syntax.

To submit a SPARQL query from your code, you issue an HTTP POST to our endpoint:, with the query itself as a URL-encoded parameter called “query” as follows.[URL-encoded query]

For example, to run the following SPARQL query and get the results: #obtain the CPI(Consumer Price Index) of July 2015

select  ?cpi  
where {
     ?s <> ?cpi ; 
        <> "2015-06"^^<> . 

Example1) Using curl

curl -X POST -H "Accept: application/sparql-results+json"

The result format is addressed using HTTP Accept header. Available result formats are as follows.

query type formats HTTP Accept header
JSON* application/sparql-results+json
XML application/sparql-results+xml
TEXT text/plain
CSV text/csv
TSV text/tab-separated-values
RDF/XML* application/rdf+xml
N-triples application/n-triples
Turtle text/turtle

* is a default value

Example2) Using JavaScript

This example HTML page uses jQuery to issue a POST to our SPARQL endpoint, requesting the results as JSON.

<!DOCTYPE html>
      <script src=''></script>
<script type='text/javascript'>
      var query = 'select ?cpi where { ?s <> ?cpi ; <> "2015-06"^^<>.}';
      var url = '';
            method: 'POST',
            dataType: 'json',
            url: url,
            data: {query: query},
            success: function(data) {
                alert('cpi: ' + data.results.bindings[0].cpi.value);


  ・SPARQL 1.1 Protocol(
  ・SPARQL 1.1 Query Results JSON Format(
  ・SPARQL Query Results XML Format (Second Edition)(
  ・SPARQL 1.1 Query Results CSV and TSV Formats(
  ・Open access to Scotland's official statistics(