A uniform resource identifier. In general, this is expected to be an URL (for example, to link to an image on a website, in which case the ‘type’ attribute might be ‘image’ and ‘desc’ might be ‘image of a California sea hare’)
String. Description of the uri. For example, image of a California sea hare'
String. For example, image.
String. URL of the resource.
Converts elements to xml representation. Called by PhyloXML::Writer class.
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 678 def to_xml if @uri != nil xml_node = LibXML::XML::Node.new('uri', @uri) Writer.generate_xml(xml_node, self, [ [:attr, 'desc'], [:attr, 'type']]) return xml_node end end