graph databases are used to build knowledge graphs. Ontologies Googlge popularized the term.
Eg:
neo4j
develop a knowledge graph schema
—
Slides
https://drive.google.com/file/d/1_gC3YBLVJhjLlDfv9ev5rWOHZbdQZFA2/view?usp=drive_link