Class PaperDetail implements ComputingTask{
public void doComputing(Representation REP, LogicalPipe pipe){
URI uri=REP.getURI();
String fulltext=pipe.get("http://example/document/"uri.getSection("ID")).transferTo(Representation.TEXT);
Paper pp=new Paper();
pp.setId(uri.toString);
pp.setAbstract(Paper.parseAbstract(fulltext));
pp.setKeyWords(Paper.parseKeyWords(fulltext));
pp.setAuthors(Paper.parseAuthors(fulltext));
REP.setRepresentation(pp);
REP.transferTo(Representation.EntityBean);
pipe.submitResult(REP);
}
}
xhyccc
最新推荐文章于 2022-10-13 14:08:21 发布