Sha256: a575a57bc830c42ef34a96266a4f7aa864d6a6b1569d410b4c9bd5e7f1b49a28
Contents?: true
Size: 678 Bytes
Versions: 16
Compression:
Stored size: 678 Bytes
Contents
require_dependency "publish_my_data/application_controller" module PublishMyData class SparqlController < ApplicationController include PublishMyData::Concerns::Controllers::Sparql before_filter :check_format, :only => [:endpoint] def endpoint @query_text = params[:query] if @query_text.blank? unless is_request_html_format? #the html view handles this ok render :text => "no query supplied", :status => 400 end else @sparql_query = build_sparql_query(@query_text) @sparql_query_result = process_sparql_query(@sparql_query) respond_with(@sparql_query_result) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems