Skip to content

Commit bd2ac2d

Browse files
committed
filtering rdf / xml string by target id
1 parent 20af461 commit bd2ac2d

2 files changed

Lines changed: 355 additions & 77 deletions

File tree

vcell-core/src/test/java/cbit/vcell/pathway/PathwayParseTest.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ public static void tearDown() {
4141
// -----------------------------------------------------------------------------------------------------------------
4242

4343
@Test
44-
public void parseTest() throws IOException {
44+
public void pathwayParseTest() throws IOException {
4545

4646
Document document = XmlUtil.readXML(insulinPathwayFile);
47-
doWork(document);
47+
pathwayParse(document);
4848
}
4949

5050
// -------------------------------------------------------------------------------------------------------------
5151

52-
private static void doWork(Document document) {
52+
private static void pathwayParse(Document document) {
5353

5454
RDFXMLContext rdfXmlContext = new RDFXMLContext();
5555
PathwayReader pathwayReader = new PathwayReader(rdfXmlContext);
@@ -168,9 +168,10 @@ public void testXXEProtection_blocksExternalEntity() {
168168
public static void main(String args[]) {
169169
try {
170170
// Document document = XmlUtil.readSanitizedXML(new File("MyFile.xml")); // for malformed xml files, like trailing garbage
171-
// Document document = XmlUtil.readXML(new File("C:\\TEMP\\pathway\\insulinPathway-5683177.xml"));
172-
Document document = XmlUtil.readXML(new File("C:/TEMP/pathway/egfrPathway-180292.xml"));
173-
doWork(document);
171+
// Document document = XmlUtil.readXML(new File("C:\\TEMP\\pathway\\insulinPathway-5683177.xml")); // Defective ABCC8 does not form functional KATP
172+
// Document document = XmlUtil.readXML(new File("C:/TEMP/pathway/egfrPathway-180292.xml"));
173+
Document document = XmlUtil.readXML(new File("C:/TEMP/pathway/R-HSA-9615017.xml")); // insulin pathway: FOXO mediated transcription of...
174+
pathwayParse(document);
174175
System.out.println("done manual run");
175176
}catch (Exception e) {
176177
e.printStackTrace();

0 commit comments

Comments
 (0)