KnowledgeGraph.set_ontology()

Replace the graph’s ontology.

Usage

Source

KnowledgeGraph.set_ontology(ontology)

Parameters

ontology: Ontology
The new ontology to set.

Examples

kg.set_ontology(tb.general_ontology())