glam/schemas/20251121/linkml/modules/classes/PageLink.yaml
kempersc 0393b321c9 refactor(schema): unify custodian_type slots into has_or_had_custodian_type (Rule 39, 43)
- Migrate 236+ class files from custodian_types to has_or_had_custodian_type
- Archive deprecated slots: custodian_type, custodian_types, custodian_type_broader/narrower/related
- Update main schema and manifest imports
- Fix Custodian.yaml class to use new slot
- Fix annotation format (list→scalar) in has_or_had_custodian_type.yaml

Rules applied:
- Rule 39: RiC-O naming convention (hasOrHad pattern)
- Rule 43: Slot nouns must be singular (multivalued:true for cardinality)
- Rule 38: Slot centralization with semantic URI
2026-01-09 10:55:21 +01:00

85 lines
2 KiB
YAML

id: https://nde.nl/ontology/hc/class/PageLink
name: page_link_class
title: PageLink Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
dcterms: http://purl.org/dc/terms/
default_prefix: hc
default_range: string
imports:
- linkml:types
- ../metadata
- ./SpecificityAnnotation
- ./TemplateSpecificityScores
- ../enums/LinkTypeEnum
- ../slots/xpath
- ../slots/is_sub_guide
- ../slots/link_context
- ../slots/link_text
- ../slots/link_type
- ../slots/link_url
- ../slots/specificity_annotation
- ../slots/template_specificity
classes:
PageLink:
class_uri: schema:WebPage
description: |
A hyperlink extracted from a page.
slots:
- is_sub_guide
- link_context
- link_text
- link_type
- link_url
- specificity_annotation
- template_specificity
- xpath
slot_usage:
link_text:
description: Visible text of the link
required: true
link_url:
description: URL of the link
range: uri
required: true
link_type:
description: Type of link
range: LinkTypeEnum
link_context:
description: Parent section or surrounding context
is_sub_guide:
description: Whether this is a link to a sub-guide
range: boolean
xpath:
description: XPath to link element
specificity_annotation:
range: SpecificityAnnotation
inlined: true
template_specificity:
range: TemplateSpecificityScores
inlined: true
slots:
link_text:
slot_uri: schema:name
description: Link text
range: string
link_url:
slot_uri: schema:url
description: Link URL
range: uri
link_type:
slot_uri: dcterms:type
description: Type of link
range: LinkTypeEnum
link_context:
slot_uri: hc:context
description: Link context
range: string
is_sub_guide:
slot_uri: hc:isSubGuide
description: Whether link is to sub-guide
range: boolean