CRoG (indra.sources.crog)

Processor for the Chemical Roles Graph (CRoG).

Contains axiomization of ChEBI roles, their targets, and actual relationship polarity.

CRoG API (indra.sources.crog.api)

API for the Chemical Roles Graph (CRoG).

indra.sources.crog.api.process_from_web(url=None)[source]

Process statements from CRoG over the web.

Parameters

url (Optional[str]) – An optional URL. If none given, defaults to indra.sources.crog.processor.CROG_URL.

Returns

processor – A processor with pre-extrated statements.

Return type

CrogProcessor

CRoG Processor (indra.sources.crog.processor)

Processor for the Chemical Roles Graph (CRoG).

class indra.sources.crog.processor.CrogProcessor(url=None)[source]

A processor for the Chemical Roles Graph.

Parameters

url (str) – An optional URL. If none given, defaults to indra.sources.crog.processor.CROG_URL.

extract_statements()[source]

Extract statements from the remote JSON file.

url: str

The URL of the data