Search Mailing List Archives
[protege-discussion] cannot find " protege/lib" after installation
mbikinyi brat
mbikinyi_brat at yahoo.com
Fri Aug 6 13:32:48 PDT 2010
Dear Thomas/Jennifer,
Thanks for your responses.
In fact I have done a normal installation without using source code. I want to
compile protege in netbeans so as to run queries using protege-OWL API. I have
followed this
http://protegewiki.stanford.edu/wiki/ProtegeOWL_API_Advanced_Topics and copied
this code into netbeans after creating a java project. I have also selected or
the .jar files(See JAR file screenshot) in the protege installation added onto
netbeans. After adding the jar files, error glyphs appear on netbeans, and
cannot be removed as one of them reads "Create ProtegeOWL in package
photovoltaicsystemontology(see Query in Netbeans file). My querstion is , Is my
JAR files not complete, I have virtually selected all the jar files in the
protege installation. I will be grateful to know how to solve this problem.
Regards,
Nancy
String uri = "http://protege.cim3.net/file/pub/ontologies/travel/travel.owl";
//alternatively, you can specify a local path on your computer //for the
travel.owl ontology. Example: //String uri =
"file:///c:/Work/Projects/travel.owl" OWLModel owlModel =
ProtegeOWL.createJenaOWLModelFromURI(uri); Collection classes =
owlModel.getUserDefinedOWLNamedClasses(); for (Iterator it = classes.iterator();
it.hasNext();) { OWLNamedClass cls = (OWLNamedClass) it.next();
Collection instances = cls.getInstances(false); System.out.println("Class "
+ cls.getBrowserText() + " (" + instances.size() + ")"); for (Iterator jt =
instances.iterator(); jt.hasNext();) { OWLIndividual individual =
(OWLIndividual) jt.next(); System.out.println(" - " +
individual.getBrowserText()); } }
________________________________
From: Thomas Russ <tar at isi.edu>
To: User support for Core Protege and the Protege-Frames editor
<protege-discussion at lists.stanford.edu>
Sent: Fri, August 6, 2010 8:08:21 PM
Subject: Re: [protege-discussion] cannot find " protege/lib" after installation
On Aug 6, 2010, at 11:26 AM, mbikinyi brat wrote:
> Hi,
> I am following the tutorial ""CompileProtegeCoreInEclipse" found at the link
> http://protege.cim3.net/cgi-bin/wiki.pl?CompileProtegeCoreInEclipse
>
> Some where in this document it talks of "protege-core/lib" folder(see except ,
>Configure the Core Protege Project below). After I have installed protege -OWL
>3.4.4, I cannot find "protege-core/lib", where is it? See screenshot of my
>protege-OWL 3.4.4 installation attached.
The instructions refer to the source code installation of Protege. Not the
normal installation as an application.
You only need to do that if you want to compile Protege itself from the source
code using Eclipse.
If all you want to do is develop your own plugins without compiling the Protege
code itself, you only need to include the jar files which you can get from the
application installation.
_______________________________________________
protege-discussion mailing list
protege-discussion at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion
Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20100806/545be011/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JAR Files.jpg
Type: image/jpeg
Size: 60752 bytes
Desc: not available
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20100806/545be011/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Query in Netbeans.jpg
Type: image/jpeg
Size: 76972 bytes
Desc: not available
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20100806/545be011/attachment-0001.jpg>
More information about the protege-discussion
mailing list