[ 
https://issues.apache.org/jira/browse/JENA-674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne closed JENA-674.
------------------------------

> add arguments for user & password in arq.rsparql command line
> -------------------------------------------------------------
>
>                 Key: JENA-674
>                 URL: https://issues.apache.org/jira/browse/JENA-674
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Cmd line tools
>            Reporter: Jean-Marc Vanel
>            Priority: Minor
>
> Here is a (Scala) Jena code sample that works for authentication in SPARQL :
> {noformat}
>   val queryExecution: QueryExecution =
>     QueryExecutionFactory.sparqlService(service, query)
>   setContext(queryExecution)
>   val r = queryExecution.execSelect()
>   private def setContext(queryExecution: QueryExecution) {
>     queryExecution match {
>       case qe: QueryEngineHTTP => 
> qe.setBasicAuthentication("me_myself_an_eye", "????".toCharArray())
>     }
>   }
> {noformat}
> Also , it would be useful to add an argument for giving the SPARQL as a 
> string .
> Finally, it seems that the doc. for command line tools is no more on Apache 
> site. I found this doc outside :
> http://richard.cyganiak.de/blog/wp-content/uploads/2013/09/jena-sparql-cli-v1.pdf



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to