Class: Glossarist::Rdf::GlossLocalizedConcept
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Glossarist::Rdf::GlossLocalizedConcept
- Defined in:
- lib/glossarist/rdf/gloss_localized_concept.rb
Class Method Summary collapse
Class Method Details
.skosxl_label_for(designation) ⇒ Object
57 58 59 60 61 62 63 64 |
# File 'lib/glossarist/rdf/gloss_localized_concept.rb', line 57 def self.skosxl_label_for(designation) status = designation.normative_status.to_s.split("/").last case status when "preferred" then "skosxl:prefLabel" when "deprecated" then "skosxl:hiddenLabel" else "skosxl:altLabel" end end |