export = WOQLQuery; declare class WOQLQuery extends WOQLQueryExt { /** * @param {typedef.GraphRef} [Graph] - the resource identifier of a graph possible * @param {string|Var} [Subj] - The IRI of a triple’s subject or a variable * @param {string|Var} [Pred] - The IRI of a property or a variable * @param {string|Var} [Obj] - The IRI of a node or a variable, or a literal * @returns {WOQLQuery} - A WOQLQuery which contains the pattern matching expression */ /** * Simple composite functions which produce WOQL queries */ star(Graph: any, Subj: any, Pred: any, Obj: any): WOQLQueryExt; /** * @param {string|Var} [Subj] - The IRI of a triple’s subject or a variable * @param {string|Var} [Pred] - The IRI of a property or a variable * @param {string|Var} [Obj] - The IRI of a node or a variable, or a literal * @param {typedef.GraphRef} [Graph] - the resource identifier of a graph possible * @returns {WOQLQuery} - A WOQLQuery which contains the pattern matching expression */ all(Subj?: any, Pred?: any, Obj?: any, Graph?: string): WOQLQuery; /** * Update a pattern matching rule for the triple (Subject, Predicate, oldObjValue) with the * new one (Subject, Predicate, newObjValue) * @param {string|Var} subject - The IRI of a triple’s subject or a variable * @param {string|Var} predicate - The IRI of a property or a variable * @param {string|Var} newObjValue - The value to update or a literal * @param {string|Var} oldObjValue - The old value of the object * @returns {WOQLQuery} A WOQLQuery which contains the a Update Triple Statement */ update_triple(subject: any, predicate: any, newObjValue: any, oldObjValue: any): WOQLQuery; /** * @description Update a pattern matching rule for the quad [S, P, O, G] * (Subject, Predicate, Object, Graph) * @param {string} subject - The IRI of a triple’s subject or a variable * @param {string} predicate - The IRI of a property or a variable * @param {string} newObject - The value to update or a literal * @param {string} graph - the resource identifier of a graph possible value are * schema/{main - myschema - *} | instance/{main - myschema - *} | inference/{main - myschema - *} * @returns {WOQLQuery} A WOQLQuery which contains the a Update Quad Statement */ update_quad(subject: string, predicate: string, newObject: string, graph: string): WOQLQuery; /** * Deletes all triples in the passed graph (defaults to instance/main) * @param {typedef.GraphRef} [graphRef] - Resource String identifying the graph from * which all triples will be removed * @returns {WOQLQuery} - A WOQLQuery which contains the deletion expression */ nuke(graphRef?: string): WOQLQuery; /** * * @param {string|Var} node - The IRI of a node or a variable containing an IRI which will * be the subject of the builder functions * @param {typedef.FuntionType} [type] - Optional type of builder function to build * (default is triple) * @returns {WOQLQuery} - A WOQLQuery which contains the partial Node pattern matching expression * @example */ node(node: any, type?: typedef.FuntionType): WOQLQuery; /** * Sets the graph resource ID that will be used for subsequent chained function calls * @param {typedef.GraphRef} [graphRef] Resource String identifying the graph which will * be used for subsequent chained schema calls * @returns {WOQLQuery} A WOQLQuery which contains the partial Graph pattern matching expression */ graph(graphRef?: string): WOQLQuery; _set_context(ctxt: any): WOQLQuery; /** * @param {string|Var} id - IRI string or variable containing * @param {string|Var} type - IRI string or variable containing the IRI of the * @param {typedef.GraphRef} [refGraph] - Optional Graph resource identifier * @returns {WOQLQuery} A WOQLQuery which contains the insert expression */ insert(id: any, type: any, refGraph?: string): WOQLQuery; } import WOQLQueryExt = require("./woqlQuery"); import typedef = require("../typedef");