# Redland - RDF Application Framework - PHP Interface

## Installing the Redland PHP interface

This is built if `--with-php` is given to the configure line. The standard 'make' at the top level will build it.

You can also compile the PHP interface by hand as follows:

      cd php
      make
      make check   # optional

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

      # THIS IS UNTESTED
      root# make install

The PHP interface has been lightly tested with PHP 4.3.3, 4.1.2 and is alpha quality - will crash and likely to change a lot.

## Redland PHP API Introduction

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

## Testing the Redland PHP interface

There should be an example program to test the PHP interface, but not yet.

## Other RDF PHP APIs and applications

- RAP RDF API for PHP by Chris Bizer, PHP package for parsing, searching, manipulating and serializing RDF models. GPL/LGPL License.
- PHP XML Classes include a PHP RDF/XML parser (class_rdf_parser.php) and PHP RDQL (partial) query parser and engine (class_rdql.php).
- rdftp - PHP RDF Server by Vangelis Vassiliadis providing query and update operations on RDF content in a relational database.

Copyright 2002-2003 Dave Beckett, Institute for Learning and Research Technology, University of Bristol