SlideShare a Scribd company logo
Programmatic Access to WormBase Data
Sibyl Gao
WormBase Web APIs
Special URLs that are intended for programs
- Provide data in formats that are easy for programs to handle (JSON etc)
- Will refer to them as Web API or API
Why?
- Avoid repetitive manual tasks
- e.g. write a program to gather information, about a list of identifiers
- Develop custom visualization tools powered WormBase data
How?
- By making an HTTP request to a URL in your programming language
- Example libraries: requests (Python), HTTP::Tiny (Perl), Curl (command line)
RESTful API
- Get the data that powers a
widget or a field on WormBase
curl -X GET --header 'Accept: application/json'
'http://rest.wormbase.org/rest/widget/gene/WBGene00015146/overview'
RESTful API
- documentations on which
URLs you can access
Excerpt:
GraphQL API
(Experimental)
- provides access to
any WormBase data
(not just what we
have a widget for)
curl -X GET --header 'Accept: application/json'
'http://graphql-dev.wormbase.org' --data-urlencode
'query={
gene(id: "WBGene00015146") {
public_name
}
}'
GraphQL API (Experimental)
Features an interactive
development environment
(IDE) to help with query
construction:
- it “speaks” the
GraphQL query language
and understands WB data
schema
- auto-completion
- query validation
Which one to use?
Short answer: RESTful API for now
Long answer:
- RESTful API:
- time-tested
- will continue to be supported
- default choice
- GraphQL API:
- experimental (bugs, instability, changes)
- suitable for exploring data through IDE
Please always sanity check the results your program produces 😃
For More Info
Acknowledgement
Todd Harris
Adam Wright
Matt Russell
Juancarlos Chan

More Related Content

What's hot

Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...
Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...
Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...Hadoop User Group
 
Meet Hadoop Family: part 4
Meet Hadoop Family: part 4Meet Hadoop Family: part 4
Meet Hadoop Family: part 4caizer_x
 
HBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the ArtHBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the ArtMichael Stack
 
My First Hadoop Program !!!
My First Hadoop Program !!!My First Hadoop Program !!!
My First Hadoop Program !!!Ayapparaj SKS
 
hbaseconasia2017: HBase on Beam
hbaseconasia2017: HBase on Beamhbaseconasia2017: HBase on Beam
hbaseconasia2017: HBase on BeamHBaseCon
 
GRIN-Global Status - II, CRI 2016 February
GRIN-Global Status - II, CRI 2016 FebruaryGRIN-Global Status - II, CRI 2016 February
GRIN-Global Status - II, CRI 2016 FebruaryEdwin Rojas
 
Consuming External Content and Enriching Content with Apache Camel
Consuming External Content and Enriching Content with Apache CamelConsuming External Content and Enriching Content with Apache Camel
Consuming External Content and Enriching Content with Apache Cameltherealgaston
 
Always on. 2018-10 Reactive Summit
Always on. 2018-10 Reactive SummitAlways on. 2018-10 Reactive Summit
Always on. 2018-10 Reactive SummitEnno Runne
 
An E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model DatabaseAn E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model DatabaseArangoDB Database
 
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...Michael Stack
 
Technical SEO: .htaccess & 301 Redirects
Technical SEO:  .htaccess & 301 RedirectsTechnical SEO:  .htaccess & 301 Redirects
Technical SEO: .htaccess & 301 RedirectsRob Bertholf
 

What's hot (20)

Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...
Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...
Yahoo! Hadoop User Group - May Meetup - HBase and Pig: The Hadoop ecosystem a...
 
Meet Hadoop Family: part 4
Meet Hadoop Family: part 4Meet Hadoop Family: part 4
Meet Hadoop Family: part 4
 
The ABC of Big Data
The ABC of Big DataThe ABC of Big Data
The ABC of Big Data
 
Apache hive
Apache hiveApache hive
Apache hive
 
HBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the ArtHBaseConEast2016: HBase and Spark, State of the Art
HBaseConEast2016: HBase and Spark, State of the Art
 
My First Hadoop Program !!!
My First Hadoop Program !!!My First Hadoop Program !!!
My First Hadoop Program !!!
 
Apache hive
Apache hiveApache hive
Apache hive
 
hbaseconasia2017: HBase on Beam
hbaseconasia2017: HBase on Beamhbaseconasia2017: HBase on Beam
hbaseconasia2017: HBase on Beam
 
Pig
PigPig
Pig
 
