ontology-stack-builder

Generate a complete ontology stack on Snowflake from a relational schema.

15|6|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/Snowflake-Labs/coco-skills --skill ontology-stack-builder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ontology-stack-builder
Source: https://github.com/Snowflake-Labs/coco-skills/tree/main/skills/ontology-stack-builder
Command: npx skills add https://github.com/Snowflake-Labs/coco-skills --skill ontology-stack-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rdflib, pyyaml, streamlit, streamlit-agraph, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Automates building a complete ontology-on-Snowflake stack from a relational schema, including ontology metadata, abstract views, and a Cortex Agent configuration.

Core Features & Use Cases

  • 7-phase gated workflow that coordinates inputs, ontology design, and deployment.
  • Supports either Knowledge Graph (KG) path or direct-table mappings with semantic views and a base semantic layer.
  • Integrates with native Cortex Skills to generate semantic views and cortex-agent config.
  • Optional features: inference engine, graph traversal UDFs, and optional graph analytics scaffolding.

Quick Start

Run the ontology-stack-builder with your Snowflake DATABASE.SCHEMA and source tables to start the 7-phase workflow and generate the full ontology stack.

Quick Start

To start, provide your Snowflake DATABASE.SCHEMA and source tables, and the skill will generate the complete ontology stack through its 7-phase workflow.

Frequently Asked Questions about ontology-stack-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an ontology from a relational schema in Snowflake?▼

To build an ontology from a relational schema in Snowflake, you can use a 7-phase gated workflow that automates 22 metadata tables and outputs a Cortex Agent configuration with optional graph analytics.

What is the difference between knowledge graph path and direct-table mappings for semantic models?▼

Knowledge graph path mappings route through graph structures, while direct-table mappings use semantic views and a base semantic layer directly on relational tables. Both approaches generate abstract views and a Cortex Agent configuration.

Can I generate a Cortex Agent configuration from existing semantic models?▼

Yes, you can generate a Cortex Agent configuration from existing semantic models or OWL imports by applying the schema-to-ontology workflow, which integrates with native Cortex Skills to output the required configuration.

Do I need RDFLib or Streamlit to deploy a knowledge graph on Snowflake?▼

You need RDFLib for ontology processing and Streamlit with streamlit-agraph for visualizing the knowledge graph architecture. These dependencies support the metadata generation and optional graph analytics scaffolding.

What optional features are available when generating a Snowflake ontology stack?▼

Optional features for a Snowflake ontology stack include an inference engine, graph traversal UDFs, and graph analytics scaffolding. These extend the base semantic layer and abstract views generated during the workflow.

Why does the ontology generation workflow enforce mandatory gating phases?▼

Mandatory gating in the 7-phase workflow ensures proper coordination of inputs, ontology design, and deployment steps. It validates metadata table generation and semantic view creation before advancing to the next phase.