my_dataset <- dataset_df(
country_name = defined(
c("AD", "LI"),
concept = "http://data.europa.eu/bna/c_6c2bb82d",
namespace = "https://www.geonames.org/countries/$1/"
),
gdp = defined(
c(3897, 7365),
label = "Gross Domestic Product",
unit = "million dollars",
concept = "http://data.europa.eu/83i/aa/GDP"
),
identifier = c(
obs = "https://dataobservatory-eu.github.io/dataset-template#"
),
dataset_bibentry = dublincore(
title = "GDP of Andorra and Liechtenstein",
description = "A small but semantically rich dataset example.",
creator = person("Jane", "Doe", role = "cre"),
publisher = "Open Data Institute",
language = "en"
)
)
# Basic usage
print(my_dataset)
head(my_dataset)
summary(my_dataset)
# Metadata access
as_dublincore(my_dataset)
as_datacite(my_dataset)
# Export description as RDF triples
my_description <- describe(my_dataset, con = tempfile())
my_description
Run the code above in your browser using DataLab