GRIN-Global Status - II, CRI 2016 February
GRIN-Global Status - II, CRI 2016 FebruaryGRIN-Global Status - II, CRI 2016 February
GRIN-Global Status - II, CRI 2016 February
 
Unit 5-apache hive
Unit 5-apache hiveUnit 5-apache hive
Unit 5-apache hive
 
Introduction to Apache Spark
Introduction to Apache SparkIntroduction to Apache Spark
Introduction to Apache Spark
 
Consuming External Content and Enriching Content with Apache Camel
Consuming External Content and Enriching Content with Apache CamelConsuming External Content and Enriching Content with Apache Camel
Consuming External Content and Enriching Content with Apache Camel
 
Always on. 2018-10 Reactive Summit
Always on. 2018-10 Reactive SummitAlways on. 2018-10 Reactive Summit
Always on. 2018-10 Reactive Summit
 
An E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model DatabaseAn E-commerce App in action built on top of a Multi-model Database
An E-commerce App in action built on top of a Multi-model Database
 
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
HBaseConEast2016: How yarn timeline service v.2 unlocks 360 degree platform i...
 
Apache hive
Apache hiveApache hive
Apache hive
 
Rest API
Rest APIRest API
Rest API
 
Technical SEO: .htaccess & 301 Redirects
Technical SEO:  .htaccess & 301 RedirectsTechnical SEO:  .htaccess & 301 Redirects
Technical SEO: .htaccess & 301 Redirects
 
REST API V2
REST API V2REST API V2
REST API V2
 

Similar to Programmatic access to wormbase data WormBase Workshop International Worm Meeting 2017

Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyDesign Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyManageIQ
 
Unleash the power of HTTP with ASP.NET Web API
Unleash the power of HTTP with ASP.NET Web APIUnleash the power of HTTP with ASP.NET Web API
Unleash the power of HTTP with ASP.NET Web APIFilip W
 
Resting on your laurels will get you powned
Resting on your laurels will get you pownedResting on your laurels will get you powned
Resting on your laurels will get you pownedDinis Cruz
 
Asec r01-resting-on-your-laurels-will-get-you-pwned
Asec r01-resting-on-your-laurels-will-get-you-pwnedAsec r01-resting-on-your-laurels-will-get-you-pwned
Asec r01-resting-on-your-laurels-will-get-you-pwnedDinis Cruz
 
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!Evan Mullins
 
Introduction server Construction
Introduction server ConstructionIntroduction server Construction
Introduction server ConstructionJisu Park
 
Drupal South 2015: Introduction to Web Services. Services in Drupal 8.
Drupal South 2015: Introduction to Web Services.  Services in Drupal 8.Drupal South 2015: Introduction to Web Services.  Services in Drupal 8.
Drupal South 2015: Introduction to Web Services. Services in Drupal 8.TechnocratAu
 
Restful web services rule financial
Restful web services   rule financialRestful web services   rule financial
Restful web services rule financialRule_Financial
 
WordCamp Wilmington 2017 WP-API Why?
WordCamp Wilmington 2017   WP-API Why?WordCamp Wilmington 2017   WP-API Why?
WordCamp Wilmington 2017 WP-API Why?Evan Mullins
 
RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)Cisco DevNet
 
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!Evan Mullins
 
Saving Time And Effort With QuickBase Api - Sergio Haro
Saving Time And Effort With QuickBase Api - Sergio HaroSaving Time And Effort With QuickBase Api - Sergio Haro
Saving Time And Effort With QuickBase Api - Sergio HaroQuickBase, Inc.
 
High quality ap is with api platform
High quality ap is with api platformHigh quality ap is with api platform
High quality ap is with api platformNelson Kopliku
 
Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...
Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...
Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...Yahoo Developer Network
 
Using the new WordPress REST API
Using the new WordPress REST APIUsing the new WordPress REST API
Using the new WordPress REST APICaldera Labs
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiTiago Knoch
 

Similar to Programmatic access to wormbase data WormBase Workshop International Worm Meeting 2017 (20)

Design Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John HardyDesign Summit - RESTful API Overview - John Hardy
Design Summit - RESTful API Overview - John Hardy
 
Unleash the power of HTTP with ASP.NET Web API
Unleash the power of HTTP with ASP.NET Web APIUnleash the power of HTTP with ASP.NET Web API
Unleash the power of HTTP with ASP.NET Web API
 
