Comments (7)
oups I meant https://github.com/gnames/gnparser#getting-the-simplest-possible-canonical-form
from gnverifier.
@abubelinha, if you want "stable until dead" API, it is better to use /api/v1
if you want to have "currently developed with new features, but less stable" then use /api/v0
.
https://apidoc.globalnames.org/ (gnames API old, gnames API current) has both of them documented. I think /api/v0 is stabilizing now, so I do not expect huge changes there. When I feel it is doing all what it should do, I will release v1.0 for gnverifier, gnames, gnmatcher, and the api/v0 will become /api/v2.
I guess the point of confusion is the same domain name I use for production API (gnames) and its frontend (gnverifier). On a production site they both are verifier.globalnames.org, so it looks as if gnverifier local woud also have /api/v0 or /api/v1, but in reality it is just an nginx trickery.
I will add some warning in documentation about this, hopefully it will help to avoid confustion.
from gnverifier.
https://verifier.golobalnames.org got updated to v0.7.0, and I am going to actively develop all 3 verificaton components for the next few days, so website might be a bit ahead of binaries for the next few of days.
In your example
http://192.168.1.8:8052/api/v1/verifications/Tradescantia%20fluminensis
would not work, because gnverifier does not really have its own API, it only has a GET method for its form. So your example would not work. API so far exists only as a remote service. However:
I did update the database dump, so a local install is possible again (on Linux). But it
is much more work, and will become incompatible when database will evolve again.
So I would use remote api/v1 or api/v0 according to their documentations
from gnverifier.
When you call GET method on local recent gnverifier, it still goes to the remote /api/v0
It is just a convenience feature, so if someone has a question about a name, or want to submit a bug about a name verification, they can illustrate their question/problem with a URL like one you provided:
http://verifier.globalnames.org/?&format=json&names=Tradescantia+fluminensis
from gnverifier.
OK ... thanks a lot for clarifying multiple api versions.
I was assuming that gnverifier -p option was very much like gnparser (I thought the request would be redirected to a remote verifier api, so I could serve a "local api" for other machines which are restricted to LAN).
Understood now. It's not really that important.
Regarding my preferred_only=on
failures, I still have not clear if this should work or not in any of the api versions. Any api url example? (where I set preferred data_sources
and bestResult
is not returned)
I also take the opportunity to ask ... where can I see an explanation of the different simple/full canonical names returned? Or an api url example where they show different values (i.e. matchedCanonicalSimple
vs matchedCanonicalFull
).
I'm sorry ... I think I have read about that somewhere before, but I don't recall where it was.
Thanks a lot for your patience
from gnverifier.
hm, preferred_only
is actually currently a presentation modification feature of gnverifier
. I guess I can add it to API
there is a secton about it in the gnparser docs. I added a table there, so it is a bit easier to find.
from gnverifier.
Thanks a lot again.
I just was wondering why preferred_only
didn't work in API. Your clarification is enough.
Don't worry, I will just skip bestResult
when I don't need it.
I think you posted a bad link?
from gnverifier.
Related Issues (20)
- As a Developer I want to refactor the code to a better file structure
- Update list of data-sources given in web-UI
- brew v 1.0.2 fails HOT 2
- As a User I want to see results for exact name_string
- As a User I want to see a widget for a particullar name-string
- No fuzzy matching? HOT 3
- Post return incorrect name HOT 1
- Updating datasets, iNaturalist and VASCAN in particular HOT 2
- include prokaryotic names (e.g., from LPSN) as a source in the verifier HOT 7
- repeatability of results: online (gnames apis) vs standalone tools (gndiff & gnparser) HOT 10
- Advanced search does not work for all taxa HOT 1
- Bring verification and search `data-sources` and `all matches` fields in sync
- bug? (also propagated to old releases) HOT 14
- As a Developer I want to be able to pass context.Context to gnverifier methods
- Additional space after the `×` in nothospecies names HOT 5
- doubtful entries in GBIF HOT 6
- Advanced search: filter on taxonomic rank HOT 18
- Prepare gnverifier to v1.0.0 release HOT 5
- Improve uBio presence in gnverifier
- new datasources of fungal names HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnverifier.