app/models/crawler.rb
# NOTE: We're NOT adding taxa unless they have traits! This may not be
# desireable... we might want to know the names and the sameAs's for the
# page. ...TODO: choose?
We're NOT adding taxa unless they have traits. This may not be
desireable... we might want to know the names and the sameAs's for the
page.
We ' re NOT adding taxa unless they have traits . This may not be desireable ... we might want to know the names and the sameAs ' s for the page .
def add_taxon_to_file(filename, concept)
      begin
        pj = PageJson.for(concept.id)
        return unless pj && pj.has_traits?
        Crawler::DataFeeder.add_json(filename, pj.ld)
      rescue => e
        EOL.log("ERROR on page #{concept.id}:", prefix: "!")
        EOL.log_error(e)
        0
      end
    end
def add_taxon_to_file ( filename , concept ) begin pj = PageJson . for ( concept . id ) return unless pj && pj . has_traits? Crawler :: DataFeeder . add_json ( filename , pj . ld ) rescue => e EOL . log ( "ERROR on page #{concept.id}:" , prefix : "!" ) EOL . log_error ( e ) 0 end end
NOTE: We're NOT adding taxa unless they have traits!
NOTE : We ' re NOT adding taxa unless they have traits!
filename
<not_specific>
concept
<not_specific>