How To Install python-rdflib on CentOS 7
Introduction
In this tutorial we learn how to install python-rdflib
on CentOS 7.
What is python-rdflib
RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information. The library contains parsers and serializers for RDF/XML, N3, NTriples, Turtle, TriX, RDFa and Microdata. The library presents a Graph interface which can be backed by any one of a number of Store implementations. The core rdflib includes store implementations for in memory storage, persistent storage on top of the Berkeley DB, and a wrapper for remote SPARQL endpoints. A SPARQL 1.1 engine is also included.
We can use yum
or dnf
to install python-rdflib
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-rdflib.
Install python-rdflib on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-rdflib
using yum
by running the following command:
Install python-rdflib 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 python-rdflib
using dnf
by running the following command:
How To Uninstall python-rdflib on CentOS 7
To uninstall only the python-rdflib
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-rdflib
on CentOS 7 using yum
and dnf
.