[Mulgara-general] SPARQL Endpoint format parameter
Paul Gearon
gearon at ieee.org
Sat Jul 25 04:47:43 UTC 2009
Yes, this was a known bug in 2.1.1. Selecting other formats would only
work on CONSTRUCT queries, not for SELECT or ASK. Using 2.1.2 should
fix it. Please let me know if it doesn't.
Also (and this is addressed to everyone, not you specifically Chuck),
because there's been recent confusion on this, I'd like to point out
that "default-graph-uri" is for overriding the graph used in the
query, not for setting a default fallback value. And the main reason
for the "format" parameter is for use with browsers. Everything else
should use content negotiation.
Regards,
Paul
On Jul 24, 2009, at 2:16 PM, Chuck Borromeo <cborromeo3 at yahoo.com>
wrote:
> Hello,
> How do you specify the format parameter when retrieving data from a
> SPARQL endpoint? I am using the following URL to access my SPARQL
> endpoint:
>
> http://localhost:8899/sparql/?query=[select statement]&default-graph-
> uri=[default graph name]&format=json
>
> However, all I get back is SPARQL/XML data. I've also tried
> changing it to format=n3, format=rdfxml, to no avail. Is this
> feature no longer supported? I think this should work. I based my
> approach on this web page: http://mulgara.org/trac/wiki/RESTQueries
>
> I'm using mulgara 2.1.1.
>
> Thanks,
> Chuck
>
>
>
>
>
> _______________________________________________
> Mulgara-general mailing list
> Mulgara-general at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-general
More information about the Mulgara-general
mailing list