How to run Apache Jena in Android

Apache Jena is an Open Source framework for building Semantic Web and Linked Data applications.

It's quite popular and super-easy to run SPARQL queries from Eclipse IDE using Apache Jena library.

However, there are not a lot of resources/support available online when you choose to use this framework to make an Android application.

There is one library which is an extension of Apache Jena for the Android Platform. Its called Android Jena.

It was last updated 5 years back and most of the code was updated 9 years ago.

I have created an Android application for my semester-long project so you are in luck, my friend.

How did I make it work?

After a lot of googling, I found that we need these set of libraries to make it work with Android.

You need to add these libraries to the Android project. You can download these libraries from my Git project and use it in yours.

If you don't know how to add an external jar in your Android project?

Read this answer. Adding an external library in Android studio

When you are done you should have a project structure like this

And Your bulid.gradle file would look like this

That is the setup part. You have already won 80% of the battle. Good luck with the rest.

Putting up content takes a lot of time and effort 😓.
👏 clap 👏 If you think you learned something from this article.
You can find me on Stackoverflow,Github,and,on Linkedin.
Give feedback and feel free to correct mistakes.




Android Developer | Arizona State University | NASA Psyche Research Aide

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Translating Documentation : An Introduction

Guide to studying for PSPO II

18 Disastrous IT Outsourcing Mistakes and How to Avoid Them

Vertex AI custom training jobs in GitLab CI

Micro frontends vs SPA’s

Why Organizations Need Asset Tracking System?

Virtual Machines Azure

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rohit Singh

Rohit Singh

Android Developer | Arizona State University | NASA Psyche Research Aide

More from Medium

What is Kotlin ?

Making a Dictionary Application using HMS Kits

Daily Native Dev: Use latest CMake with Android SDK

How to Mute Audio and Adjust Volume During a Video Call in Android Using the Agora SDK