Projecting ontologies into graphs

Ontologies contain adjacency information that can be projected into a graph. There are different ways of generating such graphs:

from mowl.datasets.builtin import FamilyDataset
from mowl.projection import CategoricalProjector

ds = FamilyDataset()
projector = CategoricalProjector()
edges = projector.project(ds.ontology)

The edges generated is a list of mowl.projection.Edge

Tip

All the implemented projectors can be found in Projectors API docs