Token导航 LogoToken导航

Agent Skill · 运维和基础设施

ontology-semantic-modeler(本体语义建模器)

ontology-semantic-modeler 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ontology-semantic-modeler 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,248。

总安装 724周安装 29GitHub Stars 1下载 234核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ontology-semantic-modeler(本体语义建模器)
来源仓库:https://github.com/sfc-gh-tjia/coco_skill_ontology
仓库路径:skills/ontology-semantic-modeler
安装命令:
npx skills add https://github.com/sfc-gh-tjia/coco_skill_ontology --skill ontology-semantic-modeler
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sfc-gh-tjia/coco_skill_ontology --skill ontology-semantic-modeler

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

本体语义建模器用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。建议结合原始 README 和仓库内容核验具体用法和功能边界。

来源仓库内路径:skills/ontology-semantic-modeler

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sfc-gh-tjia/coco_skill_ontology --skill ontolo…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

ontology-semantic-modeler 怎么安装?

在终端执行 npx skills add https://github.com/sfc-gh-tjia/coco_skill_ontology --skill ontology-semanti…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ontology-semantic-modeler 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ontology-semantic-modeler 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

ontology-semantic-modeler 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ontology-semantic-modeler 用的人多吗?

公开数据是累计安装 724 次,近一周安装 29 次,下载 234 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ontology-semantic-modeler 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
ontology-semantic-modeler

本体语义建模器 · 本页

7241只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Ontology Semantic Modeler

Generate Cortex Analyst semantic models that bridge OWL ontologies with Snowflake data tables.

When to Use

  • You have an OWL/RDF ontology file defining a domain (classes, subClassOf, properties)
  • You have Snowflake tables containing domain data (or an existing semantic model YAML describing them)
  • You want Cortex Analyst to understand ontological relationships (hierarchy traversal, cohort expansion, entity unification)

Workflow Overview

This skill follows a 6-step sequential workflow. Confirm each step's output before proceeding.

Step 1: Gather Inputs

Collect from the user:

  1. OWL file path - Local .owl, .rdf, or .ttl file
  2. Target Snowflake location - DATABASE.SCHEMA where objects will be created
  3. Data source - One or both of:

- Snowflake table names (will introspect columns via DESCRIBE TABLE) - Existing semantic model YAML file path

  1. Ontology name - Short identifier (e.g., BIOMED, GENE, PHARMA)

Store these in variables for later steps. If the user provides only some inputs, ask for the rest.

Step 2: Parse OWL Ontology

Run the OWL parser script to extract ontology structure:

uv run --script scripts/parse_owl.py \
  --owl-file "<owl_path>" \
  --output-dir "/tmp/ontology_parsed"

This produces JSON files in /tmp/ontology_parsed/:

  • classes.json - All OWL classes with hierarchy (class name, parent, description, is_abstract)
  • relations.json - Object properties with domain/range, transitivity, inverse
  • individuals.json - Named individuals if present

Review the output with the user. Show class count, relationship types, hierarchy depth. Ask if any classes should be excluded or if mappings need adjustment.

Step 3: Map Ontology to Physical Tables

For each OWL class, determine which Snowflake table contains its instances:

  1. If tables were provided, run DESCRIBE TABLE on each to get column metadata
  2. If a semantic model YAML was provided, read it to extract table/column info
  3. Use the mapping logic:

- Match OWL class names to table names (fuzzy match on name similarity) - For each matched class, identify: ID column, name column, description column - For unmatched abstract classes, mark as IS_ABSTRACT = TRUE (no physical table)

Present the proposed mapping table to the user:

OWL ClassPhysical TableID ColumnName ColumnFilter

Ask the user to confirm or adjust mappings.

For relationships, map OWL object properties to edge sources:

  • subClassOf typically maps to a knowledge graph edge table
  • Domain-specific relations map to join tables or foreign keys

Step 4: Generate SQL Artifacts

Save the confirmed mappings to a JSON file (use assets/mappings_template.json as the starting structure), then run the generator:

uv run --script scripts/generate_artifacts.py \
  --classes-json "/tmp/ontology_parsed/classes.json" \
  --relations-json "/tmp/ontology_parsed/relations.json" \
  --mappings-json "<mappings_json_path>" \
  --database "<DATABASE>" \
  --schema "<SCHEMA>" \
  --ontology-name "<ONTOLOGY_NAME>" \
  --output-dir "/tmp/generated"

This produces three files. Alternatively, generate them manually using the confirmed mappings:

