ZINC15:Syntax: Difference between revisions
Jump to navigation
Jump to search
(asdf) |
(asd) |
||
Line 3: | Line 3: | ||
{{TOCright}} | {{TOCright}} | ||
= Overall | = Overall Syntax = | ||
The general form of the ZINC15 URL is: | The general form of the ZINC15 URL is: | ||
'''http[s]:// | |||
'''http[s]://zinc15.docking.org/<RESOURCE>(.<FORMAT>[:<FIELDS>]|/<VIEW_TEMPLATE>.html)?<PREDICATE_LIST>[&<PAGE_OPTIONS>] | |||
* | The items in [ square brackets ] are optional. The items in < angled braces > are each described below. | ||
* | |||
* | * <RESOURCE> is an object type, such as molecules, catalogs or genes, and are fully described here: [[ZINC15:Resources]] | ||
* | |||
* <FORMAT> is one of the supported formats, such as smi, sdf, csv, fully described here: [[ZINC15:Formats]]. If a format is omitted, a webpage is implicitly requested. | |||
* <FIELDS> are individual properties, including calculated ones, and are described together with the [[ZINC15:Resources]] to which they belong. | |||
[[ZINC15:properties]] Not all properties make sense in all resource contexts. [[ZINC15:examples]] are provided. Each resource has default fields, if none are specified. | |||
* <VIEW_TEMPLATE> is one of (tile, table, detail, etc.) (only available if the underlying template exists); where items in [ square brackets ] are optional, and: | |||
[[ZINC15:Variants]]. | |||
* <PREDICATE_LIST> is a query string, one or more of <PREDICATE> delimited by &<PREDICATE> is <ATTRIBUTE>[:<OPERATOR>[;<OPERATOR_ARGS>]]=<THRESHOLD> | |||
* [[ZINC15:Page Controls]] are optional, and are used to qualify how a search is to be performed and formatted for the page. | * [[ZINC15:Page Controls]] are optional, and are used to qualify how a search is to be performed and formatted for the page. | ||
* [[ZINC15:Constraints]] are optional, and may be qualified with [[ZINC15:Query operators]] | * [[ZINC15:Constraints]] are optional, and may be qualified with [[ZINC15:Query operators]] | ||
= Reserved words = | = Reserved words = | ||
Line 23: | Line 33: | ||
= Examples = | = Examples = | ||
We illustrate the use of the website and the API with [[ZINC15:examples]]. | We illustrate the use of the website and the API with [[ZINC15:examples]]. | ||
Back to [[ZINC15]] | Back to [[ZINC15]] | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:ZINC]] | [[Category:ZINC]] |
Revision as of 21:26, 25 March 2015
ZINC 15 uses a uniform set of rules to interpret the URL allowing both web pages and a machine-readable application programming interface (API). This page describes both.
Overall Syntax
The general form of the ZINC15 URL is:
http[s]://zinc15.docking.org/<RESOURCE>(.<FORMAT>[:<FIELDS>]|/<VIEW_TEMPLATE>.html)?<PREDICATE_LIST>[&<PAGE_OPTIONS>]
The items in [ square brackets ] are optional. The items in < angled braces > are each described below.
- <RESOURCE> is an object type, such as molecules, catalogs or genes, and are fully described here: ZINC15:Resources
- <FORMAT> is one of the supported formats, such as smi, sdf, csv, fully described here: ZINC15:Formats. If a format is omitted, a webpage is implicitly requested.
- <FIELDS> are individual properties, including calculated ones, and are described together with the ZINC15:Resources to which they belong.
ZINC15:properties Not all properties make sense in all resource contexts. ZINC15:examples are provided. Each resource has default fields, if none are specified.
- <VIEW_TEMPLATE> is one of (tile, table, detail, etc.) (only available if the underlying template exists); where items in [ square brackets ] are optional, and:
ZINC15:Variants.
- <PREDICATE_LIST> is a query string, one or more of <PREDICATE> delimited by &<PREDICATE> is <ATTRIBUTE>[:<OPERATOR>[;<OPERATOR_ARGS>]]=<THRESHOLD>
- ZINC15:Page Controls are optional, and are used to qualify how a search is to be performed and formatted for the page.
- ZINC15:Constraints are optional, and may be qualified with ZINC15:Query operators
Reserved words
- list, tile, subsets, help, overview - these have special meaning in the URL, and can never be the names of resources or their columns.
Examples
We illustrate the use of the website and the API with ZINC15:examples.
Back to ZINC15