UNPKG

fybdp-d3-kg

Version:

Knowledge Graph using React and D3.js

65 lines (64 loc) 2.18 kB
export declare class Parser { graph: any; constructor(graph: any); nodes: any; properties: any; classMap: any; propertyMap: any; ontologyData: any; settingsData: any; settingsImported: boolean; settingsImportGraphZoomAndTranslation: boolean; dictionary: never[]; getDictionary(): never[]; setDictionary(d: any): void; parseSettings(): void; parse: (ontologyData: any) => void; private combineClasses; private combineProperties; private mergeRangesOfEquivalentProperties; private checkLabel; private createNodeStructure; private findId; private processEquivalentIds; private addAdditionalAttributes; /** * Generates and adds properties for links to set operators. * @param classes unprocessed classes * @param properties unprocessed properties */ private addSetOperatorProperties; /** * Creates a map by mapping the array with the passed function. * @param array the array * @returns {{}} */ private mapElements; /** * Tries to convert the type to an iri and sets it. * @param elements classes or properties * @param namespaces an array of namespaces */ private convertTypesToIris; /** * Replaces the namespace (and the separator) if one exists and returns the new value. * @param address the address with a namespace in it * @param namespaces an array of namespaces * @returns {string} the processed address with the (possibly) replaced namespace */ private replaceNamespace; private wasNodeMerged; private referenceSubOrSuperProperties; private processDisjoints; private getOtherEqualProperty; /** * Connect all properties and also their sub- and superproperties. * We iterate over the rawProperties array because it is way faster than iterating * over an object and its attributes. * * @param rawProperties the properties * @param classMap a map of all classes * @param propertyMap the properties in a map */ private createPropertyStructure; }