Class: PublishMyData::QueriesController

Inherits:
ApplicationController show all
Includes:
SparqlProcessing
Defined in:
app/controllers/publish_my_data/queries_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

not implemented yet - will list all named queries  GET /queries



22
# File 'app/controllers/publish_my_data/queries_controller.rb', line 22

def index; end

#showObject

 GET /queries/:id, where id is the slug.



11
12
13
14
15
16
17
18
# File 'app/controllers/publish_my_data/queries_controller.rb', line 11

def show
  @query_text = get_query_sparql(params[:id])
  build_sparql_query(@query_text)
  @sparql_query_result = process_sparql_query(@sparql_query)
  respond_with(@sparql_query_result) do |format|
    format.html { head :status => 406 }
  end
end