Python SDK to access all Elsevier knowledgebases and software: Resnet, Reaxys, Embase, Pharmapendium and more
This repository was built to combine data from several Elsevier knowledgebases. Most recent ResnetAPI code will be uploaded here into ResnetAPI folder.
Resnet is the biggest molecular biology knowledge graph in the world. ResnetAPI uses Python Zeep package for accessing via SOAP API the knowledge graph stored in Pathway Studio relational database. It then transforms fetched data into graph representation by Python Networkx package. User must create a request to the relational database using Graph Object Query language (GOQL). This can be accomplished using PathwayStudioGOQL.py module or simply by passing a GOQL request string to APISession.load_graph_from_oql(...) function. GOQL documentation is vailable from https://github.com/AntonYuryev/ElsevierAPI/tree/main/ElsevierAPI/ResnetAPI/Documentation
APISession class iterates large data retrieval for optimal network performance and should be used for most GOQL request. The GOQL query result is loaded into APISession.Graph: ResnetGraph object derived from networkx.MultiDiGraph. Properties for relations and entities that must be loaded into APISession.Graph can be specified by adding their database names into APISession.relProps and APISession.entProps. By default relProps=['Name', 'RelationNumberOfReferences'], entProps=['Name']. Names of properties and object types are listed in https://github.com/AntonYuryev/ElsevierAPI/tree/main/ElsevierAPI/ResnetAPI/Documentation
To start using ResnetAPI library you need to obtain account on Pathway Studio server from https://www.elsevier.com/solutions/professional-services.
To start using Reaxys API please contact https://www.elsevier.com/solutions/reaxys/contact-sales
To start using Embase and Pharmapendium API please contact https://dev.elsevier.com. API swaggers for PharmaPendium and Embase APIs are available from https://dev.elsevier.com/interactive.html.
To start using Elsevier text-mining API please contact https://demo.elseviertextmining.com
All login credentials must be added to APIconfig.json file in ElsevierAPI folder.
This SDK requires installation of following Python packages: zeep, networkx, requests, pandas, numpy, ElementTree, argparse, minidom, rdflib, xlsxwriter, textblob, scipy, wheel, openpyxl, docx
To import Resnet data retreived via API into local Neo4j server instance use PSnx2Neo4j.py module