Easyrdf

EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
Alternatives To Easyrdf
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Rdflib1,9041,5674444 days ago33July 26, 2022231bsd-3-clausePython
RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
Akutan1,658
4 years ago18apache-2.0Go
A distributed knowledge graph store
Nlp Knowledge Graph1,340
19 days agomit
自然语言处理、知识图谱、对话系统三大技术研究与应用。
Awesome Graph991
a month ago8
A curated list of resources for graph databases and graph computing tools
Badwolf958
a year ago22March 31, 202218apache-2.0Go
Temporal graph store abstraction layer.
Oxigraph7724a day ago5March 19, 202261apache-2.0Rust
SPARQL graph database
Easyrdf5603,113712 years ago18December 02, 202056other
EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
Ontop5575a day ago12April 19, 202263apache-2.0Java
Ontop is a platform to query relational databases as Virtual RDF Knowledge Graphs using SPARQL
Graph Notebook552
3 days ago55June 11, 202222apache-2.0Jupyter Notebook
Library extending Jupyter notebooks to integrate with Apache TinkerPop, openCypher, and RDF SPARQL.
Rdfstore Js53669113 years ago76September 03, 201670mitJavaScript
JS RDF store with SPARQL support
Alternatives To Easyrdf
Select To Compare


Alternative Project Comparisons
Readme

EasyRdf

Build Status

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.

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.

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.

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.

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.

Links

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.

For further information about extending / hack EasyRdf please read DEVELOPER.md.

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.

php -S localhost:8080 -t examples

Then open the following URL in your browser: http://localhost:8080/

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.

Popular Rdf Projects
Popular Graph Projects
Popular Data Formats Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Php
Graph
Rdf
Sparql