Documentation

Learn how to be productive with RDF, SPARQL and ShEx
SPARQL endpoints
Introduction
The RDF and SPARQL plugin integrates seamlessly with your SPARQL endpoints, allowing you to execute queries directly from your IDE. Moreover, it allows you to query your RDF files with SPARQL without leaving the IDE. The SPARQL Endpoint Tool Window serves as your central hub for managing your SPARQL endpoints.

If you don't see the tool window on the right sidebar of your IDE, you need to open it from View -> Tools Windows -> SPARQL Endpoint.

While the plugin connects to any endpoint compatible with the SPARQL 1.1 Protocol, the plugin offers specialized configurations for leading database platforms to make it super easy for you to connect to them:


The plugin automatically fetches all SPARQL endpoints available through the platforms. You can re-fetch them with the Refresh button or Ctrl+F5.

In the following section you also find out how to quickly and easily query your RDF files with SPARQL directly without the need to upload them to a database every time you make change in them.

SPARQL Endpoint Tool Window

sparql endpoints
Generic SPARQL endpoint
The Generic SPARQL Endpoint option connects to any standard database that implements the SPARQL 1.1 Protocol. This is the default choice for public SPARQL endpoints or any database not explicitly supported by the plugin.

The only required configuration is the Query URL. This is sufficient for executing SELECT, ASK, DESCRIBE, and CONSTRUCT queries.

It's strongly recommended testing the connection before saving the configuration to ensure immediate functionality. You can, however, edit the configuration at any time.

Shared between projects
If checked, the configuration is available for all projects open in the IDE. Otherwise, it is only for the current project.

The shared endpoints also enable the plugin to load and index ontologies from them, providing completion suggestions and quick documentation in your IDE.

A configuration of a typical installation of Apache Fuseki

on the local machine

sparql endpoints
File-based SPARQL endpoint
The File-Based SPARQL Endpoint creates an isolated, disk-based database (using Apache Jena TDB2) populated with RDF data. The configuration supports selecting individual files or recursively scanning entire directories.

The database is automatically updated upon query execution, but only if changes are detected in the corresponding RDF files. Be aware that the very first query execution will take time to load all files into the store.

Create SPARQL Endpoint From File
You can also create such an endpoint from files and directories in the Project Tool Window.

Select files and/or directories, open context menu with right-click -> RDF and SPARQL -> Create SPARQL Endpoint From File.

A configuration of a file-based SPARQL endpoint with RDF files from the trig/people/ directory relative to the project root directory