| entity | R Documentation |
Create a data entity
entity(id, type, ...)
id |
Scalar value with |
type |
String with |
... |
Optional additional entity values/properties. |
List with an entity object.
# create entity for an organisation
organisation_uol <- rocrateR::entity(
"https://ror.org/04xs57h96",
type = "Organization",
name = "University of Liverpool",
url = "http://www.liv.ac.uk"
)
# create an entity for a person
person_rvd <- rocrateR::entity(
"https://orcid.org/0000-0001-5036-8661",
type = "Person",
name = "Roberto Villegas-Diaz",
affiliation = list(`@id` = organisation_uol$`@id`)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.