Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data through SPARQL

Public visualization

Viewing a saved revision (read-only)

29bd836d1eb64c6eaab75c9e14d52994

Loading data through SPARQL

1 star1🌍 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.