microdata-rdf-streaming-parser
Version:
A fast and lightweight streaming Microdata to RDF parser
11 lines (10 loc) • 426 B
TypeScript
import type * as RDF from '@rdfjs/types';
import type { IItemScope } from '../IItemScope';
import type { Util } from '../Util';
/**
* Interface for handling special types of item properties.
*/
export interface IItemPropertyHandler {
canHandle: (tagName: string, attributes: Record<string, string>) => boolean;
getObject: (attributes: Record<string, string>, util: Util, itemScope: IItemScope) => RDF.Quad_Object;
}