Loads RDF data into the store from a file.
Usage
rdf_load_file(store, file, format = NULL, base_iri = NULL)
Arguments
- store
An RDF store handle
- file
Path to the RDF file
- format
RDF format. If NULL, guessed from file extension.
- base_iri
Optional base IRI for resolving relative URIs
Value
Invisibly returns NULL
Examples
store <- rdf_store()
# Create a temporary RDF file
tmp <- tempfile(fileext = ".nt")
writeLines('<http://example.org/s> <http://example.org/p> "value" .', tmp)
rdf_load_file(store, tmp)
rdf_size(store)
#> [1] 1