lib/publisher/exporters/label_exporter.rb
def retrieve_label_uris
    uris = []
    i = 0
    total = count
    batchsize = 10_000
    until i > total
      result = client.query(%(
                            #{sparql_prefixes}
                            SELECT distinct ?label
                            WHERE {
                              #{where_statements}
                            }
                            LIMIT #{batchsize}
                            OFFSET #{i}
                            ))
      uris += result.map { |r| "<#{r['label'].value}>" }
      i += batchsize
    end
    uris
  end
###
# retrieves the uri's of each label uris
###
retrieves the uri's of each label uris
retrieves the uri ' s of each label uris
def retrieve_label_uris
    uris = []
    i = 0
    total = count
    batchsize = 10_000
    until i > total
      result = client.query(%(
                            #{sparql_prefixes}
                            SELECT distinct ?label
                            WHERE {
                              #{where_statements}
                            }
                            LIMIT #{batchsize}
                            OFFSET #{i}
                            ))
      uris += result.map { |r| "<#{r['label'].value}>" }
      i += batchsize
    end
    uris
  end
def retrieve_label_uris uris = [ ] i = 0 total = count batchsize = 10_000 until i > total result = client . query ( %(
                            #{sparql_prefixes}
                            SELECT distinct ?label
                            WHERE {
                              #{where_statements}
                            }
                            LIMIT #{batchsize}
                            OFFSET #{i}
                            ) ) uris += result . map { | r | "<#{r['label'].value}>" } i += batchsize end uris end
retrieves the uri's of each label uris
retrieves the uri ' s of each label uris