freeModel {redland}R Documentation

Free memory used by a librdf model.

Description

Free memory used by a librdf model.

Usage

freeModel(.Object)

## S4 method for signature 'Model'
freeModel(.Object)

Arguments

.Object

a Model object

Details

After this method is called, the Model object is no longer usable and should be deleted "rm(model)" and a new object created.

Examples

world <- new("World")
storage <- new("Storage", world, "hashes", name="", options="hash-type='memory'")
model <- new("Model", world, storage, options="")
# At this point, some operations would be performed with the model.
# See '?redland' for a complete example.
# When the Model object is no longer needed, the resources it has allocated can be freed.
freeModel(model)
rm(model)

[Package redland version 1.0.17-18 Index]