Resting on your laurels will get you powned
Resting on your laurels will get you pownedResting on your laurels will get you powned
Resting on your laurels will get you powned
 
gofortution
gofortutiongofortution
gofortution
 
Asec r01-resting-on-your-laurels-will-get-you-pwned
Asec r01-resting-on-your-laurels-will-get-you-pwnedAsec r01-resting-on-your-laurels-will-get-you-pwned
Asec r01-resting-on-your-laurels-will-get-you-pwned
 
Apex REST
Apex RESTApex REST
Apex REST
 
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Raleigh 2016 - WP API, What is it good for? Absolutely Everything!
 
Introduction server Construction
Introduction server ConstructionIntroduction server Construction
Introduction server Construction
 
Drupal South 2015: Introduction to Web Services. Services in Drupal 8.
Drupal South 2015: Introduction to Web Services.  Services in Drupal 8.Drupal South 2015: Introduction to Web Services.  Services in Drupal 8.
Drupal South 2015: Introduction to Web Services. Services in Drupal 8.
 
Restful web services rule financial
Restful web services   rule financialRestful web services   rule financial
Restful web services rule financial
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
WordCamp Wilmington 2017 WP-API Why?
WordCamp Wilmington 2017   WP-API Why?WordCamp Wilmington 2017   WP-API Why?
WordCamp Wilmington 2017 WP-API Why?
 
RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)RESTful web APIs (build, document, manage)
RESTful web APIs (build, document, manage)
 
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
WordCamp Birmingham 2016 - WP API, What is it good for? Absolutely Everything!
 
Saving Time And Effort With QuickBase Api - Sergio Haro
Saving Time And Effort With QuickBase Api - Sergio HaroSaving Time And Effort With QuickBase Api - Sergio Haro
Saving Time And Effort With QuickBase Api - Sergio Haro
 
High quality ap is with api platform
High quality ap is with api platformHigh quality ap is with api platform
High quality ap is with api platform
 
Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...
Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...
Honu - A Large Scale Streaming Data Collection and Processing Pipeline__Hadoo...
 
Using the new WordPress REST API
Using the new WordPress REST APIUsing the new WordPress REST API
Using the new WordPress REST API
 
Raml part 1
Raml part 1Raml part 1
Raml part 1
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 

More from raymond91105

Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017raymond91105
 
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017raymond91105
 
SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017raymond91105
 
AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017raymond91105
 
Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017raymond91105
 
J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...raymond91105
 
Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017raymond91105
 
Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017
Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017
Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017raymond91105
 
Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015raymond91105
 
ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...
ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...
ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...raymond91105
 
Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015raymond91105
 
Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015raymond91105
 
Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015raymond91105
 
J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015raymond91105
 
Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015raymond91105
 
Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015raymond91105
 

More from raymond91105 (16)

Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017Metabolite WormBase Workshop International Worm Meeting 2017
Metabolite WormBase Workshop International Worm Meeting 2017
 
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
WormMine and SimpleMine WormBase Workshop International Worm Meeting 2017
 
SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017SObA WormBase Workshop International Worm Meeting 2017
SObA WormBase Workshop International Worm Meeting 2017
 
AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017AGR Portal WormBase Workshop International Worm Meeting 2017
AGR Portal WormBase Workshop International Worm Meeting 2017
 
Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017Biomart WormBase Workshop International Worm Meeting 2017
Biomart WormBase Workshop International Worm Meeting 2017
 
J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...J browse: new features for genome browsing WormBase Workshop International Wo...
J browse: new features for genome browsing WormBase Workshop International Wo...
 
Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017Community Curation WormBase Workshop International Worm Meeting 2017
Community Curation WormBase Workshop International Worm Meeting 2017
 
Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017
Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017
Parasite Programmatic Access WormBase Workshop International Worm Meeting 2017
 
Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015Worm Mine WormBase Workshop International Worm Meeting 2015
Worm Mine WormBase Workshop International Worm Meeting 2015
 
ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...
ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...
ParaSite Ensembl Genomes and UCSC Assembly Hub WormBase Workshop Internationa...
 
Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015Community Curation WormBase Workshop International Worm Meeting 2015
Community Curation WormBase Workshop International Worm Meeting 2015
 
Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015Ontology Browser WormBase Workshop International Worm Meeting 2015
Ontology Browser WormBase Workshop International Worm Meeting 2015
 
Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015Micropublication WormBase Workshop International Worm Meeting 2015
Micropublication WormBase Workshop International Worm Meeting 2015
 
