Package net.relatedwork.shared.dto

Examples of net.relatedwork.shared.dto.Paper


 
  public static Paper paperFromNode(Node n, Integer score){
    String name = (String)n.getProperty(DBNodeProperties.PAPER_TITLE);
    String uri = (String)n.getProperty(DBNodeProperties.URI);
    String source = (String)n.getProperty(DBNodeProperties.PAPER_SOURCE_URI);
    return new Paper(name, uri, source, score);
  }
View Full Code Here


      //getView().getSerpContainer().add(r.getLink());
      HorizontalPanel panel = new HorizontalPanel();
      Label authorLabel = new Label("Author: ");
      Label paperLabel = new Label("Paper: ");
      if (r instanceof Paper){
        Paper p = (Paper)r;
        panel.add(paperLabel);
        panel.add(p.getAuthorLink());
        getView().addResultElement(panel);
      }else if (r instanceof Author){
        Author a = (Author)r;
        panel.add(authorLabel);
        panel.add(a.getAuthorLink());
View Full Code Here

      // Unmatched references
      //String[] array = (String[])paperNode.getProperty(DBNodeProperties.PAPER_UNMATCHED_CITATIONS);
      for (String citeString: (String[])paperNode.getProperty(DBNodeProperties.PAPER_UNMATCHED_CITATIONS)){
        if (!citeString.equals("")){
        result.addCitedPaper(new Paper(citeString));
        }
      }
     
      // Citation List
      for (Relationship rel: paperNode.getRelationships(DBRelationshipTypes.CITES, Direction.INCOMING)){
View Full Code Here

TOP

Related Classes of net.relatedwork.shared.dto.Paper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.