geneontology / go-fastapi

https://api.geneontology.org/
6 stars 3 forks source link

GO-CAM "search" endpoints in the GO API do not return expected results #92

Open kltm opened 6 months ago

kltm commented 6 months ago

GO-CAM "search" endpoints in the GO API do not return expected results. For example

https://api.geneontology.org/api/users/0000-0003-1813-6857

and

https://api.geneontology.org/api/users/0000-0003-1813-6857/models

Would be expected to return non-empty ([]) JSON results.

Reported by @kimrutherford

kltm commented 6 months ago

Before we start digging in too much @sierra-moxon @dustine32 do you have any ideas?

kltm commented 6 months ago

Also noting issue https://github.com/geneontology/go-fastapi/issues/87

sierra-moxon commented 6 months ago

I will take a look.

sierra-moxon commented 6 months ago

notes from debugging today:

this part of the query:

            # Getting some information on the contributor
            optional { ?orcidIRI rdfs:label ?name } .
            BIND(IF(bound(?name), ?name, ?orcid) as ?name) .
            optional { ?orcidIRI vcard:organization-name ?organization } .
            optional {
                ?orcidIRI has_affiliation: ?affiliationIRI .
                ?affiliationIRI rdfs:label ?affiliation
            } .

seems to be preventing records from being returned. I need to dig further as to why this restriction on the query would block the models from returning; if I exclude the affiliation, etc, I get back models.

sierra-moxon commented 5 months ago

talking briefly with Chris, not sure why we would need affiliation, etc in this query, so shortest path is to remove that bind stanza.