IASL-BNER API follows a RESTful API design. You can use our IASL-BNER via standard HTTP POST/GET methods. For example, to use BNER for recognizing cell line, cell type, DNA, protein and RNA, you can send an HTTP GET request likes:
GET https://iasl-btm.iis.sinica.edu.tw/BNER/API/NER?text=Signal transducer and activator of transcription 5 refers to two highly related proteins , STAT5A and STAT5B , which are part of the seven-membered STAT family of proteins .
Here are a few parameters that are common to all APIs.
# | Parameter name | Parameter type | Description |
---|---|---|---|
1 | text | string | a sentence or a phrase of sentence |
The result of IASL-BNER API is represented using JSON formats. For example, the result of the above GET request will be:
[{"position":0,"length":50,"text":"Signal transducer and activator of transcription 5","NE_type":"protein"},{"position":91,"length":6,"text":"STAT5A","NE_type":"protein"},{"position":102,"length":6,"text":"STAT5B","NE_type":"protein"},{"position":148,"length":11,"text":"STAT family","NE_type":"protein"}]
While each result of API has its own representation, the common properties are as follows:
# | Parameter name | Parameter type | Description |
---|---|---|---|
1 | position | int | the start position of a BNE |
2 | length | int | the text length of a BNE |
3 | NE_type | string | the type of a BNE |
4 | concept_name | string | the concept name of a word/phrase |
Available APIs are as follows:
Query BNEs:
GET https://iasl-btm.iis.sinica.edu.tw/BNER/API/NER?text=Signal transducer and activator of transcription 5 refers to two highly related proteins , STAT5A and STAT5B , which are part of the seven-membered STAT family of proteins .
Query concepts:
GET https://iasl-btm.iis.sinica.edu.tw/BNER/API/Concept?text=Signal transducer and activator of transcription 5 refers to two highly related proteins , STAT5A and STAT5B , which are part of the seven-membered STAT family of proteins .