lib/controlled_vocabularies/geographic.rb
def rdf_label
    label = super

    # TODO: Identify more featureCodes that should cause us to
    # terminate the sequence
    return label if top_level_element?
    return label if RDF::URI(label.first).valid?

    return label unless parentFeature.first.is_a? ActiveTriples::Resource
    parent_label = parentFeature.first.rdf_label.first

    return label if parent_label.starts_with?("_:")
    return label if RDF::URI(parent_label).valid?

    ["#{label.first} >> #{parent_label}"]
  end
##
# Overrides rdf_label to recursively add location disambiguation
# when available.
Overrides rdf_label to recursively add location disambiguation
when available.
Overrides rdf_label to recursively add location disambiguation when available .
def rdf_label
    label = super
    return label if top_level_element?
    return label if RDF::URI(label.first).valid?
    return label unless parentFeature.first.is_a? ActiveTriples::Resource
    parent_label = parentFeature.first.rdf_label.first
    return label if parent_label.starts_with?("_:")
    return label if RDF::URI(parent_label).valid?
    ["#{label.first} >> #{parent_label}"]
  end
def rdf_label label = super return label if top_level_element? return label if RDF :: URI ( label . first ) . valid? return label unless parentFeature . first . is_a? ActiveTriples :: Resource parent_label = parentFeature . first . rdf_label . first return label if parent_label . starts_with? ( "_:" ) return label if RDF :: URI ( parent_label ) . valid? [ "#{label.first} >> #{parent_label}" ] end
Overrides rdf_label to recursively add location disambiguation
when available.
Overrides rdf_label to recursively add location disambiguation when available .
# TODO: Identify more featureCodes that should cause us to # terminate the sequence