public Set<String> hasRevisions(Collection<Change> candidates){
  UpdateBuilder b=new UpdateBuilder(getRevisions);
  StringBuilder values=new StringBuilder();
  for (  Change entry : candidates) {
    values.append("( <" + uris.entity() + entry.entityId()+ "> "+ entry.revision()+ " )\n");
  }
  b.bind("values",values.toString());
  b.bindUri("schema:version",SchemaDotOrg.VERSION);
  return resultToSet(query(b.toString()),"s");
}

public Set < String > hasRevisions ( Collection < Change > candidates ) { UpdateBuilder b = new UpdateBuilder ( getRevisions ) ; StringBuilder values = new StringBuilder ( ) ; for ( Change entry : candidates ) { values . append ( "( <" + uris . entity ( ) + entry . entityId ( ) + "> " + entry . revision ( ) + " )\n" ) ; } b . bind ( "values" , values . toString ( ) ) ; b . bindUri ( "schema:version" , SchemaDotOrg . VERSION ) ; return resultToSet ( query ( b . toString ( ) ) , "s" ) ; }
filter set of changes and see which of them really need to be updated . the changes that have their revision or better in the repo do not need update .
