Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


redland (version 1.0.17-18)

Model-class: A Redland Model object

Description

A Model object is used to store the statements (triples) of an RDF model.

Arguments

Slots

librdf_model

A redland model object

Methods

  • Model-initialize: Initialize a Model object addStatement: Add a Statement object to the Model freeModel: Free memory used by a librdf model object

Details

A Model may be created manually by creating Statement and adding them to the Model using addStatement, or a Model may be read in from a previously saved file using parseFileIntoModel. Once a Model is created, it can be queried using Query.

See Also

View examples of creating models by viewing the 'redland_overview' vignette: 'vignette("redland_overview")'

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="")

Run the code above in your browser using DataLab