psychonautwiki / bifrost

The PsychonautWiki API.
MIT License
48 stars 10 forks source link

Query for all substances missing substances that are in the dataset #42

Open d6y opened 3 years ago

d6y commented 3 years ago

Hello 👋

This might well be my misunderstanding of the queries available. Apologies in advance if I'm getting this confused.

If I query with a large limit and no other restrictions:

substances(limit: 999) {
     name 
     url
}

...I receive 290 results. However, this is not all the substances available.

For example:

substances(query: "Allylescaline") {
     name 
     url
}

...does produce a record, but that record is not included in the original (limit:999) query.

I suppose my expectation is that the limit:999 query would return all (or, up to 999) substances.

Thanks for making this excellent resource available.

19h commented 3 years ago

There's currently 296 substances in the category that's used by Bifrost to reference substances via their semantic metadata: https://psychonautwiki.org/wiki/Category:Psychoactive_substance.

d6y commented 3 years ago

Thank you for the information!

I do see https://psychonautwiki.org/wiki/Allylescaline in that category of 296 (on page 1 of the list, on the Wiki).

But using the user interface at https://api.psychonautwiki.org/ there's no Allylescaline in the API query results (the limit:999 query). Weird!

Andeskjerf commented 2 years ago

I'm having the same issue. LSD doesn't show up if I use the limit query, but it works if I query by name. Allylescaline does not show up in my query either.