ParseResults

class ParseResults(graph_document: ~bioontologies.obograph.GraphDocument | None, messages: ~typing.List[str] = <factory>, iri: str | None = None)[source]

Bases: object

A dataclass containing an OBO Graph JSON and text output from ROBOT.

Attributes Summary

iri

Methods Summary

guess(prefix)

Guess the right graph.

guess_version(prefix)

Guess the version.

squeeze([standardize])

Get the first graph.

write(path)

Write the graph document to a file in JSON.

Attributes Documentation

iri: str | None = None

Methods Documentation

guess(prefix: str) Graph[source]

Guess the right graph.

guess_version(prefix: str) str | None[source]

Guess the version.

squeeze(standardize: bool = False) Graph[source]

Get the first graph.

write(path: str | Path) None[source]

Write the graph document to a file in JSON.