Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SPARQL

The SPARQL tab runs read-only SPARQL 1.1 SELECT and ASK queries, either against your current work or against a deployment, without leaving the editor.

Choosing what to query

The first drop-down picks the data:

ChoiceQueries
Live: current package (default)The project as it is saved right now, compiled on the fly: schema and facts. Nothing needs to be deployed.
v3 · 1a2b3c4d · 120 triplesOne of the project’s deployments: its schema, facts and all the data written to it through the API. (inactive) marks a deployment that is not active.

In both cases the project’s rules are applied, so inferred triples are part of the answer.

Writing and running a query

  • The @prefix declarations of the Turtle tab are added to your query for you, so you can write ex:Book without a PREFIX line. For a deployment, they use the IRIs that deployment was published with.
  • Run the query with the button or Ctrl+Enter (⌘+Enter on a Mac).
  • A SELECT shows a table. IRIs are shortened to prefix:name and quantities shown as value unit; hover a cell for its full value. An ASK shows ASK → true or false.

Saved queries

The second drop-down, Saved queries…, has two groups:

GroupWhere it comes from
◈ nameQueries declared in the project’s Dolfin source. They follow the source and cannot be deleted from here. When the project does not compile, a ⚠ project queries unavailable note replaces them.
Plain namesQueries you saved with the save button. They are stored in this browser only. The delete button next to the list removes the selected one.

Pick a query to load it in the editor box.

To query deployments from your own code, see the deployment’s API section in Deployments. To query them from an AI assistant, see Connecting AI assistants (MCP).