SPARQLer

Your "sparqling" ORM for PHP

Photo by Jaeyoon Jeong on Unsplash

Read the Docs

Discover all the details of the API and explore the many (and unexpected!) features packed into SPARQLer.

Go to documentation

View the Examples

Get a look to the many provided examples, to get an idea of how SPARQLer can help you building your own queries in a fluent way.

Go to examples

What is SPARQLer?

SPARQLer is a SPARQL Object-Relational Mapping for PHP, built on top of EasyRDF (the most popular PHP library for RDF handling). In other words: a PHP library to access linked data sources in a object-oriented flavour, hiding the SPARQL query language behind a set of convenient (and ofter more familiar) structures and functions.

Why SPARQLer?

Most developers are seasoned with the SQL query language and relational databases (like MariaDB or PosteGreSQL), where information is organized in tables and columns. Most of the potentials of publicly available and collectively updated linked "graphs" (like Wikidata or DBPedia) are still untapped due scarse adoption and the steep learning curve in understanding a different information model.
SPARQLer provides a SQL-like fluent interface to such informations, and permit to a larger audience to approach those tools. The SPARQLer API is largely inspired by the Laravel's native SQL ORM, Eloquent, which is already used by many PHP developers.
Plus, even if you already know SPARQL, SPARQLer is a convenient interface to dinamically build your queries and wrap data in the model of your application.

SPARQLer 🥂