Skip to content

feat: add DesignationRelationship, ConceptRef text, annotations, 52 relationship types#51

Merged
ronaldtse merged 1 commit into
mainfrom
feat/designation-relationship-concept-ref-text
Jun 8, 2026
Merged

feat: add DesignationRelationship, ConceptRef text, annotations, 52 relationship types#51
ronaldtse merged 1 commit into
mainfrom
feat/designation-relationship-concept-ref-text

Conversation

@ronaldtse

Copy link
Copy Markdown
Member

Aligns with glossarist-ruby PR #172 (merged, patch released).

Changes

DesignationRelationship (MECE separation)

New DesignationRelationship class for designation-level relationships (abbreviated_form_for, short_form_for). Unlike RelatedConcept (which links concepts by identifier), DesignationRelationship links designations by their text — proper separation of concerns.

  • LutaML: models/concepts/DesignationRelationship.lutaml (new) + Designation.lutaml updated
  • Schema: $defs.designation_relationship in localized-concept.yaml; designation_base.related now points to it
  • Ontology: gloss:DesignationRelationship class + 4 properties
  • SHACL: DesignationRelationshipShape + updated DesignationShape
  • JSON-LD: All new entries
  • MECE fix: gloss:hasRelatedConcept domain reduced from 3-level (Concept, LocalizedConcept, Designation) to 2-level. Designation uses dedicated gloss:hasDesignationRelationship.

ConceptRef text field

Added text property to concept_ref across all layers — used when a relationship is identified by designation text rather than registry reference (e.g. close_match by text).

Annotations

Added annotations field (reuses DetailedDefinition) across all layers — editorial commentary about the definition, distinct from notes which supplement the concept.

Relationship types expansion

Expanded RelatedConceptType from 10 to 52 values covering the full ISO superset: ISO 10241-1, ISO 19135, ISO 25964/SKOS, ISO 12620/TBX. Updated taxonomy and examples.

Verification

  • All 19 TTL files parse OK
  • All 35 V3 YAML examples validate against their schemas
  • Cross-layer field mapping verified (every schema field has ontology property + SHACL shape + JSON-LD entry)

Not committed (flagged)

  • TODO.designation-relationship.md — transient task file, work complete
  • schemas/v3/examples/16-typed-notes.yaml — uses type: annotation inside notes, but detailed_definition has no type field. Redundant with 16-annotations.yaml which uses the model-driven separate field approach.

…elationship types

Aligns with glossarist-ruby PR #172.

DesignationRelationship (MECE separation):
- New DesignationRelationship class (type + content + target) for
  designation-level relationships (abbreviated_form_for, short_form_for)
- Added to LutaML model, V3 YAML schema, OWL ontology, SHACL shapes,
  and JSON-LD context
- Designation.related now uses DesignationRelationship instead of
  RelatedConcept — designation links reference text, not concept IDs
- hasRelatedConcept domain reduced from 3-level to 2-level (Concept,
  LocalizedConcept); Designation uses dedicated hasDesignationRelationship

ConceptRef text field:
- Added text property to concept_ref in V3 schemas (concept.yaml,
  localized-concept.yaml) and all formal layers (ontology, SHACL, JSON-LD)
- Used for lexical relationships identified by designation text

Annotations:
- Added annotations (DetailedDefinition[0..*]) to Concept.lutaml,
  gloss:hasAnnotation to ontology, SHACL shape on LocalizedConceptShape,
  JSON-LD context entry
- Distinct from notes — annotations comment on how to interpret the
  definition, while notes supplement the concept

Relationship types expansion:
- Expanded RelatedConceptType from 10 to 52 values covering ISO 10241-1,
  ISO 19135, ISO 25964/SKOS, ISO 12620/TBX
- Updated relationship-type.ttl taxonomy with all 52 SKOS concepts
- Updated examples demonstrating all relationship types

New examples: 16-annotations, 17-register-dataset
@ronaldtse ronaldtse merged commit 5a363b9 into main Jun 8, 2026
9 checks passed
@ronaldtse ronaldtse deleted the feat/designation-relationship-concept-ref-text branch June 8, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant