Skip to content

Commit

Permalink
moving to obg-reader
Browse files Browse the repository at this point in the history
  • Loading branch information
iimpulse committed Jun 26, 2024
1 parent 279a757 commit da95f7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
*
* @author Jules Jacobsen <[email protected]>
*/
// REMOVE(3.0.0)
@Deprecated(forRemoval = true, since = "2.1.2")
public class OboGraphDocumentLoader {

private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.monarchinitiative.phenol.io.utils;

import org.geneontology.obographs.core.io.OgJsonReader;
import org.geneontology.obographs.core.model.GraphDocument;
import org.monarchinitiative.phenol.base.PhenolRuntimeException;
import org.monarchinitiative.phenol.io.MinimalOntologyLoader;
import org.monarchinitiative.phenol.io.OntologyLoader;
import org.monarchinitiative.phenol.io.obographs.OboGraphDocumentLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -41,7 +41,7 @@ public static GraphDocument loadGraphDocument(InputStream inputStream) {
logger.debug("Looks like a JSON file...");
try {
bufferedStream.reset();
return OboGraphDocumentLoader.loadJson(bufferedStream);
return OgJsonReader.readInputStream(bufferedStream);
} catch (Exception e) {
throw new PhenolRuntimeException("Error loading JSON", e);
}
Expand Down

0 comments on commit da95f7c

Please sign in to comment.