String qry = config.getResolveExistingID();
qry = config.replaceValues(qry,ent.getValues());
String newID = Util.getExistingOrNewID(model, qry);
/** Add fetched Statements **/
for(ParsedEntryValue val:ent.getValues()){
DirectImportStatement stmt = new DirectImportStatement();
stmt.setS(newID);
stmt.setP(val.getTargetpredicate());
stmt.setO(val.getValue());
stmt.setObjectAsResource(val.isImportAsResource());
impStatements.add(stmt);
}
/** Add fixed Statements **/
for(DataFetchFixedStatement fStmt:ent.getFStatements()){
DirectImportStatement stmt = new DirectImportStatement();
stmt.setS(newID);
stmt.setP(fStmt.getP());
stmt.setO(fStmt.getO());
stmt.setObjectAsResource(fStmt.isObjectAsResource());
impStatements.add(stmt);
}
}