|
|
JSON = 'json'
to be used to set the return format to JSON
|
|
|
XML = 'xml'
to be used to set the return format to XML (SPARQL XML format or
RDF/XML, depending on the query type).
|
|
|
TURTLE = 'n3'
to be used to set the return format to Turtle
|
|
|
N3 = 'n3'
to be used to set the return format to N3 (for most of the SPARQL
services this is equivalent to Turtle)
|
|
|
_allowedFormats = ['json', 'xml', 'n3', 'n3']
|
|
|
POST = 'POST'
to be used to set HTTP POST
|
|
|
GET = 'GET'
to be used to set HTTP GET.
|
|
|
_allowedRequests = ['POST', 'GET']
|
|
|
SELECT = 'SELECT'
to be used to set the query type to SELECT.
|
|
|
CONSTRUCT = 'CONSTRUCT'
to be used to set the query type to CONSTRUCT.
|
|
|
ASK = 'ASK'
to be used to set the query type to ASK.
|
|
|
DESCRIBE = 'DESCRIBE'
to be used to set the query type to DESCRIBE.
|
|
|
_allowedQueryTypes = ['SELECT', 'CONSTRUCT', 'ASK', 'DESCRIBE']
|
|
|
_SPARQL_DEFAULT = ['application/sparql-results+xml', 'applicat...
|
|
|
_SPARQL_XML = ['application/sparql-results+xml']
|
|
|
_SPARQL_JSON = ['application/sparql-results+json', 'text/javas...
|
|
|
_RDF_XML = ['application/rdf+xml']
|
|
|
_RDF_N3 = ['text/rdf+n3', 'application/n-triples', 'applicatio...
|
|
|
_ALL = ['*/*']
|
|
|
_RDF_POSSIBLE = ['application/rdf+xml', 'text/rdf+n3', 'applic...
|
|
|
_SPARQL_POSSIBLE = ['application/sparql-results+xml', 'applica...
|
|
|
_returnFormatSetting = ['output', 'results']
|