Sha256: 7d0cd55f3d7a6ca91c816a1461e9b0c02b75250f472550e32ce427c491524c70
Contents?: true
Size: 692 Bytes
Versions: 5
Compression:
Stored size: 692 Bytes
Contents
hierarchy2rdf = lambda do |hash| hash.each do |concept, rels| document << concept.build_rdf_subject do |sbj| sbj.Skos::topConceptOf IqRdf.build_uri(Iqvoc::Concept.root_class.instance.origin) if concept.top_term? concept.pref_labelings.each do |labeling| labeling.build_rdf(document, sbj) end rels.each do |relation, _| @relation_class.new(:owner => concept, :target => relation). # XXX: hacky!? build_rdf(document, sbj, true) end hierarchy2rdf.call(rels) end end end Iqvoc.default_rdf_namespace_helper_methods.each do |meth| document.namespaces(self.send(meth)) end hierarchy2rdf.call(@concepts) if @concepts
Version data entries
5 entries across 5 versions & 1 rubygems