README.md edited online with Bitbucket
This commit is contained in:
parent
480afaab1f
commit
45c25de39a
18
README.md
18
README.md
|
@ -41,16 +41,21 @@
|
|||
> ##2. Query##
|
||||
>
|
||||
> >The Query model represents the chemical structure to be classified. Its attributes are the query label and the query input.
|
||||
> >*The query label is an identifier
|
||||
> >* The query input contains the compound's identifier (optional) and its structural representation, separated by a comma. The chemical structure is represented either in the [Daylight SMILES](http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html) or the [InChI](http://www.iupac.org/home/publications/e-resources/inchi.html) format.
|
||||
> > >The query label is an identifier
|
||||
> > >
|
||||
> > > The query input contains the compound's identifier (optional) and its structural representation, separated by a comma. The chemical structure is represented either in the [Daylight SMILES](http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html) or the [InChI](http://www.iupac.org/home/publications/e-resources/inchi.html) format.
|
||||
> >
|
||||
> >###POST###
|
||||
> >A query can be submitted using the POST method as demonstrated in the following example.
|
||||
> > >curl -d "query[label]=curl_test&query[query_input]=ID1,C(=O)O&submit=Submit query" http://classyfire.wishartlab.com/queries/
|
||||
> >
|
||||
> >where the parameters are:
|
||||
> >*The query label: curl_test
|
||||
> >*The entity identifier: ID1
|
||||
> >*The entity's structure represented in the SMILES format: C(=O)O
|
||||
> >
|
||||
> > >The query label: curl_test
|
||||
> > >
|
||||
> > >The entity identifier: ID1
|
||||
> >
|
||||
> > >The entity's structure represented in the SMILES format: C(=O)O
|
||||
> >
|
||||
> >###GET###
|
||||
> >
|
||||
|
@ -58,8 +63,11 @@
|
|||
> >
|
||||
> >The classification results can be retrieved via a GET method.
|
||||
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/queries/88.json
|
||||
> >
|
||||
> >where the query id is 88 and the result is encoded in the JSON format.
|
||||
> >
|
||||
> >The result can also be returned in the XML format.
|
||||
> >
|
||||
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/queries/88.xml
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue