Jean-Marc Vanel created JENA-674:
------------------------------------

             Summary: 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 :

  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())
    }
  }


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
(v6.2#6252)

Reply via email to