API Investigation:Sparql

From ToxBank API Wiki
Revision as of 17:06, 4 December 2013 by Mrautenberg (Talk | contribs)
Jump to: navigation, search
Description Get information from investigations
Resource Investigation
Method GET
URI investigation/sparql/{template_name}
Parameters params per template:
  • no params needed for investigation_and_characteristics, investigations_and_factors and investigation_and_protocols
  • factorValues: URI array for investigation_by_factors and protocols_by_factors template
  • value: String for investigation_by_characteristic_name, investigation_by_characteristic_value, investigation_by_factors, investigation_by_characteristic and investigation_by_factor
Header Parameters Accept: one of < application/sparql-results+xml, application/json, text/uri-list, text/html > , subjectid:SECURITY-TOKEN
Media Type (input)
Results Investigation data as sparql-results+xml json uri-list html
Media Type (output) application/sparql-results+xml application/json text/uri-list text/html
Status code 200

Get information from published investigations via predifed SPARQL queries. (e.G.: https://services.toxbank.net/investigation/sparql/investigation_and_protocols ) . You may also use camelcase notation for templatenames (e.G.: InvestigationAndProtocols).

cURL example

curl -X GET -k -H 'Accept:application/json' -H 'subjectid:MYTOKEN' https://services.toxbank.net/investigation/sparql/investigation_and_protocols
Facts about API Investigation:SparqlRDF feed
Acts onInvestigation  +
Has output media typeapplication/sparql-results+xml application/json text/uri-list text/html  +
Has status code200  +
Personal tools