SlideShare a Scribd company logo
1 of 11
Download to read offline
THE MATERIALS API
Shyue Ping Ong (MIT), Shreyas Cholia (LBL/NERSC)
What is The Materials API?




   An open platform for       Flexible and scalable to
    accessing Materials       cater to large number of
  Project data based on          collaborators, with     Simple to use and code
                                                                agnostic.
  REpresentational State          different access
Transfer (REST) principles.           privileges.
HTTP API design (REST)
                                        Unique Identifier. Eg.
                                        a formula (Fe2O3),
                                        id (1234) or chemical
                                        system (Li-Fe-O)
                                                            Property

https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy



              Preamble URL                          Data type
                                                    (vasp, exp,
                                                    etc.)
• RESTful API maps URLs to data objects
Why REST APIs?
¨    Big push towards RESTful HTTP APIs across the web.

¨    REST APIs provide programmatic access to data
      and resources to developers over the web

¨    Access to data as well defined objects allows users
      to develop their own custom applications and code

      Enables a thriving community built around data.
Access via an API key
¨    To maintain privileged access, each user has an
      associated API key (with certain defined access
      privileges).

¨    To get your key, login to materialsproject.org and go
      to www.materialsproject.org/profile

¨    All MP https requests must supply API key as:
      ¤  A x-api-key header, e.g., {‘X-API-KEY’: ‘MYKEY’}, or
      ¤  As a GET or POST variable, e.g., {‘API_KEY’: ‘MYKEY’}
Sample JSON output

GET https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy
Integration with pymatgen



 The Materials API




           Powerful Materials
             Analytics Tool
pymatgen
¨    The open source python library that powers the
      Materials Project.
      ¤  Defines  core Python objects for materials data
          representation.
      ¤  Provides a well-tested set of structure and
          thermodynamic analysis tools relevant to many
          applications.
      ¤  Establishes an open platform for researchers to
          collaboratively develop sophisticated analyses of
          materials data obtained both from first principles
          calculations and experiments.
Pymatgen now provides access to analysis functions as well as data
Materials API + pymatgen example
from pymatgen.matproj.rest import MPRester
 
#This initializes the REST adaptor. Put your own API key in.
a = MPRester("YOUR_API_KEY")
 
#This gives you the Structure corresponding to material id 2254 in the Materials Project.
structure = a.get_structure_by_material_id(2254)
 
#Entries are the basic unit for thermodynamic and other analyses in pymatgen.
#This gets all entries belonging to the Ca-C-O system.
entries = a.get_entries_in_chemsys(['Ca', 'C', 'O'])

#With entries, you can do many sophisticated analyses,
#like creating phase diagrams.
pd = PhaseDiagram(entries)
plotter = PDPlotter(pd)
plotter.show()
More information
¨    Materials API + pymatgen examples
      ¤    https://gist.github.com/gists/search?q=shyuep+materials+api
            +pymatgen

¨    The Materials API wiki
      ¤    https://materialsproject.org/wiki/index.php/The_Materials_API

¨    Python Materials Genomics
      ¤    http://packages.python.org/pymatgen/
      ¤    Shyue Ping Ong, William Davidson Richard, Anubhav Jain, Geoffroy
            Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent Chevrier,
            Kristin A. Persson, Gerbrand Ceder. Python Materials Genomics
            (pymatgen) : A Robust, Open-Source Python Library for Materials
            Analysis. (submitted)

More Related Content

What's hot

Dielectric Spectroscopy in Time and Frequency Domain
Dielectric Spectroscopy in Time and Frequency DomainDielectric Spectroscopy in Time and Frequency Domain
Dielectric Spectroscopy in Time and Frequency DomainGirish Gupta
 
FIWARE Training: NGSI-LD Advanced Operations
FIWARE Training: NGSI-LD Advanced OperationsFIWARE Training: NGSI-LD Advanced Operations
FIWARE Training: NGSI-LD Advanced OperationsFIWARE
 
Solar Water Splitting Presentation
Solar Water Splitting PresentationSolar Water Splitting Presentation
Solar Water Splitting PresentationMichael Davis
 
Chapter4 semiconductor in equilibrium
Chapter4 semiconductor in equilibriumChapter4 semiconductor in equilibrium
Chapter4 semiconductor in equilibriumK. M.
 
