An RDF Datasource is a SPARQL endpoint service that gives you the ability to define and access additional repositories within a single deployment. For example /sparql is the Datasource that gives you read/write access to the default Sesame repository that Callimachus uses. By creating a a new Datasource you are creating a new, empty Sesame native store within your Callimachus instance.

Managing RDF Datasources

Creating an RDF Datasource

Steps for creating an RDF Datasource in Callimachus:

1. Click the "Create" button and choose "Datasource"

2. Fill out the relevant fields in the Datasource create form

Field Description Sample Value
Label Value used for title of Datasource New Datasource
Comment Value used for description of Datasource. Appears in top right corner when viewing the Datasource. A new instance of a Datasource
SPARQL Query Whether or not the Datasource allows Read operations against it. Checked
SPARQL Update Whether or not the Datasource allows Write operations against it.  Checked

3. Click "Create" at the bottom of the page

After clicking create you will be brought to a page viewing your new Datasource. From here you can perform any number of operations which are described in more detail in Using a Datasource.

Editing an RDF Datasource

Once an RDF Datasource has been created you can go back and edit any of the values you entered by selecting the "Edit" tab when viewing the RDF Datasource. You can change both the Label and the Comment as well as whether or not Read and Write operations can be performed against the Datasource.

Note: If you plan to use this RDF Datasource in Named Queries or Pipelines, be sure to set the the appropriate permissions under the Main menu by selecting "Permissions" and adding the "System" user to the "Editor" group. 

Deleting an RDF Datasource

You can delete an RDF Datasource at any time by navigating to the "Edit" tab of the desired RDF Datasource.

Warning! If you delete an RDF Datasource, any data you have loaded into it will also be deleted.

Using an RDF Datasource

Callimachus RDF Datasources expose all SPARQL 1.1 commands and most SPARQL Protocol and Graph Store HTTP Protocol (using indirect graph identification) requests. The most common you probably will find yourself using to get started are LOAD and SELECT. The interface is just a large textarea in which you can type your commands. It looks like this:

This RDF Datasource is now saved to the Callimachus instance and can be accessed programatically via FROM clauses in SPARQL queries and XProc Pipelines, for example. Also, if you are working with a small dataset you can perform the following query to ensure the RDF Datasource is working as expected:

    ?thing a ?type 
} ORDER BY ?type LIMIT 50