Search in sources :

Example 6 with JsonModel

use of org.geneontology.minerva.json.JsonModel in project minerva by geneontology.

the class ARTHandlerTest method m3ResponseToJsonModel.

private static JsonModel m3ResponseToJsonModel(M3BatchResponse response) {
    JsonModel jsonModel = new JsonModel();
    jsonModel.annotations = response.data.annotations;
    jsonModel.individuals = response.data.individuals;
    jsonModel.facts = response.data.facts;
    return jsonModel;
}
Also used : JsonModel(org.geneontology.minerva.json.JsonModel)

Aggregations

JsonModel (org.geneontology.minerva.json.JsonModel)6 ModelARTResult (org.geneontology.minerva.server.handler.ModelARTHandler.ModelARTResult)3 InferenceProvider (org.geneontology.minerva.json.InferenceProvider)2 MolecularModelJsonRenderer (org.geneontology.minerva.json.MolecularModelJsonRenderer)2 Gson (com.google.gson.Gson)1 GsonBuilder (com.google.gson.GsonBuilder)1 ModelContainer (org.geneontology.minerva.ModelContainer)1 CurieHandler (org.geneontology.minerva.curie.CurieHandler)1 DefaultCurieHandler (org.geneontology.minerva.curie.DefaultCurieHandler)1 MappedCurieHandler (org.geneontology.minerva.curie.MappedCurieHandler)1 IRI (org.semanticweb.owlapi.model.IRI)1 OWLOntology (org.semanticweb.owlapi.model.OWLOntology)1 OWLOntologyManager (org.semanticweb.owlapi.model.OWLOntologyManager)1 ParserWrapper (owltools.io.ParserWrapper)1