Amazon Neptune
User Guide (API Version 2017-11-29)

SPARQL HTTP Content Types

You can choose the MIME type of a SPARQL response by sending an "Accept: type" header with the request. For example, curl -H "Accept: application/nquads ...".

The available content types depend on the SPARQL query type.

SELECT

  • application/sparql-results+json Default

  • application/sparql-results+xml

  • application/x-binary-rdf-results-table

  • text/tab-separated-values

  • text/csv

ASK

  • application/sparql-results+json Default

  • application/sparql-results+xml

  • text/boolean

CONSTRUCT

  • application/n-quads Default

  • application/rdf+xml

  • application/ld+json

  • application/n-triples

  • text/turtle

  • text/n3

  • application/trix

  • application/trig

  • application/sparql-results+json

DESCRIBE

  • application/n-quads Default

  • application/rdf+xml

  • application/ld+json

  • application/n-triples

  • text/turtle

  • text/n3

  • application/trix

  • application/trig

  • application/sparql-results+json