convert_to_obograph_local

convert_to_obograph_local(path: str | Path, *, json_path: None | str | Path = None, from_iri: str | None = None, check: bool = True) ParseResults[source]

Convert a local OWL/OBO file to an OBO Graph JSON object.

Parameters:
  • path – The path to a local OWL or OBO file

  • json_path – The optional path to store the intermediate OBO Graph JSON file generated by ROBOT. If not given, the OBO Graph JSON file will be put in a temporary directory and deleted after the function finishes.

  • from_iri – Use this parameter to say what IRI the graph came from

  • check – By default, the OBO writer strictly enforces document structure rules. If an ontology violates these, the convert to OBO operation will fail. These checks can be ignored by setting this to false.

Returns:

An object with the parsed OBO Graph JSON and text output from the ROBOT conversion program