Constructs a bibliographic metadata record conforming to the
DataCite Metadata Schema. The resulting
object is stored as a modified utils::bibentry() enriched with structured
Dublin Core and DataCite-compliant metadata.
as_datacite(x, type = "bibentry", ...)datacite(
Title,
Creator,
Identifier = NULL,
Publisher = NULL,
PublicationYear = NULL,
Subject = subject_create(term = "data sets", subjectScheme =
"Library of Congress Subject Headings (LCSH)", schemeURI =
"https://id.loc.gov/authorities/subjects.html", valueURI =
"http://id.loc.gov/authorities/subjects/sh2018002256"),
Type = "Dataset",
Contributor = NULL,
Date = ":tba",
DateList = NULL,
Language = NULL,
AlternateIdentifier = ":unas",
RelatedIdentifier = ":unas",
Format = ":tba",
Version = "0.1.0",
Rights = ":tba",
Description = ":tba",
Geolocation = ":unas",
FundingReference = ":unas"
)
is.datacite(x)
# S3 method for datacite
is.datacite(x)
# S3 method for datacite
print(x, ...)
as_datacite(x, type) returns the DataCite bibliographical metadata
of x either as a list, a bibentry object, an N-Triples text serialisation
or a dataset_df object.
A utils::bibentry() object with DataCite-compliant fields. Use
as_datacite() to extract the metadata as a list or bibentry object.
is.datacite(x) returns a logical values (if the object
x is of class datacite).
An object that is tested if it has a class "datacite".
A DataCite 4.4 metadata can be returned as:
"list", "dataset_df", "bibentry" (default), or "ntriples".
Optional parameters to add to a datacite object.
For example, author = person("Jane", "Doe") adds an author if
type = "dataset_df".
The name(s) by which the resource is known. Similar to dct:title.
One or more utils::person() objects describing the main
authors or contributors responsible for creating the resource.
A persistent identifier (e.g., DOI or URI). May refer to a specific version or all versions of the resource.
The name of the organization that holds, publishes, or
distributes the resource. Required by DataCite. See publisher().
The year of public availability (in YYYY format).
See publication_year().
A topic, keyword, or classification term. See subject() and
subject_create() for structured vocabularies.
The resource type. Defaults to "Dataset" for general use. See
dcm:type.
An individual or institution that contributed to the development, distribution, or curation of the resource.
A date in "YYYY", "YYYY-MM-DD" or ISO datetime format.
Can also be a Date or POSIXct object.
A list of multiple dates. Currently not supported.
Language code as per IETF BCP 47 / ISO 639-1. See language().
Optional local or secondary identifier. Defaults
to ":unas".
Related resources (e.g., prior versions, papers).
Defaults to ":unas".
A technical format (e.g., "application/pdf", "text/csv").
A free-text version string (e.g., "1.0.0"). Defaults to
"0.1.0". See version().
Licensing or usage restrictions for the resource. Defaults to
":tba". See rights().
Free-text summary or additional information. Defaults to
":tba".
Geographic location covered or referenced by the resource.
See geolocation().
Information about funding or financial support.
Defaults to ":unas". Structured funding metadata not yet implemented.
DataCite is a leading non-profit organization that provides persistent identifiers (DOIs) for research data and other research outputs. Members of the research community use DataCite to register datasets with globally resolvable metadata for citation and discovery.
This function sets "Dataset" as the default resource type. The Size
attribute (e.g., bytes, pages, etc.) is automatically added if available.
Learn more in the vignette:
bibrecord
Other bibrecord functions:
as_dublincore(),
bibrecord()
datacite(
Title = "Growth of Orange Trees",
Creator = c(
person(
given = "N.R.",
family = "Draper",
role = "cre",
comment = c(VIAF = "http://viaf.org/viaf/84585260")
),
person(
given = "H",
family = "Smith",
role = "cre"
)
),
Publisher = "Wiley",
Date = 1998,
Language = "en"
)
# Extract bibliographic metadata
as_datacite(orange_df)
# As a list
as_datacite(orange_df, "list")
Run the code above in your browser using DataLab