スキル一覧に戻る
GodSpeedAI

semantic-anchoring

by GodSpeedAI

SEA makes your enterprise feel alive, self-aware, and self-documenting.

1🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


Semantic Anchoring

Validate, enrich, and link content to the SEA-Forge™ Knowledge Graph using semantic references (ConceptIds).

For reference: DomainForge Handbook | SDS-009: Knowledge Graph Service


When to Use This Skill

Use semantic-anchoring when:

  1. Linking to Concepts: Adding semanticRefs to CADSL artifacts, specs, or code
  2. Validating References: Checking if ConceptIds exist in the Knowledge Graph
  3. Discovering Concepts: Finding related concepts for suggestions
  4. Enforcing Constraints: Validating SHACL shapes on artifact structures
  5. Building Traceability: Connecting specs → code → artifacts semantically

ConceptId Format

ConceptIds follow this format:

<namespace>:<ConceptName>

Examples:

  • sea:BoundedContext - SEA-Forge core ontology
  • sea:CognitiveArtifact - Cognitive Extension
  • cmmn:Case - CMMN primitives
  • domain:Customer - Domain-specific concepts

Reserved Namespaces:

NamespaceOntologyDescription
seaSEA-Forge CoreCore platform concepts
cmmnCMMNCase management primitives
otelOpenTelemetryObservability concepts
domainDomainProject-specific concepts

Validation Workflow

Step 1: Extract ConceptIds

From CADSL artifact:

semanticRefs:
  - conceptId: "sea:BoundedContext"
  - conceptId: "domain:Customer"

From code annotation:

# @sea:Entity
class Customer:
    pass

Step 2: Query Knowledge Graph

Use SPARQL to validate:

ASK {
  <http://sea-forge.org/ontology#BoundedContext> a owl:Class .
}

Or use the Knowledge Graph Service API:

curl -X GET "http://localhost:7200/repositories/sea/concepts/sea:BoundedContext"

Step 3: Report Results

Valid ConceptId:

✅ sea:BoundedContext - Found in SEA Core Ontology
   URI: http://sea-forge.org/ontology#BoundedContext
   Type: owl:Class
   Related: [sea:Domain, sea:Entity, sea:Flow]

Invalid ConceptId:

❌ sea:UnknownConcept - Not found in Knowledge Graph
   Suggestions:
   - sea:Concept (similarity: 0.85)
   - sea:Entity (similarity: 0.72)

SHACL Constraint Validation

Validate artifact structures against SHACL shapes:

sea:ChecklistShape a sh:NodeShape ;
  sh:targetClass sea:Checklist ;
  sh:property [
    sh:path sea:title ;
    sh:minCount 1 ;
    sh:datatype xsd:string ;
  ] ;
  sh:property [
    sh:path sea:semanticRefs ;
    sh:minCount 1 ;
    sh:message "Artifacts must have at least one semantic reference" ;
  ] .

Validation Command:

just validate-shacl artifact.yaml

Enrichment Suggestions

When creating new content, suggest semantic anchors:

Input

# API Design Document

We're building a customer management API that handles orders and payments.

Output

suggestedAnchors:
  - text: "customer management"
    concepts:
      - conceptId: "domain:Customer"
        confidence: 0.95
      - conceptId: "sea:BoundedContext"
        confidence: 0.75
        
  - text: "orders"
    concepts:
      - conceptId: "domain:Order"
        confidence: 0.92
      - conceptId: "sea:Aggregate"
        confidence: 0.70
        
  - text: "payments"
    concepts:
      - conceptId: "domain:Payment"
        confidence: 0.88

Integration Points

Cognitive Artifacts Builder

When generating CADSL artifacts, validate all semanticRefs:

# Before generation
validation:
  - conceptId: "sea:Deployment"
    status: "valid"
  - conceptId: "sea:QualityGate"
    status: "valid"

Spec Pipeline

Validate ADR/PRD/SDS references to ontology:

# In SDS header
semanticRefs:
  - conceptId: "sea:Service"
    validated: true
  - conceptId: "sea:API"
    validated: true

Case Management

Link cases to domain concepts:

case:
  conceptId: "cmmn:Case"
  domainRef: "domain:ProjectDelivery"

Quality Guidelines

1. Prefer Specific Concepts

Too Generic:

semanticRefs:
  - conceptId: "sea:Thing"

Specific:

semanticRefs:
  - conceptId: "sea:BoundedContext"
  - conceptId: "domain:CustomerOnboarding"

2. Include Domain Context

Always include at least one domain-specific concept along with core ontology concepts:

semanticRefs:
  - conceptId: "sea:Flow"        # Core ontology
  - conceptId: "domain:Checkout" # Domain specific

3. Validate Before Publishing

Never publish artifacts with unvalidated ConceptIds. Use:

just semantic-validate <artifact.yaml>

References

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です