You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "tpluscode (via GitHub)" <gi...@apache.org> on 2023/05/02 10:08:05 UTC
[GitHub] [jena] tpluscode opened a new issue, #1862: arq: multiple input files without repeating --data
tpluscode opened a new issue, #1862:
URL: https://github.com/apache/jena/issues/1862
### Version
4.8.0
### Feature
When executing queries with `arq` it is possible to provide multiple input files by repeating the `--data` option
This is a not shell-friendly, where I would like to glob a path to load multiple sources in one go
```
arq --query test.rq --data data/*.ttl
```
To make that work, it would be necessary to allow multiple values of `--data`
```
arq --query test.rq --data data/1.ttl data/2.ttl data/3.ttl
```
Can this be implemented?
### Are you interested in contributing a solution yourself?
None
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] SimonBin commented on issue #1862: arq: multiple input files without repeating --data
Posted by "SimonBin (via GitHub)" <gi...@apache.org>.
SimonBin commented on issue #1862:
URL: https://github.com/apache/jena/issues/1862#issuecomment-1644108595
you could also simply do this with your shell :
```
datafiles=(data/*.ttl)
arq "${datafiles[@]/#/--data=}" --query etc...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] tpluscode commented on issue #1862: arq: multiple input files without repeating --data
Posted by "tpluscode (via GitHub)" <gi...@apache.org>.
tpluscode commented on issue #1862:
URL: https://github.com/apache/jena/issues/1862#issuecomment-1532500046
I see. Some CLI tools allow variadic arguments and of they are not last, they would be delimited by a double dash
```diff
-arq --data data/1.ttl --data data/2.ttl "SELECT (Count(*) AS ?C) { ?s ?p ?o }"
+arq --data data/*.ttl -- "SELECT (Count(*) AS ?C) { ?s ?p ?o }"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
[GitHub] [jena] afs commented on issue #1862: arq: multiple input files without repeating --data
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #1862:
URL: https://github.com/apache/jena/issues/1862#issuecomment-1532114037
A plain argument is a query string.
```
arq --query test.rq --data data/1.ttl --data data/2.ttl "SELECT (Count(*) AS ?C) { ?s ?p ?o }"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org