tags:

views:

100

answers:

1

Hi, can anyone help me to figure out how to get query results back in json or xml etc when using the Arc sparql endpoint?

I am using the following code to get the result of my query:

$endPoint->handleQueryRequest($query);
$result = $endPoint->getResult();

I have looked through the code and tried passing some paramaters - trial and error - but can not get anywhere.

+1  A: 

Its ok, i have figured it out - I was using an endpoint when I should have just been using a store.

It would still be interesting to see how you can query the endpoint directly through a php class - i.e. not through a get or post request - and specify what format the results should be in.

David
You could ask @bengee on Twitter.
Gordon