0

I am trying to export all the data in one namespace from my blazegraph instance via the web interface.

After I run a query and get some results I hit the "Export" button. The export function gives me the option of exporting as csv, json and xml. But all the RDF options such as RDF/XML, Turtle etc are greyed out. How can I access those export options on the web interface?

I am running version 2.1.5 of Blazegraph

Daniel Mermelstein
  • 1,281
  • 6
  • 8

1 Answers1

0

You can export all data in the format you desire by using a CONSTRUCT query in a POST request like this:

curl --X POST \
  --url 'https://{host}/bigdata/namespace/{namespace}/sparql' \
  --data-urlencode 'query=CONSTRUCT { ?s ?p ?o } where { ?s ?p ?o }' \
  --header 'Accept: application/x-turtle' > outputfile.ttl
Marcelo Machado
  • 1,179
  • 2
  • 13
  • 33