Organic- Inorganic Perovskite Solar Cell
Organic- Inorganic Perovskite Solar CellOrganic- Inorganic Perovskite Solar Cell
Organic- Inorganic Perovskite Solar CellRajan K. Singh
 
Magnetic materials , NIT Calicut
Magnetic materials , NIT CalicutMagnetic materials , NIT Calicut
Magnetic materials , NIT CalicutSujith Varghese
 
Machine Learning for Chemical Sciences
Machine Learning for Chemical SciencesMachine Learning for Chemical Sciences
Machine Learning for Chemical SciencesIchigaku Takigawa
 
FIWARE Training: NGSI-LD Introduction
FIWARE Training: NGSI-LD IntroductionFIWARE Training: NGSI-LD Introduction
FIWARE Training: NGSI-LD IntroductionFIWARE
 
Challenges and Opportunities of Renewable Energy Research 2020 and beyond
Challenges and Opportunities of Renewable Energy Research 2020 and beyondChallenges and Opportunities of Renewable Energy Research 2020 and beyond
Challenges and Opportunities of Renewable Energy Research 2020 and beyondLeonardo ENERGY
 
Ph.D. Dissertation Seminar Slides
Ph.D. Dissertation Seminar SlidesPh.D. Dissertation Seminar Slides
Ph.D. Dissertation Seminar SlidesTianyu Liu
 
A DFT & TDDFT Study of Hybrid Halide Perovskite Quantum Dots
A DFT & TDDFT Study of Hybrid Halide Perovskite Quantum DotsA DFT & TDDFT Study of Hybrid Halide Perovskite Quantum Dots
A DFT & TDDFT Study of Hybrid Halide Perovskite Quantum DotsAthanasiosKoliogiorg
 
10.637 Lecture 1: Introduction
10.637 Lecture 1: Introduction10.637 Lecture 1: Introduction
10.637 Lecture 1: IntroductionHeather Kulik
 
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)Neo4j
 
Computational materials design with high-throughput and machine learning methods
Computational materials design with high-throughput and machine learning methodsComputational materials design with high-throughput and machine learning methods
Computational materials design with high-throughput and machine learning methodsAnubhav Jain
 

What's hot (20)

Dielectric Spectroscopy in Time and Frequency Domain
Dielectric Spectroscopy in Time and Frequency DomainDielectric Spectroscopy in Time and Frequency Domain
Dielectric Spectroscopy in Time and Frequency Domain
 
FIWARE Training: NGSI-LD Advanced Operations
FIWARE Training: NGSI-LD Advanced OperationsFIWARE Training: NGSI-LD Advanced Operations
FIWARE Training: NGSI-LD Advanced Operations
 
Solar Water Splitting Presentation
Solar Water Splitting PresentationSolar Water Splitting Presentation
Solar Water Splitting Presentation
 
Chapter4 semiconductor in equilibrium
Chapter4 semiconductor in equilibriumChapter4 semiconductor in equilibrium
Chapter4 semiconductor in equilibrium
 
Organic- Inorganic Perovskite Solar Cell
Organic- Inorganic Perovskite Solar CellOrganic- Inorganic Perovskite Solar Cell
Organic- Inorganic Perovskite Solar Cell
 
Magnetic materials , NIT Calicut
Magnetic materials , NIT CalicutMagnetic materials , NIT Calicut
Magnetic materials , NIT Calicut
 
Basics of DFT+U
Basics of DFT+U Basics of DFT+U
Basics of DFT+U
 
Hydrogen production research in Mexico: A review
Hydrogen production research in Mexico: A reviewHydrogen production research in Mexico: A review
Hydrogen production research in Mexico: A review
 
Machine Learning for Chemical Sciences
Machine Learning for Chemical SciencesMachine Learning for Chemical Sciences
Machine Learning for Chemical Sciences
 
FIWARE Training: NGSI-LD Introduction
FIWARE Training: NGSI-LD IntroductionFIWARE Training: NGSI-LD Introduction
FIWARE Training: NGSI-LD Introduction
 
Challenges and Opportunities of Renewable Energy Research 2020 and beyond
Challenges and Opportunities of Renewable Energy Research 2020 and beyondChallenges and Opportunities of Renewable Energy Research 2020 and beyond
Challenges and Opportunities of Renewable Energy Research 2020 and beyond
 
Data Modeling with NGSI, NGSI-LD
Data Modeling with NGSI, NGSI-LDData Modeling with NGSI, NGSI-LD
Data Modeling with NGSI, NGSI-LD
 
