def post(self): """Process an EIDOS JSON-LD and return biology INDRA Statements. Parameters ---------- jsonld : str The JSON-LD string to be processed. Returns ------- statements : list[indra.statements.Statement.to_json()] A list of extracted INDRA Statements. """ args = request.json eidos_json = args.get('jsonld') jj = json.loads(eidos_json) ep = eidos.process_json_bio(jj) return _stmts_from_proc(ep)
def parse_results(content): from indra.tools.assemble_corpus import filter_grounded_only ep = eidos.process_json_bio(content) ep.statements = filter_grounded_only(ep.statements) return ep
def parse_results(content): return eidos.process_json_bio(content)