rdfa-streaming-parser
Version:
A fast and lightweight streaming RDFa parser
18 lines (17 loc) • 416 B
TypeScript
import * as RDF from "@rdfjs/types";
import { IActiveTag } from "./IActiveTag";
/**
* A datastructure for storing an rdfa:Pattern.
*/
export interface IRdfaPattern {
rootPattern: boolean;
name: string;
attributes: {
[s: string]: string;
};
text: string[];
children: IRdfaPattern[];
referenced: boolean;
parentTag?: IActiveTag;
constructedBlankNodes?: RDF.BlankNode[];
}