Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] Need help using Apache Jena libraries

Lorenz B. 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
>     “<Import-Package>org.apache.jena.rdf.model.*;resolution:=optional</Import-Package>”
>     (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!
>
>  
>
> Lukas.
>
>  
>
>
>
> _______________________________________________
> protege-dev mailing list
> protege-dev at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-dev

-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-dev/attachments/20170103/8011567c/attachment.html>


More information about the protege-dev mailing list