import { GraphType, JsonldDatasetProxyBuilder, QuadMatch, SubjectType, LanguageOrdering } from "jsonld-dataset-proxy"; import { ShapeType } from "./ShapeType"; import { LdoBase } from "./util"; /** * A wrapper around Jsonld Dataset Proxy Builder with a slightly more friendly * user experience that doesn't require the use of rdfjs datatypes. */ export declare class LdoBuilder { private jsonldDatasetProxyBuilder; private shapeType; constructor(jsonldDatasetProxyBuilder: JsonldDatasetProxyBuilder, shapeType: ShapeType); /** * Designates that all Linked Data Objects created should write to the * specified graphs */ write(...graphs: (GraphType | string)[]): LdoBuilder; /** * Sets the order of language preferences for Language Strings. Acceptable * values as EITF language tags, "@none" and "@other" */ setLanguagePreferences(...languageOrdering: LanguageOrdering): LdoBuilder; /** * Creates a Linked Data Object that matches the given subject * @param subject The node to match */ fromSubject(subject: SubjectType | string): Type; /** * 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] | string, object?: QuadMatch[2] | string, graph?: QuadMatch[3] | string): Type[]; /** * Matches Objects to provided subjects, predicates, and graphs. Returns a * collection of Linked Data Objects 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] | string, predicate?: QuadMatch[1] | string, graph?: QuadMatch[3] | string): Type[]; /** * Takes a given object and places it in the dataset while returning a Linked * Data Object representing the object. * * @param inputData Initial Data * @param graph Optional graph to save this data to */ fromJson(inputData: Type): Type; }