Title: [BUG]Python API SPARQL Query Doesn't Work for HumanProteinOccurrence · Issue #141 · datacommonsorg/api-python · GitHub
Open Graph Title: [BUG]Python API SPARQL Query Doesn't Work for HumanProteinOccurrence · Issue #141 · datacommonsorg/api-python
X Title: [BUG]Python API SPARQL Query Doesn't Work for HumanProteinOccurrence · Issue #141 · datacommonsorg/api-python
Description: Describe the bug This query doesn't work. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = 'https://api.datacommons.org' query_str = ''' SELECT ?name ?pes_score ?rel_level WHERE { ?a...
Open Graph Description: Describe the bug This query doesn't work. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = 'https://api.datacommons.org' query_str = ''' SELEC...
X Description: Describe the bug This query doesn't work. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = 'https://api.datacommons.org' query_str...
Opengraph URL: https://github.com/datacommonsorg/api-python/issues/141
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]Python API SPARQL Query Doesn't Work for HumanProteinOccurrence","articleBody":"**Describe the bug**\r\nThis query doesn't work.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Go to Colab Notebook\r\n2. Run:\r\n```python\r\nimport datacommons as dc\r\nroot = 'https://api.datacommons.org'\r\nquery_str = '''\r\nSELECT ?name ?pes_score ?rel_level\r\nWHERE { \r\n ?a typeOf HumanProteinOccurrence . \r\n ?a humanProteinOccurrenceReliability ?humanProteinOccurrenceReliability .\r\n ?a proteinExpressionScore ?proteinExpressionScore .\r\n ?a name ?name .\r\n ?humanProteinOccurrenceReliability name ?rel_level .\r\n ?proteinExpressionScore name ?pes_score}LIMIT 5\r\n'''\r\nresult = dc.query(query_str)\r\n```\r\n3. See error in the screenshot\r\n\r\n**Expected behavior**\r\nIt should return the query result. \r\n\r\n**Screenshots**\r\nhttps://screenshot.googleplex.com/2dbc2641-fd70-40d2-8a9f-2ddb3059ce7c\r\n\r\n**Additional context**\r\nThe relevant node in browser: https://datacommons.org/browser/bio/3BHS2_HUMAN_OralMucosa_SquamousEpithelialCells\r\n","author":{"url":"https://github.com/mengzhensun","@type":"Person","name":"mengzhensun"},"datePublished":"2020-08-18T23:44:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/141/api-python/issues/141"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a0cbf556-4c9e-042b-dd3d-4a2aa2c9c90c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE1C:1BC95F:19DF466:2277046:697818D3 |
| html-safe-nonce | b44f0ad01ede090119da5622df334653457a6e278f2a85ae3fcade4e8a0aabb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTFDOjFCQzk1RjoxOURGNDY2OjIyNzcwNDY6Njk3ODE4RDMiLCJ2aXNpdG9yX2lkIjoiNzI2OTQyMDcwMzYwODc0MDA1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d1485cd09f0957d1667e43c2bffa6bd1b7314d63359e8057c944c3686661089 |
| hovercard-subject-tag | issue:681414597 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/datacommonsorg/api-python/141/issue_layout |
| twitter:image | https://opengraph.githubassets.com/88d59f20e3b98ed785791f05fbdb419c23e6eed194b4593ff3389565e0a929cc/datacommonsorg/api-python/issues/141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/88d59f20e3b98ed785791f05fbdb419c23e6eed194b4593ff3389565e0a929cc/datacommonsorg/api-python/issues/141 |
| og:image:alt | Describe the bug This query doesn't work. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = 'https://api.datacommons.org' query_str = ''' SELEC... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mengzhensun |
| hostname | github.com |
| expected-hostname | github.com |
| None | e71ed39771d00f42ce2fc9320895c8c608c164191e118eae487fc3bd0af6886d |
| turbo-cache-control | no-preview |
| go-import | github.com/datacommonsorg/api-python git https://github.com/datacommonsorg/api-python.git |
| octolytics-dimension-user_id | 52017486 |
| octolytics-dimension-user_login | datacommonsorg |
| octolytics-dimension-repository_id | 150300890 |
| octolytics-dimension-repository_nwo | datacommonsorg/api-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 150300890 |
| octolytics-dimension-repository_network_root_nwo | datacommonsorg/api-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4919f24054c1e9bf76d7b543cb2ac018075b18ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width