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] protege-dev Digest, Vol 17, Issue 3

snair at caltech.edu snair at caltech.edu
Mon Jun 15 15:10:09 PDT 2015


I tried running javac "../.." filename.java and it removed many of the
errors however it still gave e an error of cannot find symbol MyFactory
when I try and create a MyFactory object and it still tells me that the
following files which I am trying to import do not exist:

import org.protege.owl.codegeneration.CodeGenerationFactory;
import org.protege.owl.codegeneration.WrappedIndividual;
import org.protege.owl.codegeneration.impl.FactoryHelper;
import org.protege.owl.codegeneration.impl.ProtegeJavaMapping;
import org.protege.owl.codegeneration.inference.CodeGenerationInference;
import org.protege.owl.codegeneration.inference.SimpleInference;

import org.semanticweb.owlapi.model.OWLClass;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyStorageException;

I downloaded the OWL API and even if the OWL API and the Ontology are in
the same directory, I still get the errors.

The OWL API directory contains mostly .jar files. Do I need to extract those?

Best,
Suraj Nair

> Send protege-dev mailing list submissions to
> 	protege-dev at lists.stanford.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://mailman.stanford.edu/mailman/listinfo/protege-dev
> or, via email, send a message with subject or body 'help' to
> 	protege-dev-request at lists.stanford.edu
>
> You can reach the person managing the list at
> 	protege-dev-owner at lists.stanford.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of protege-dev digest..."
>
>
> Today's Topics:
>
>    1. Programming with Protege (snair at caltech.edu)
>    2. Re: Programming with Protege (Csongor Nyulas)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Jun 2015 10:02:33 -0700
> From: snair at caltech.edu
> To: protege-dev at lists.stanford.edu
> Subject: [protege-dev] Programming with Protege
> Message-ID:
> 	<33256a5d9ab56ea2c8f0a5c076350def.squirrel at webmail.caltech.edu>
> Content-Type: text/plain;charset=utf-8
>
> Hello,
>
> My name is Suraj Nair and I am a student who is new to working with
> Protege. I have a few questions regarding writing stand alone programs
> that work with Protege. I have downloaded both Protege 4 and 5 and I
> understand how create and edit ontologies within the editor. However, I am
> trying to write some simple programs that interact with the Java code that
> the editor generates. For example, if I simply wanted to print the names
> and annotations of all individuals with a certain property, I think I
> understand how to write the program, except when I try and build a
> MyFactory Object, I get errors saying that the files that MyFactory
> imports do not exist. I believe I might be missing some source code
> however when I tried to follow the link to the additional source code form
> the Protege User's Guide, the webpage could not be located. Any
> suggestions would be greatly appreciated.
>
> Thanks in advance!
>
> Best,
> Suraj Nair
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Jun 2015 11:43:25 -0700
> From: Csongor Nyulas <csnyulas at stanford.edu>
> To: protege-dev at lists.stanford.edu
> Subject: Re: [protege-dev] Programming with Protege
> Message-ID: <557F1CCD.5080200 at stanford.edu>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Just a quick thought:
> Have you included OWL API in your class path?
>
> Csongor
>
>
> On 06/15/2015 10:02 AM, snair at caltech.edu wrote:
>> Hello,
>>
>> My name is Suraj Nair and I am a student who is new to working with
>> Protege. I have a few questions regarding writing stand alone programs
>> that work with Protege. I have downloaded both Protege 4 and 5 and I
>> understand how create and edit ontologies within the editor. However, I
>> am
>> trying to write some simple programs that interact with the Java code
>> that
>> the editor generates. For example, if I simply wanted to print the names
>> and annotations of all individuals with a certain property, I think I
>> understand how to write the program, except when I try and build a
>> MyFactory Object, I get errors saying that the files that MyFactory
>> imports do not exist. I believe I might be missing some source code
>> however when I tried to follow the link to the additional source code
>> form
>> the Protege User's Guide, the webpage could not be located. Any
>> suggestions would be greatly appreciated.
>>
>> Thanks in advance!
>>
>> Best,
>> Suraj Nair
>>
>> _______________________________________________
>> protege-dev mailing list
>> protege-dev at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-dev
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> protege-dev mailing list
> protege-dev at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-dev
>
>
> ------------------------------
>
> End of protege-dev Digest, Vol 17, Issue 3
> ******************************************
>



More information about the protege-dev mailing list