calipho-sib/nextprot-api

SparqlController should only contain the proxy

Opened this issue · 0 comments

adapt to existing query (parameter queryId / parameter query inline)
Standard parameters
query
format (default=text-html, json, xml, json, ttl, csv)
timeout
query_id: if exists, query parameter is ignored
cache_enabled (default true) : no cache is used if set to false (test & debug)
sparql_endpoint (to override the default sparql endpoint for test purpose)
prefixes (default=false) if = true, list of standard nextprot SPARQL prefixes are inserted at the beginning of the query

override timeout param:
If timeout parameter value > 60_5 (sec), set to 560_5 (sec)
if doesnt' exist, set to 60* 5 (sec)

query params should be logged to file requests.log together with: user (if logged), response time and rows returned