progessBar.setProgress("The connection to DBpedia was not successful. The progam will try to update at next startup.");
}
}
public MovieArray getMovieUpdateList() {
MovieArray movieUpdateList = new MovieArray();
MovieArray localMovieList = OntologyQueryer.getOntologoyMovieList();
String queryDBPediaText = "SELECT DISTINCT ?uri WHERE { " +
"?uri rdf:type yago:NorwegianFilms . " +
"}";
ResultSet resultSet = DBPediaQueryer.resultQuery(queryDBPediaText);
while(resultSet.hasNext()) {
Movie movie = new Movie(resultSet.next().get("uri").toString());
if (!localMovieList.contains(movie))
movieUpdateList.add(movie);
}
return movieUpdateList;
}