Class: Glossarist::NonConceptEntity
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Glossarist::NonConceptEntity
- Defined in:
- lib/glossarist/non_concept_entity.rb
Overview
Shared payload for every non-concept entity — entities that are NOT concepts at all (Figure, Table, Formula), as opposed to non-verbal designations OF concepts (NonVerbRep).
Terminology alignment (PROMPT-NOW P3):
- Non-verbal refers to the modality of expression (non-verbal
designation: symbol, formula expression). PROPERTIES OF concepts.
- Non-concept refers to entities that are NOT concepts at all
(Figure, Table, Formula). STANDALONE dataset entities.
The four attributes here are the common a11y + provenance payload every non-concept entity carries, regardless of content type:
caption: localized short title (a11y / indexing).description: localized long description (a11y screen readers).alt: localized alternative text (a11y short screen-reader label).sources: bibliographic sources for the representation.
Identity (+id+, identifier) belongs on subclasses that have it;
see SharedNonConceptEntity for the dataset-shared variant.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_file(path) ⇒ Object
45 46 47 48 49 |
# File 'lib/glossarist/non_concept_entity.rb', line 45 def self.from_file(path) return nil unless File.exist?(path) from_yaml(File.read(path, encoding: "utf-8")) end |
Instance Method Details
#all_ids ⇒ Object
41 42 43 |
# File 'lib/glossarist/non_concept_entity.rb', line 41 def all_ids [] end |
#find_by_id(_target_id) ⇒ Object
37 38 39 |
# File 'lib/glossarist/non_concept_entity.rb', line 37 def find_by_id(_target_id) nil end |