

# Reuse an ontology across sources, and a source across ontologies

Because a mapping pairs a connection with an ontology but owns neither, both sides of the pairing are reusable:
+  *Reuse one ontology across many sources* – Pair the same ontology with several connections, and data from different sources maps onto the same classes and relationship types. AWS Context can then link their sub-graphs through the types they share. For example, apply the same custom ontology to two knowledge base connections, and the entities extracted from each are typed the same way.
+  *Reuse one source across many ontologies* – Map the same connection more than once, each time with different ontologies or a different path, and the source contributes to more than one sub-graph. For example, map a catalog connection once with a path that selects a sales database and once with a path that selects a billing database.

An ontology is a top-level resource. After you publish it, you can pair it with any number of connections across any number of Agent Contexts, within the rules in [What a data mapping is: ontologies paired with one filtered source, producing one sub-graph](what-a-data-mapping-is.md).