
Extract Socrata Dataset Metadata
soc_metadata.Rd
Retrieves metadata attributes from a tibble returned by read_socrata()
or using the dataset url, including
dataset-level information and column-level descriptions.
Value
An object of class soc_meta
, which includes:
- id
Asset identifier (four-by-four ID).
- name
Asset name.
- attribution
Attribution or publisher of the asset.
- owner_name
Display name of the asset owner.
- provenance
Provenance of asset (official or community).
- description
Textual description of the asset.
- created
Date asset was created.
- data_last_updated
Date asset data was last updated
- metadata_last_updated
Date asset metadata was last updated
- domain_category
Category label assigned by the domain.
- domain_tags
Tags applied by the domain.
- domain_metadata
Metadata associated with the asset assigned by the domain.
- columns
A dataframe with the following columns:
- column_name
Names of asset columns.
- column_label
Labels of asset columns.
- column_datatype
Datatypes of asset columns.
- column_description
Description of asset columns.
- permalink
Permanent URL where the asset can be accessed.
- link
Direct asset link.
- license
License associated with the asset.
Details
This function pulls out descriptive metadata such as the dataset's ID, title, attribution, category, creation and update timestamps, description, any domain-specific fields, and field descriptions defined by the data provider.
Examples
if (FALSE) { # \dontrun{
url <- "https://data.cityofchicago.org/resource/wrvz-psew.json"
data <- read_socrata(url)
metadata <- soc_metadata(data)
print(metadata)
} # }