How can I pass multiple values for the same parameter in an HTTP request?

Created by Steve Place, Modified on Wed, 25 Oct 2023 at 11:25 AM by Steve Place

This is not possible, but there is a workaround. You can pass your values as a comma-separated string like this:

http://localhost:5820/myDB/query/?query=myQuery&$inputString='value1,value2'

and parse inputString using SPLIT and UNNEST:

SELECT *
{
  UNNEST(SPLIT($inputString, ",") as ?input)
  ?s ?p $input
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article