How Do You Install and Configure the rdf4j Server and Workbench GUI?

Problem scenario
You want to use the rdf4j (Resource Description Framework for Java). You want to install the rdf4j server and workbench. You are using Debian 9 Linux. What should you do?

Solution
Prerequisites
i. We recommend having a 30 GB of hard disk free.

ii. We recommend having 5.75 GB of RAM (it can be a combination of RAM and swap space). If you need assistance with creating more swap space, see this posting.

iii. Install Java. Run this: sudo apt -y install default-jdk

iv. Install Tomcat. We have not had good luck with installing Tomcat from binary installation media; if you want directions for installing Tomcat from source installation media, see this posting "How Do You Get Apache Tomcat to Work from the Source Installation Media?"

v. You have unzip installed. For Debian or Ubuntu Linux, run this: sudo apt -y install unzip

Procedures
1.a. Install the RDF4J. Bring the .zip file over from here https://rdf4j.eclipse.org/download/

Click on the SDK that has a .zip extension near the top. You will have to make some more clicks and download it to your workstation (as we do not know how to download it directly to your Linux server). Using WinSCP you can bring it over to the Linux server.

1.b. Place the file in the webapps directory of the Tomcat installation. It may be here: /opt/tomcat9/webapps/

1.c. Run this command: sudo unzip nameOffile.zip

2.a. Go into the newly created directory from this eclipse zipped file. Go into the war directory. Copy the two .war files to the webapps directory (e.g., /opt/tomcat9/webapps/).

3.a. Start Tomcat if it was not running (e.g., sudo bash /opt/tomcat9/bin/catalina.sh start). (If it was running, wait a minute for it to create rdf4j-workbench and rdf4j-server directories in webapps. Tomcat will automatically do this from the .war files placed in it; Tomcat does not need to be restarted.)

3.b. Make a note of the external IP address of the Linux server. If you don't know it, run this command (with no quotes): curl icanhazip.com

4.a. Compose two URLs like these but substitute x.x.x.x with the IP address of the server:

http://x.x.x.x:8080/rdf4j-workbench

http://x.x.x.x:8080/rdf4j-server

4.b. Open a web browser. Go to each URL. You should see a dashboard with some orange font for each one.

FYI

  • "Rya is a scalable RDF data management system built on top of Apache Accumulo®." (Taken from https://rya.apache.org/)
  • If you want directions on how to install Rya, see this posting.

Leave a comment

Your email address will not be published. Required fields are marked *