Sha256: defba6c10798a6f8ff9a9a9fea18d17e0667bb9b40187a99b795fa0f3a339c14

Contents?: true

Size: 733 Bytes

Versions: 20

Compression:

Stored size: 733 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

RdfNamespacesHelper.instance_methods.each do |meth|
  namespaces = send(meth)
  document.namespaces(namespaces) if namespaces.is_a?(Hash)
end

hierarchy2rdf.call(@concepts) if @concepts

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/views/hierarchy/show.iqrdf
iqvoc-4.14.4 app/views/hierarchy/show.iqrdf
iqvoc-4.13.2 app/views/hierarchy/show.iqrdf
iqvoc-4.13.0 app/views/hierarchy/show.iqrdf
iqvoc-4.12.1 app/views/hierarchy/show.iqrdf
iqvoc-4.12.0 app/views/hierarchy/show.iqrdf
iqvoc-4.11.1 app/views/hierarchy/show.iqrdf
iqvoc-4.11.0 app/views/hierarchy/show.iqrdf
iqvoc-4.10.0 app/views/hierarchy/show.iqrdf
iqvoc-4.9.0 app/views/hierarchy/show.iqrdf
iqvoc-4.8.2 app/views/hierarchy/show.iqrdf
iqvoc-4.8.1 app/views/hierarchy/show.iqrdf
iqvoc-4.8.0 app/views/hierarchy/show.iqrdf
iqvoc-4.7.0 app/views/hierarchy/show.iqrdf
iqvoc-4.6.1 app/views/hierarchy/show.iqrdf
iqvoc-4.5.2 app/views/hierarchy/show.iqrdf
iqvoc-4.6.0 app/views/hierarchy/show.iqrdf
iqvoc-4.5.1 app/views/hierarchy/show.iqrdf
iqvoc-4.5.0 app/views/hierarchy/show.iqrdf
iqvoc-4.4.0 app/views/hierarchy/show.iqrdf