UNPKG

graphdb-workbench

Version:
2 lines 2.6 kB
export const __webpack_id__=55868;export const __webpack_ids__=[14018,25387,28847,46993,55868,94060];export const __webpack_modules__={14018:(e,t,s)=>{s.r(t),s.d(t,{ImportParsingSettings:()=>r});class r{constructor(){this.contextLink=void 0,this.preserveBNodeIds=!1,this.failOnUnknownDataTypes=!1,this.verifyDataTypeValues=!1,this.normalizeDataTypeValues=!1,this.failOnUnknownLanguageTags=!1,this.verifyLanguageTags=!1,this.normalizeLanguageTags=!1,this.stopOnError=!0}}},28847:(e,t,s)=>{s.r(t),s.d(t,{ImportResourceStatus:()=>r});const r={NONE:"NONE",UPLOADING:"UPLOADING",UPLOAD_ERROR:"UPLOAD_ERROR",UPLOADED:"UPLOADED",PENDING:"PENDING",IMPORTING:"IMPORTING",DONE:"DONE",ERROR:"ERROR",INTERRUPTING:"INTERRUPTING"}},46993:(e,t,s)=>{s.r(t),s.d(t,{ImportResourceType:()=>r});const r={DIRECTORY:"directory",FILE:"file",URL:"url",TEXT:"text"}},55868:(e,t,s)=>{s.r(t),s.d(t,{fileToImportResource:()=>a,filesToImportResource:()=>n,toImportResource:()=>i});var r=s(94060),o=s(93135);const i=e=>{const t=(0,o.md5HashGenerator)();return e.map(e=>new r.ImportResource(e,t))},a=e=>{const t=(0,o.md5HashGenerator)();return new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:e.lastModified,file:e},t)},n=(e,t)=>{const s=(0,o.md5HashGenerator)();return e.map(e=>new r.ImportResource({name:e.name,size:e.size,type:"file",modifiedOn:void 0,file:e,status:t},s))}},94060:(e,t,s)=>{s.r(t),s.d(t,{ImportResource:()=>a});var r=s(28847),o=s(14018),i=s(46993);class a{constructor(e,t){this.hash=t(JSON.stringify(e)),this.name=e?e.name:void 0,this.status=e?e.status:r.ImportResourceStatus.NONE,this.message=e&&e.message?e.message:"",this.context=e&&e.context?e.context:"",this.replaceGraphs=e?e.replaceGraphs:[],this.baseURI=e?e.baseURI:void 0,this.forceSerial=!!e&&e.forceSerial,this.type=e?e.type:void 0,this.format=e?e.format:void 0,this.data=e?e.data:void 0,this.modifiedOn=e?e.lastModified:void 0,this.importedOn=e?e.imported:void 0,this.size=e?e.size:"",this.addedStatements=e?e.addedStatements:0,this.removedStatements=e?e.removedStatements:0,this.numReplacedGraphs=e?e.numReplacedGraphs:0,this.parserSettings=e?e.parserSettings:new o.ImportParsingSettings,this.requestIdHeadersToForward=e?e.requestIdHeadersToForward:void 0}isDirectory(){return i.ImportResourceType.DIRECTORY===this.type}isFile(){return i.ImportResourceType.FILE===this.type||i.ImportResourceType.URL===this.type||i.ImportResourceType.TEXT===this.type}isURL(){return i.ImportResourceType.URL===this.type}isText(){return i.ImportResourceType.TEXT===this.type}}}}; //# sourceMappingURL=55868.d64ae49ed7cd6bc83162.bundle.js.map