This is the command 4s-queryJ that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
4s-query — Run SPARQL queries on a 4store storage backend
SYNOPSIS
4s-query kb-name [-f format] [-O optimisation-level] [-I insert-mode] [-r] [-s soft-limit]
[-b base-URI] [-e] [-P] [query]
-f Set the format to output results it, options are "sparql", "text", "json",
and "testcase"
-O, --opt-level
Set the optimisation level of the query engine, in the range 0-3.
-I, --insert
Treat CONSTRUCT statements as INSERT statements. This feature is highly
experimental and largely untested.
-r, --restricted
Enable query complexity restriction mode
-s, --soft-limit
Override default soft limit on search breadth
-d, --default-graph
Enable SPARQL default graph support
-b, --base
Set base URI for queries
-e, --explain
Return an explanation of the query planner's decisions
-P Enable programatic IO mode
INTERACTIVE MODE
If [query] is omitted then 4s-query goes into interactive mode, suitable for trying queries
from the command line.
-P enables programmatic interactive mode, suitable for interfacing with processes via stdin
and stdout. Queries are sent as UTF-8 bytes, terminated with "#EOQ" on a line of it's own,
results are returned, ending with "#EOR". Interacting with 4store in this way is more
efficient than using the SPARQL protocol, but non-standard.
Use 4s-queryJ online using onworks.net services