glam/schemas/20251121/linkml/modules/classes/ConnectionDegree.yaml
kempersc 1516d509cf Add metadata to LinkML class definitions and update prefixes
- Added `id`, `name`, `title`, and `description` fields to multiple LinkML class YAML files.
- Standardized prefixes across all class definitions.
- Introduced a new script `fix_linkml_metadata.py` to automate the addition of metadata to class files.
- Updated existing class files to ensure compliance with the new metadata structure.
2026-01-29 17:40:47 +01:00

104 lines
3.4 KiB
YAML

id: https://nde.nl/ontology/hc/class/ConnectionDegree
name: ConnectionDegree
title: Connection Degree
description: LinkML class definition for Connection Degree
prefixes:
linkml: https://w3id.org/linkml/
schema: http://schema.org/
skos: http://www.w3.org/2004/02/skos/core#
rico: https://www.ica.org/standards/RiC/ontology#
wd: http://www.wikidata.org/entity/
# ConnectionDegree class
# Created 2026-01-22 per slot_fixes.yaml revision for connection_degree (Rule 53)
#
# Represents the degree of connection in a social network
id: https://nde.nl/ontology/hc/class/ConnectionDegree
name: connection_degree_class
title: Connection Degree Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
default_prefix: hc
imports:
- linkml:types
- ../slots/has_or_had_type
- ../slots/has_or_had_description
- ./ConnectionDegreeType
- ./ConnectionDegreeTypes
classes:
ConnectionDegree:
class_uri: hc:ConnectionDegree
description: |
Represents the degree of connection between two people in a social network.
**DEFINITION**:
ConnectionDegree captures the "distance" in a social network graph:
- **1st degree**: Direct mutual connection
- **2nd degree**: One person between viewer and connection
- **3rd+ degree**: Two or more people between
**IMPORTANT**: The degree is relative to the VIEWER (person conducting
the search), NOT the target profile being analyzed. See AGENTS.md Rule 17.
**SEMANTIC PATTERN**:
```
PersonConnection
└── has_or_had_degree → ConnectionDegree (THIS CLASS)
└── has_or_had_type → ConnectionDegreeType (FIRST, SECOND, THIRD_PLUS)
```
**MIGRATION NOTE** (Rule 53, 2026-01-22):
Created as part of connection_degree migration. Wraps the simple enum
in a structured class for consistency with other Type/Types patterns.
exact_mappings:
- schema:QuantitativeValue
slots:
- has_or_had_type
- has_or_had_description
slot_usage:
has_or_had_type:
range: ConnectionDegreeType
required: true
description: |
The type of connection degree (FIRST, SECOND, THIRD_PLUS).
Uses ConnectionDegreeType class hierarchy.
examples:
- value: FIRST
description: "First-degree (direct) connection"
- value: SECOND
description: "Second-degree connection (friend of friend)"
has_or_had_description:
description: Optional description of the connection context.
annotations:
custodian_types: '["*"]'
custodian_types_rationale: Connection degrees apply to any heritage sector network.
specificity_score: 0.65
specificity_rationale: Specialized class for LinkedIn network analysis.
comments:
- "Created 2026-01-22 per slot_fixes.yaml connection_degree migration"
- "Degree is relative to VIEWER, not target profile"
- "Uses ConnectionDegreeType class hierarchy per Rule 0b"
examples:
- value:
has_or_had_type: FIRST
description: "First-degree direct connection"
- value:
has_or_had_type: SECOND
has_or_had_description:
description_text: "Connected through mutual colleague"
description: "Second-degree connection with context"