How To Install librdf-trine-perl on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 489 words
Introduction
In this tutorial we learn how to install librdf-trine-perl on Ubuntu.
What is librdf-trine-perl
librdf-trine-perl is:
Resource Description Framework (RDF) is a standard model for data interchange on the Web.
RDF::Trine provides an RDF framework with an emphasis on extensibility, API stability, and the presence of a test suite. The package consists of several components:
- RDF::Trine::Model - RDF model providing access to a triple store.
- RDF::Trine::Parser - Native RDF parsers (RDF/XML, RDFa, Turtle, RDF/JSON, TriG, N-Triples, and N-Quads).
- RDF::Trine::Serializer, a set of native RDF serializers for RDF/XML, Turtle, RDF/JSON, N-Triples, Canonical N-Triples, and N-Quads.
- RDF::Trine::Store::DBI - A triple store for MySQL and SQLite, based on the Redland schema.
- RDF::Trine::Iterator - Iterator classes for variable bindings and RDF statements, used by RDF::Trine::Store, RDF::Trine::Model, and RDF::Query.
- RDF::Trine::Namespace - A convenience class for easily constructing RDF node objects from URI namespaces.
RDFa parser requires the package librdf-rdfa-parser-perl.
DBI backends other than SQLite require either of packages libdbd-pg-perl libdbd-mysql-perl.
Redis store requires the package libredis-perl.
There are three methods to install librdf-trine-perl on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install librdf-trine-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install librdf-trine-perl using apt-get by running the following command:
sudo apt-get -y install librdf-trine-perl
Install librdf-trine-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install librdf-trine-perl using apt by running the following command:
sudo apt -y install librdf-trine-perl
Install librdf-trine-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install librdf-trine-perl using aptitude by running the following command:
sudo aptitude -y install librdf-trine-perl
How To Uninstall librdf-trine-perl on Ubuntu
To uninstall only the librdf-trine-perl package we can use the following command:
sudo apt-get remove librdf-trine-perl
Uninstall librdf-trine-perl And Its Dependencies
To uninstall librdf-trine-perl and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove librdf-trine-perl
Remove librdf-trine-perl Configurations and Data
To remove librdf-trine-perl configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge librdf-trine-perl
Remove librdf-trine-perl configuration, data, and all of its dependencies
We can use the following command to remove librdf-trine-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge librdf-trine-perl
Dependencies
librdf-trine-perl have the following dependencies:
- libalgorithm-combinatorics-perl
- libcache-lru-perl
- libdbd-sqlite3-perl
- libdbi-perl
- libdbix-connector-perl
- liberror-perl
- libiri-perl
- libjson-perl
- liblog-log4perl-perl
- libmoose-perl
- libmoosex-arrayref-perl
- libossp-uuid-perl
- libset-scalar-perl
- libtext-csv-xs-perl
- libtext-table-perl
- liburi-perl
- libwww-perl
- libxml-commonns-perl
- libxml-namespace-perl
- libxml-sax-perl
- perl
References
Summary
In this tutorial we learn how to install librdf-trine-perl package on Ubuntu using different package management tools: apt, apt-get and aptitude.