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:
| Choice | Queries |
|---|---|
| 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 triples | One 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
@prefixdeclarations of the Turtle tab are added to your query for you, so you can writeex:Bookwithout aPREFIXline. 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
SELECTshows a table. IRIs are shortened toprefix:nameand quantities shown as value unit; hover a cell for its full value. AnASKshows ASK → true or false.
Saved queries
The second drop-down, Saved queries…, has two groups:
| Group | Where it comes from |
|---|---|
| ◈ name | Queries 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 names | Queries 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).