RDF Data Model
RDF Data ModelRDF Data Model
RDF Data Model
 
Ph.D. Dissertation Seminar Slides
Ph.D. Dissertation Seminar SlidesPh.D. Dissertation Seminar Slides
Ph.D. Dissertation Seminar Slides
 
A*STAR Webinar on The AI Revolution in Materials Science
A*STAR Webinar on The AI Revolution in Materials ScienceA*STAR Webinar on The AI Revolution in Materials Science
A*STAR Webinar on The AI Revolution in Materials Science
 
A DFT & TDDFT Study of Hybrid Halide Perovskite Quantum Dots
A DFT & TDDFT Study of Hybrid Halide Perovskite Quantum DotsA DFT & TDDFT Study of Hybrid Halide Perovskite Quantum Dots
A DFT & TDDFT Study of Hybrid Halide Perovskite Quantum Dots
 
10.637 Lecture 1: Introduction
10.637 Lecture 1: Introduction10.637 Lecture 1: Introduction
10.637 Lecture 1: Introduction
 
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
A Knowledge Graph for Reaction & Synthesis Prediction (AstraZeneca)
 
Computational materials design with high-throughput and machine learning methods
Computational materials design with high-throughput and machine learning methodsComputational materials design with high-throughput and machine learning methods
Computational materials design with high-throughput and machine learning methods
 
NANO266 - Lecture 14 - Transition state modeling
NANO266 - Lecture 14 - Transition state modelingNANO266 - Lecture 14 - Transition state modeling
NANO266 - Lecture 14 - Transition state modeling
 

Viewers also liked

NANO266 - Lecture 12 - High-throughput computational materials design
NANO266 - Lecture 12 - High-throughput computational materials designNANO266 - Lecture 12 - High-throughput computational materials design
NANO266 - Lecture 12 - High-throughput computational materials designUniversity of California, San Diego
 
Machine Learning and Inductive Inference
Machine Learning and Inductive InferenceMachine Learning and Inductive Inference
Machine Learning and Inductive Inferencebutest
 
The Future of Materials, by Means of Example, Part 1: Packaging Solutions
The Future of Materials, by Means of Example, Part 1: Packaging SolutionsThe Future of Materials, by Means of Example, Part 1: Packaging Solutions
The Future of Materials, by Means of Example, Part 1: Packaging SolutionsSustainable Brands
 
World Economic Forum Annual Meeting 2006
World Economic Forum Annual Meeting 2006World Economic Forum Annual Meeting 2006
World Economic Forum Annual Meeting 2006WorldEconomicForumDavos
 
Ο σχολικός μας κήπος
Ο σχολικός μας  κήποςΟ σχολικός μας  κήπος
Ο σχολικός μας κήποςΑννα Παππα
 
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015Dr. Paraskevas Apostolos
 
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involved
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involvedWelwyn Hatfield Dragons Apprentice: 5 reasons to be involved
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involvedRed Potato
 
Project ECHO (Extension for Community Health Outcomes)
Project ECHO (Extension for Community Health Outcomes)Project ECHO (Extension for Community Health Outcomes)
Project ECHO (Extension for Community Health Outcomes)icornpresentations
 
Bigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
Bigmarker - Οδηγίες για υλοποίηση ΤηλεδιασκέψεωνBigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
Bigmarker - Οδηγίες για υλοποίηση ΤηλεδιασκέψεωνDr. Paraskevas Apostolos
 
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...Rigoberto José Meléndez Cuauro
 
Social Media Report - Snack Brands - Chips (India) September - October 2016
Social Media Report - Snack Brands - Chips (India) September - October 2016Social Media Report - Snack Brands - Chips (India) September - October 2016
Social Media Report - Snack Brands - Chips (India) September - October 2016Unmetric
 
洞穴人的陰影
洞穴人的陰影洞穴人的陰影
洞穴人的陰影t067
 
Mi examen final...
Mi examen final...Mi examen final...
Mi examen final...powercecil
 

Viewers also liked (19)

NANO266 - Lecture 12 - High-throughput computational materials design
NANO266 - Lecture 12 - High-throughput computational materials designNANO266 - Lecture 12 - High-throughput computational materials design
NANO266 - Lecture 12 - High-throughput computational materials design
 
