How To Install php-EasyRdf on CentOS 7
Introduction
In this tutorial we learn how to install php-EasyRdf
on CentOS 7.
What is php-EasyRdf
EasyRdf is a PHP library designed to make it easy to consume and produce RDF (http 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 a 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. Autoloader
We can use yum
or dnf
to install php-EasyRdf
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-EasyRdf.
Install php-EasyRdf on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-EasyRdf
using yum
by running the following command:
Install php-EasyRdf on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-EasyRdf
using dnf
by running the following command:
How To Uninstall php-EasyRdf on CentOS 7
To uninstall only the php-EasyRdf
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-EasyRdf
on CentOS 7 using yum
and dnf
.