Examples of RelationshipTypeFilterCriteria


Examples of org.openbel.framework.api.RelationshipTypeFilterCriteria

    public void testGetKamWithOppositeFiltersReturnsNothing()
            throws SQLException {
        KamInfo kamInfo = testKam.getKamInfo();
        KamFilter kamFilter = kamInfo.createKamFilter();

        RelationshipTypeFilterCriteria c1 = new RelationshipTypeFilterCriteria(),
                c2 = new RelationshipTypeFilterCriteria();
        c1.add(RelationshipType.INCREASES);
        c2.add(RelationshipType.DECREASES);
        kamFilter.add(c1);
        kamFilter.add(c2);

        KamProtoNodesAndEdges all = dao.getKamProtoNodesAndEdges(kamInfo, kamFilter);
        Map<Integer, KamProtoNode> nodes = all.getKamProtoNodes();
View Full Code Here

Examples of org.openbel.framework.api.RelationshipTypeFilterCriteria

    @Test
    public void testGetKamWithDuplicateFiltersIsIdempotent()
            throws SQLException {

        RelationshipTypeFilterCriteria c = new RelationshipTypeFilterCriteria();
        c.add(RelationshipType.HAS_COMPONENT);

        testIdempotency(c);
    }
View Full Code Here

Examples of org.openbel.framework.api.RelationshipTypeFilterCriteria

        testIdempotency(c);
    }

    @Test
    public void testGetKamIsCommutative() throws SQLException {
        RelationshipTypeFilterCriteria c1 = new RelationshipTypeFilterCriteria(),
                c2 = new RelationshipTypeFilterCriteria();
        c1.add(RelationshipType.INCREASES);
        c2.add(RelationshipType.DECREASES);
        c2.setInclude(false);

        testCommutativity(c1, c2);
    }
View Full Code Here

Examples of org.openbel.framework.api.RelationshipTypeFilterCriteria

    public void testGetKamIsCorrect() throws IllegalAccessException,
            IllegalArgumentException, InvocationTargetException,
            InstantiationException, SQLException, ParseException {
        KamFilter f = testKam.getKamInfo().createKamFilter();

        RelationshipTypeFilterCriteria r = new RelationshipTypeFilterCriteria();
        r.add(RelationshipType.ANALOGOUS);
        r.add(RelationshipType.INCLUDES);
        r.add(RelationshipType.INCREASES);
        r.setInclude(false);

        CitationFilterCriteria c = new CitationFilterCriteria();
        Citation[] citations = new Citation[] {
                citation.newInstance(
                        "Trends in molecular medicine", "12928037", "", null,
View Full Code Here

Examples of org.openbel.framework.ws.model.RelationshipTypeFilterCriteria

        assertThat(r, is(not(nullValue())));

        final KamHandle handle = loadKam(kamName);

        EdgeFilter f = factory.createEdgeFilter();
        RelationshipTypeFilterCriteria c = factory
                .createRelationshipTypeFilterCriteria();
        c.getValueSet().add(r);
        f.getRelationshipCriteria().add(c);

        final FindKamEdgesRequest ereq = factory.createFindKamEdgesRequest();
        ereq.setFilter(f);
        ereq.setHandle(handle);
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.