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, **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, target: OboDocument | None = None, **kwargs) OboDocument[source]

Convert an OBO Format Document.

Parameters:
  • source

  • target – if None, one will be created

Returns: