test_ds <- dataset_df(
rowid = defined(c("eg:1", "eg:2"),
namespace = "http://example.com/dataset#"
),
geo = defined(
gdp$geo[1:2],
label = "Country",
concept = "http://example.com/prop/geo",
namespace = "https://eionet.europa.eu/geo/$1"
),
dataset_bibentry = dublincore(
title = "Example Dataset",
creator = person("John", "Doe")
)
)
# returns invisibly the contents of the text file serialisation:
testdescription <- describe(test_ds, con = tempfile())
testdescription
Run the code above in your browser using DataLab