Brendon, Glad you discovered the CONSTRUCT query. I've used the construct query for lots of things. I think it is underused and underappreciated! It gives you RDF instead of results (bound variables/ rdf-sparql-XMLres / sparql11-results-json as you said).
The big use case for me is to grab a small subset out of a huge data set. david. -----Original Message----- From: Grady, Brendan J (IS) [mailto:[email protected]] Sent: Tuesday, September 13, 2016 3:01 PM To: [email protected] Subject: RE: web.rya /queryrdf ParsedGraphQuery Disregard the below question. Found I can get into the ParsedGraphQuery path using a CONSTRUCT query vs a SELECT query ( which makes perfect sense ). Thanks, Brendan From: Grady, Brendan J (IS) Sent: Tuesday, September 13, 2016 9:05 AM To: '[email protected]' Subject: web.rya /queryrdf ParsedGraphQuery Hello, I am using the web.rya (3.2.10-RC-1) ReST endpoint /queryrdf and would like to receive my results formatted in rdf/xml vice rdf-sparql-XMLres / sparql11-results-json. Looking over RDFController, looks like I want to get into the 'if (operation instanceof ParsedGraphQuery) {' path. However, so far as I can tell, the operation type is not based on the query content or manipulated by any parameter passed into the service. It appears that it is simply pulling from a query parser registry using QueryLanguage.SPARQL as its key. To change this behavior, should I be adding a file to META-INF/services in the web.rya war to register 'ParsedGraphQuery' with the QueryLanguage.SPARQL key? ( effectively overriding the default behavior of using ParsedTupleQuery ) Or am I missing something? Thanks in Advance. Brendan
