import { SolidContainerUri } from "../types.cjs"; import { Dataset } from "@rdfjs/types"; import * as _$rdf_js0 from "rdf-js"; import { LdoDataset } from "@ldo/ldo"; //#region src/util/rdfUtils.d.ts declare const ldpContains: _$rdf_js0.NamedNode<"http://www.w3.org/ns/ldp#contains">; declare const rdfType: _$rdf_js0.NamedNode<"http://www.w3.org/1999/02/22-rdf-syntax-ns#type">; declare const ldpResource: _$rdf_js0.NamedNode<"http://www.w3.org/ns/ldp#Resource">; declare const ldpContainer: _$rdf_js0.NamedNode<"http://www.w3.org/ns/ldp#Container">; declare const ldpBasicContainer: _$rdf_js0.NamedNode<"http://www.w3.org/ns/ldp#BasicContainer">; /** * @internal * Gets the URI of a parent according the the Solid Spec * * @param uri - the child URI * @returns A parent URI or undefined if not possible */ declare function getParentUri(uri: string): SolidContainerUri | undefined; /** * @internal * Gets the slug (last part of the path) for a given URI * * @param uri - the full URI * @returns the slug of the URI */ declare function getSlug(uri: string): string; /** * @internal * Deletes mention of a resource from the provided dataset * * @param resourceUri - the resource to delete * @param dataset - dataset to modify */ declare function deleteResourceRdfFromContainer(resourceUri: string, dataset: Dataset): void; /** * @internal * Adds a resource to a container in an RDF dataset * * @param resourceUri - the resource to add * @param dataset - the dataset to modify */ declare function addResourceRdfToContainer(resourceUri: string, dataset: Dataset): void; /** * @internal * Adds raw turtle to the provided dataset * @param rawTurtle - String of raw turtle * @param dataset - the dataset to modify * @param baseUri - base URI to parsing turtle * @returns Undefined if successful, noncompliantPodError if not */ declare function addRawTurtleToDataset(rawTurtle: string, dataset: Dataset, baseUri: string): Promise; /** * @internal * Creates a dataset from raw turtle string * @param rawTurtle - the Raw turtle string * @param baseUri - A base url for relative uris * @returns LdoDataset or Error */ declare function rawTurtleToDataset(rawTurtle: string, baseUri: string): Promise; //#endregion export { addRawTurtleToDataset, addResourceRdfToContainer, deleteResourceRdfFromContainer, getParentUri, getSlug, ldpBasicContainer, ldpContainer, ldpContains, ldpResource, rawTurtleToDataset, rdfType }; //# sourceMappingURL=rdfUtils.d.cts.map