RDF Logo  PHP Logo SourceForge Logo

RAP - RDF API for PHP V0.9.1

RAP is a software package for parsing, searching, manipulating, serializing and serving RDF models.

Its features include:

For further information about RAP see:


Download and Installation

  1. Download the current version from: http://sourceforge.net/projects/rdfapi-php/
  2. Unpack the zip file.
  3. Include RDF API into your scripts:
    • define("RDFAPI_INCLUDE_DIR", "C:/Apache/htdocs/rdf_api/api/");
    • include(RDFAPI_INCLUDE_DIR . "RDFAPI.php");
  4. Change the constant RDFAPI_INCLUDE_DIR to the directory in which you have unpacked the zip file.

RAP can be used with PHP 4 or PHP 5.

  • When used with PHP 4 it requires at least version 4.2
  • When used with PHP 5 it requires at least version 5.0.1

License


Status of the code

Version Comment Release Date
V0.9.1

GRDDL parser added.
Improved RDF/XML namespace handling.
Option to create models using RDQL added.
RDF DB Utils bugs fixed.
Improved common vocabulary support.
RSS, FOAF, ATOM vocabularies added.

2004-12-10
V0.9

Resource-centric ResModel API added.
Ontology-centric OntModel API added.
InfModelF and InfModelB inference engine added.
RDF DB Utils added.
RAP Unit Test Suite extended.

2004-10-21
V0.8.1

New MemModel indexing speeding up searches.
Dynamic script inclusion speeding up many operations.
New FindIterator() class added.
RAP Unit Test Suite added.
Multiple bugs fixed.

2004-08-24
V0.8

RDF server supporting the RDF NetAPI added.
RDQL syntax updated according to the W3C member submission.
Multiple bug fixes.

2004-06-01
V0.7.1 Multiple bugs fixed.
Support for XML default namespace (xmlns="uri_namespace").
2004-03-29
V0.7

Improved RDF, N3 and N-Triple parsers and serializers.
Support for the "RDF/XML Syntax Specification (Revised) -
W3C Working Draft 10 October 2003".
RDQLResultIterator added.

2003-11-19
V0.6

Database backend, rdql and n3 support added.

2003-07-31
V0.5 Parser and model operations are much faster now.
Search index and some convenience methods added.
2003-06-01
V0.4 Support for common vocabularies and StatementIterator object added. 2003-02-20
V0.3 Support for rdf:datatype and rdf:nodeID added. 2003-01-13
V0.2 Some bugs fixed.
Documentation updated.
2002-10-08
V0.1 Initial Release. 2002-09-24

 


Contributions

RAP is an open source project and we highly welcome any kind of useful external contributions.

Lots of thanks to

  • Daniel Westphal for the ResModel- and OntModel-APIs and the RDF-S/OWL reasoning support.
  • Radoslaw Oldakowski for the database backend and the RDQL query engine and to
  • Gunnar AA. Grimnes for the N3 support and the RDF DB Utils package
  • Phil Dawes for the NetAPI implementation
  • Tobias Gauß for the MemModel indexing and the unit test suite.
  • Lukas Smith, Sören Auer, Leandro Mariano Lopez, Riccardo Catanzani, Scott Willy for multiple bug reports and fixes.

Open issues

There are some open issues and future ideas which await implementation.
So if you want to contribute some code to RAP, our Open Issues list might give you some valuable ideas :-)


Other RDF tools for PHP

  • pOWL (Sören Auer): Webbased OWL editor and OWL API based on RAP.
  • appmosphere RDF classes (Benjamin Nowack): Lightweight RDF parser and N-Triples serializer.
  • SimpleRdfParser (Morten Frederiksen): A wrapper class around the RAP rdf parser, which parses RDF into a simple array. The SimpleRdfParser is faster than the RAP parser because it doesn't use the rest of the RAP library.
  • Rdfworld.php (Chris Snyder): Rdfworld.php is an RDF to PHP object converter, inspired by Aaron Swartz's TRAMP for Python.
    It allows PHP developers to convert RDF Resources into PHP objects with appropriate properties. The converter is based on RAP V0.3.
  • PHP XML Classes (Luis Argerich): XML/RDF package including RDF parser, storage mechanism and RDQL query interface. The RAP rdf parser is an up-to-date version of the rdf parser from this package. Luis' parser and RDQL query engine haven't been changed for 2 years and don't reflect the current RDF specification any more.
  • rdftp (Vangelis Vassiliadis): rdftp is an RDF server implemented as a PHP script that supports Query and Update operations on RDF content.

References

 


Feedback

To: chris@bizer.de (Chris Bizer)