write_nquads {rdflib} | R Documentation |
write object out as nquads
Description
write object out as nquads
Usage
write_nquads(x, file, ...)
Arguments
x |
an object that can be represented as nquads |
file |
output filename |
... |
additional parameters, see examples |
Examples
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"))
[Package rdflib version 0.2.8 Index]