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.