Parser-class {redland} | R Documentation |
An RDF Parser object
Description
The Parser class provides methods to parse RDF content into a Redland RDF model.
Slots
librdf_parser
A redland parser object
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)
[Package redland version 1.0.17-18 Index]