API Investigation:SparqlInvestigaton

From ToxBank API Wiki
(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|REST_resource=Investigation
 
|REST_resource=Investigation
 
|REST_op_method=GET
 
|REST_op_method=GET
|REST_op_uri=/investigation/{id}/sparql/{template_name}
+
|REST_op_uri=/investigation/{id}/sparql/{template_name} or investigation/{id}/sparql/{template_name}/{biosample_id}
|REST_header_param=Accept: one of text/plain (n-triples), text/turtle, application/rdf+xml, subjectid:SECURITY-TOKEN
+
|REST_header_param=Accept: one of < application/sparql-results+xml, application/json, text/uri-list, text/html > , subjectid:SECURITY-TOKEN
|REST_op_result=Investigation metadata in n-triples, turtle or RDF format
+
|REST_op_result=Investigation data as sparql-results+xml json uri-list html
|REST_op_mime_output=text/plain (n-triples), text/turtle, application/rdf+xml
+
|REST_op_mime_output=application/sparql-results+xml application/json text/uri-list text/html
|REST_op_status=200
+
|REST_op_status=200, 400, 401, 404
 
}}
 
}}
 
Get investigation data via predefined SPARQL templates. Add one of investigation_endpoint_technology, investigation_details, factors_by_investigation or characteristics_by_investigation to an investigation plus /sparql/ URI (e.G.: https://services.toxbank.net/investigation/{id}/sparql/investigation_endpoint_technology ) . You may also use camelcase notation for templatenames (e.G.: FactorsByInvestigation).
 
Get investigation data via predefined SPARQL templates. Add one of investigation_endpoint_technology, investigation_details, factors_by_investigation or characteristics_by_investigation to an investigation plus /sparql/ URI (e.G.: https://services.toxbank.net/investigation/{id}/sparql/investigation_endpoint_technology ) . You may also use camelcase notation for templatenames (e.G.: FactorsByInvestigation).

Latest revision as of 09:58, 18 September 2014

Description Get investigation data via predefined SPARQL templates
Resource Investigation
Method GET
URI /investigation/{id}/sparql/{template_name} or investigation/{id}/sparql/{template_name}/{biosample_id}
Parameters
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, 400, 401, 404

Get investigation data via predefined SPARQL templates. Add one of investigation_endpoint_technology, investigation_details, factors_by_investigation or characteristics_by_investigation to an investigation plus /sparql/ URI (e.G.: https://services.toxbank.net/investigation/{id}/sparql/investigation_endpoint_technology ) . You may also use camelcase notation for templatenames (e.G.: FactorsByInvestigation).

Facts about API Investigation:SparqlInvestigatonRDF feed
Acts onInvestigation  +
Has output media typeapplication/sparql-results+xml application/json text/uri-list text/html  +
Has status code200, 400, 401, 404  +
Personal tools