UNPKG

semantic-analysis

Version:

Extensible semantic Structured Data analysis library for Microdata and JSON-LD

19 lines (18 loc) 525 B
import { IClass, IProperty, ITerm } from './ITerm'; export declare type MixedTerm = ITerm | IClass | IProperty; /** * Schema structure used in program * @see https://schema.org/docs/datamodel.html */ export interface ISchema { /** * Get term by its ID * @param id ID to search for */ get(id: string): MixedTerm | undefined; /** * Get properties belonging to the set of classes * @param classes Classes specifying domains */ getProperties(...classes: IClass[]): IProperty[]; }