On 7 Jan 2011, at 20:22, McGibbney, Lewis John wrote:

> Hello List,

Hi Lewis,

> I have been looking over some older jena code which I believe was written for 
> version 2.1, was wondering if someone could confirm or advise of changes 
> which have been made to the ontology API so I can bring the code up-to-date.
> 
> I thought the best thing to do would be to provide a code snippet of a part 
> which I am sceptical about.
> 
> public void load (String [ ] urls) {
>     for (int i=0; i<urls.length; i++) {
>       String url = urls[i].trim();
>       if (!urls.equals(""))
>          load(ontologyModel, url);  // should this not be changed to 'read' 
> and take parameters as below

Sorry, what does load do? This code doesn't use any jena calls.

>     }
>     parser.parse(ontologyModel); // in the code ontologyModel has been 
> specified as a private static object
> }

My assumption would be that your load method will call read at some point, or 
perhaps use a jena utility like FileManager.

Regardless, as far as I am aware the ontology API is very stable between major 
jena revisions. Ian is the authority.

Damian

Reply via email to