unibiodicts / vsm-dictionary-bioportal Goto Github PK
View Code? Open in Web Editor NEWA VSM-dictionary that communicates with BioPortal's REST API
License: GNU Affero General Public License v3.0
A VSM-dictionary that communicates with BioPortal's REST API
License: GNU Affero General Public License v3.0
Because of this issue (multiple ontology terms with the same ID), I had to implement a way to infer the ontology acronym from the entry id. This is done in the function inferDictAbbrevFromId(id)
in DIctionaryBioPoral.js
.
So, if more regexes are found that can clearly distinguish the ontology acronym from the id in some cases, then I have to add them to the ontologyRegexes
array of the aforementioned function.
If in the future the issue is solved (e.g. BioPortal provides an endpoint that returns a source ontology for a term), then I will have to re-design getEntries()
and remove the hack.
John.
There is a same bug in getDictInfos()
, getEntries()
, and getEntryMatchesForString()
:
In their for-loop, each iteration can make its own call call cb()
, if an error occurs. See:
for (let url of urlArray) {
...
this.request(url, (err, res) => {
if (err) return cb(err); // <---- THAT
'THAT' line will get called urlArray.length
times if each of the request errors for each of the urls.
Solution: set an answered = true
when an error causes a cb()
call.
And when answered
is already true
, do not call cb
. Not in the final call, and not when possible next error is received.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.