semsol/arc2

ARC2 is a PHP library for working with RDF. It also provides a MySQL-based triplestore with SPARQL support.

3.0.0 2023-09-13 07:18 UTC

This package is auto-updated.

Last update: 2024-02-20 11:42:41 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

ARC2 is a PHP 8.0+ library for working with RDF. It also provides a MySQL-based triplestore with SPARQL support. Older versions of PHP may work, but are not longer tested.

Test status:

Database Status
MariaDB 10.5
MariaDB 10.6
MariaDB 10.9
MariaDB 10.10
MariaDB 10.11
MySQL 5.5
MySQL 5.6
MySQL 5.7
MySQL 8.0 - incomplete! see below
MySQL 8.1 - incomplete! see below

Documentation

For the documentation, see the Wiki. To quickly get started, see the Getting started guide.

Installation

Requires PHP 8.0+.

Package available on Composer.

You should use Composer for installation:

composer require semsol/arc2:^3

Further information about Composer usage can be found here, for instance about autoloading ARC2 classes.

RDF triple store

SPARQL support

Please have a look into SPARQL-support.md to see which SPARQL 1.0/1.1 features are currently supported.

Known database problems

MySQL 8.0+

The following error occurs when using a REGEX function inside a SELECT query.

General error: 3995 Character set 'utf8mb3_unicode_ci' cannot be used in conjunction with 'binary' in call to regexp_like.

Internal information for developers

Please have a look here to find information about maintaining and extending ARC2 as well as our docker setup for local development.