# Executing SPARQL query over JSON-LD files in solid

**URL:** <https://forum.solidproject.org/t/executing-sparql-query-over-json-ld-files-in-solid/1885>\
**Category:** Solid App Development FAQs\
**Created:** [June 4, 2019, 2:40pm UTC](https://forum.solidproject.org/t/executing-sparql-query-over-json-ld-files-in-solid/1885 "2019-06-04T14:40:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aorumbayev](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/aorumbayev/32/721_2.png) [@aorumbayev](https://forum.solidproject.org/u/aorumbayev)\
**Post date:** [June 4, 2019, 2:40pm UTC](https://forum.solidproject.org/t/executing-sparql-query-over-json-ld-files-in-solid/1885/1 "2019-06-04T14:40:09Z")

</div>

Hi everyone!

I have been trying to change fields from a jsonld file I currently store in SOLID.  
From browsing through SOLID specs, it is known that each resource in a pod is a SPARQL endpoint. Then there is node-solid-server, and I think [inrupt.net](http://inrupt.net) uses an instance of it. Running PATCH request over .ttl files works fine, however, executing the same thing over a JSON-LD file just returns the content of the file without applying the patch.

Sample PATCH request of json-ld file

```nohighlight
curl -X PATCH \
  https://aorumbayevv2.inrupt.net/wed22/configurations/1559657333913.7942.jsonld \
  -H 'Content-Type: application/sparql-update' \
  -d '@prefix lpa: <https://w3id.org/def/lpapps#> .

DELETE 
{ lpa:VisualizerConfiguration lpa:title ?test . }
INSERT
{ lpa:VisualizerConfiguration lpa:title "Copper Davidfield" . }
WHERE
{ lpa:VisualizerConfiguration lpa:title ?test }
'

```

Does this mean that node solid server simply does not support executing sparql on json-ld files? If not, is there any other way to modify json-ld files in solid without storing it as ttl and then serialising it to json-ld (since my app is optimised for working with jsonld structure files) every time I retrieve it from server.
