From e2834d343a656f680f4ac4d0eef3e874d91274e5 Mon Sep 17 00:00:00 2001 From: "J. Allen Baron" Date: Thu, 12 Dec 2024 10:40:33 -0500 Subject: [PATCH] Clarify robot query accepts multiple --query options --- docs/query.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/query.md b/docs/query.md index af385abd6..1aeb3ae08 100644 --- a/docs/query.md +++ b/docs/query.md @@ -31,6 +31,12 @@ CONSTRUCT produces RDF data, if there are any results, defaulting to Turtle form This produces `part_of.ttl`. +The `--query` option can be repeated to execute multiple queries, which may be of different types. + + robot query --input nucleus.owl \ + --query cell_part.sparql results/cell_part.csv \ + --query part_of.sparql results/part_of.ttl + Instead of specifying one or more pairs (query file, output file), you can specify a single `--output-dir` and use the `--queries` option to provide one or more queries of any type. Each output file will be written to the output directory with the same base name as the query file that produced it. For example the `foo.sparql` query file will produce the `foo.csv` file. The output directory must exist. robot query --input nucleus.owl \