return movieUpdateList;
}
public ActorArray getActorUpdateList(MovieArray movieList) {
ActorArray actorUpdateList = new ActorArray();
ActorArray localActorList = OntologyQueryer.getOntologoyActorList();
for (Movie m : movieList) {
String query = "SELECT ?actor WHERE { " +
"<" + m.getUri() + "> " + "dbpedia-owl:starring ?actor . " +
"} ";
ResultSet resultSet = DBPediaQueryer.resultQuery(query);
while(resultSet.hasNext()) {
Actor actor = new Actor(resultSet.next().get("actor").toString());
if (!localActorList.contains(actor))
actorUpdateList.add(actor);
}
}
return actorUpdateList;