Skip to content

Commit

Permalink
Clarify robot query accepts multiple --query options
Browse files Browse the repository at this point in the history
  • Loading branch information
allenbaron committed Dec 12, 2024
1 parent 35b830f commit e2834d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ CONSTRUCT produces RDF data, if there are any results, defaulting to Turtle form

This produces <a href="/examples/part_of.ttl" target="_blank">`part_of.ttl`</a>.

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 \
Expand Down

0 comments on commit e2834d3

Please sign in to comment.