You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rya.apache.org by "Grady, Brendan J (IS)" <Br...@ngc.com> on 2016/09/13 13:04:34 UTC

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