Title: [BUG] Response Error Occurs from Python API SPARQL Query · Issue #140 · datacommonsorg/api-python · GitHub
Open Graph Title: [BUG] Response Error Occurs from Python API SPARQL Query · Issue #140 · datacommonsorg/api-python
X Title: [BUG] Response Error Occurs from Python API SPARQL Query · Issue #140 · datacommonsorg/api-python
Description: Describe the bug The response error occurs from time to time when I queried with python api. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = 'https://api.datacommons.org' query_str ...
Open Graph Description: Describe the bug The response error occurs from time to time when I queried with python api. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = ...
X Description: Describe the bug The response error occurs from time to time when I queried with python api. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = ...
Opengraph URL: https://github.com/datacommonsorg/api-python/issues/140
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Response Error Occurs from Python API SPARQL Query ","articleBody":"**Describe the bug**\r\nThe response error occurs from time to time when I queried with python api.\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\r\nWHERE { \r\n ?a typeOf HumanProteinOccurrence . \r\n ?a proteinExpressionScore ?proteinExpressionScore .\r\n ?a name ?name .\r\n ?proteinExpressionScore name ?pes_score}LIMIT 2\r\n'''\r\nresult = dc.query(query_str)\r\n```\r\n3. See response error in the screenshot sometimes\r\n\r\n**Expected behavior**\r\nIt should return the query result as follows:\r\n[{'?name': '4EBP3_HUMAN_Kidney_CellsInTubules',\r\n '?pes_score': 'ProteinExpressionMedium'},\r\n {'?name': '4ET_HUMAN_Breast_Adipocytes',\r\n '?pes_score': 'ProteinExpressionMedium'}]\r\n\r\n**Screenshots**\r\nhttps://screenshot.googleplex.com/4d9f7313-5432-42d5-a07f-b478e8f134ab\r\n\r\n","author":{"url":"https://github.com/mengzhensun","@type":"Person","name":"mengzhensun"},"datePublished":"2020-08-18T21:46:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/140/api-python/issues/140"}
| 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:46ada77b-bc13-b9cf-760d-b8e919a74f60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACFA:3AFDE9:6DB6A0C:95D0B6A:6978737E |
| html-safe-nonce | 4d0e6fb25af53817ae92bab2525937f9dabe49fb076dd0bb297e0c7c9d1160ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0ZBOjNBRkRFOTo2REI2QTBDOjk1RDBCNkE6Njk3ODczN0UiLCJ2aXNpdG9yX2lkIjoiMjgyMjg3OTQ4OTEzMjM2MDU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dd89c9e7c0e6c35108e340316c7b7a9f2d30c5281f2d774fd763042848d33600 |
| hovercard-subject-tag | issue:681361500 |
| 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/140/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd0714e498644e6554b4fdace442d1870bc22043e4f084647827955d8d3e1f62/datacommonsorg/api-python/issues/140 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd0714e498644e6554b4fdace442d1870bc22043e4f084647827955d8d3e1f62/datacommonsorg/api-python/issues/140 |
| og:image:alt | Describe the bug The response error occurs from time to time when I queried with python api. To Reproduce Steps to reproduce the behavior: Go to Colab Notebook Run: import datacommons as dc root = ... |
| 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 | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| 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 | 520b65a872113b919c1bbdb03834a50af15859fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width