semantic-analysis
Version:
Extensible semantic Structured Data analysis library for Microdata and JSON-LD
29 lines (28 loc) • 633 B
TypeScript
import { ILog } from './ILog';
import { IExtractor } from '../extraction';
import DocumentHandler from '../../tools/DocumentHandler';
/**
* Additional extraction info
*/
export interface IMeta {
/**
* Format used to describe the structured data
*/
type: 'JSON-LD' | 'Microdata' | 'RDFa' | 'Microformats';
/**
* Reference to the original extractor
*/
extractor: IExtractor;
/**
* Source document of extraction
*/
document: DocumentHandler;
/**
* Reference to the source element
*/
element: Element;
/**
* Logs, errors etc.
*/
logs: ILog[];
}