2017 © Pedro Peláez
 

library easyrdf

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

image

easyrdf/easyrdf

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

  • Friday, March 23, 2018
  • by njh
  • Repository
  • 33 Watchers
  • 389 Stars
  • 3,378,280 Installations
  • PHP
  • 43 Dependents
  • 0 Suggesters
  • 99 Forks
  • 59 Open issues
  • 17 Versions
  • 12 % Grown

The README.md

EasyRdf

Build Status, (*1)

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 and has been tested extensively using PHPUnit., (*2)

After 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. Dump methods are available to inspect what data is available during development., (*3)

Data is typically loaded into an [EasyRdf\Graph] object from source RDF documents, loaded from the web via HTTP. The [EasyRdf\GraphStore] class simplifies loading and saving data to a SPARQL 1.1 Graph Store., (*4)

SPARQL queries can be made over HTTP to a Triplestore using the [EasyRdf\Sparql\Client] class. SELECT and ASK queries will return an [EasyRdf\Sparql\Result] object and CONSTRUCT and DESCRIBE queries will return an [EasyRdf\Graph] object., (*5)

Example

$foaf = new \EasyRdf\Graph("http://njh.me/foaf.rdf");
$foaf->load();
$me = $foaf->primaryTopic();
echo "My name is: ".$me->get('foaf:name')."\n";

Downloads

The latest stable version of EasyRdf can be downloaded from the EasyRdf website., (*6)

Requirements

  • PHP 7.1 or higher

Features

  • API documentation written in phpdoc
  • Extensive unit tests written using phpunit
  • Built-in parsers and serialisers: RDF/JSON, N-Triples, RDF/XML, Turtle
  • Optional parsing support for: ARC2, rapper
  • Optional support for [Zend\Http\Client]
  • No required external dependencies 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
  • Support for visualisation of graphs using GraphViz
  • Comes with a number of examples

List of Examples

Contributing

We welcome any contributions. For further information please read CONTRIBUTING.md., (*7)

For further information about extending / hack EasyRdf please read DEVELOPER.md., (*8)

Running Examples

The easiest way of trying out some of the examples is to use the PHP command to run a local web server on your computer., (*9)

php -S localhost:8080 -t examples

Then open the following URL in your browser: http://localhost:8080/, (*10)

Licensing

The EasyRdf library and tests are licensed under the BSD-3-Clause license. The examples are in the public domain, for more information see UNLICENSE., (*11)

The Versions

23/03 2018

dev-master

9999999-dev http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • ext-mbstring *
  • ext-pcre *
  • php >=5.3.0

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

01/11 2015

0.10.0-alpha.1

0.10.0.0-alpha1 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

27/02 2015

0.9.x-dev

0.9.9999999.9999999-dev http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

27/02 2015

0.9.1

0.9.1.0 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

07/11 2014

0.9.0

0.9.0.0 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

04/11 2014

0.9.0-rc.5

0.9.0.0-RC5 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

04/11 2014

0.9.0-rc.4

0.9.0.0-RC4 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

27/10 2014

0.9.0-rc.3

0.9.0.0-RC3 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

27/10 2014

0.9.0-rc.2

0.9.0.0-RC2 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

23/10 2014

0.9.0-rc.1

0.9.0.0-RC1 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8
  • ext-mbstring *
  • ext-pcre *

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

29/01 2014

0.8.1

0.8.1.0 https://github.com/Wikidata/easyrdf_lite

EasyRdf Lite is a customized version of EasyRdf

  Sources   Download

BSD

30/12 2013

0.8.0

0.8.0.0 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8

 

The Development Requires

rdfa rdf semantic web turtle sparql linked data

18/01 2013

0.8.0-beta.1

0.8.0.0-beta1 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8

 

The Development Requires

rdfa rdf semantic web turtle linked data

03/01 2013

0.7.x-dev

0.7.9999999.9999999-dev http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8

 

rdf semantic web turtle linked data

03/01 2013

0.7.2

0.7.2.0 http://www.easyrdf.org/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8

 

rdf semantic web turtle linked data

31/10 2012

0.7.1

0.7.1.0 http://www.aelius.com/njh/easyrdf/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8

 

rdf semantic web turtle

12/10 2012

0.7.0

0.7.0.0 http://www.aelius.com/njh/easyrdf/

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.2.8

 

rdf semantic web turtle