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

[BUG] Query error: cell missing value {} #139

Open
mengzhensun opened this issue Aug 13, 2020 · 0 comments
Open

[BUG] Query error: cell missing value {} #139

mengzhensun opened this issue Aug 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mengzhensun
Copy link

mengzhensun commented Aug 13, 2020

Describe the bug
The python api throws the missing value error to my SPARQL query:

SELECT ?name ?proteinExpressionScore
WHERE {
  ?a typeOf HumanProteinOccurrence .
  ?a name ?name .
  ?a proteinExpressionScore ?proteinExpressionScore .
}
LIMIT 2

To Reproduce
Steps to reproduce the behavior:

  1. Go to a Colab notebook
  2. run
!pip install --upgrade --quiet datacommons
# Import Data Commons
import datacommons as dc
root = 'https://api.datacommons.org'

SELECT ?name ?proteinExpressionScore
WHERE {
  ?a typeOf HumanProteinOccurrence .
  ?a name ?name .
  ?a proteinExpressionScore ?proteinExpressionScore .
}
LIMIT 2
  1. See error

Expected behavior

result = [{'?name': '2ABD_HUMAN_Pancreas_ExocrineGlandularCells', '?proteinExpressionScore': 'ProteinExpressionLow'},
 {'?name': '2A5G_HUMAN_Bronchus_RespiratoryEpithelialCells', '?proteinExpressionScore': 'ProteinExpressionMedium'}]

Screenshots
Missing value error: https://screenshot.googleplex.com/fa799d8a-84fb-4972-a73d-c680861d19af
Response error: https://screenshot.googleplex.com/54176345-fe07-4c5d-91aa-01536ab01141
Additional context
Response error occurs sometimes for the same query as well, as shown in the second screenshoot.

@mengzhensun mengzhensun added the bug Something isn't working label Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant