(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{151:function(e,t){angular.module("graphdb.framework.rest.export.service",[]).factory("ExportRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t,n){return{getExportedStatementsAsJSONLD:function(t,n,o,r,i,s){const a=`repositories/${o.id}/statements?infer=false`;let l=null,c=null,p=null;n?l+=t:(t&&(l=r[t.value].exportUri),c=encodeURIComponent(o.location));i&&(p=encodeURIComponent(i));void 0===s.link&&(s.link="");return e({url:a,method:"GET",params:{context:l,location:c,authToken:p},headers:{Accept:s.accept,Link:s.link},responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}}}}}]);