1

我正在尝试对 Socrata 中私有的数据集运行过滤器。我曾尝试通过浏览器并使用 SoQL 进行操作,但它不起作用。

https://xxxxx/resource/xxxx-xxxx.json ?$where=product like '%test%'

当我在浏览器中向以下 URL 发出请求时。它在没有任何过滤的情况下将所有产品退回给我。但它偶尔会抛出异常

{
  "code" : "query.compiler.malformed",
  "error" : true,
  "message" : "Error, could not parse SoQL query \"select * from #xxx-xxxx where product like '%new%'\"",
  "data" : {
    "query" : "select * from #tatp-bcb2 where product like '%new%'"
  }
}

它是私有数据集,因此我无法从导出菜单访问特定的 API 文档。是因为数据集是私有的还是与实际 API 有关?

4

1 回答 1

1

可能发生的情况是您正在为LIKE支持LIKE.

如果您有私有数据集的 Data Lens 页面,则可以通过API按钮下的该用户界面获取其新 API 端点。或者,如果您给我发电子邮件,chris.metcalf (at) socrata.com我可以为您的私有数据集查找新的 API 端点。

我们正在研究一种经过身份验证的方式来获取私有数据集的 API 文档,但它还没有准备好。

于 2015-09-08T21:41:31.213 回答