@rdfc/sds-storage-writer-ts
Version:
An RDF-Connect processor to write SDS streams into a given storage system
44 lines (43 loc) • 987 B
TypeScript
import type * as RDF from "@rdfjs/types";
import { RelationType } from "@treecg/types";
export type Record = {
stream: string;
payload: string;
buckets: string[];
dataless?: boolean;
};
export type Bucket = {
id: string;
streamId: string;
immutable?: boolean;
root?: boolean;
empty?: boolean;
};
export type RdfThing = {
id: RDF.Term;
quads: RDF.Quad[];
};
export type Relation = {
type: RelationType;
stream: string;
origin: string;
bucket: string;
value?: RdfThing;
path?: RdfThing;
};
export declare class Extract {
private data;
private description;
private removeDescription;
constructor(full: RDF.Quad[]);
getData(): RDF.Quad[];
getRecords(): Record[];
getBuckets(): Bucket[];
getRelations(): Relation[];
getRemoveRelations(): Relation[];
}
export declare class Extractor {
constructor();
extract_quads(quads: RDF.Quad[]): Extract;
extract(inp: string): Extract;
}