Skip to content

Commit 68a5d62

Browse files
committed
use static file
1 parent bb7a7eb commit 68a5d62

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎biojava-ontology/src/main/java/demo/ParseGO.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ public class ParseGO {
4747
*/
4848
public static void main(String[] args){
4949

50-
final String BIOSAPIENS_GO_URL = "https://sourceforge.net/p/song/svn/HEAD/tree/trunk/subsets/biosapiens.obo?format=raw";
5150

5251
try {
53-
URL url = new URL(BIOSAPIENS_GO_URL);
5452

5553
OboParser parser = new OboParser();
56-
InputStream inStream = url.openStream();
54+
InputStream inStream = OboParser.class.getResourceAsStream("/ontology/biosapiens.obo");
5755

5856
BufferedReader oboFile = new BufferedReader ( new InputStreamReader ( inStream ) );
5957

0 commit comments

Comments
 (0)