lib/eol/sparql/search_query_builder.rb
# Instance method to put together all the pieces and return a string
# representing the final Sparql search query
Instance method to put together all the pieces and return a string
representing the final Sparql search query
Instance method to put together all the pieces and return a string representing the final Sparql search query
def prepare_query
        if @taxon_concept
          inner_query = EOL::Sparql::SearchQueryBuilder.build_query_with_taxon_filter(@taxon_concept.id, inner_select_clause, where_clause, inner_order_clause)
        else
          inner_query = EOL::Sparql::SearchQueryBuilder.build_query(inner_select_clause, where_clause, inner_order_clause, nil)
        end
        EOL::Sparql::SearchQueryBuilder.build_query(outer_select_clause, inner_query, outer_order_clause, limit_clause)
      end
def prepare_query if @taxon_concept inner_query = EOL :: Sparql :: SearchQueryBuilder . build_query_with_taxon_filter ( @taxon_concept . id , inner_select_clause , where_clause , inner_order_clause ) else inner_query = EOL :: Sparql :: SearchQueryBuilder . build_query ( inner_select_clause , where_clause , inner_order_clause , nil ) end EOL :: Sparql :: SearchQueryBuilder . build_query ( outer_select_clause , inner_query , outer_order_clause , limit_clause ) end
Instance method to put together all the pieces and return a string
representing the final Sparql search query
Instance method to put together all the pieces and return a string representing the final Sparql search query
# this is strange, but in order to properly do sorts, limits, and offsets there should be a subquery # see http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksHowToHandleBandwidthLimitExceed