:package: Common utilities for RDF. Currently the package merely
provides a write_nquads S3 method for data.frame and list objects
to coerce them into the N-Quads
format. Additional
utilities may be added at a later date.
You can install the released version of rdftools from GitHub with:
remotes::install_github("cboettig/rdftools")
rdftools can write data.frame and list objects into the Resource
Description Format (RDF) as an nquads file. This can then be imported
into common RDF Databases. See
virtuoso or
rdflib for examples importing
nquads files and working with RDF.
library(rdftools)
write_nquads(iris, "iris.nq", prefix = "iris")
x <- list(A1 = list(B = 1, C = 2), A2 = "bob")
write_nquads(x, "a_list.nq", prefix = "x")
rdftools also hosts an experimental DSL for constructing SPARQL
queries.
Please note that the rdftools project is released with a Contributor
Code of Conduct. By contributing to this project,
you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.