o2r-project / o2r-badger Goto Github PK
View Code? Open in Web Editor NEWAPI for serving badges on reproducibility of research.
Home Page: https://doi.org/10.31223/osf.io/xtsqh
License: Apache License 2.0
API for serving badges on reproducibility of research.
Home Page: https://doi.org/10.31223/osf.io/xtsqh
License: Apache License 2.0
http://localhost:8089/api/1.0/badge currently gives
{
"type": [
"executable",
"peerreview",
"licence",
"spatial",
"releasetime"
],
"services": [
"o2r",
"doaj",
"crossref"
]
}
So different services can be used for different badges. The use does not know, which service+badge - combination will yield a result. That is not nice. Ideally, the user should not care about the service but only about the badge!
Therefore update the API to not require the services, but instead internally map from badge type to a suitable service. In case multiple services can provide information for a badge, we internally choose the "better" one (i.e. the one that is not N/A), or a "preferred" one if two differing results are obtained.
For transparency, a ?all_services
could be appended and return a JSON providing all the different labels...
When a user left-clicks on the icon in Chrome, nothing happens.
Why not open the menu, just as with a right click?
Or show the number of retrieved badges for the current page?
Other ideas what could be shown welcome.
svg should support clickable links, hover texts, etc.
Sending a request to badger normally results in request to a third party server because the badge is returned. Therefore we should as much as possible cache our responses, where results are unlikely to change.
Evaluate these packages and then implement:
Right now the timeout is quite high, so the requests to the badger are open for quite some time, allowing a lot of time for the third party services in the backend to reply. This could be a good thing, but puts additional load on the badger (keeping all the connections open) and also is not an optimal user experience.
Therefore it should be possible to configure a timeout for each service (e.g. doaj, o2r) that is queried for badge information in the background, and return the request to the user of the badger API quicker.
If there is a link to data in some database, is the data stored in an open repo (see re3data.org) ? What is the data license?
For a given DOI, search Zenodo, b2share, figshare if there is a supplement that belongs to a paper.
If a user clicks on a badge, he should be taken to a landing page with information why this concrete badge was awared. Links are generated in extender, but the landing pages should be provided by badger.
Related to #12 because we could distinguish the landing page and #12 simply by requested content type. If HTML is requested, a server-side rendering of the JSON that is returned to fulfil #12 is returned.
Instead of just rendering the badge, we could also provide JSON document with the same information for client side rendering.
Does this go against the badge idea?
Add tracking of API calls based on Piwik (we have a Piwik instance running)
referer
header)see muncher
How to do that for small and large badges? Find the best fitting region and use that name??
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.