Skip to contents

Sibling discovery helper to morie_datasets_ontario_ckan_layers(), covering the non-Ontario open-data Socrata portals morie ships offline-mode fixtures + mocked live-mode dispatch for.

Usage

morie_datasets_external_socrata_layers()

Value

A data.frame with columns dataset_key, label, portal, resource_url, fixture.

Details

Coverage:

  • City of Chicago "Crimes – 2001 to Present" (ijzp-q8t2).

  • City of Chicago "Arrests" (dpt3-jri9; 3PP).

  • City of Chicago "Boundaries-Neighborhoods" (y6yq-dbs2).

  • City of Chicago "Boundaries-Police-Beats (current)" (n9it-hstw; 3PP+).

  • City of Chicago "Boundaries-Police-Districts (current)" (24zt-jpfn; 3PP+).

  • City of Chicago "Boundaries-Wards (2023-)" (sp34-6z76; 3UU, SODA3-only).

  • City of Chicago "Boundaries-Community-Areas (current)" (cauq-8yn6; 3UU, SODA3-only).

  • City of Chicago "IUCR Code Dictionary" (c7ck-438e; 3UU).

  • NYC OpenData NYPD Stop, Question and Frisk (SQF) microdata – three published years (2022 = e4yi-bvqr, 2023 = rbed-zzin, 2024 = 7v9w-k82r).

All Chicago Socrata endpoints accept both the numeric/UUID specifier (/resource/<id>.json) and the publisher's human-readable alias (/resource/<alias>.json, e.g. /resource/arrests.json or /resource/crimes.json). morie's wrappers default to the UUID for stability; pass resource_id = "<alias>" to exercise the alias path.

Examples

reg <- morie_datasets_external_socrata_layers()
reg[, c("dataset_key", "resource_url")]
#>                 dataset_key
#> 1             chicago_crime
#> 2           chicago_arrests
#> 3     chicago_neighborhoods
#> 4      chicago_police_beats
#> 5  chicago_police_districts
#> 6             chicago_wards
#> 7   chicago_community_areas
#> 8        chicago_iucr_codes
#> 9              nyc_sqf_2024
#> 10             nyc_sqf_2023
#> 11             nyc_sqf_2022
#>                                              resource_url
#> 1  https://data.cityofchicago.org/resource/ijzp-q8t2.json
#> 2  https://data.cityofchicago.org/resource/dpt3-jri9.json
#> 3  https://data.cityofchicago.org/resource/y6yq-dbs2.json
#> 4  https://data.cityofchicago.org/resource/n9it-hstw.json
#> 5  https://data.cityofchicago.org/resource/24zt-jpfn.json
#> 6  https://data.cityofchicago.org/resource/sp34-6z76.json
#> 7  https://data.cityofchicago.org/resource/cauq-8yn6.json
#> 8  https://data.cityofchicago.org/resource/c7ck-438e.json
#> 9   https://data.cityofnewyork.us/resource/7v9w-k82r.json
#> 10  https://data.cityofnewyork.us/resource/rbed-zzin.json
#> 11  https://data.cityofnewyork.us/resource/e4yi-bvqr.json