UNPKG

tripledoc

Version:

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

43 lines (42 loc) 2.35 kB
import { IndexedFormula, Literal } from 'rdflib'; import { NodeRef } from './index'; /** * @ignore This is a utility type for other parts of the code, and not part of the public API. */ export declare type FindEntityInStore = (store: IndexedFormula, knownEntity1: NodeRef, knownEntity2: NodeRef, document: NodeRef) => NodeRef | Literal | null; /** * @ignore This is a utility type for other parts of the code, and not part of the public API. */ export declare type FindEntitiesInStore = (store: IndexedFormula, knownEntity1: NodeRef, knownEntity2: NodeRef, document: NodeRef) => Array<NodeRef | Literal>; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare const findSubjectInStore: FindEntityInStore; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare const findSubjectsInStore: FindEntitiesInStore; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare const findPredicateInStore: FindEntityInStore; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare const findPredicatesInStore: FindEntitiesInStore; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare const findObjectInStore: FindEntityInStore; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare const findObjectsInStore: FindEntitiesInStore; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare function findEntityInStore(store: IndexedFormula, type: 'subject' | 'predicate' | 'object', subjectRef: null | NodeRef, predicateRef: null | NodeRef, objectRef: null | NodeRef, documentNode: NodeRef): NodeRef | Literal | null; /** * @ignore This is a utility method for other parts of the code, and not part of the public API. */ export declare function findEntitiesInStore(store: IndexedFormula, type: 'subject' | 'predicate' | 'object', subjectRef: null | NodeRef, predicateRef: null | NodeRef, objectRef: null | NodeRef, documentNode: NodeRef): Array<NodeRef | Literal>;