Giter Site home page Giter Site logo

Comments (8)

dimus avatar dimus commented on June 1, 2024 1

Probably this query?

https://verifier.globalnames.org/api/v0/verifications/Pomatomus%20soltator%7CBubo%20bubo?data_sources=0

https://verifier.globalnames.org/api/v0/verifications/Pomatomus%20soltator%7CBubo%20bubo?data_sources=1|12

from gnverifier.

dimus avatar dimus commented on June 1, 2024 1

@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.

dimus avatar dimus commented on June 1, 2024 1

I added crosslinks to each other at https://apidoc.globalnames.org/gnames-beta and https://apidoc.globalnames.org/gnames

from gnverifier.

dimus avatar dimus commented on June 1, 2024
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.

abubelinha avatar abubelinha commented on June 1, 2024

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?

EDIT: for returned results comparative, see #68

from gnverifier.

abubelinha avatar abubelinha commented on June 1, 2024

Thanks a lot, those links are really handy!

from gnverifier.

dimus avatar dimus commented on June 1, 2024

links are in place for gnames v0 and v1 docs

from gnverifier.

abubelinha avatar abubelinha commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.