Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that robot query accepts multiple --query options #1233

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading