Summary Statistics

class oaklib.interfaces.summary_statistics_interface.SummaryStatisticsInterface(resource: Optional[oaklib.resource.OntologyResource] = None, strict: bool = False)[source]

generates summary statistics

Uses SummaryStatistics datamodel, see Datamodels

get_global_summary_statistics() Dict[str, Any][source]

Gets summary statistics for all ontologies wrapped as a single dictionary

Returns

get_metric_description(metric: str) str[source]

Examines the data dictionary to retrieve the definition of a metric

Any dictionary can be used, but summary_statistics_datamodel is favored

Parameters

metric

Returns

get_partitioned_summary_statistics() Dict[str, Dict[str, Any]][source]

Gets summary statistics for all ontologies wrapped as multiple dictionaries keyed by ontology CURIE

Returns

class oaklib.datamodels.summary_statistics_datamodel.SummaryStatisticCollection(*args, _if_missing: Optional[Callable[[jsonasobj2._jsonobj.JsonObj, str], Tuple[bool, Any]]] = None, **kwargs)[source]

A summary statistics report object