rqsh(1p)

rqsh1p

Sparql database shell

Overview

rqsh provides a command-line interface to the SPARQL 1.1 implementation of RDF::Query. It defaults to using an in-memory database, but can be configured to use any database implemented as an RDF::Trine::Store.

Commands

help

Show help information on available commands.

use [backend]

Switch the storage backend (e.g. "use mysql"). You will be prompted to enter any necessary connection/configuration data.

init

Initialize the storage backend (creating necessary indexes, etc.).

set prefix [ns]: [uri]

Set a namespace for use in subsequent queries.

results (table|srx)

Set the serializer used for tabular variable binding results.

serializer [format]

Set the serializer used for RDF results (e.g. "serializer turtle").

debug

Print all the quads in the storage backend.

parse [sparql]

Print the parsed algebra for the SPARQL 1.1 query/update.

explain [sparql]

Print the execution plan for the SPARQL 1.1 query/update.

time [command]

Time the execution of the command.

execute <URI>

Execute the SPARQL update/query obtained by dereferencing URI.

SELECT ...
ASK ...
CONSTRUCT ...
DESCRIBE ...

Execute the SPARQL 1.1 query.

INSERT ...
DELETE ...
LOAD <uri>
CLEAR ...
COPY ...
MOVE ...

Execute the SPARQL 1.1 update.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9–10
  3. 11
  4. 12
  5. 13

From librdf-query-perl 2.919-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.