Class: PublishMyData::QueriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PublishMyData::QueriesController
- Includes:
- SparqlProcessing
- Defined in:
- app/controllers/publish_my_data/queries_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
not implemented yet - will list all named queries GET /queries.
-
#show ⇒ Object
GET /queries/:id, where id is the slug.
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
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 |