diff --git a/packages/cli/src/util/forAllShapes.ts b/packages/cli/src/util/forAllShapes.ts index e1c0ec2..b1adf32 100644 --- a/packages/cli/src/util/forAllShapes.ts +++ b/packages/cli/src/util/forAllShapes.ts @@ -1,7 +1,7 @@ import fs from "fs"; import path from "path"; import { shaclStoreToShexSchema, writeShexSchema } from "@jeswr/shacl2shex"; -import { dereferenceStore } from "rdf-dereference-store"; +import { dereferenceToStore } from "rdf-dereference-store"; import type { Store } from "n3"; import { DataFactory as DF } from "n3"; import { rdf } from "rdf-namespaces"; @@ -44,9 +44,9 @@ export async function forAllShapes( const shaclPromise = Promise.all( shapeDir.map(async (file) => { if (file.isFile()) { - let store: Awaited>; + let store: Awaited>; try { - store = await dereferenceStore(path.join(shapePath, file.name), { + store = await dereferenceToStore(path.join(shapePath, file.name), { localFiles: true, }); } catch (e) {