rsparqlvirtuoso

How to give logindata to SPARQL R function to update virtuoso endpoint?


I want to use R package SPARQL to run set of INSERT queries to a Virtuoso endpoint. How to give username and password to the function and which url to be used? When I tried

tmpRes=SPARQL('myserver:8890/sparql',update=updateQry)

I got error: Error: SPARQL Request Failed


Solution

  • I think you want:

    tmpRes=SPARQL('http://dba:dba@myserver:8890/sparql', query=updateQry)

    note both changes.

    HTH