tmp <- tempfile(fileext = ".nq")
library(datasets)
## convert data.frame to nquads
write_nquads(iris, tmp)
rdf <- read_nquads(tmp)
## or starting a native rdf object
write_nquads(rdf, tempfile(fileext = ".nq"))
Run the code above in your browser using DataLab