The Parser class provides methods to parse RDF content into a Redland RDF model.
Methods
Parser-initialize
: Initialize a Parser object.parseFileIntoModel
: Parse the contents of a file into a model.freeParser
: Free memory used by a librdf parser.
See also
redland
: redland package
Examples
world <- new("World")
storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'")
model <- new("Model", world, storage, options="")
# Create the default "rdfxml" parser
parser <- new("Parser", world)
filePath <- system.file("extdata/example.rdf", package="redland")
parseFileIntoModel(parser, world, filePath, model)