Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query returning experiences, joke pages, categories, classes of drugs and compounds #43

Open
Andeskjerf opened this issue Jun 30, 2021 · 0 comments

Comments

@Andeskjerf
Copy link

Andeskjerf commented Jun 30, 2021

Hi!

I'm making a drug logging app that uses TripSit's API and PsychonautWiki's API to get data about the various drugs. I've noticed some oddities with PsychonautWiki's API in particular.

First off, here's the query:

query substances {
      substances(limit: 9999) {
        name

        roas {
          name

          dose {
            units
            threshold
            heavy
            light { min max }
            common { min max }
            strong { min max }
          }
          duration {
            total { min max units }
            onset { min max units }
            comeup { min max units }
            peak { min max units }
            offset { min max units }
            afterglow { min max units }
          }
        }

        dangerousInteractions { name }
        unsafeInteractions { name }
        uncertainInteractions { name }

        effects { name }
      }
    }

This query returns results like, categories and joke pages:

  • Antipsychotic
    
  • Cake
    
  • Classical psychedelic
    
  • Cytochrome P450 inhibitors
    
  • Deliriant
    
  • Depressant
    
  • Entactogens
    
  • Entheogen
    
  • Hallucinogens
    
  • Hypnotic
    
  • Inhalants
    
  • MAOI
    
  • Nootropic
    
  • Opioids
    
  • Prodrug
    
  • Psychedelics
    
  • Racetams
    
  • Sedative
    
  • Selective serotonin reuptake inhibitor
    
  • Serotonergic psychedelic
    
  • Serotonin-norepinephrine reuptake inhibitor
    
  • Stimulants
    
  • Substituted aminorexes
    
  • Substituted amphetamines
    
  • Substituted cathinones
    
  • Substituted morphinans
    
  • Substituted phenethylamines
    
  • Substituted phenidates
    
  • Substituted tryptamines
    
  • Synthetic cannabinoid
    
  • Thienodiazepines
    
  • Tryptamine (compound)
    

It returns results that have nothing to do with substances themselves, like these experiences:

  • Experience: I-Doser ('audio-drug') and meditation
    
  • Experience:3-MeO-PCP, LSD, Clonazolam, and Amphetamine - Excessive Amounts and Excessive Confusion
    

It also returns some questionable results, though I'm not sure if I should consider these as drugs?

  • Cannabidiol
    
  • Cannabinoid
    

Not sure if I caught them all, but I tried my best.

Is this intentional? I would assume that a substance query would only return substances, not categories, experiences and compounds. Having to write so many checks in my API parsing is difficult when there are so many results that are not substances.

Something else I noticed is that LSD for example is not returned by the query above. I haven't noticed any other drugs that are not returned, though it is hard to check when there are so many drugs to manually double check between the results of my query and the wiki itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant