NAME
attean_explain - Interactive text UI for exploring SPARQL query evaluation
SYNOPSIS
perl attean_explain query.rq data.ttl [data2.ttl ...]
DESCRIPTION
Parses a SPARQL query, evaluates it against the RDF data in the supplied file(s) using Attean::SimpleQueryEvaluator with result tracing turned on, and then presents a full-screen text interface in which you can move through the query algebra and see, for each algebra expression:
the span of the original query text that produced it (highlighted in the top pane, using the token ids recorded on each algebra node)
the intermediate results it produced during evaluation
The UI is implemented with raw ANSI escape sequences and stty, so it needs no CPAN modules beyond what Attean itself requires (neither Curses nor Curses::UI is installed in this perl).
OPTIONS
--store=CONFIGSpecify the storage information (e.g. for using persistent RDF storage). The format is specified by Attean::parse_store_args.
Examples:
--store="DBI;type=sqlite,database=test.sqlite" --store="Memory"--reformatReformat the query before doing anything with it, then use that text as the query. The original whitespace, line breaks and comments do not survive.
--size COLSxROWSForce the screen geometry instead of asking the terminal.
--results table|compactConfigure whether the results pane shows results in a fixed-width column table or with a compact serialization of each full result.
KEYS
up/k down/j move the selection (algebra focus) or scroll (results focus)
left/h right/l scroll horizontally
PgUp PgDn page up/down g G first/last
Tab switch focus between the algebra and the results pane
+ - shift-up/down make the top pane taller / shorter
f fit the whole query in the top pane, or back to the default
0 top pane back to its default height
v top pane: query source <-> SPARQL serialization of selection
t results: table <-> compact one-result-per-line
w warnings captured during evaluation
? help q quit