Skip to content

nhukhanhdl/easyrdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyRdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF. It was designed for use in mixed teams of experienced and inexperienced RDF developers. It is written in Object Oriented PHP.

During parsing EasyRdf builds up a graph of PHP objects that can then be walked around to get the data to be placed on the page.

Data is typically loaded into a EasyRdf_Graph object from source RDF documents. The source document could either be an RDF file on the web or the output of a Construct or Describe SPARQL query from a triplestore.

Example

$foaf = new EasyRdf_Graph("http://www.aelius.com/njh/foaf.rdf");
$me = $foaf->primaryTopic();
echo "My name is: ".$me->get('foaf:name')."\n";

Downloads

The latest version of EasyRdf can be downloaded from GitHub.

Links

Requirements

  • PHP 5.2.1

Features

  • API documentation written in phpdoc
  • Unit tests written using phpunit
  • Choice of RDF parser:
    • Built-in: RDF/JSON, N-Triples
    • ARC2: RDF/XML, Turtle, RSS, microformats, eRDF, RDFa, ...
    • Redland Bindings: RDF/XML, N-Triples, Turtle, TriG, RSS Tag Soup, ...
    • rapper: RDF/XML, N-Triples, Turtle, TriG, RSS Tag Soup, ...
  • Choice of RDF serialiser:
    • Built-in: RDF/JSON, N-Triples, RDF/XML, Turtle
    • ARC2: RDF/JSON, RDF/XML, N-Triples, Turtle, POSHRDF
    • rapper: RDF/JSON, N-Triples, RDF/XML, Turtle, RSS, Atom, Dot, ...
  • Optional support for Zend_Http_Client
  • No required external dependancies upon other libraries (PEAR, Zend, etc...)
  • Complies with Zend Framework coding style.
  • Type mapper - resources of type foaf:Person can be mapped into PHP object of class Foaf_Person
  • Comes with a number of examples

More Examples

About

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.

Resources

License

Stars

Watchers

Forks

Packages

No packages published