0

I have a RDF database in my stardog server locally and in which I have one graph now I want to download data of selected stardog:044585392... in JSON or any type of file like RDF/XML with the help of the query see the image for more detail so how do i do it? enter image description here

j4520
  • 17
  • 1
  • 7
  • 1
    just use a `DESCRIBE` query for that URI: `DESCRIBE ` – UninformedUser Jun 21 '21 at 06:07
  • Hi there i see thanks now if i want to download/get data in json format how do i do that? – j4520 Jun 21 '21 at 06:45
  • You can use the "Run to File" button and select JSON to download a file from Studio – notsodev Jun 22 '21 at 15:18
  • @BryanA that's manual I want something in query itself – j4520 Jun 22 '21 at 19:25
  • 1
    I don't think there is anything in SPARQL to do that. Can you use a `curl` or something like Python? The HTTP API will return the results in XML by default and you can specify JSON for the response. That way you keep it programatic. https://stardog-union.github.io/http-docs/#operation/get – notsodev Jun 24 '21 at 13:03

0 Answers0