4a. Metadata Tables SQL (01_metadata_tables.sql)

Generate CREATE TABLE + INSERT statements for:

  • ONT_CLASS - Class hierarchy from OWL
  • ONT_RELATION_DEF - Relationship definitions from OWL properties
  • ONT_CLASS_MAPPING - Class-to-table mappings from Step 3
  • ONT_RELATION_MAPPING - Relationship-to-table mappings from Step 3

Use the template at references/metadata_tables_template.sql as the pattern.

4b. Abstract Views SQL (02_abstract_views.sql)

For each hierarchical relationship (IS_HIERARCHICAL=TRUE), generate:

  • A resolved relationship view (e.g., VW_ONT_SUBCLASS_OF)
  • Descendant/ancestor helper views

For each abstract class with concrete subclasses, generate:

  • A UNION ALL view unifying all concrete instances (e.g., VW_ONT_{CLASS_NAME})

For statistical summaries:

  • Hierarchy stats view (direct children/parent counts)
  • Coverage views (which data entities have ontology mappings)

Use the template at references/abstract_views_template.sql as the pattern.

4c. Semantic Model YAML (03_ontology_semantic_model.yaml)

Generate a Cortex Analyst semantic model YAML containing:

  • One table entry per abstract view created in 4b
  • Dimensions for all columns in each view
  • Verified queries for common ontology patterns:

- "What are the direct children of X?" (direct subclass lookup) - "What are all descendants of X?" (recursive CTE) - "What types of X exist?" (entity type listing) - "How many entities of each type?" (hierarchy stats)

Use the template at references/semantic_model_template.yaml as the pattern.

Present all generated SQL and YAML to the user for review before execution.

Step 5: Deploy to Snowflake

After user approval, execute the SQL in order:

# 1. Create metadata tables
snowflake_sql_execute(sql=metadata_sql)

# 2. Create abstract views
snowflake_sql_execute(sql=views_sql)

# 3. Create semantic view
create_semantic_view_sql = f"""
CREATE OR REPLACE SEMANTIC VIEW {database}.{schema}.{ontology_name}_ONTOLOGY_SEMANTIC_VIEW
  AS SEMANTIC MODEL '{yaml_content}'
"""
snowflake_sql_execute(sql=create_semantic_view_sql)

Run verification queries to confirm row counts and data integrity.

Step 6: Visualize (Optional)

If the user wants visualization, launch the Streamlit app:

uv run --script scripts/visualize_ontology.py -- \
  --classes-json "/tmp/ontology_parsed/classes.json" \
  --relations-json "/tmp/ontology_parsed/relations.json" \
  --semantic-model "<path_to_generated_yaml>" \
  --port 8501

This shows:

  • Interactive ontology class hierarchy (tree view)
  • Relationship graph (nodes = classes, edges = properties)
  • Generated semantic model summary (tables, dimensions, verified queries)
  • Coverage matrix (which OWL classes mapped to which tables)

Degrees of Freedom

The user can customize:

  • Which OWL classes to include - Filter by namespace, depth, or explicit list
  • Table mapping strategy - Auto-detect vs. manual specification
  • View naming convention - Default VW_ONT_ prefix, customizable
  • Verified query patterns - Add domain-specific query templates
  • Hierarchy depth limit - Default 10 levels for recursive CTEs
  • Semantic model name - Default {ONTOLOGY_NAME}_ONTOLOGY_SEMANTIC_VIEW

Error Handling

  • OWL parse failure: Check file format (OWL/XML, Turtle, RDF/XML). The parser supports all three.
  • No table matches: Ask user to provide explicit mappings. Not all OWL classes need physical tables.
  • SQL execution errors: Check permissions (CREATE TABLE, CREATE VIEW on target schema). Show exact error and suggest grants.
  • Empty views: Verify filter conditions in ONT_CLASS_MAPPING match actual data values.

Reference Files

  • references/metadata_tables_template.sql - Template for ONT_CLASS, ONT_RELATION_DEF, ONT_CLASS_MAPPING, ONT_RELATION_MAPPING
  • references/abstract_views_template.sql - Template for hierarchy views, entity union views, stats views
  • references/semantic_model_template.yaml - Template for Cortex Analyst semantic model YAML
  • references/example_biomed_output/ - Complete example from the BIOMED approach 2 solution

平台分布

Codex

38.06%
按下载量换算89

Claude

29.81%
按下载量换算70

Cursor

20.41%
按下载量换算48

Gemini CLI

8.46%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills