Skip to main content
100%

Loading data through SPARQL

✓ Published1🌍 Public
LLaurens
Last edited Oct 16, 2019
Created on Oct 4, 2019
Forked from Customizing Axes

This example demonstrates how to query a live SPARQL endpoint using d3.json, fetching up to 1000 records created in 1893 from the Dutch Network of Digital Heritage. The results are displayed as raw JSON text in a paragraph element. The code encodes a SPARQL query with encodeURIComponent and appends it to the endpoint URL, then parses the response with d3’s JSON loader. It relies on d3.v5 and the public API endpoint, which must remain active for the example to function.

AI-generated description

A simple example showing how to load data from SPARQL into d3.

Note: this example will only work as long as the endpoint used is still up and public.

MIT Licensed

Similar vizzes