Examples of BELEvidence


Examples of org.openbel.bel.model.BELEvidence

        List<BELStatement> stmts = group.getStatements();
        assertTrue(stmts.size() == 1);

        BELStatement stmt = stmts.get(0);

        BELEvidence evidence = stmt.getEvidence();
        assertNotNull(evidence);

        BELCitation citation = stmt.getCitation();
        assertNotNull(citation);

        assertEquals("Evidence\nneeded", evidence.getEvidenceLine());
        assertEquals("PubMed", citation.getType());
        assertEquals("X", citation.getName());
        assertEquals("Y", citation.getReference());
    }
View Full Code Here

Examples of org.openbel.bel.model.BELEvidence

                        evidenceContext = null;

                        if (qv == null || "".equals(qv.getText().trim())) {
                            addError(new InvalidEvidenceException(an.getLine(), an.getCharPositionInLine()));
                        } else {
                            evidenceContext = new BELEvidence(qv.getText());
                        }
                    }
               

            }
View Full Code Here

Examples of org.openbel.bel.model.BELEvidence

                alist.addAll(bac.convert(annotation));
            }
        }

        BELCitation bc = bs.getCitation();
        BELEvidence be = bs.getEvidence();

        AnnotationGroup ag = new AnnotationGroup();
        boolean hasAnnotation = false;
        if (hasItems(alist)) {
            ag.setAnnotations(alist);
View Full Code Here

Examples of org.openbel.bel.model.BELEvidence

    public BELEvidence convert(Evidence e) {
        if (e == null) {
            return null;
        }

        return new BELEvidence(e.getValue());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.