UNPKG

graphdb-workbench

Version:
2 lines 8.99 kB
export const __webpack_id__=38412;export const __webpack_ids__=[38412,73779];export const __webpack_modules__={38412:(e,a,t)=>{t.r(a);var n=t(69289),i=t(73779);angular.module("graphdb.framework.rest.graphql.service",[]).factory("GraphqlRestService",r),r.$inject=["$http","Upload"];const l=!1;function r(e,a){const t=new i.GraphqlRestServiceMock;return{getEndpoints:a=>l?t.getEndpointsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/endpoints`),getEndpointsInfo:(a,i)=>l?t.getEndpointsInfoMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/list`),getGraphqlSchemaShapes:a=>l?t.getGraphqlSchemaShapesMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/graphql_shapes`),getPrefixes:a=>l?t.getPrefixesMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/prefixes`),getShaclShapeGraphs:a=>l?t.getShaclGraphsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/shacl_graphs`),getGraphqlGenerationSettings:a=>l?t.getGraphqlGenerationSettingsMock(a):e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/config`),getGraphqlEndpointConfigurationSettings:(a,i)=>l?t.getEndpointConfigurationMock():e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}/config`),getEndpointConfiguration:(a,i)=>l?t.getEndpointConfiguration():e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`),editEndpointConfiguration:(a,i,r)=>l?t.saveEndpointConfigurationMock():e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`,r),deleteEndpoint:(a,i)=>l?t.deleteEndpointMock(a,i):e.delete(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${i}`),generateEndpointFromGraphqlShapes:(a,i)=>l?t.generateEndpointFromGraphqlShapesMock(i):e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/graphql_shapes`,i),generateEndpointFromOwl:(a,i)=>l?t.generateEndpointFromOwl(i):e.post(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/generate/owl_shacl`,i),exportEndpointDefinition:(a,t)=>e.get(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${t}/export`,{responseType:"blob"}),importEndpointDefinition:(e,t)=>a.http({url:`${n.REPOSITORIES_ENDPOINT}/${e}/graphql/manage/endpoints/import`,data:t,headers:{"Content-Type":void 0}}),deleteEndpointGenerationReport:(a,t)=>e.patch(`${n.REPOSITORIES_ENDPOINT}/${a}/graphql/manage/endpoints/${t}/messages`)}}},73779:(e,a,t)=>{t.r(a),t.d(a,{GraphqlRestServiceMock:()=>l});var n=t(98980);const i=200;class l{getEndpointsMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(r)}),200)})}getEndpointsInfoMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(s)}),i)})}getGraphqlSchemaShapesMock(e){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(o)}),i)})}getEndpointConfigurationMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(c)}),i)})}getGraphqlGenerationSettingsMock(){return new Promise(e=>{setTimeout(()=>e({data:(0,n.cloneDeep)(p)}),i)})}}const r={repository:"swapi",endpoints:[{id:"swapi",graphQL:"/rest/repositories/swapi/graphql/swapi",active:!0,default:!0},{id:"film-restricted",graphQL:"/rest/repositories/swapi/graphql/film-restricted",active:!0,default:!1},{id:"swapi-charcters",graphQL:"/rest/repositories/swapi/graphql/swapi-charcters",active:!1,default:!1}]},s={endpoints:[{id:"gqlendpoint1",endpointId:"swapi",endpointURI:"/rest/repositories/swapi/graphql/swapi",label:"SWAPI GraphQL endpoint",description:"SWAPI GraphQL endpoint description",default:!1,active:!0,lastModified:"2025-01-28",objects_count:10,properties_count:120,warnings:0,errors:0,status:""},{id:"gqlendpoint2",endpointId:"film-restricted",endpointURI:"/rest/repositories/swapi/graphql/film-restricted",label:"SWAPI GraphQL endpoint with restricted film relations",description:"SWAPI GraphQL endpoint with restricted film relations description",default:!0,active:!0,lastModified:"2025-01-28",objects_count:13,properties_count:133,warnings:0,errors:0,status:""},{id:"gqlendpoint3",endpointId:"swapi-characters",endpointURI:"/rest/repositories/swapi/graphql/swapi-characters",label:"SWAPI GraphQL endpoint for swapi characters",description:"SWAPI GraphQL endpoint for swapi characters description",default:!1,active:!1,lastModified:"2025-01-28",objects_count:3,properties_count:20,warnings:0,errors:0,status:""}]},o={shapes:[{id:"https://schema.ubs.net/schema/AIModelSchema",name:"AI Model Schema",label:"AI Model Schema",description:null},{id:"https://schema.ubs.net/schema/AIProductSchema",name:"AI Product Schema",label:"AI Product Schema",description:null},{id:"https://schema.ubs.net/schema/DatabaseSchema",name:null,label:"Database Schema",description:null},{id:"https://schema.ubs.net/schema/BbsPermissionSchema",name:null,label:"BBS Permissions",description:null},{id:"https://schema.ubs.net/schema/DataProductBasicSchema",name:null,label:"Data Product Basic Schema No Policy and No Provenance",description:null},{id:"https://schema.ubs.net/schema/DataQualityMetricSchema",name:null,label:"Data Quality Metric Schema",description:"This is the basic schema for DQV initiated from Metric class"},{id:"https://schema.ubs.net/schema/DataQualityObservationSchema",name:null,label:"Data Quality Observation Schema",description:null},{id:"https://schema.ubs.net/schema/DatasetSchema",name:null,label:"Dataset Schema",description:null},{id:"https://schema.ubs.net/schema/ApplicationSchema",name:null,label:"Application Schema",description:null},{id:"https://schema.ubs.net/schema/PolicyBasicSchema",name:null,label:"Policy Basic Schema",description:null},{id:"https://schema.ubs.net/schema/DataQualityMeasurementSchema",name:null,label:"Data Quality Measurement Schema",description:null},{id:"https://schema.ubs.net/schema/DataProductFullSchema",name:null,label:"Data Product Schema where datasets can also be defined",description:null},{id:"https://schema.ubs.net/schema/ValidationSchema",name:null,label:"Validation Schema",description:null},{id:"https://schema.ubs.net/schema/WMAAccountSchema",name:null,label:"WMA Account Schema",description:null}]},c={configs:[{key:"str",label:"String",type:"string",collection:!1,value:"strValue",values:[],regex:"^(?:ALL:?)?(?:(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER)?(?:,(?:-?[\\w]{2}(?:-[\\w]*)?~?|-?NONE|ANY|BROWSER))*)$"},{key:"bool",label:"Boolean value",description:"",type:"boolean",collection:!1,value:!1,values:[]},{key:"select",label:"Select",type:"",collection:!1,value:"Two",values:["One","Two","Three"]},{key:"multiselect",label:"Multiselect",type:"",collection:!0,value:["Angular","JavaScript"],values:["Angular","JavaScript","WebDevelopment"]},{key:"json",label:"JSON",type:"json",collection:!1,value:'{"foo": "bar"}',values:[],required:!0}]},p={configs:[{key:"stringMode",value:"stringOrLangString",label:"stringMode",description:"Specifies the default string mode for data properties without a range definition",type:"string",collection:!1,values:["string","langString","stringOrLangString"],required:!0,regex:null,group:"generic",hidden:!1},{key:"useUnions",value:!0,label:"useUnions",description:"Should GraphQL Unions be used in the result model",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!1},{key:"forceInterfaceTypes",value:!1,label:"forceInterfaceTypes",description:"Decide if parent types are always interfaces or split with interface and subclass",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!1},{key:"defaultMaxCardinality",value:"inf",label:"defaultMaxCardinality",description:"The default maximum cardinality for all values. This defines if properties without explicit cardinality configuration are by default multi or single valued.",type:"string",collection:!1,values:null,required:!1,regex:"^\\d+|inf$",group:"generic",hidden:!1},{key:"readShaclPropertyLabels",value:!0,label:"readShaclPropertyLabels",description:"If the labels and description for the sh:PropertyShape should be used over the sh:path label and description",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"generic",hidden:!0},{key:"removeUnknownRanges",value:!0,label:"removeUnknownRanges",description:"Should remove the invalid and undefined ranges ",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"cleanInvalidInverseOf",value:!0,label:"cleanInvalidInverseOf",description:"Try to fix invalid owl:inverseOf relations",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"includeDeactivatedShapes",value:!1,label:"includeDeactivatedShapes",description:"Include the sh:deactivated shapes in the model",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"dataCleanup",hidden:!0},{key:"readRBACRules",value:!0,label:"readRBACRules",description:"Read RBAC rules from the models",type:"boolean",collection:!1,values:null,required:!1,regex:null,group:"enterprise",hidden:!0}]}}}; //# sourceMappingURL=38412.fa86361561ffa367709f.bundle.js.map