Class: Glossarist::Rdf::GlossGenericRelation

Inherits:
GlossNaryRelation
  • Object
show all
Defined in:
lib/glossarist/rdf/gloss_generic_relation.rb

Overview

RDF view for V3::GenericHyperedge. Inherits structure and helpers from GlossNaryRelation. The rdf do block re-declares the predicates because lutaml-model's rdf DSL replaces the parent mapping (not extends).

Class Method Summary collapse

Methods inherited from GlossNaryRelation

criterion_fingerprint

Class Method Details

.deterministic_id(rel) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/glossarist/rdf/gloss_generic_relation.rb', line 34

def self.deterministic_id(rel)
  parts = [rel.identifier, rel.comprehensive_uri, rel.completeness,
           criterion_fingerprint(rel.criterion)]
  Array(rel.generic_members).each do |m|
    parts << GlossGenericMember.deterministic_id(m)
  end
  DeterministicSlug.from_parts(*parts)
end