ICME Workshop Jul 2014 - The Materials Project
ICME Workshop Jul 2014 - The Materials ProjectICME Workshop Jul 2014 - The Materials Project
ICME Workshop Jul 2014 - The Materials Project
 
Machine Learning and Inductive Inference
Machine Learning and Inductive InferenceMachine Learning and Inductive Inference
Machine Learning and Inductive Inference
 
The Future of Materials, by Means of Example, Part 1: Packaging Solutions
The Future of Materials, by Means of Example, Part 1: Packaging SolutionsThe Future of Materials, by Means of Example, Part 1: Packaging Solutions
The Future of Materials, by Means of Example, Part 1: Packaging Solutions
 
Artificial intelligence ppt
Artificial intelligence   pptArtificial intelligence   ppt
Artificial intelligence ppt
 
World Economic Forum Annual Meeting 2006
World Economic Forum Annual Meeting 2006World Economic Forum Annual Meeting 2006
World Economic Forum Annual Meeting 2006
 
Manejo y seguridad del internet
Manejo y seguridad del internetManejo y seguridad del internet
Manejo y seguridad del internet
 
Ο σχολικός μας κήπος
Ο σχολικός μας  κήποςΟ σχολικός μας  κήπος
Ο σχολικός μας κήπος
 
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
 
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involved
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involvedWelwyn Hatfield Dragons Apprentice: 5 reasons to be involved
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involved
 
Recycle Game
Recycle GameRecycle Game
Recycle Game
 
ECRI-INSTITUTE - Camas de Parto
ECRI-INSTITUTE - Camas de PartoECRI-INSTITUTE - Camas de Parto
ECRI-INSTITUTE - Camas de Parto
 
Project ECHO (Extension for Community Health Outcomes)
Project ECHO (Extension for Community Health Outcomes)Project ECHO (Extension for Community Health Outcomes)
Project ECHO (Extension for Community Health Outcomes)
 
Bigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
Bigmarker - Οδηγίες για υλοποίηση ΤηλεδιασκέψεωνBigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
Bigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
 
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
 
The drowned love
The drowned loveThe drowned love
The drowned love
 
Social Media Report - Snack Brands - Chips (India) September - October 2016
Social Media Report - Snack Brands - Chips (India) September - October 2016Social Media Report - Snack Brands - Chips (India) September - October 2016
Social Media Report - Snack Brands - Chips (India) September - October 2016
 
洞穴人的陰影
洞穴人的陰影洞穴人的陰影
洞穴人的陰影
 
Mi examen final...
Mi examen final...Mi examen final...
Mi examen final...
 

Similar to The Materials API

The Materials Project Ecosystem - A Complete Software and Data Platform for M...
The Materials Project Ecosystem - A Complete Software and Data Platform for M...The Materials Project Ecosystem - A Complete Software and Data Platform for M...
The Materials Project Ecosystem - A Complete Software and Data Platform for M...University of California, San Diego
 
grlc: Bridging the Gap Between RESTful APIs and Linked Data
grlc: Bridging the Gap Between RESTful APIs and Linked Datagrlc: Bridging the Gap Between RESTful APIs and Linked Data
grlc: Bridging the Gap Between RESTful APIs and Linked DataAlbert Meroño-Peñuela
 
Adding Rules on Existing Hypermedia APIs
Adding Rules on Existing Hypermedia APIsAdding Rules on Existing Hypermedia APIs
Adding Rules on Existing Hypermedia APIsMichael Petychakis
 
Hypermedia for Machine APIs
Hypermedia for Machine APIsHypermedia for Machine APIs
Hypermedia for Machine APIsMichael Koster
 
Semantic web technologies applied to bioinformatics and laboratory data manag...
Semantic web technologies applied to bioinformatics and laboratory data manag...Semantic web technologies applied to bioinformatics and laboratory data manag...
Semantic web technologies applied to bioinformatics and laboratory data manag...Toni Hermoso Pulido
 
Accessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBCAccessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBCKingsley Uyi Idehen
 
Hypermedia System Architecture for a Web of Things
Hypermedia System Architecture for a Web of ThingsHypermedia System Architecture for a Web of Things
Hypermedia System Architecture for a Web of ThingsMichael Koster
 
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge GraphsOBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphsdgarijo
 
Arabidopsis Information Portal, Developer Workshop 2014, Introduction
Arabidopsis Information Portal, Developer Workshop 2014, IntroductionArabidopsis Information Portal, Developer Workshop 2014, Introduction
Arabidopsis Information Portal, Developer Workshop 2014, IntroductionJasonRafeMiller
 
