roqet command examples

roqet command examples

roqet – Rasqal RDF query utility

#roqet sparql-query-file.rq

Run a SPARQL query contained in the local file sparql-query-file.rq. The data used would be described in FROM statements in the query file.

#roqet -q -i sparql http://example.org/sparql-query.rq

Run a SPARQL query that is in the web at URI http://example.org/sparql-query.rq without an extra messages (quiet, -q).

#roqet -q query-file.rq http://example.org/base/

Run an query (default languge SPARQL) from a local file query-file.rq but using base URI http://example.org/base/ to resolve any relative URIs.

roqet -q -i sparql -r xml http://example.org/sparql-query.rq

Run a SPARQL query that is in the web at URI http://example.org/sparql-query.rq and format the results in the SPARQL Query Results XML format with no extra messages.

roqet -i sparql -e 'SELECT * WHERE { ?s ?p ?o }' -D stuff.rdf

Run a SPARQL query given on the command line against data in the file stuff.rdf. The type of the file will be guessed and likely is of format RDF/XML.

Leave a Reply

Your email address will not be published. Required fields are marked *