@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
41 lines • 1.48 kB
TypeScript
import { TypeGuard } from '../../resources/type-guard';
import { ClassAndPropertyDefinitions } from '../ClassAndPropertyDefinitions';
import { ClassDefinition } from '../class-definition';
import { PropertyDefinition } from '../property-definition';
/**
* @category Model V2
*/
export declare class ReadOntology extends ClassAndPropertyDefinitions {
id: string;
label: string;
comment?: string;
lastModificationDate?: string;
properties: {
[index: string]: PropertyDefinition;
};
classes: {
[index: string]: ClassDefinition;
};
dependsOnOntologies: Set<string>;
/**
* Gets all class definitions from the ontology's entity info.
*/
getAllClassDefinitions(): ClassDefinition[];
/**
* Gets class definitions restricted by type from the ontology's entity info.
*
* @param type restriction to a certain class definition type.
*/
getClassDefinitionsByType<T extends ClassDefinition>(type: TypeGuard.Constructor<T>): T[];
/**
* Gets all property definitions from the ontology's entity info.
*/
getAllPropertyDefinitions(): PropertyDefinition[];
/**
* Gets property definitions restricted by type from the ontology's entity info.
*
* @param type restriction to a certain property definition type.
*/
getPropertyDefinitionsByType<T extends PropertyDefinition>(type: TypeGuard.Constructor<T>): T[];
}
//# sourceMappingURL=read-ontology.d.ts.map