Difference between revisions of "Sample Code Cookbook"

From NCBO Wiki
Jump to navigation Jump to search
Line 1: Line 1:
This page lists use cases and provides examples of how these questions can be answered using NCBO software (web services and widgets), with links to code samples and documentation.  
+
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 ==
 
== Use Cases ==
 
* I have a list of terms that were used to annotate a data set, how can I see if any of these terms exist in standard ontologies?
 
* I have a list of terms that were used to annotate a data set, how can I see if any of these terms exist in standard ontologies?
** Use the [http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Search_services Search Web service] to send your list of terms to BioPortal to identify if any are found in BioPortal ontologies.
+
** Use the Search Web service to search for your term in all ontologies in BioPortal. If you have a small list of terms, searching each term individually via the [http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Search_services BioPortal Search UI] may be sufficient. Otherwise, for a long list of terms, use the Search Web service directly.  
*** The Search web service is described here: http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Search_services  
+
*** Search Web service documentation: http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Search_services
 
*** Example code: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2F  
 
*** Example code: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2F  
  
* I would like to find all terms mapped from my ontology to all ontologies in BioPortal
+
* I would like to find all terms mapped from my ontology to other ontologies in BioPortal
** Use the [http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Mapping_Service Mapping web service],
+
** Use the Mapping web service to find mapped terms. These mappings include mapping generated manually (DbXrefs) and programatically (LOOM).
*** Example code at: https://bmir-gforge.stanford.edu/gf/project/client_examples/scmsvn/?action=browse&path=%2Ftrunk%2FPerl%2FExtractMappings%2F  
+
*** Mapping Web service documentation: http://www.bioontology.org/wiki/index.php/NCBO_REST_services#Mapping_Service  
 +
*** 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 which papers from PubMed to curate to add new information to my database.  
+
* I am the curator for a database and need to triage which papers to curate from PubMed to add new information 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.  
 
*** See http://www.bioontology.org/wiki/index.php/Annotator_Web_service for a description of the web service  
 
*** See http://www.bioontology.org/wiki/index.php/Annotator_Web_service for a description of the web service  

Revision as of 21:35, 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 am the curator for a database and need to triage which papers to curate from PubMed to add new information to my database.
  • 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.
  • I would like to include the graph display of my ontology on my web site.