calipho-sib / nextprot-api

neXtProt API - From SIB CALIPHO group; neXtProt project
https://api.nextprot.org
Other
16 stars 4 forks source link

SparqlController should only contain the proxy #1

Open ddtxra opened 10 years ago

ddtxra commented 10 years ago

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