Search
From ToxBank API Wiki
(Difference between revisions)
(→Query) |
|||
Line 1: | Line 1: | ||
{{REST_resource}} | {{REST_resource}} | ||
− | = | + | = Search = |
== Query language == | == Query language == |
Revision as of 22:50, 5 December 2011
Search |
---|
Contents |
Search
Query language
Suggestion:
:someQuery a tb:Query ; tb:hasKeyword <keywordUri1>, <keywordUri2> ; tb:searchTerm "free text search" ; tb:target tb:Protocol .
Search Ad Hoc Query
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 Query
- REDIRECT Search:SavedQuery
Links: Page, Edit with form
Get Queries
- REDIRECT Search:GetQueryList
Links: Page, Edit with form
Get Query
- REDIRECT Search:GetQuery
Links: Page, Edit with form
Save Query
- REDIRECT Search:SaveQuery
Links: Page, Edit with form
Delete Query
- REDIRECT Search:DeleteQuery
Links: Page, Edit with form
Get Query Resource
Description | Get uri of indexed investigation |
---|---|
Resource | Index |
Method | GET |
URI | /search/index/investigation |
Parameters | resourceUri={resourceUri} |
Header Parameters | subjectid:SECURITY-TOKEN |
Media Type (input) | |
Results | |
Media Type (output) | uri of resource if it exists in index |
Status code | 200,400,401,402,403 |
Links: Page, Edit with form
Index Query Resource
Description | Add resource to query index |
---|---|
Resource | Index |
Method | PUT |
URI | /search/index |
Parameters | resourceUri={resourceUri} |
Header Parameters | subjectid:SECURITY-TOKEN |
Media Type (input) | text/uri |
Results | |
Media Type (output) | |
Status code | 200,400,401,402,403 |
Links: Page, Edit with form
Delete Query Resource
Description | Delete a query resource |
---|---|
Resource | Index |
Method | DELETE |
URI | /search/index |
Parameters | resourceUri={resourceUri} |
Header Parameters | subjectid:SECURITY-TOKEN |
Media Type (input) | |
Results | |
Media Type (output) | |
Status code | 200,400,401,402,403 |
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.
Facts about SearchRDF feed
Acts on | Index + |
HasOperation | Query:Search +, Query:SavedQuerySearch +, Query:GetList +, Query:Get +, Query:Create +, Query:Delete +, Query:GetResource +, Query:IndexResource + and Query:DeleteResource + |
Has output media type | uri of resource if it exists in index + |
Has status code | 200,400,401,402,403 + |