Search

From ToxBank API Wiki
(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
 
       tb:searchTerm "free text search" ;
 
       tb:searchTerm "free text search" ;
 
       tb:target tb:Protocol .
 
       tb:target tb:Protocol .
 
=== Options ===
 
 
(not mutually exclusive)
 
 
GET parameters:
 
Free text search, language could be similar to [http://www.google.co.uk/advanced_search Google advanced search]
 
 
GET or POST parameters, defining SPARQL
 
[http://www.w3.org/TR/rdf-sparql-query/ SPARQL]
 
  
 
== Search ==
 
== Search ==

Revision as of 20:36, 5 December 2011

Search


Contents

Query

Query language

Suggestion:

   :someQuery a tb:Query ;
     tb:hasKeyword <keywordUri1>, <keywordUri2> ;
     tb:searchTerm "free text search" ;
     tb:target tb:Protocol .

Search

Description Search an ad hoc query
Resource Search
Method GET
URI /search
Parameters See query language
Header Parameters subjectid:SECURITY-TOKEN
Media Type (input)
Results URIs of the results
Media Type (output) text/uri-list
Status code 200,400,401,402,403

Links: Page, Edit with form



Search Protocols

Protocols


Description Search protocols
Resource Query
Method GET
URI /query/protocols
Parameters TBD, search parameters, page parameters
Header Parameters subjectid:SECURITY-TOKEN
Media Type (input) application/x-www-form-urlencoded, RDF, JSON
Results URIs of the protocols found, or in other supported format
Media Type (output) text/uri-list, RDF, JSON
Status code 200,400,401,402,403

Links: Page, Edit with form



Search Studies

Study

Description Search studies
Resource Query
Method GET
URI /query/study
Parameters TBD, search parameters, page parameters
Header Parameters subjectid:SECURITY-TOKEN
Media Type (input) application/x-www-form-urlencoded, RDF, JSON
Results URIs of the studies found, or in other supported format
Media Type (output) text/uri-list, RDF, JSON
Status code 200,400,401,402,403

Links: Page, Edit with form



Search Data

Data Assays


Description Search data
Resource Query
Method GET
URI /query/data
Parameters TBD, search parameters, page parameters
Header Parameters subjectid:SECURITY-TOKEN
Media Type (input) application/x-www-form-urlencoded, RDF, JSON
Results URIs of the datasets found, or in other supported format
Media Type (output) text/uri-list, RDF, JSON
Status code 200,400,401,402,403

Links: Page, Edit with form



Create a predefined query

  1. REDIRECT Search:SaveQuery

Links: Page, Edit with form



Keyword hierarchy

Web service access to ontologies

Filtering the query

TBD

Alerts

An Alert is defined by Query URI ,frequency and an User to be notified.