Miri, Hossein | 13 Jun 2012 14:25
Favicon

OWL API - Code examples

Hi all,

I am trying out the code examples here:  http://owlapi.sourceforge.net/documentation.html

( first one :  Loading Ontologies )

In order to use the API in my own applications, I have downloaded the latest binary release (3.2.4)  and added
all of the jar files in my application class path.

There is, however, a package missing, based on the following error message:

  1 error found:
  File: /Users/My_Name/introcs/LoadingOntologies/LoadingOntologies.java  [line: (no source location)]
  Error: File is in the wrong directory or is declared part of the wrong package.  Directory name
'LoadingOntologies' does not match package name 'examples'.

Where do I get this 'examples' package?

Thank you,

p.s.  Obviously, when I comment out the following line in my code, it compiles:

package org.coode.owlapi.examples;

.
_______________________________________________
protege-owl mailing list
protege-owl <at> lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl

(Continue reading)

Martin Kuba | 13 Jun 2012 14:42
Picon

Re: OWL API - Code examples

Dear Miri,

please learn Java before trying to program in it:

  http://docs.oracle.com/javase/tutorial/java/package/index.html
  "Lesson: Packages

  This lesson explains how to bundle classes and interfaces into packages,
  how to use classes that are in packages, and how to arrange your file system
  so that the compiler can find your source files."

Best regards

Martin

Dne 13.6.2012 14:25, Miri, Hossein napsal(a):
> Hi all,
>
> I am trying out the code examples here:  http://owlapi.sourceforge.net/documentation.html
>
> ( first one :  Loading Ontologies )
>
> In order to use the API in my own applications, I have downloaded the latest binary release (3.2.4)  and
added all of the jar files in my application class path.
>
> There is, however, a package missing, based on the following error message:
>
>    1 error found:
>    File: /Users/My_Name/introcs/LoadingOntologies/LoadingOntologies.java  [line: (no source location)]
>    Error: File is in the wrong directory or is declared part of the wrong package.  Directory name
(Continue reading)


Gmane