The Resource Description Framework, or RDF is a widely used data representation model that forms the cornerstone of the Semantic Web. 'RDF' represents data as a graph rather than the familiar data table or rectangle of relational databases.
Maintainer: Carl Boettiger cboettig@gmail.com (ORCID) [copyright holder]
Other contributors:
Bryce Mecum (ORCID) [reviewer]
Anna Krystalli (ORCID) [reviewer]
Viktor Senderov vsenderov@gmail.com (ORCID) [contributor]
It has three main goals:
Easily read, write, and convert between all major RDF serialization formats
Support SPARQL queries to extract data from an RDF graph into a data.frame
Support JSON-LD format as a first-class citizen in RDF manipulations
For more information, see the Wikipedia pages for RDF, SPARQL, and JSON-LD:
To learn more about rdflib, start with the vignettes:
browseVignettes(package = "rdflib")
Configurations via options()
rdf_print_format
:
NULL or "nquads" (default)
any valid serializer name: e.g. "rdfxml", "jsonld", "turtle", "ntriples"
rdf_base_uri
:
Default base URI to use (when serializing JSON-LD only at this time) default is "localhost://"
rdf_max_print
:
maximum number of lines to print from rdf, default 10
Useful links: