# File lib/activerdf_redland/redland.rb, line 138
138:         def get_sparql_query_results(qs, result_format=nil)
139:                 # author: Eric Hanson
140: 
141:                 # set uri for result formatting
142:                 result_uri = 
143:                         case result_format
144:                       when :json
145:         Redland::Uri.new('http://www.w3.org/2001/sw/DataAccess/json-sparql/')
146:       when :xml
147:         Redland::Uri.new('http://www.w3.org/TR/2004/WD-rdf-sparql-XMLres-20041221/')
148:                         end
149: 
150:                 # query redland
151:     redland_query = Redland::Query.new(qs, 'sparql')
152:     query_results = @model.query_execute(redland_query)
153: 
154:                 # get string representation in requested result_format (json or xml)
155:     query_results.to_string()
156:   end