import { BlankNode, NamedNode } from "@rdfjs/types"; import { LanguageOrdering } from "./language/languageTypes"; import { ProxyContext } from "./ProxyContext"; import { GraphType, ObjectLike, QuadMatch } from "./types"; /** * Helps build JSON LD Dataset Proxies for a specific dataset and context */ export declare class JsonldDatasetProxyBuilder { private proxyContext; constructor(proxyContext: ProxyContext); /** * Designates that all Jsonld Dataset Proxies created should write to the * specified graphs */ write(...graphs: GraphType[]): JsonldDatasetProxyBuilder; /** * List the language tags in the order they should be used. When a langString * is accessed, LDO will search for values in the order of language given. * @param languageOrdering The ordering of languages. For example * ("en", "fr", "none", "other"). Defaults to * ("none", "en", "other") */ setLanguagePreferences(...languageOrdering: LanguageOrdering): JsonldDatasetProxyBuilder; /** * Creates a JSON LD Dataset Proxy that matches the given subject * @param subject The node to match */ fromSubject(subject: NamedNode | BlankNode): T; /** * Matches Subjects to provided predicates, objects, and graphs. Returns a * JSON LD Dataset that can be read an modified. * @param predicate The predicate to match * @param object The object to match * @param graph The graph to match */ matchSubject(predicate?: QuadMatch[1], object?: QuadMatch[2], graph?: QuadMatch[3]): T[]; /** * Matches Objects to provided subjects, predicates, and graphs. Returns a * JSON LD Dataset that can be read an modified. * @param subject The subject to match * @param predicate The predicate to match * @param graph The graph to match */ matchObject(subject?: QuadMatch[0], predicate?: QuadMatch[1], graph?: QuadMatch[3]): T[]; /** * Takes a given object and places it in the dataset while returning a JSON LD * Dataset Proxy representing the object. * * @param inputData Initial Data * @param graph Optional graph to save this data to */ fromJson(inputData: T): T; }