RESTful Web services using JAX-RS
RESTful Web services using JAX-RSRESTful Web services using JAX-RS
RESTful Web services using JAX-RSArun Gupta
 
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...ruyalarcon
 
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jerseyEclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jerseyEclipse Day India
 
Rest with java (jax rs) and jersey and swagger
Rest with java (jax rs) and jersey and swaggerRest with java (jax rs) and jersey and swagger
Rest with java (jax rs) and jersey and swaggerKumaraswamy M
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiTiago Knoch
 
Spark IT 2011 - Developing RESTful Web services with JAX-RS
Spark IT 2011 - Developing RESTful Web services with JAX-RSSpark IT 2011 - Developing RESTful Web services with JAX-RS
Spark IT 2011 - Developing RESTful Web services with JAX-RSArun Gupta
 
JAX-RS JavaOne Hyderabad, India 2011
JAX-RS JavaOne Hyderabad, India 2011JAX-RS JavaOne Hyderabad, India 2011
JAX-RS JavaOne Hyderabad, India 2011Shreedhar Ganapathy
 

Similar to The Materials API (20)

The Materials Project Ecosystem - A Complete Software and Data Platform for M...
The Materials Project Ecosystem - A Complete Software and Data Platform for M...The Materials Project Ecosystem - A Complete Software and Data Platform for M...
The Materials Project Ecosystem - A Complete Software and Data Platform for M...
 
grlc: Bridging the Gap Between RESTful APIs and Linked Data
grlc: Bridging the Gap Between RESTful APIs and Linked Datagrlc: Bridging the Gap Between RESTful APIs and Linked Data
grlc: Bridging the Gap Between RESTful APIs and Linked Data
 
Adding Rules on Existing Hypermedia APIs
Adding Rules on Existing Hypermedia APIsAdding Rules on Existing Hypermedia APIs
Adding Rules on Existing Hypermedia APIs
 
Hypermedia for Machine APIs
Hypermedia for Machine APIsHypermedia for Machine APIs
Hypermedia for Machine APIs
 
Semantic web technologies applied to bioinformatics and laboratory data manag...
Semantic web technologies applied to bioinformatics and laboratory data manag...Semantic web technologies applied to bioinformatics and laboratory data manag...
Semantic web technologies applied to bioinformatics and laboratory data manag...
 
Accessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBCAccessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBC
 
OAISRB
OAISRBOAISRB
OAISRB
 
Hypermedia System Architecture for a Web of Things
Hypermedia System Architecture for a Web of ThingsHypermedia System Architecture for a Web of Things
Hypermedia System Architecture for a Web of Things
 
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge GraphsOBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
 
RESTing with JAX-RS
RESTing with JAX-RSRESTing with JAX-RS
RESTing with JAX-RS
 
Arabidopsis Information Portal, Developer Workshop 2014, Introduction
Arabidopsis Information Portal, Developer Workshop 2014, IntroductionArabidopsis Information Portal, Developer Workshop 2014, Introduction
Arabidopsis Information Portal, Developer Workshop 2014, Introduction
 
RESTful Web services using JAX-RS
RESTful Web services using JAX-RSRESTful Web services using JAX-RS
RESTful Web services using JAX-RS
 
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
 
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jerseyEclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
 
Rest with java (jax rs) and jersey and swagger
Rest with java (jax rs) and jersey and swaggerRest with java (jax rs) and jersey and swagger
Rest with java (jax rs) and jersey and swagger
 
ASP.NET Mvc 4 web api
ASP.NET Mvc 4 web apiASP.NET Mvc 4 web api
ASP.NET Mvc 4 web api
 
Sword Crig 2007 12 06
Sword Crig 2007 12 06Sword Crig 2007 12 06
Sword Crig 2007 12 06
 
Spark IT 2011 - Developing RESTful Web services with JAX-RS
Spark IT 2011 - Developing RESTful Web services with JAX-RSSpark IT 2011 - Developing RESTful Web services with JAX-RS
Spark IT 2011 - Developing RESTful Web services with JAX-RS
 
JAX-RS JavaOne Hyderabad, India 2011
JAX-RS JavaOne Hyderabad, India 2011JAX-RS JavaOne Hyderabad, India 2011
JAX-RS JavaOne Hyderabad, India 2011
 
