Rasqal RDF Query Library - Rasqal RDF parser utility


NAME

roqet − Rasqal RDF query utility

SYNOPSIS

roqet [OPTIONS] <query-URI> [base-URI]

EXAMPLE

roqet example.rdql
roqet -q x.rdql http://example.org/base/
roqet -i sparql -o xml http://example.org/query.rq


DESCRIPTION

The roqet utility allows querying of RDF content using the Rasqal RDF query library, printing the results in variable bindings, RDF graph or boolean format. The query is read from query-URI and the optional base-URI is used as the base URI of the query if present.

OPTIONS

roqet uses the usual GNU command line syntax, with long options starting with two dashes (‘-’) if supported by the getopt_long function. Otherwise only the short options are available.

−h, −−help

Show a summary of the options.

−f, −−format FORMAT

Set the graph query result output FORMAT to ’ntriples’ (N-Triples, default), ’rdfxml’ (RDF/XML) or ’rss-1.0’ (RSS 1.0, also an RDF/XML syntax).

The list of formats depends on what libraptor(3) was built with. −i, −−input LANGUAGE Set the input query LANGUAGE to one of ’rdql’ (RDF Data Query Language, default) and ’sparql’ (SPARQL Query Language for RDF). The list of supported languages is given in the help summary given by −h.

−o, −−output FORMAT

Set the variable bindings query result output FORMAT to ’simple’ for a simpel text format (default) or ’xml’ for the SPARQL variable bindings XML result format.

−c, −−count

Only count the triples and produce no other output.

−d, −−dump-query

Print a debugging dump of the constructed query.

−n, −−dryrun

Prepare the query but do not execute it.

−q, −−quiet

No extra information messages.

−s, −−source URI

Query against RDF data at source URI by adding it to the list of query data source URIs. FORMAT to ’simple’ (default) or ’xml’ (an experimental XML format)

−v, −−version

Print the rasqal library version and exit.

−w, −−walk-query

Walk the query and display it using the API.

CONFORMING TO

RDQL RDF Data Query Language, HP Labs, http://www.w3.org/Submission/2004/SUBM-RDQL-20040109/
SPARQL Query Language for RDF
, Edited by Eric Prud’hommeaux and Andy Seaborne, W3C Working Draft, 12 October 2004. Work in progress. http://www.w3.org/TR/2004/WD-rdf-sparql-query-20041012/ SPARQL Variable Binding Results XML Format, Edited by Dave Beckett, W3C Working Draft, 21 December 2004. WOrk in progress. http://www.w3.org/TR/2004/WD-rdf-sparql-XMLres-20041221/

SEE ALSO

librasqal(3),rasqal-config(1),libraptor(3)

CHANGES

AUTHOR

Dave Beckett
Institute for Learning and Research Technology (ILRT)
University of Bristol


Copyright 2002-2005 Dave Beckett, Institute for Learning and Research Technology, University of Bristol