OBO Graph to OBO Format Converter

class oaklib.converters.obo_graph_to_obo_format_converter.OboGraphToOboFormatConverter(curie_converter: Converter | None = None, labeler: Callable[[str], str | None] | None = None, enforce_canonical_ordering: bool | None = None, use_shorthand: bool = True)[source]

Converts from OboGraph to OBO Format.

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

Dump an OBO Graph Document to a FHIR CodeSystem

Parameters:
  • source

  • target

Returns:

dumps(source: GraphDocument | Graph, aux_graphs: List[Graph] | None = None, **kwargs) str[source]

Dump an OBO Graph Document to a string

Parameters:

source

Returns:

as_bytes_io(source: GraphDocument, **kwargs) BytesIO[source]

Dump an OBO Graph Document to a string

Parameters:

source

Returns:

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

Convert an OBO Format Document.

Parameters:
  • source

  • target – if None, one will be created

  • aux_graphs – additional graphs to use for label lookup

Returns: