Comments (8)
Probably this query?
from gnverifier.
@abubelinha I will add a link to v1 to v0 apidoc, and a link to v0 at v1 doc in a meanwhile all docs are listed at
https://apidoc.globalnames.org
from gnverifier.
I added crosslinks to each other at https://apidoc.globalnames.org/gnames-beta and https://apidoc.globalnames.org/gnames
from gnverifier.
curl -X POST "https://verifier.globalnames.org/api/v0/verifications" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"nameStrings\":[\"Pomatomus soltator\",\"Bubo bubo (Linnaeus, 1758)\"],\"dataSources\":[1,12,169],\"withAllMatches\":false,\"withCapitalization\":false,\"withContext\":true,\"contextThreshold\":0.6}"
This seem to work too
from gnverifier.
Oh thanks!
So pref_sources
works with api v1, while data_sources
works with api v0.
I don't even recall where did I get pref_sources
example usage for v1, but it was in my python code ... so when I tried v0, I left that old parameter in my requests.
I am sorry. MY BAD. There is a good description of resolver api parameters, but for verifier it's a bit harder to me, specially because of the v1-v0 comparisons I am doing.
I will try to make a table of parameters' equivalences between different apis and versions (for my own reference, so I avoid this kind of mistakes):
request parameter | resolver api (with parameter descriptions) |
verifier api v1 | verifier api v0 (current) | verifier web interface |
---|---|---|---|---|
names | names=Bubo bubo|Zea mays | url.../verifications/Bubo bubo|Zea mays?... | <-- same as v1 | names=Bubo bubo|Zea mays |
names (post) | data: 1|Bubo bubo 2|Zea mays |
"nameStrings": ["Bubo bubo", "Zea mays"] | <-- same as v1 | ... |
pref. data sources (get) | preferred_data_sources=196|197 | pref_sources=196|197 | data_sources=196|197 | &ds=196&ds=197 |
pref. data sources (post) | idem | "preferredSources": [196,197] | "dataSources": [196,197] | ... |
... | ... | ... | ... | ... |
... | ... | ... | ... | ... |
BTW, where can I see the full list of verifier api v1 api parameters as of today?
- https://verifier.globalnames.org/api links to this:
- https://apidoc.globalnames.org/gnames-beta There is an option to select api server here, but it only shows one entry (v0)
EDIT: for returned results comparative, see #68
from gnverifier.
Thanks a lot, those links are really handy!
from gnverifier.
links are in place for gnames v0 and v1 docs
from gnverifier.
OK but ... when you say "are in place" you mean in a new place?
... or in the page you linked above https://apidoc.globalnames.org/ ?
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.