You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Socrata's new landing page involved some rearranging of how URL's are structured. Namely, landing pages now mostly displays metadata about a dataset. To access the "grid view" (the "old" view), which shows much of the raw data, you must add /data to the end of the URL. For instance, the landing page for Chicago salaries are:
But, anyone copying/pasting the grid view URL will receive an error for an invalid Socrata URL. Here is the minimally reproducible error:
>landing_page_url<-"https://data.cityofchicago.org/Administration-Finance/Current-Employee-Names-Salaries-and-Position-Title/xzkq-xp2w">d<- read.socrata(landing_page_url) # This will work>grid_view_url<-"https://data.cityofchicago.org/Administration-Finance/Current-Employee-Names-Salaries-and-Position-Title/xzkq-xp2w/data">d<- read.socrata(grid_view_url) # This will failErrorin validateUrl(url, app_token) :dataisnotavalidSocratadatasetuniqueidentifier.
First, we will need to decide if we want to support the /data suffix. We currently support 2 URL structures: valid SoDA URLs and "human-readable" URLs as they appear in the browser. This would be a modification to the latter. But, it may make it easier for users who simply want to copy/paste a URL into the read.socrata() function to make it easy to retrieve data.
If we do support it, we must fully support it for future versions and would likely need to support different permutations if they're rolled out. For instance, if future URL syntaxes end with /graph or /lens or '/dashboard`, then we may need to support those as well.
An inbetween solution is simply throwing a more descriptive warning when encountering /data, so we neither support it but give users more descriptions.
To date, we have not received any errors on this and haven't seen anything reported on StackOverflow, so I believe urgency is low.
Interested in discussing preferences for this.
The text was updated successfully, but these errors were encountered:
Socrata's new landing page involved some rearranging of how URL's are structured. Namely, landing pages now mostly displays metadata about a dataset. To access the "grid view" (the "old" view), which shows much of the raw data, you must add
/data
to the end of the URL. For instance, the landing page for Chicago salaries are:While the grid view is:
But, anyone copying/pasting the grid view URL will receive an error for an invalid Socrata URL. Here is the minimally reproducible error:
First, we will need to decide if we want to support the
/data
suffix. We currently support 2 URL structures: valid SoDA URLs and "human-readable" URLs as they appear in the browser. This would be a modification to the latter. But, it may make it easier for users who simply want to copy/paste a URL into theread.socrata()
function to make it easy to retrieve data.If we do support it, we must fully support it for future versions and would likely need to support different permutations if they're rolled out. For instance, if future URL syntaxes end with
/graph
or/lens
or '/dashboard`, then we may need to support those as well.An inbetween solution is simply throwing a more descriptive warning when encountering
/data
, so we neither support it but give users more descriptions.To date, we have not received any errors on this and haven't seen anything reported on StackOverflow, so I believe urgency is low.
Interested in discussing preferences for this.
The text was updated successfully, but these errors were encountered: