app/models/tramea.rb
# NOTE: I am NOT translating these, so all "name" and "definition" values are
# in English; that will have to be another UI.
I am NOT translating these, so all "name" and "definition" values are
in English; that will have to be another UI.
I am NOT translating these so all " name " and " definition " values are in English ; that will have to be another UI .
def uri_from_known_uri(uri)
      {
        "id" => uri.id,
        "name" => uri.name,
        "uri" => uri.uri,
        "definition" => uri.definition,
        "more_information" => [uri.ontology_source_url,
          uri.ontology_information_url].compact,
        "sections" => uri.toc_items.map { |ti| ti.label }.compact
      }
    end
def uri_from_known_uri ( uri ) { "id" => uri . id , "name" => uri . name , "uri" => uri . uri , "definition" => uri . definition , "more_information" => [ uri . ontology_source_url , uri . ontology_information_url ] . compact , "sections" => uri . toc_items . map { | ti | ti . label } . compact } end
NOTE: I am NOT translating these, so all "name" and "definition" values are
in English; that will have to be another UI.
NOTE : I am NOT translating these so all " name " and " definition " values are in English ; that will have to be another UI .
uri
<not_specific>