Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
269 views
in Technique[技术] by (71.8m points)

python - 将CKAN Data API加载到SSMS中(Load CKAN Data API into SSMS)

Not very familiar with accessing APIs,

(对访问API不太熟悉,)

This dataset has the an API page below: https://data.gov.au/data/api/1/util/snippet/api_info.html?resource_id=cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d#collapse-endpoints

(该数据集的API页面如下: https : //data.gov.au/data/api/1/util/snippet/api_info.html?resource_id=cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d#collapse-endpoints)

This is what the dataet looks like: Company Report

(数据集如下所示: 公司报告)

Is it possible to use SSMS to connect to this table?

(是否可以使用SSMS连接到此表?)

On the page it says I can do SQL queries, So I wanted to do the following query

(在页面上说我可以执行SQL查询,所以我想执行以下查询)

SELECT * 
FROM "cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d"
WHERE 'Date of Registration' > '01/11/2019'

So I use the following URL: https://data.gov.au/data/api/3/action/datastore_search_sql?sql=SELECT * from "cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d" WHERE 'Date of Registration' > '01/11/2019'

(因此,我使用以下URL: https : //data.gov.au/data/api/3/action/datastore_search_sql?sql=SELECT * from“ cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d”在“注册日期”> '01 / 11/2019')

Which converts to:

(转换为:)

https://data.gov.au/data/api/3/action/datastore_search_sql?sql=SELECT%20*%20from%20%22cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d%22%20WHERE%20%27Date%20of%20Registration%27%20%3E%20%2701/11/2019%27

(https://data.gov.au/data/api/3/action/datastore_search_sql?sql=SELECT%20*%20from%20%22cb7e4eb5-ed46-4c6c-97a0-4532f4479b7d%22%20WHERE%20%27Date%20of %20注册%27%20%3E%20%2701/11/2019%27)

I'm getting a bad gateway error: HTTP Error 502: Bad Gateway

(我收到了错误的网关错误:HTTP错误502:错误的网关)

  ask by Haki Red translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...