Difference between revisions of "Sample Code Cookbook"

From NCBO Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
*** Example code: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FPerl%2FExtractMappings%2F  
 
*** Example code: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FPerl%2FExtractMappings%2F  
  
* I am the curator for a database and need to triage papers to identify which papers from PubMed to curate to add new information to my database
+
* I am the curator for a database and need to triage papers to identify which papers from PubMed are most related to my database and a good source of new information to add to my database
** Use the Annotator web service to identify ontology terms in textual data.  
+
** Use the Annotator Web service to identify ontology terms in textual data.  
 
*** Annotator Web service documentation: http://www.bioontology.org/wiki/index.php/Annotator_Web_service   
 
*** Annotator Web service documentation: http://www.bioontology.org/wiki/index.php/Annotator_Web_service   
 
*** Example code: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FJava%2FAnnotator%2F (Java), https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FPython%2FAnnotator%2F (Python)  
 
*** Example code: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FJava%2FAnnotator%2F (Java), https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FPython%2FAnnotator%2F (Python)  
  
 
* I have PubMed abstracts and want to link information in the abstracts to my database of interest.  
 
* I have PubMed abstracts and want to link information in the abstracts to my database of interest.  
** Process the text with the Annotator web service. If your database of interest is included in the NCBO Resource Index you can search the database(s) for records that contain these terms. See http://www.bioontology.org/wiki/index.php/Resource_Index for more details on the Resource Index web service.
+
** Use the Annotator Web service. If your database of interest is included in the NCBO Resource Index you can search the database(s) for records that contain these terms. See http://www.bioontology.org/wiki/index.php/Resource_Index for more details on the Resource Index web service.
  
 
* I have a web form with text fields I would like to populate with ontology terms, e.g. to select relevant Gene Ontology terms.
 
* I have a web form with text fields I would like to populate with ontology terms, e.g. to select relevant Gene Ontology terms.

Revision as of 23:28, 2 November 2010

This page lists use cases and provides examples of how these questions can be answered using NCBO software (web services and widgets), and includes links to code samples and documentation.

Use Cases

  • I have PubMed abstracts and want to link information in the abstracts to my database of interest.
    • Use the Annotator Web service. If your database of interest is included in the NCBO Resource Index you can search the database(s) for records that contain these terms. See http://www.bioontology.org/wiki/index.php/Resource_Index for more details on the Resource Index web service.
  • I have a web form with text fields I would like to populate with ontology terms, e.g. to select relevant Gene Ontology terms.
  • I would like to add the graph display of my ontology on my web site.