1(self.webpackChunk=self.webpackChunk||[]).push([[25324],{15404(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RDFGraphStoreService=void 0,t.determineExportedGraphFileName=function(e,t,r){const o=r?"."+r:".rdf";let s;if(t)s=t+o;else if((0,n.startsWith)(e,"file:///"))s=e.replace("file:///",""),/.*-\d\d-\d\d-\d\d\d\d-\d\d-\d\d-\d\d/.test(s)&&(s=s.substring(0,s.length-20));else if((0,n.startsWith)(e,"file:/")){const t=e;s=t.substr(t.lastIndexOf("/")+1)}else if((0,n.startsWith)(e,"urn:asset"))s=e.replace("urn:asset",""),-1!==s.indexOf("/")&&(s=s.substr(s.lastIndexOf("/")+1));else if((0,n.endsWith)(e,"/graph"))try{const t=e.substring(0,e.length-6),r=function(e){const t=(0,l.extractFromCurrentVersionIri)(e);if(t?.length>2){const e=t[2];return e||void 0}return}(t);s=r?function(e,t){const r=(0,l.extractCurrentVersionIri)(e),o=h(r);return o.concat(t).replace("/","-")}(t,r):h(t)}catch{}s||(s=`graph-export-${a().format("YYYY-MM-DDTHH-mm-ss")} ${o}`);s.endsWith(o)||(s+=o);return s};const o=r(21167),n=r(82329),a=r(66070),s=r(26742),i=r(58215),p=r(37929),c=r(76573),u=r(80099),l=r(50581),d="/rdf-graph-store";function h(e){if(-1!==e.lastIndexOf("/")){return e.substring(e.lastIndexOf("/")+1)}return e}t.RDFGraphStoreService=new class{createGraph({targetGraph:e,graphData:t,repository:r}){return u.turtle.serialize.serializeGraph(t).flatMap(t=>this.createGraphRequest({targetGraph:e,turtleString:t,repository:r})).map(e=>u.Rdf.iri(e)).toProperty()}createGraphRequest({targetGraph:e,turtleString:t,repository:r}){const o=c.post(d).query({graph:e.value,repository:r}).send(t).type("text/turtle");return(0,i.requestAsProperty)(o).map(e=>e.header.location)}updateGraph({targetGraph:e,graphData:t,repository:r}){return u.turtle.serialize.serializeGraph(t).flatMap(t=>this.updateGraphRequest({targetGraph:e,turtleString:t,repository:r})).map(e=>u.Rdf.iri(e)).toProperty()}updateGraphRequest({targetGraph:e,turtleString:t,repository:r}){const o=c.put(d).query({graph:e.value,repository:r}).send(t).type("text/turtle");return(0,i.requestAsProperty)(o).map(e=>e.header.location)}createGraphFromFile({targetGraph:e,keepSourceGraphs:t,file:r,contentType:o,onProgress:n,repository:a}){const s=c.post(d).query({graph:e.value,keepSourceGraphs:t,repository:a}).type(o).send(r).on("progress",e=>n(e.percent));return(0,i.requestAsProperty)(s).map(()=>!0)}updateGraphFromFile({targetGraph:e,file:t,contentType:r,onProgress:o,repository:n}){const a=c.put(d).query({graph:e.value,repository:n}).type(r).send(t).on("progress",e=>o(e.percent));return(0,i.requestAsProperty)(a).map(()=>!0)}getGraph({targetGraph:e,repository:t,appContext:r}){const o=c.get(d).query({graph:e.value,repository:t}).accept("text/turtle");return(0,i.requestAsProperty)((0,s.applyApplicationContextParameters)(o,r)).flatMap(e=>u.turtle.deserialize.turtleToGraph(e.text)).toProperty()}getRawGraph({targetGraph:e,repository:t,pretty:r}){const o=c.get(d).query({graph:e.value,repository:t,pretty:r??!1}).accept("text/turtle");return(0,i.requestAsProperty)(o).map(e=>e.ok?e.text:null)}deleteGraph({targetGraph:e,repository:t}){const r=c.del(d).query({graph:e.value,repository:t});return(0,i.requestAsProperty)(r).map(()=>!0)}patchGraph({patch:e,targetGraph:t,repository:r}){const o=c.patch("/rdf-graph-patch").type(p.PATCH_DOCUMENT_MIME_TYPE).query({graph:t.value,repository:r}).send(e);return(0,i.requestAsProperty)(o).map(()=>{})}downloadGraph({targetGraph:e,acceptHeader:t,fileName:r,repository:o,pretty:n}){const a=c.get(d).query({graph:e.value,repository:o,pretty:n}).accept(t);return(0,i.requestAsProperty)(a).mapErrors(e=>this.mapGraphStoreError(e)).map(e=>this.download(e.text,t,r))}download(e,t,r){const n=new Blob([e],{type:t});return o.saveAs(n,r),!0}mapGraphStoreError(e){if(e&&"object"==typeof e){return 413===e.status?"File too large. Please contact your administrator.":"string"==typeof e.response?.text?e.response?.text:e}return null}}},21167(e,t,r){var o,n,a;n=[],void 0===(a="function"==typeof(o=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function o(e,t,r){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){p(o.response,t,r)},o.onerror=function(){console.error("could not download file")},o.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");
1t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,i=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(e,t,r){var i=s.URL||s.webkitURL,p=document.createElement("a");t=t||e.name||"download",p.download=t,p.rel="noopener","string"==typeof e?(p.href=e,p.origin===location.origin?a(p):n(p.href)?o(e,t,r):a(p,p.target="_blank")):(p.href=i.createObjectURL(e),setTimeout(function(){i.revokeObjectURL(p.href)},4e4),setTimeout(function(){a(p)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,s){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),r);else if(n(e))o(e,r,s);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){a(i)})}}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return o(e,t,r);var a="application/octet-stream"===e.type,p=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&p||i)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},u.readAsDataURL(e)}else{var l=s.URL||s.webkitURL,d=l.createObjectURL(e);n?n.location=d:location.href=d,n=null,setTimeout(function(){l.revokeObjectURL(d)},4e4)}});s.saveAs=p.saveAs=p,e.exports=p})?o.apply(t,n):o)||(e.exports=a)},37919(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>x});var o=r(85072),n=r.n(o),a=r(97825),s=r.n(a),i=r(77659),p=r.n(i),c=r(55056),u=r.n(c),l=r(10540),d=r.n(l),h=r(41113),f=r.n(h),y=r(80866),g=r.n(y),m={};for(const e in y)"default"!==e&&(m[e]=()=>y[e]);r.d(t,m);var v={};v.styleTagTransform=f(),v.setAttributes=u(),v.insert=p().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=d();var b=n()(g(),v);if(!g().locals||e.hot.invalidate){var w=!g().locals,G=w?y:g().locals;e.hot.accept(80866,t=>{y=r(80866),g=r.n(y),function(e,t,r){if(!e&&t||e&&!t)return!1;var o;for(o in e)if((!r||"default"!==o)&&e[o]!==t[o])return!1;for(o in t)if(!(r&&"default"===o||e[o]))return!1;return!0}(G,w?y:g().locals,w)?(G=w?y:g().locals,b(g())):e.hot.invalidate()})}e.hot.dispose(function(){b()});const x=g()&&g().locals?g().locals:void 0},37929(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PATCH_DOCUMENT_MIME_TYPE=void 0,t.PATCH_DOCUMENT_MIME_TYPE="application/vnd.metaphacts.graphpatch+json"},50581(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractCurrentVersionIri=t.extractFromCurrentVersionIri=t.versionRegex=void 0,t.assetTypeToPermission=function(e,t,r){e=e.toLowerCase();const o=r?`<${r}>`:"new";switch(e){case"ontology":return`ontologies:${t}:${o}`;case"vocabulary":return`vocabularies:${t}:${o}`;case"vocabularymapping":return`vocabulary-mappings:${t}:${o}`;case"schemaontologymapping":return`schema-ontology-mappings:${t}:${o}`;default:return`custom-assets:${e}:${t}:${o}`}},t.isValidIri=function(e){if(!o.XsdDataTypeValidation.IRI_PATTERN.test(e))return!1;try{const t=o.turtle.deserialize.n3ValueToRdf(`<${e}>`);return o.Rdf.isIri(t)&&Boolean(new URL(e))}catch{return!1}};const o=r(80099);t.versionRegex=new RegExp("^(\\d+)\\.(\\d+)$");t.extractFromCurrentVersionIri=e=>/^(.*?)(((\-|\/)\d+\.\d+[\/\#]{0,1})|[\/\#]){0,1}$/.exec(e);t.extractCurrentVersionIri=e=>{const r=(0,t.extractFromCurrentVersionIri)(e);return r?.length>1?r[1]:e}},75018(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssetDownload=i;const o=r(29093),n=r(76573),a=r(15404),s=r(37919);function i(e){const{assetIri:t,graphIri:r,fileName:i,fileType:p}=e;return o.createElement("a",{className:s.default.component,href:n.getAbsoluteUrl(`/rest/assets/export?assetIri=${encodeURIComponent(t)}&fileName=${encodeURIComponent((()=>
1{if(p&&!i)return(0,a.determineExportedGraphFileName)(r,void 0,p);const e=i?i.lastIndexOf("."):0,t=0===e?i:i.substring(0,e),o=e>0?i.substring(e+1):"ttl";return(0,a.determineExportedGraphFileName)(r,t,o)})())}`)},e.children)}t.default=i},80866(e,t,r){var o=r(31601),n=r(76314)(o);n.push([e.id,"/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n/* key page element dimensions */\n/* z-index */\n/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n/* key page element dimensions */\n/* z-index */\n/*\n * Copyright (C) 2015-2026, metaphacts GmbH\n */\n.AssetDownload--component:hover {\n text-decoration: none;\n}",""]),n.locals={component:"AssetDownload--component"},e.exports=n}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.