aio-libs / aio-libs/aiosparql

KeyError when query includes "UNION"

未關閉
#96 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug help wanted
主要語言
Python
星號
24
分支
10
PR 合併指標
30 天內沒有已合併 PR

描述

pretty much the title.

I'm a big fan of this package, it helped me alot in my Masterthesis but today I seemed to have trouble with it.

```
from aiosparql.client import SPARQLClient

async with SPARQLClient("https://dbpedia.org/sparql") as client:
result = await client.query("select ?redirects where {{?redirects dbo:wikiPageRedirects dbr:Big_Trout_Lake} union {dbr:Big_Trout_Lake dbo:wikiPageRedirects ?redirects}}")
```

this query seems to break and infact every query that includes "UNION". For now I will try to work around it by quering the endpoint two times and concatinate the results afterwards but it would be cool if you could fix that issue.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。