Documentation‎ > ‎

API export formats

S3DB can export data from any of the API functions (see API functions) in any of these formats by specifying the argument along with the API functions: ..php?format=[format]


HTML

&format=html

Exports the data as an html table without style

HTML basic style

&format=html.pretty

Exports the data as an html table with a simple table style

HTML External Source Style

&format=html.http//mycss/someCss.css

Exports the data as an html with style defined in the document someCss.css

tab

&format=tab

XML

&format=xml

Exports the data as an xml document


RDF/XML

&format=rdf

Exports the data as an RDF/XML document


RDF/N3

&format=n3

Exports the data as an RDF/Ntriples document


RDF/Turtle

&format=turtle


Exports the data as an RDF/Turtle document

JSON

&format=json

Export the data as a JSON function.

&jsonp=callback

Change the name of the function returned with JSON to [callback]
e.g callback([{"project_id":"126"}])

&onload=user_function

Adds [function] as an extra callback to be run after the JSON function
e.g. s3db_json([{"project_id":"126"}]); user_function()

&jsonpp=user_var
Adds [function] as an extra callback to be run after the JSON function
e.g. s3db_json([{"project_id":"126"}], "user_var")

rdf-json

&format=rdf-json

Export the data in RDF-JSON format.

Optional
&jsonp=callback

Change the name of the function returned with JSON to [callback]
e.g callback([{"project_id":"126"}])

&onload=user_function

Adds [function] as an extra callback to be run after the JSON function
e.g. s3db_json([{"project_id":"126"}]); user_function()

&jsonpp=user_var
Adds [function] as an extra callback to be run after the JSON function
e.g. s3db_json([{"project_id":"126"}], "user_var")

SIF

&format=sif

Export data in cytoscape readable format SIF

Push to Header

&out=header

Forces the download of the document instead of displaying it on the browser

Comments