ontoportal-lirmm / ontologies_api_ruby_client

A Ruby client for accessing NCBO's hypermedia api
Other
0 stars 1 forks source link

Feature: implement federation of collections calls #17

Closed syphax-bouazzouni closed 6 days ago

syphax-bouazzouni commented 4 months ago

Context

This Pr is related to https://github.com/ontoportal/ontoportal-project/issues/38; and implements the parallel call against multiple API. Please take a look at the tests for examples of usage.

image

Changes

Benchmark

Portal name Response time with no UI cache Response time with UI cache Results count
AgroPortal      
https://data.agroportal.lirmm.fr 0.16290399990975857s 0.0006169998086988926s 1
https://data.agroportal.lirmm.fr/ontologies 0.3249760000035167s 0.13214100012555718s 185
https://data.agroportal.lirmm.fr/submissions 7.929086999967694s 2.010168000124395s 184
BioPortal      
https://data.bioontology.org/ 0.6429309998638928 0.0005680001340806484s 1
https://data.bioontology.org/ontologies 24.174467999953777s 0.7763689998537302s 1110
https://data.bioontology.org/submissions 22.10651999991387s 3.0445370003581047s 1031
EcoPortal      
https://data.ecoportal.lifewatch.eu/ 0.231649000197649s 0.292365999892354s 1
https://data.ecoportal.lifewatch.eu/ontologies 0.3730909996666014s 0.21255100006237626s 31
https://data.ecoportal.lifewatch.eu/submissions 3.1629160000011325s 1.7344190003350377s 27
EarthPortal      
https://earthportal.eu:8443 0.13366000028327107s 0.6724610002711415s 1
https://data.earthportal.eu/ontologies 0.2508490001782775s 0.02595800021663308s 40
https://data.earthportal.eu/submissions 1.5953649999573827s 0.9168690000660717s 44
BiodviPortal      
https://data.biodivportal.gfbio.org/ 0.16592800011858344s 0.6727269999682903s 1
https://data.biodivportal.gfbio.org/ontologies 0.26030199974775314s 0.019911999814212322s 29
https://data.biodivportal.gfbio.org/submissions 1.074064000044018s 0.5119559997692704s 28
Federation      
Federated Ontologies 26.728501999750733s 0.9789899997413158s 1210
Federation Submissions 36.02172500034794s 6.078201999887824s 1130
Total 50s 6s 1210