Skip to main content
100%

Simple DBpedia SPARQL Query

✓ Published0🌍 Public
CCliffordAnderson
Last edited Sep 14, 2015
Created on Sep 14, 2015

This example demonstrates a SPARQL query against DBpedia, retrieving titles, publication dates, and page counts for books authored by David Foster Wallace. The query uses the `d:` and `dbpedia2:` namespace prefixes to access DBpedia ontology and property data, with results ordered by publication date. The code defines a `PREFIX` for the DBpedia ontology and a `SELECT` clause that binds three variables—`?title`, `?pubDate`, and `?pages`—from matching book resources. It relies on DBpedia’s SPARQL endpoint and standard RDF predicates like `rdfs:label` to fetch the displayed fields. The visualization itself is not shown in the snippet; only the query logic and data-fetching structure are provided.

AI-generated description

Similar vizzes