UNPKG

tripledoc

Version:

Library to read, create and update documents on a Solid Pod

27 lines (26 loc) 1.24 kB
import { Literal } from 'rdflib'; export * from './document'; export * from './subject'; export * from './store'; /** * Literal values, i.e. values that do not point to other nodes in the Linked Data graph. */ export declare type LiteralTypes = string | number | Date; /** * A URL that points to a node in the Linked Data graph. */ export declare type NodeRef = string; /** * @ignore Tripledoc's methods should be explicit about whether they return or accept a Literal, so * this is merely an internal utility function, rather than a public API. * @param param A value that might or might not be an RDFlib Literal. * @returns Whether `param` is an RDFlib Literal. */ export declare function isLiteral<T>(param: T | Literal): param is Literal; /** * @ignore Tripledoc's methods should be explicit about whether they return or accept a [[NodeRef]], * so this is merely an internal utility function, rather than a public API. * @param param A value that might or might not be a reference to a node in the Linked Data graph. * @returns Whether `param` is a reference to a node in the Linked Data graph. */ export declare function isNodeRef(node: NodeRef | Literal): node is NodeRef;