Giter Site home page Giter Site logo

Comments (7)

thomasstjerne avatar thomasstjerne commented on May 28, 2024

The namesdiff gives a list of nameIndexIds. I cant find a way to retrieve a name by nameIndexId, could they be regular ids instead, or is there some way to get them by nameIndexId?

from checklistbank.

mdoering avatar mdoering commented on May 28, 2024

nameIndexId are nameId from the pCat, that's all they are.
8ww8gj is therefore resolved as http://api-dev.col.plus/dataset/2/name/8ww8gj

I could also expose the names index with a special url to now have to memorize the datasetKey.

from checklistbank.

mdoering avatar mdoering commented on May 28, 2024

The usage information only exists in the sector source dataset. But there is no guarantee that the name still exists in the source if its not the latest import. The names index will never remove a name so you can always resolve the ids there.

To retrieve a real name usage from a dataset by the nameIndexID you should use the search with a NAME_INDEX_ID query param.

from checklistbank.

thomasstjerne avatar thomasstjerne commented on May 28, 2024

But how do I get one name by nameIndexId in the names index?

from checklistbank.

mdoering avatar mdoering commented on May 28, 2024

see above, isn't that what you need?
The search is exposing a bug @ayco-at-naturalis promised to fix this week:
CatalogueOfLife/backend#298

It should then be
http://api-dev.col.plus/name/search?datasetKey=2045&nameIndexID=9kpmj7

But I think you are better off using the names index directly (see above)

from checklistbank.

mdoering avatar mdoering commented on May 28, 2024

search by nameIndexID is working now:
http://api-dev.col.plus/name/search?nameIndexID=6r_vqz

from checklistbank.

thomasstjerne avatar thomasstjerne commented on May 28, 2024

This one is blocked by CatalogueOfLife/backend#384

Sector 2728 has two syncs:
https://api-dev.col.plus/assembly/3/sync?sectorKey=2728&state=finished&limit=2

but no data recieved here
https://api-dev.col.plus/sector/2728/treediff?attempts=1..2

from checklistbank.

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.