Learn R Programming

redland (version 1.0.17-6)

Parser-class: An RDF Parser object

Description

The Parser class provides methods to parse RDF content into a Redland RDF model.

Arguments

Methods

{: 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

Run this code
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)

Run the code above in your browser using DataLab