You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rya.apache.org by David Boyd <db...@incadencecorp.com> on 2018/04/23 18:57:41 UTC

Change default output format for rest endpoint

All:

    Probably a dumb silly question.   I am looking to hook RYA up to 
with the d3sparql.js (http://biohackathon.org/d3sparql/) library
for visualization of the output.  That library expects JSON as input.  
It also expects to append ?query=<sparqlquery> to the end
of the specified rest endpoint.    In testing on their demo page I can 
specify my endpoint and a query and from the logs
the query runs, however, the JSON parsing barfs because the default 
output is XML.  If in my browser debugger I hack
in "query.resultformat=json&" into the url it works just fine.

Is there a way to set this in one of the spring configuration files as 
the default return format?   I tried setting it a couple of different 
ways in the spring-accumulo.xml  but that gets an unwritable parameter 
error.

I am probably just missing something stupid as I am not very familiar 
with spring.

Thanks.

-- 
========= mailto:dboyd@incadencecorp.com ============
David W. Boyd
VP,  Data Solutions
10432 Balls Ford, Suite 240
Manassas, VA 20109
office:   +1-703-552-2862
cell:     +1-703-402-7908
============== http://www.incadencecorp.com/ ============
ISO/IEC JTC1 WG9, editor ISO/IEC 20547 Big Data Reference Architecture
Chair ANSI/INCITS TC Big Data
Co-chair NIST Big Data Public Working Group Reference Architecture
First Robotic Mentor - FRC, FTC - www.iliterobotics.org
Board Member- USSTEM Foundation - www.usstem.org

The information contained in this message may be privileged
and/or confidential and protected from disclosure.
If the reader of this message is not the intended recipient
or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication
is strictly prohibited.  If you have received this communication
in error, please notify the sender immediately by replying to
this message and deleting the material from any computer.

  


Re: Change default output format for rest endpoint

Posted by Jürgen Jakobitsch <ju...@semantic-web.com>.
as far as i know there's no such option and you just have to built the
endpoint URL accordingly..

sidenote: this is exactly what semantic web company is proposing with the
rya sparql endpoint upgrade [1]
and the first draft implementation [2] where such things are well defined
and according to standards..

kr
jürgen

[1] https://issues.apache.org/jira/projects/RYA/issues/RYA-477
[2] https://github.com/jj-semantic-web-com/rya-sparql-endpoint



*Jürgen Jakobitsch*
Innovation Director
Semantic Web Company GmbH
EU: +43-14021235 <+43%201%204021235>
US: (415) 800-3776
Mobile: +43-676-6212710 <+43%20676%206212710>
https://www.poolparty.biz
https://www.semantic-web.com

*Download now
<https://www.poolparty.biz/wp-content/uploads/2017/08/IDC_Paper_How_Semantic_Technologies_Steer_Cognitive_Applications.pdf>
**IDC
White Paper*
*Get certified! <https://www.poolparty.biz/academy/> **PoolParty Academy*


*PoolParty selected as a KMWorld Trend-Setting Product for 2017*


PERSONAL INFORMATION
| web       : http://www.turnguard.com
| foaf      : http://www.turnguard.com/turnguard
| g+        : https://plus.google.com/111233759991616358206/posts
| skype     : jakobitsch-punkt
| xmlns:tg  = "http://www.turnguard.com/turnguard#"
| blockchain : https://onename.com/turnguard

2018-04-23 20:57 GMT+02:00 David Boyd <db...@incadencecorp.com>:

> All:
>
>    Probably a dumb silly question.   I am looking to hook RYA up to with
> the d3sparql.js (http://biohackathon.org/d3sparql/) library
> for visualization of the output.  That library expects JSON as input.  It
> also expects to append ?query=<sparqlquery> to the end
> of the specified rest endpoint.    In testing on their demo page I can
> specify my endpoint and a query and from the logs
> the query runs, however, the JSON parsing barfs because the default output
> is XML.  If in my browser debugger I hack
> in "query.resultformat=json&" into the url it works just fine.
>
> Is there a way to set this in one of the spring configuration files as the
> default return format?   I tried setting it a couple of different ways in
> the spring-accumulo.xml  but that gets an unwritable parameter error.
>
> I am probably just missing something stupid as I am not very familiar with
> spring.
>
> Thanks.
>
> --
> ========= mailto:dboyd@incadencecorp.com ============
> David W. Boyd
> VP,  Data Solutions
> 10432 Balls Ford, Suite 240
> Manassas, VA 20109
> office:   +1-703-552-2862
> cell:     +1-703-402-7908
> ============== http://www.incadencecorp.com/ ============
> ISO/IEC JTC1 WG9, editor ISO/IEC 20547 Big Data Reference Architecture
> Chair ANSI/INCITS TC Big Data
> Co-chair NIST Big Data Public Working Group Reference Architecture
> First Robotic Mentor - FRC, FTC - www.iliterobotics.org
> Board Member- USSTEM Foundation - www.usstem.org
>
> The information contained in this message may be privileged
> and/or confidential and protected from disclosure.
> If the reader of this message is not the intended recipient
> or an employee or agent responsible for delivering this message
> to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication
> is strictly prohibited.  If you have received this communication
> in error, please notify the sender immediately by replying to
> this message and deleting the material from any computer.
>
>
>