Skip to content

Commit

Permalink
Another test for pull #177
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Mar 11, 2017
1 parent 5427f95 commit 46ba478
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Expand Up @@ -135,5 +135,20 @@ public void testGetNeighbors() throws Exception {
assertTrue(neighbors.hasEdge(new OWLShuntEdge("GO:1904238", "CL:0000669", "results_in_acquisition_of_features_of")));
assertTrue(neighbors.hasEdge(new OWLShuntEdge("GO:1904238", "GO:0030154", "is_a")));
}

// see https://github.com/owlcollab/owltools/pull/177
@Test
public void testPull177() throws Exception {
OWLGraphWrapper graph = getGraph("graph/detection-of-stimulus.obo");

OWLClass cls = graph.getOWLClassByIdentifier("GO:1902401");
assertNotNull(cls);
OWLShuntGraph neighbors = graph.getNeighbors(cls);
assertEquals(3, neighbors.nodes.size());
assertEquals(2, neighbors.edges.size());
assertTrue(neighbors.hasEdge(new OWLShuntEdge("GO:1902401", "GO:0044773", "part_of")));
assertTrue(neighbors.hasEdge(new OWLShuntEdge("GO:1902401", "GO:0072400", "is_a")));
assertFalse(neighbors.hasEdge(new OWLShuntEdge("GO:1902401", "GO:0051606", "is_a")));
}

}
19 changes: 19 additions & 0 deletions OWLTools-Core/src/test/resources/graph/detection-of-stimulus.obo
@@ -0,0 +1,19 @@
ontology: test

[Term]
id: GO:1902401
name: detection of stimulus involved in mitotic DNA damage checkpoint
namespace: biological_process
def: "Any detection of stimulus that is involved in mitotic DNA damage checkpoint." [GOC:mtg_cell_cycle, GOC:TermGenie]
synonym: "perception of stimulus involved in mitotic DNA damage checkpoint" RELATED [GOC:TermGenie]
synonym: "stimulus detection involved in mitotic DNA damage checkpoint" EXACT [GOC:TermGenie]
synonym: "stimulus sensing involved in mitotic DNA damage checkpoint" RELATED [GOC:TermGenie]
is_a: GO:0072400 ! detection of stimulus involved in mitotic DNA integrity checkpoint
intersection_of: GO:0051606 ! detection of stimulus
intersection_of: part_of GO:0044773 ! mitotic DNA damage checkpoint
created_by: jl
creation_date: 2013-09-12T12:07:12Z

[Typedef]
id: part_of
xref: BFO:0000050

0 comments on commit 46ba478

Please sign in to comment.