microdata-rdf-streaming-parser
Version:
A fast and lightweight streaming Microdata to RDF parser
13 lines (12 loc) • 549 B
TypeScript
import type * as RDF from '@rdfjs/types';
import type { IItemScope } from '../IItemScope';
import { Util } from '../Util';
import type { IItemPropertyHandler } from './IItemPropertyHandler';
/**
* Handler for an item property for time tags.
*/
export declare class ItemPropertyHandlerTime implements IItemPropertyHandler {
private static readonly TIME_REGEXES;
canHandle(tagName: string, attributes: Record<string, string>): boolean;
getObject(attributes: Record<string, string>, util: Util, itemScope: IItemScope): RDF.Quad_Object;
}