# 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

      # optional, but it may require a top-level 'make install
      # first depending on the operating system and how it
      # handles shared libraries
      make check

To install it system wide do this as root (or maybe via sudo make install). NOTE: This is untested:

      root# make install

The PHP interface has been lightly tested with PHP 4.3.3, 4.3.2, 4.2.2, 4.1.2 and is beta quality - has been used in production and tested.

## 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-2004 Dave Beckett, Institute for Learning and Research Technology, University of Bristol