一键导入
enumeration-discovery
Instructions for identifying ontology enumeration classes and rendering them in generated application models.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instructions for identifying ontology enumeration classes and rendering them in generated application models.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create Onto2AI product demo narration and OpenAI cedar audio files aligned to demo manifests.
Generate Onto2AI demo manifests, presentation-style review videos, and future screen-recording demo skeletons.
Specialized skill for managing, enriching, and consolidating the Neo4j staging database.
Rules for creating OWL ontologies strictly following the FIBO naming and documentation conventions.
Instructions for loading the Financial Industry Business Ontology (FIBO) into Neo4j.
Instructions for maintaining, running, and extending the Onto2AI MCP Server.
| name | Enumeration Discovery |
| description | Instructions for identifying ontology enumeration classes and rendering them in generated application models. |
Use these instructions to automatically identify which owl__Class nodes in the schema/model database, normally stagingdb, should be treated as enumerations in diagrams and generated application code models.
An enumeration is defined as an owl__Class that has one or more owl__NamedIndividual members linked via rdf__type.
Run this query to find active enums in the staging database:
MATCH (c:owl__Class)<-[:rdf__type]-(i:owl__NamedIndividual)
WITH c, count(i) as memberCount, collect(i.rdfs__label)[0..5] as sampleMembers
WHERE memberCount > 0
RETURN c.rdfs__label as className, c.uri as uri, memberCount, sampleMembers
ORDER BY memberCount DESC
When an enum class is identified, generated application code models should render it as a native enumeration type when the target language supports one.
For Pydantic output, generate_schema_code(target_type='pydantic') renders it as a Python Enum automatically when owl__NamedIndividual members exist via rdf__type.
After regeneration, confirm:
from enum import Enumclass Currency(Enum):)US_DOLLAR, MARRIED_FILING_JOINTLY)In UML diagrams, ensure these classes use the «enumeration» stereotype.
rdf__type.rdf__type links are valid in stagingdb for schema/model enumeration discovery. Do not load ontology-only rdf__type links into dataset databases unless the task explicitly requires schema validation there.staging/, then copy finalized artifacts into the relevant domain package staging folder before release.