RESTEasy
RESTEasyRESTEasy
RESTEasy
 

More from University of California, San Diego

NANO281 Lecture 01 - Introduction to Data Science in Materials Science
NANO281 Lecture 01 - Introduction to Data Science in Materials ScienceNANO281 Lecture 01 - Introduction to Data Science in Materials Science
NANO281 Lecture 01 - Introduction to Data Science in Materials ScienceUniversity of California, San Diego
 
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...University of California, San Diego
 
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal StructuresUCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal StructuresUniversity of California, San Diego
 
UCSD NANO106 - 08 - Principal Directions and Representation Quadrics
UCSD NANO106 - 08 - Principal Directions and Representation QuadricsUCSD NANO106 - 08 - Principal Directions and Representation Quadrics
UCSD NANO106 - 08 - Principal Directions and Representation QuadricsUniversity of California, San Diego
 
UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...
UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...
UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...University of California, San Diego
 

More from University of California, San Diego (20)

NANO281 Lecture 01 - Introduction to Data Science in Materials Science
NANO281 Lecture 01 - Introduction to Data Science in Materials ScienceNANO281 Lecture 01 - Introduction to Data Science in Materials Science
NANO281 Lecture 01 - Introduction to Data Science in Materials Science
 
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
 
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal StructuresUCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
 
NANO266 - Lecture 13 - Ab initio molecular dyanmics
NANO266 - Lecture 13 - Ab initio molecular dyanmicsNANO266 - Lecture 13 - Ab initio molecular dyanmics
NANO266 - Lecture 13 - Ab initio molecular dyanmics
 
NANO266 - Lecture 11 - Surfaces and Interfaces
NANO266 - Lecture 11 - Surfaces and InterfacesNANO266 - Lecture 11 - Surfaces and Interfaces
NANO266 - Lecture 11 - Surfaces and Interfaces
 
NANO266 - Lecture 10 - Temperature
NANO266 - Lecture 10 - TemperatureNANO266 - Lecture 10 - Temperature
NANO266 - Lecture 10 - Temperature
 
UCSD NANO106 - 12 - X-ray diffraction
UCSD NANO106 - 12 - X-ray diffractionUCSD NANO106 - 12 - X-ray diffraction
UCSD NANO106 - 12 - X-ray diffraction
 
UCSD NANO106 - 11 - X-rays and their interaction with matter
UCSD NANO106 - 11 - X-rays and their interaction with matterUCSD NANO106 - 11 - X-rays and their interaction with matter
UCSD NANO106 - 11 - X-rays and their interaction with matter
 
UCSD NANO106 - 10 - Bonding in Materials
UCSD NANO106 - 10 - Bonding in MaterialsUCSD NANO106 - 10 - Bonding in Materials
UCSD NANO106 - 10 - Bonding in Materials
 
UCSD NANO106 - 09 - Piezoelectricity and Elasticity
UCSD NANO106 - 09 - Piezoelectricity and ElasticityUCSD NANO106 - 09 - Piezoelectricity and Elasticity
UCSD NANO106 - 09 - Piezoelectricity and Elasticity
 
UCSD NANO106 - 08 - Principal Directions and Representation Quadrics
UCSD NANO106 - 08 - Principal Directions and Representation QuadricsUCSD NANO106 - 08 - Principal Directions and Representation Quadrics
UCSD NANO106 - 08 - Principal Directions and Representation Quadrics
 
UCSD NANO106 - 07 - Material properties and tensors
UCSD NANO106 - 07 - Material properties and tensorsUCSD NANO106 - 07 - Material properties and tensors
UCSD NANO106 - 07 - Material properties and tensors
 
NANO266 - Lecture 9 - Tools of the Modeling Trade
NANO266 - Lecture 9 - Tools of the Modeling TradeNANO266 - Lecture 9 - Tools of the Modeling Trade
NANO266 - Lecture 9 - Tools of the Modeling Trade
 
NANO266 - Lecture 8 - Properties of Periodic Solids
NANO266 - Lecture 8 - Properties of Periodic SolidsNANO266 - Lecture 8 - Properties of Periodic Solids
NANO266 - Lecture 8 - Properties of Periodic Solids
 
