OBO Graph to CX Converter

class oaklib.converters.obo_graph_to_cx_converter.OboGraphToCXConverter(curie_converter: Converter | None = None, labeler: Callable[[str], str | None] | None = None, enforce_canonical_ordering: bool | None = None)[source]

Converts from OboGraph to OBO Format.

dump(source: GraphDocument | Graph, target: str | None = None, **kwargs) None[source]

Dump an OBO Graph Document to CX

Parameters:
  • source

  • target

Returns:

convert(source: GraphDocument | Graph, target: Dict | None = None, **kwargs) Dict[source]

Convert an OBO Graph Document to a CX Dictionary.

Parameters:
  • source

  • target – if None, one will be created

Returns: