public void munge(String entityId,Collection<Statement> statements,Collection<String> existingValues,Collection<String> existingRefs,Change sourceChange){
  if (statements.isEmpty()) {
    return;
  }
  MungeOperation op=new MungeOperation(entityId,statements,existingValues,existingRefs);
  if (sourceChange != null) {
    op.importFromChange(sourceChange);
  }
  op.munge();
  existingValues.removeAll(op.extraValidSubjects);
  existingRefs.removeAll(op.extraValidSubjects);
  return;
}

public void munge ( String entityId , Collection < Statement > statements , Collection < String > existingValues , Collection < String > existingRefs , Change sourceChange ) { if ( statements . isEmpty ( ) ) { return ; } MungeOperation op = new MungeOperation ( entityId , statements , existingValues , existingRefs ) ; if ( sourceChange != null ) { op . importFromChange ( sourceChange ) ; } op . munge ( ) ; existingValues . removeAll ( op . extraValidSubjects ) ; existingRefs . removeAll ( op . extraValidSubjects ) ; return ; }
adds and removes entries from the statements collection to munge wikibase rdf exports into a more queryable form .
