On Wed, 2011-06-29 at 02:56 -0300, Herli Joaquim de Menezes wrote:
> Hello, friends
>
> Sorry for the long post. I am into a java web project using Jena. The
> architecture is MVC, and in de Model I am trying to use some javabeans to
> access and perform some processing on a OWL and a RDF file. The logic is
> somewhat simple, I have to extract a path from a simple ontology in OWL. So
> I am using the findShortestPath from OntTools (Comments are in Portuguese,
> and are just for debugging). However there is a weird thing. I got an error
> if I write something as:
The problem is nothing to do with Jena you have syntactically illegal
Java:
>
> public class GeraSequenciaBean {
> /*
> * A Sequencia é definida aqui como o conjunto de de conceitos
> * retirados da ontologia, a partir o inicial e do final.
> *
> */
>
> String filename;
The next few lines ...
> OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);
> m.read(filename);
>
>
> final Filter<Statement> ANY = Filter.any();
are in the wrong place, they need to be a method of some sort.
Dave