Each service is defined to have 1 or more named output types which can be selected by specifying the appropriate media type in the client's accept header. Additionally, services with more than one output type will also support a query parameter called output. The value of this parameter is the lowercase name of the desired output type (see table, below). Clients that specify the output parameter will always receive that output type regardless of the Accept headers they send. In the documentation for each service the list of output types is always given in preferred order.
|
| Name | Description | Response Content Type | Accept Header | Output Parameter |
|---|---|---|---|---|
| HTML | The HTML response consists of an XHTML document and can be obtained either by specifying mime types of text/html or application/xhtml+xml in the request's accept header or by supplying an "output" query parameter with a value of "html". The response is sent with a content type header equal to the one matched in the accept header or text/html if the output parameter was specified. | text/html orapplication/xhtml+xml(see description) | text/html orapplication/xhtml+xml | html orxhtml |
| RDF | The response consists of an RDF/XML document | application/rdf+xml | application/rdf+xml | rdf |
| XML | The response consists of an XML document | application/xml | application/xml | xml |
| RSS | The response consists of an RSS 1.0 document | application/rss+xml | application/rss+xml | rss1 |
| JSON | The response consists of a JavaScript Object Notation (JSON) document | application/json | application/json | json |
| JavaScript | JSONP response where JSON is wrapped in a user supplied callback function | application/javascript | application/javascript or */* | json (plus the user supplied callback value) |
| Turtle | Terse Triple Language | text/turtle | text/turtle | turtle |
| N-Triples | N-Triples | text/plain | text/plain | ntriples |
Note: for backwards compatibility, where the text/turtle media type is listed, the deprecated application/x-turtle media type is also supported, though it is given a lower weighting during content negotiation

© Talis Systems Ltd. 2011 Content is available under