It seems there is no complete working example on how to do this on the
Openlink Virtuoso documentation.

Below is the solution I have composed with the help of others. I hope this
helps other not to spend days coming a solution for this like I have.

date;time curl -X POST "http://localhost:8890/sparql"; -H "Content-Type:
application/x-www-form-urlencoded" -H
"Accept:application/sparql-results+json" --data-urlencode 'format=json'
--data-urlencode 'default-graph-uri='
--data-urlencode 'query=SELECT * FROM <> WHERE {
?s ?p ?o } LIMIT 5' \

On Mon, Jul 1, 2019 at 6:37 PM Allan Kamau <> wrote:

> I am looking for extensive "sparql-graph-crud" documentation or other
> mechanism which details how to submit queries to Openlink Virtuoso SPARQL
> endpoint.
> In short, I would like to learn how to send SPARQL queries (with WHERE
> clauses) via curl (over HTTP) to Openlink Virtuoso and obtain the results
> in JSON.
> For example, I would like to submit a query such as "SELECT * FROM
> where { ?s ?p ?o } LIMIT 100" to Openlink
> Virtuoso at localhost.
> The example (below) provided on the OpenLink Virtuoso page is not
> sufficient for my needs.
> curl --verbose --url "
> http://localhost:8890/sparql-graph-crud?graph-uri=urn:graph:urn:graph:update:test:post
> "
> Allan.
Virtuoso-users mailing list

Reply via email to