lib/publisher/exporters/type_exporter.rb
###
# retrieves the uri's of each resource that matches the specified criteria
# e.g is of the right type and has all required properties
###
retrieves the uri's of each resource that matches the specified criteria
e.g is of the right type and has all required properties
retrieves the uri ' s of each resource that matches the specified criteria e . g is of the right type and has all required properties
def retrieve_concept_uris(type, config)
    uris = []
    count = count(type, config)
    i = 0
    batchsize = 10_000
    until i > count
      result = client.query(%(
                            #{sparql_prefixes}
                            SELECT distinct ?resource
                            FROM <#{application_graph}>
                            WHERE {
                              #{where_statements_for_type(type, config)}
                            }
                            LIMIT #{batchsize}
                            OFFSET #{i}
                            ))
      uris += result.map { |r| "<#{r['resource'].value}>" }
      i += batchsize
    end
    uris
  end
def retrieve_concept_uris ( type , config ) uris = [ ] count = count ( type , config ) i = 0 batchsize = 10_000 until i > count result = client . query ( %(
                            #{sparql_prefixes}
                            SELECT distinct ?resource
                            FROM <#{application_graph}>
                            WHERE {
                              #{where_statements_for_type(type, config)}
                            }
                            LIMIT #{batchsize}
                            OFFSET #{i}
                            ) ) uris += result . map { | r | "<#{r['resource'].value}>" } i += batchsize end uris end
retrieves the uri's of each resource that matches the specified criteria
e.g is of the right type and has all required properties
retrieves the uri ' s of each resource that matches the specified criteria e . g is of the right type and has all required properties
type
config