# CONSTRUCT query and application/sparql-results+json

**URL:** <https://community.stardog.com/t/construct-query-and-application-sparql-results-json/2672>\
**Category:** Support\
**Created:** [August 20, 2020, 8:54am UTC](https://community.stardog.com/t/construct-query-and-application-sparql-results-json/2672 "2020-08-20T08:54:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crapthings](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/crapthings/32/686_2.png) [@crapthings](https://community.stardog.com/u/crapthings)\
**Post date:** [August 20, 2020, 8:54am UTC](https://community.stardog.com/t/construct-query-and-application-sparql-results-json/2672/1 "2020-08-20T08:54:35Z")

</div>

can CONSTRUCT return in json or xml form?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/ef17de9943e67cb6a8e0765a98b08a1ad6b9328f.png)

---

<div class="post-metadata">

**Author:** ![LorenzB](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/lorenzb/32/806_2.png) [@LorenzB](https://community.stardog.com/u/LorenzB)\
**Post date:** [August 20, 2020, 10:22am UTC](https://community.stardog.com/t/construct-query-and-application-sparql-results-json/2672/2 "2020-08-20T10:22:51Z")

</div>

JSON-LD and RDF/XML are possible - just use the corresponding content type in your Accept Header

---

<div class="post-metadata">

**Author:** ![borgendorf](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/borgendorf/32/24_2.png) [@borgendorf](https://community.stardog.com/u/borgendorf)\
**Post date:** [August 20, 2020, 10:37pm UTC](https://community.stardog.com/t/construct-query-and-application-sparql-results-json/2672/3 "2020-08-20T22:37:47Z")

</div>

...and if you want to do it from Stardog Studio, click on the Run to File button to pick the type you want and location to save the file.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/1X/fef040cd532202b9450c4d7e2420f5b3522e4df0.png)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [September 3, 2020, 10:37pm UTC](https://community.stardog.com/t/construct-query-and-application-sparql-results-json/2672/4 "2020-09-03T22:37:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
