def map_ontologies():
    """Run ontology mapping on a list of INDRA Statements."""
    if request.method == 'OPTIONS':
        return {}
    response = request.body.read().decode('utf-8')
    body = json.loads(response)
    stmts_json = body.get('statements')
    stmts = stmts_from_json(stmts_json)
    om = OntologyMapper(stmts, wm_ontomap, scored=True, symmetric=False)
    om.map_statements()
    return _return_stmts(stmts)
def map_ontologies ( ) : if request . method == 'OPTIONS' : return { } response = request . body . read ( ) . decode ( 'utf-8' ) body = json . loads ( response ) stmts_json = body . get ( 'statements' ) stmts = stmts_from_json ( stmts_json ) om = OntologyMapper ( stmts , wm_ontomap , scored = True , symmetric = False ) om . map_statements ( ) return _return_stmts ( stmts )
Run ontology mapping on a list of INDRA Statements.