NANO266 - Lecture 7 - QM Modeling of Periodic Structures
NANO266 - Lecture 7 - QM Modeling of Periodic StructuresNANO266 - Lecture 7 - QM Modeling of Periodic Structures
NANO266 - Lecture 7 - QM Modeling of Periodic Structures
 
UCSD NANO106 - 06 - Plane and Space Groups
UCSD NANO106 - 06 - Plane and Space GroupsUCSD NANO106 - 06 - Plane and Space Groups
UCSD NANO106 - 06 - Plane and Space Groups
 
UCSD NANO106 - 05 - Group Symmetry and the 32 Point Groups
UCSD NANO106 - 05 - Group Symmetry and the 32 Point GroupsUCSD NANO106 - 05 - Group Symmetry and the 32 Point Groups
UCSD NANO106 - 05 - Group Symmetry and the 32 Point Groups
 
UCSD NANO106 - 04 - Symmetry in Crystallography
UCSD NANO106 - 04 - Symmetry in CrystallographyUCSD NANO106 - 04 - Symmetry in Crystallography
UCSD NANO106 - 04 - Symmetry in Crystallography
 
UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...
UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...
UCSD NANO106 - 03 - Lattice Directions and Planes, Reciprocal Lattice and Coo...
 
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice ComputationsUCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
 

Recently uploaded

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 

Recently uploaded (20)

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 

The Materials API

  • 1. THE MATERIALS API Shyue Ping Ong (MIT), Shreyas Cholia (LBL/NERSC)
  • 2. What is The Materials API? An open platform for Flexible and scalable to accessing Materials cater to large number of Project data based on collaborators, with Simple to use and code agnostic. REpresentational State different access Transfer (REST) principles. privileges.
  • 3. HTTP API design (REST) Unique Identifier. Eg. a formula (Fe2O3), id (1234) or chemical system (Li-Fe-O) Property https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy Preamble URL Data type (vasp, exp, etc.) • RESTful API maps URLs to data objects
  • 4. Why REST APIs? ¨  Big push towards RESTful HTTP APIs across the web. ¨  REST APIs provide programmatic access to data and resources to developers over the web ¨  Access to data as well defined objects allows users to develop their own custom applications and code Enables a thriving community built around data.
  • 5. Access via an API key ¨  To maintain privileged access, each user has an associated API key (with certain defined access privileges). ¨  To get your key, login to materialsproject.org and go to www.materialsproject.org/profile ¨  All MP https requests must supply API key as: ¤  A x-api-key header, e.g., {‘X-API-KEY’: ‘MYKEY’}, or ¤  As a GET or POST variable, e.g., {‘API_KEY’: ‘MYKEY’}
  • 6. Sample JSON output GET https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy
  • 7. Integration with pymatgen The Materials API Powerful Materials Analytics Tool
  • 8. pymatgen ¨  The open source python library that powers the Materials Project. ¤  Defines core Python objects for materials data representation. ¤  Provides a well-tested set of structure and thermodynamic analysis tools relevant to many applications. ¤  Establishes an open platform for researchers to collaboratively develop sophisticated analyses of materials data obtained both from first principles calculations and experiments.
  • 9. Pymatgen now provides access to analysis functions as well as data
  • 10. Materials API + pymatgen example from pymatgen.matproj.rest import MPRester   #This initializes the REST adaptor. Put your own API key in. a = MPRester("YOUR_API_KEY")   #This gives you the Structure corresponding to material id 2254 in the Materials Project. structure = a.get_structure_by_material_id(2254)   #Entries are the basic unit for thermodynamic and other analyses in pymatgen. #This gets all entries belonging to the Ca-C-O system. entries = a.get_entries_in_chemsys(['Ca', 'C', 'O']) #With entries, you can do many sophisticated analyses, #like creating phase diagrams. pd = PhaseDiagram(entries) plotter = PDPlotter(pd) plotter.show()
  • 11. More information ¨  Materials API + pymatgen examples ¤  https://gist.github.com/gists/search?q=shyuep+materials+api +pymatgen ¨  The Materials API wiki ¤  https://materialsproject.org/wiki/index.php/The_Materials_API ¨  Python Materials Genomics ¤  http://packages.python.org/pymatgen/ ¤  Shyue Ping Ong, William Davidson Richard, Anubhav Jain, Geoffroy Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent Chevrier, Kristin A. Persson, Gerbrand Ceder. Python Materials Genomics (pymatgen) : A Robust, Open-Source Python Library for Materials Analysis. (submitted)