Class: ConceptWikiSearch

ConceptWikiSearch

new ConceptWikiSearch(baseURL, appID, appKey)

Parameters:
Name Type Description
baseURL string URL for the Open PHACTS API
appID string Application ID for the application being used. Created by https://dev.openphacts.org
appKey string Application Key for the application ID.
Author:
License:
Source:

Methods

byTag(query, limit, branch, type, callback)

Performs a free text search to resolve the identity of an entity as specified by the given type in a certain branch.
Parameters:
Name Type Description
query string Query of at least three characters.
limit string The maximum number of search results.
branch string The branch of ConceptWiki to search in: 1 = Community, 2 = UMLS, 3 = SwissProt, 4 = ChemSpider, 5 = Computer Inferred, 6 = Pathway Ontology, 7 = WikiPathways.
type string The type of entity for which is search: 07a84994-e464-4bbf-812a-a4b96fa3d197 for 'Chemical Viewed Structurally', eda73945-b112-407e-811a-88448966834f for 'Disease or Syndrome', or eeaec894-d856-4106-9fa1-662b1dc6c6f1 for 'Amino Acid, Peptide, or Protein'
callback requestCallback Function that will be called with the result.
Source:

freeText(query, limit, branch, callback)

Performs a free text search to resolve the identity of an entity in a certain branch.
Parameters:
Name Type Description
query string Query of at least three characters.
limit string The maximum number of search results.
branch string The branch of ConceptWiki to search in: 1 = Community, 2 = UMLS, 3 = SwissProt, 4 = ChemSpider, 5 = Computer Inferred, 6 = Pathway Ontology, 7 = WikiPathways.
callback requestCallback Function that will be called with the result.
Source: