Redland - RDF Application Framework - Tcl Interface

Installing the Redland Tcl interface

This is not automatically built or installed at present since this interface may not be required. You can easily build it by hand as follows

  cd tcl
  make build-tcl
  make test-tcl   # optional

To install it system wide (this is optional) do this as root:

  root# make install-tcl

The Tcl interface has been tested with Tcl 8.0.5, 8.3 and is alpha quality - the test and examples work.

Redland Tcl API Introduction

The Tcl API is an object-based API with the class names and method names flattened into Tcl procedure names like this: librdf_class_method - the same names as in the underlying C API. The object references become Tcl variables.

Testing the Redland Tcl interface

The example program provided parses an RDF/XML source file into a model. It should be run with two arguments - the URI of the content (as file:/path/to/content) and the parser name (say, raptor):

   tcl example.tcl file:../perl/dc.rdf raptor

NOTE: ONLY file: URIs work at present.

Other RDF Tcl APIs and applications


Copyright 2001 Dave Beckett, Institute for Learning and Research Technology, University of Bristol