UNPKG

graphdb-workbench

Version:
2 lines 6.11 kB
export const __webpack_id__=28319;export const __webpack_ids__=[28319,70826];export const __webpack_modules__={28319:(t,e,s)=>{s.r(e),s.d(e,{AdditionalExtractionMethod:()=>c,AdditionalExtractionMethodModel:()=>h,AdditionalExtractionMethodsModel:()=>l,AgentCompatibility:()=>m,AgentInstructionsModel:()=>o,AgentListFilterModel:()=>u,AgentListModel:()=>d,AgentModel:()=>n,ExtractionMethod:()=>_,ExtractionMethodModel:()=>a});var i=s(98980),r=s(70826);class n{constructor(t,e){this.hashGenerator=e,this._isDeleted=!1,this._id=t.id,this._name=t.name,this._repositoryId=t.repositoryId,this.isRepositoryDeleted=void 0!==t.isRepositoryDeleted&&t.isRepositoryDeleted,this._model=t.model,this._contextSize=t.contextSize,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods,this._compatibility=t.compatibility||m.COMPATIBLE,this._isCompatible=this._compatibility===m.COMPATIBLE}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get contextSize(){return this._contextSize}set contextSize(t){this._contextSize=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}get compatibility(){return this._compatibility}get isCompatible(){return this._isCompatible}}class o{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}class a{constructor(t){this._method=t.method,this._addMissingNamespaces=t.addMissingNamespaces,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance,this._connectorFields=t.connectorFields||[],this._connectorType=t.connectorType||null}get method(){return this._method}set method(t){this._method=t}get addMissingNamespaces(){return this._addMissingNamespaces}set addMissingNamespaces(t){this._addMissingNamespaces=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}get connectorFields(){return this._connectorFields}set connectorFields(t){this._connectorFields=t}get connectorType(){return this._connectorType}set connectorType(t){this._connectorType=t}}class l{constructor(t){this._additionalExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class h{constructor(t){this._method=t.method,this._maxNumberOfResultsPerCall=t.maxNumberOfResultsPerCall}get method(){return this._method}set method(t){this._method=t}get maxNumberOfResultsPerCall(){return this._maxNumberOfResultsPerCall}set maxNumberOfResultsPerCall(t){this._maxNumberOfResultsPerCall=t}}class d{constructor(t=[]){this._agents=t,this._filterableAgents=(0,i.cloneDeep)(t),this._agentNameByIdMap={},this._initializeAgentNameByIdMap()}_initializeAgentNameByIdMap(){this._agentNameByIdMap=this._agents.reduce((t,e)=>(t[e.id]=e.name,t),{})}isEmpty(){return 0===this._agents.length}filterByRepository(t){this._filterableAgents=this._agents.filter(e=>t===r.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0))}getAgent(t){return this._agents.find(e=>e.id===t)}get agents(){return this._agents}set agents(t){this._agents=t}get filterableAgents(){return this._filterableAgents}set filterableAgents(t){this._filterableAgents=t}get agentNameByIdMap(){return(0,i.cloneDeep)(this._agentNameByIdMap)}set agentNameByIdMap(t){this._agentNameByIdMap=t}}const _={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},c={IRI_DISCOVERY_SEARCH:"iri_discovery_search",AUTOCOMPLETE_IRI_DISCOVERY_SEARCH:"autocomplete_iri_discovery_search"};class u{constructor(t,e,s=!1){this._key=t,this._label=e,this._selected=s}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get selected(){return this._selected}set selected(t){this._selected=t}}const m={COMPATIBLE:"COMPATIBLE",INCOMPATIBLE:"INCOMPATIBLE"}},70826:(t,e,s)=>{s.r(e),s.d(e,{AGENTS_FILTER_ALL_KEY:()=>r,AGENT_OPERATION:()=>n,TTYG_ERROR_MSG_LENGTH:()=>i});const i=100,r="ALL",n={CREATE:"create",EDIT:"edit",CLONE:"clone"}}}; //# sourceMappingURL=28319.09cbd0a9760d525facb1.bundle.js.map