I'm trying to execute sparql query using the endpoint url: http://localhost:8080/repositories/rep_name

For example, using this url: http://localhost:8080/repositories/rep_name?default-graph-uri=http://www.ontotext.com/count&query=select+distinct+%3FConcept+where+%7B%5B%5D+a+%3FConcept%7D+LIMIT+100&format=application%2Fsparql-results%2Bjson&timeout=0&debug=on

I would like to execute this query: select distinct ?Concept where {[] a ?Concept} LIMIT 100

and get the result as a json format.

But it returns a srx file which is xml format.

How could I get the json format? I'm using graphdb 6.4

asked 26 Sep '15, 23:06

al3xtouch's gravatar image

accept rate: 0%

edited 26 Sep '15, 23:08

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 26 Sep '15, 23:06

Seen: 2,347 times

Last updated: 05 Jul, 01:45

powered by BitNami OSQA