app/models/trait_bank/json_ld.rb
# NOTE: this isn't used yet, I'm keeping it here because it's TODO to use
# this in the case of multi-item feeds where supercedure has occurred.
this isn't used yet, I'm keeping it here because it's TODO to use
this in the case of multi-item feeds where supercedure has occurred.
this isn ' t used yet I ' m keeping it here because it ' s TODO to use this in the case of multi - item feeds where supercedure has occurred .
def superceded_feed_item(concept)
      id = concept.respond_to?(id) ? concept.id : concept
      { "@type" => "DataFeedItem",
        "dateDeleted" => Date.today,
        "item" => { "@type" => "taxon", "@id" => id }
      }
    end
def superceded_feed_item ( concept ) id = concept . respond_to? ( id ) ? concept . id : concept { "@type" => "DataFeedItem" , "dateDeleted" => Date . today , "item" => { "@type" => "taxon" , "@id" => id } } end
NOTE: this isn't used yet, I'm keeping it here because it's TODO to use
this in the case of multi-item feeds where supercedure has occurred.
NOTE : this isn ' t used yet I ' m keeping it here because it ' s TODO to use this in the case of multi - item feeds where supercedure has occurred .
# Not actually, but we don't have timestamps on TaxonConcept: (sigh)
concept
<not_specific>