问题标签 [socrata]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
692 浏览

asp.net-mvc - How to set SODA API end points programatically in asp.net MVC

I am developing an application with open data hosted by socrata using the information from the below link http://dev.socrata.com/consumers/examples/creating-an-application-with-asp-dotnet.html How ever you need to specify the API end point in the code.

Suppose there are 5000 records in the data set, it will list all the data in your applications. But you can change the end point by filtering this data by login in to socrata and saving it. For example we can filter the data say with year 2015 which will give us 100 records. When next time you run the application it will show only 100 records(We dont need to change API end point in code). I have gone through Soql query methods in Socrata which say you can set the api end points with conditions like this

My question is how can i use this in my application? I tried

But it gives the following error

The provided resourceId is not a valid Socrata (4x4) resource identifier.

0 投票
1 回答
131 浏览

asp.net-mvc - 如何在 mvc 应用程序中不使用 sodaclient 与 OpenData API Endpoint 通信

如何在不使用 sodaclient 的情况下与 MVC 应用程序中的 OpenData API 端点(私有数据集)通信?我有一个 apptoken 和凭据。

0 投票
1 回答
527 浏览

socrata - /api/views 调用中的偏移量和限制

我正在使用 /api/views/.../rows.json 调用来访问数据集的数据和元数据,例如 - https://data.colorado.gov/api/views/wumm-7awb/rows .json

问题是我不想访问所有数据,但使用限制和偏移参数似乎没有任何效果。

我知道 SODA API 端点,例如https://data.colorado.gov/resource/wumm-7awb.json,它有限制和偏移,但它不包含 /api/views 返回的元数据

替代问题 - /resource API 可以包含元数据吗?

谢谢

0 投票
1 回答
36 浏览

socrata - 如何使用 API 进行列包含

使用 GUI,我可以对包含的列进行过滤。API似乎不允许这样做。无论如何用api来做这个?

0 投票
1 回答
111 浏览

asp.net-mvc-4 - 使用soql一次获取50000条记录

我正在使用下面的代码从我的 asp.net mvc 应用程序中具有 500k 记录的数据集中获取记录。

但这仅返回 1000 条记录。如何获得50000条记录请帮忙?

0 投票
1 回答
64 浏览

socrata - Socrata 回调 url 问题

我目前正在使用 socrata oauth2 来访问私人信息。回调 url 不接受 localhost 路径示例:http://localhost:8080/callback

让我知道有什么方法可以使用重定向网址吗?

0 投票
1 回答
35 浏览

socrata - 查询/反序列化多级字段对象的问题

https://opendata.miamidade.gov/Corrections/Jail-Bookings-May-29-2015-to-current/7nhc-4yqn

如果有人能帮我解决这个问题,我不会:我在解析/反序列化 Location 对象内部的地址信息时遇到问题。

这是我正在使用的代码片段:

这是错误消息:

将值转换 "{"address":"HOMELESS","city":"MIAMI","state":"FL","zip":""}"为类型“JailLog_WFA.HumanAddress”时出错。路径“location_1.human_address”,第 1 行,位置 424。

0 投票
1 回答
90 浏览

socrata - Socrata JSON 和 CSV 元数据之间的不匹配

JSON 元数据中定义的列与数据集的 CSV 数据不匹配。

例如,元数据列表显示列 - 名称、地址 1、地址 2、城市、...

https://data.montgomerycountymd.gov/api/views/ecam-8hbr.json

但是 CSV 列表有 address1、address2、category、city、...

https://data.montgomerycountymd.gov/resource/ecam-8hbr.csv?$limit=2&$offset=0

0 投票
1 回答
37 浏览

asp.net-mvc-4 - socrata前端用哪个插件显示数据

是否可以实现 socrata 提供给用户以在 mvc 应用程序中实现的视图(表格)?尤其是滚动效果,加载数据只需几毫秒。如果没有,任何人都可以建议任何轻量级网格(以更快的加载速度滚动)

0 投票
1 回答
20 浏览

socrata - 如何处理包含项目列表的列

我想制作一个类别的下拉列表,所以我调用https://data.seattle.gov/resource/n6as-h2bj.json?$select=categories&$group=categories一些行有多个类别。有没有办法通过 SODA 来处理这个问题,还是我已经通过 javascript 来处理了?