oda-hub / oda_api

API client to access some of the MMODA resources: INTEGRAL, POLAR, ANTARES, LIGO/Virgo, SDSS
Other
2 stars 1 forks source link

Make ontology_helper thread-safe and improve long-living behaviour #260

Open dsavchenko opened 4 months ago

dsavchenko commented 4 months ago

To avoid strange failures At least sparql queries seems to be not thread-safe in rdflib

And also think of better optimisation than the whole graph being global variable

Also, don't duplicate restrictions (blanc nodes) when parsing annotations