fybdp-d3-kg
Version:
Knowledge Graph using React and D3.js
40 lines (39 loc) • 1.11 kB
TypeScript
export declare class Parser {
graph: any;
nodes: any;
links: any;
private classMap;
private edgesMap;
private ontologyData;
constructor(graph: any);
getNodes(): any;
getLinks(): any;
parse: (ontologyData: any) => {
nodes: any;
links: any;
};
private combineClasses;
private mergeTargetsOfEquivalentProperties;
private combineProperties;
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;
private wasNodeMerged;
private referenceSubOrSuperProperties;
private processDisjoints;
private getOtherEqualProperty;
private createPropertyStructure;
}