Query Workbench¶
The Query Workbench is an Strixonomy React panel for running SQL-like catalog queries, SPARQL, and DL Query (Manchester class expressions) against your indexed workspace. Queries execute in Strixonomy via LSP (strixonomy/query, strixonomy/sparql, strixonomy/dlQuery).
DL Query (v0.24+)
DL mode provides Protégé-style Manchester class expressions with Instances / Subclasses / Superclasses / Equivalents tabs (asserted or inferred). Details: DL Query.
SQL-like, not full SQL
The SQL mode uses virtual tables with a small subset of SQL: single-table SELECT, limited WHERE (=, !=, AND/OR), no JOIN, ORDER BY, GROUP BY, LIKE, or functions. Full details: SQL reference.
Open the workbench¶
- Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) → Strixonomy: Open Query Workbench - Or open Query Workbench from the Command Palette after First success and run
SELECT short_name FROM classes
Modes¶
| Mode | Engine | Use for |
|---|---|---|
| SQL | Strixonomy virtual tables | Catalog queries (classes, properties, diagnostics, …) |
| SPARQL | Oxigraph over indexed triples | RDF graph patterns |
| DL Query | Reasoner (strixonomy/dlQuery) | Manchester class expressions → Instances / Subclasses / Superclasses / Equivalents |
Toggle Mode at the top of the panel. Starter templates load when you switch modes.
SQL quick start¶
SELECT short_name, labels FROM classes
Virtual table schemas: Strixonomy SQL views · SQL reference.
SPARQL quick start¶
SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10
More examples: SPARQL reference · Query cookbook.
DL Query quick start (v0.24+)¶
Enter a Manchester expression such as Person and hasPet some Dog, choose asserted or inferred, and run. Results appear in the four tabs. More: DL Query.
Schema browser (v0.13)¶
When the workspace is indexed, the Query Workbench shows a collapsible Schema sidebar (SQL mode only):
- Expand a table name to see columns and types.
- Click a column to insert its name into the query editor.
- Click Insert table query for
SELECT * FROM <table>.
Schema metadata comes from LSP strixonomy/listSqlSchema, including Horned-OWL axiom tables (domain_axioms, range_axioms, restrictions, …). See SQL reference.
Cross-panel focus (v0.13)¶
Selecting an entity in the explorer updates Current Focus across open React panels (Inspector, Graph) via the extension-host focus relay. You do not need to re-select the same entity in each panel.
Results¶
- Results appear in a table below the query editor.
- If the server row cap (100,000 rows) is hit, a banner shows Results truncated at server row limit.
- Export CSV or Export JSON copies the current result to the clipboard.
Saved queries and history¶
- Save Query — name and store the current query in workspace state.
- Saved / History dropdowns reload prior queries.
- History length is controlled by the
strixonomy.queryHistoryLimitsetting (default 20).
CLI equivalent¶
strixonomy query . "SELECT short_name, labels FROM classes"
strixonomy sparql . "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"
strixonomy dl-query "Person and hasPet some Dog" --profile dl
See Rust & CLI guide.