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]Python API SPARQL Query Doesn't Work for HumanProteinOccurrence #141

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

Comments

@mengzhensun
Copy link

Describe the bug
This query doesn't work.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Colab Notebook
  2. Run:
import datacommons as dc
root = 'https://api.datacommons.org'
query_str = '''
SELECT ?name ?pes_score ?rel_level
WHERE { 
    ?a typeOf HumanProteinOccurrence . 
    ?a humanProteinOccurrenceReliability ?humanProteinOccurrenceReliability .
    ?a proteinExpressionScore ?proteinExpressionScore .
    ?a name ?name .
    ?humanProteinOccurrenceReliability name ?rel_level .
    ?proteinExpressionScore name ?pes_score}LIMIT 5
'''
result = dc.query(query_str)
  1. See error in the screenshot

Expected behavior
It should return the query result.

Screenshots
https://screenshot.googleplex.com/2dbc2641-fd70-40d2-8a9f-2ddb3059ce7c

Additional context
The relevant node in browser: https://datacommons.org/browser/bio/3BHS2_HUMAN_OralMucosa_SquamousEpithelialCells

@mengzhensun mengzhensun added the bug Something isn't working label Aug 18, 2020
@mengzhensun mengzhensun changed the title [BUG] Query Doesn't Work for HumanProteinOccurrence [BUG]Python API SPARQL Query Doesn't Work for HumanProteinOccurrence Aug 18, 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