Search Mailing List Archives
[protege-dev] Need help using Apache Jena libraries
buehmann at informatik.uni-leipzig.de
Tue Jan 3 01:57:20 PST 2017
If you're working on OWL, yes. Apache Jena is great for RDF when
we'reworking about triples, graphs, etc., but for OWL ontologies the
support is more convenient and complete in OWL API. So, please use OWL
API. This comes for free with Protege.
> Hi everybody, I’m developing a plugin for Protégé and need to walk
> through an ontology encoded in RDF/XML string. I’m trying to use
> Apache Jena libraries for that purpose (should I use the OWL API
> instead?) but can’t get it to work.
> I’ve tried several methods to import the Jena libraries :
> * Importing the separate Jena maven dependencies and including them
> in the “<Embed-Dependency>” section of pom.xml
> * Importing the jena-osgi bundle dependency from maven and including
> it in the “<Embed-Dependency>” section of pom.xml (both first and
> second options resulted in the
> “org.osgi.framework.BundleException: Unresolved constraint in
> bundle ***” error message when launching Protege)
> * Downloading all the Apache Jena dependencies in a new “lib”
> folder, and importing them with the “<Include-Resource>” and
> “<Bundle-ClassPath>” constraints, resulting in conflicts with the
> “log4j” library being not osgi-ready.
> * Trying to import the jena package with the
> (for the case that any other bundle would export it) resulting in
> a “ClassNotFound” exception
> Have any of you guys faced this trouble before? How could I get the
> Apache Jena to work for my plugin? Or should I better use the OWL API
> for the matter? Thank you and happy holidays!
> protege-dev mailing list
> protege-dev at lists.stanford.edu
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the protege-dev