| resource | R Documentation |
resource vectorA vector of RDF resources with descriptions held in an orthogonal table.
resource( uri = character(), description = data.frame(uri = unique(uri)), fill_missing = FALSE ) is_resource(x)
uri |
A character vector of URIs |
description |
A data frame of descriptions (must have a |
fill_missing |
A boolean specifying whether rows be added to the
description for missing URIs (defaults to |
x |
Any vector |
An S3 vector of class ldf_resource.
resource("http://example.net")
uris <- c("http://example.net/id/apple",
"http://example.net/id/banana",
"http://example.net/id/carrot")
labels <- c("Apple","Banana","Carrot")
description <- data.frame(uri=uris, label=labels)
r <- resource(uris, description)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.