Hi Damian

Thanks for answering my query, having taken your comments on board I realised 
that my problems lay not with 'out-of-date' jena code but with something 
entirely different within my application (which I am now going to post on!).

Lewis

________________________________________
From: Damian Steer [[email protected]]
Sent: 09 January 2011 21:28
To: [email protected]
Subject: Re: Upgrading API calls

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.

DamianEmail has been scanned for viruses by Altman Technologies' email 
management service - www.altman.co.uk/emailsystems

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 
2009 and Herald Society’s Education Initiative of the Year 2009
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Reply via email to