Learn R Programming

rdflib (version 0.2.9)

write_nquads: 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

Run this code
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