Hello List,

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
     }
     parser.parse(ontologyModel); // in the code ontologyModel has been 
specified as a private static object
}

read( String url )
read( Reader reader, String base )
read( InputStream reader, String base )
read( String url, String lang )
read( Reader reader, String base, String Lang )
read( InputStream reader, String base, String Lang )

Thank you

Lewis

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