J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015J browse WormBase Workshop International Worm Meeting 2015
J browse WormBase Workshop International Worm Meeting 2015
 
Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015Gene Ontology WormBase Workshop International Worm Meeting 2015
Gene Ontology WormBase Workshop International Worm Meeting 2015
 
Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015Gene Descriptions WormBase Workshop International Worm Meeting 2015
Gene Descriptions WormBase Workshop International Worm Meeting 2015
 

Recently uploaded

Topography and sediments of the floor of the Bay of Bengal
Topography and sediments of the floor of the Bay of BengalTopography and sediments of the floor of the Bay of Bengal
Topography and sediments of the floor of the Bay of BengalMd Hasan Tareq
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionpablovgd
 
FAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsFAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsMichel Dumontier
 
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...Subhajit Sahu
 
Shuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptxShuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptxMdAbuRayhan16
 
Hemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptxHemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptxmuralinath2
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONChetanK57
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayAADYARAJPANDEY1
 
The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...Sérgio Sacani
 
Seminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxSeminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxRUDYLUMAPINET2
 
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243Sérgio Sacani
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...muralinath2
 
Detectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a TechnosignatureDetectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a TechnosignatureSérgio Sacani
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationanitaento25
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxAlaminAfendy1
 
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Sérgio Sacani
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxAlguinaldoKong
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent Universitypablovgd
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthSérgio Sacani
 
Transport in plants G1.pptx Cambridge IGCSE
Transport in plants G1.pptx Cambridge IGCSETransport in plants G1.pptx Cambridge IGCSE
Transport in plants G1.pptx Cambridge IGCSEjordanparish425
 

Recently uploaded (20)

Topography and sediments of the floor of the Bay of Bengal
Topography and sediments of the floor of the Bay of BengalTopography and sediments of the floor of the Bay of Bengal
Topography and sediments of the floor of the Bay of Bengal
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
FAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable PredictionsFAIR & AI Ready KGs for Explainable Predictions
FAIR & AI Ready KGs for Explainable Predictions
 
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
 
Shuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptxShuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptx
 
Hemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptxHemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptx
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
 
The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...The importance of continents, oceans and plate tectonics for the evolution of...
The importance of continents, oceans and plate tectonics for the evolution of...
 
Seminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxSeminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptx
 
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
Constraints on Neutrino Natal Kicks from Black-Hole Binary VFTS 243
 
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
Circulatory system_ Laplace law. Ohms law.reynaults law,baro-chemo-receptors-...
 
Detectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a TechnosignatureDetectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a Technosignature
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classification
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
 
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent University
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on Earth
 
Transport in plants G1.pptx Cambridge IGCSE
Transport in plants G1.pptx Cambridge IGCSETransport in plants G1.pptx Cambridge IGCSE
Transport in plants G1.pptx Cambridge IGCSE
 

Programmatic access to wormbase data WormBase Workshop International Worm Meeting 2017

  • 1. Programmatic Access to WormBase Data Sibyl Gao
  • 2. WormBase Web APIs Special URLs that are intended for programs - Provide data in formats that are easy for programs to handle (JSON etc) - Will refer to them as Web API or API Why? - Avoid repetitive manual tasks - e.g. write a program to gather information, about a list of identifiers - Develop custom visualization tools powered WormBase data How? - By making an HTTP request to a URL in your programming language - Example libraries: requests (Python), HTTP::Tiny (Perl), Curl (command line)
  • 3. RESTful API - Get the data that powers a widget or a field on WormBase curl -X GET --header 'Accept: application/json' 'http://rest.wormbase.org/rest/widget/gene/WBGene00015146/overview'
  • 4. RESTful API - documentations on which URLs you can access Excerpt:
  • 5. GraphQL API (Experimental) - provides access to any WormBase data (not just what we have a widget for) curl -X GET --header 'Accept: application/json' 'http://graphql-dev.wormbase.org' --data-urlencode 'query={ gene(id: "WBGene00015146") { public_name } }'
  • 6. GraphQL API (Experimental) Features an interactive development environment (IDE) to help with query construction: - it “speaks” the GraphQL query language and understands WB data schema - auto-completion - query validation
  • 7. Which one to use? Short answer: RESTful API for now Long answer: - RESTful API: - time-tested - will continue to be supported - default choice - GraphQL API: - experimental (bugs, instability, changes) - suitable for exploring data through IDE Please always sanity check the results your program produces 😃