-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c467488
commit 0e0c6de
Showing
12 changed files
with
34 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{ | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected].0/", | ||
"preact": "https://esm.sh/preact@10.10.6", | ||
"preact/": "https://esm.sh/preact@10.10.6/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected].3/", | ||
"$fresh/": "https://deno.land/x/[email protected].4/", | ||
"preact": "https://esm.sh/preact@10.11.0", | ||
"preact/": "https://esm.sh/preact@10.11.0/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected].4", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"twind": "https://esm.sh/[email protected]", | ||
"twind/": "https://esm.sh/[email protected]/", | ||
"$std/": "https://deno.land/[email protected]/", | ||
|
||
"react": "https://esm.sh/[email protected]/compat", | ||
"react-dom": "https://esm.sh/[email protected]/compat", | ||
|
@@ -20,9 +19,6 @@ | |
"ldkit/sparql": "../sparql.ts", | ||
"ldkit/rdf": "../rdf.ts", | ||
|
||
"n3": "https://esm.sh/n3", | ||
|
||
"https://esm.sh/v94/[email protected]/deno/web-streams-ponyfill.js": "https://esm.sh/v77/[email protected]/deno/web-streams-ponyfill.js", | ||
"https://esm.sh/v94/@types/[email protected]/rdf-js": "https://esm.sh/v94/[email protected]" | ||
"n3": "https://esm.sh/n3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
import type * as RDF from "https://esm.sh/[email protected]"; | ||
import type * as RDF from "npm:[email protected]"; | ||
|
||
export type { RDF }; | ||
|
||
export { fromRdf, toRdf } from "https://esm.sh/[email protected].0"; | ||
export { fromRdf, toRdf } from "npm:[email protected].1"; | ||
|
||
import { | ||
DataFactory, | ||
DefaultGraph, | ||
} from "https://esm.sh/[email protected]"; | ||
import { DataFactory, DefaultGraph } from "npm:[email protected]"; | ||
export { DataFactory, DefaultGraph }; | ||
|
||
import type { | ||
IDataSource, | ||
IQueryContextCommon, | ||
} from "https://esm.sh/@comunica/types@2.4.0"; | ||
} from "npm:@comunica/types@2.6.8"; | ||
|
||
export type LDkitContext = { | ||
graph?: string; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{ | ||
"imports": { | ||
"https://esm.sh/v94/[email protected]/deno/web-streams-ponyfill.js": "https://esm.sh/v77/[email protected]/deno/web-streams-ponyfill.js", | ||
"https://esm.sh/v94/@types/[email protected]/rdf-js": "https://esm.sh/v94/[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert, assertEquals, equal } from "./test_deps.ts"; | ||
import { assert, assertEquals, Comunica, equal } from "./test_deps.ts"; | ||
|
||
import { | ||
createStore, | ||
|
@@ -12,8 +12,6 @@ import { createLens } from "../library/lens/mod.ts"; | |
import { rdf, xsd } from "../library/namespaces/mod.ts"; | ||
import { DataFactory } from "../library/rdf.ts"; | ||
|
||
import { QueryEngine as Comunica } from "https://esm.sh/@comunica/[email protected]"; | ||
|
||
const assertContainsEqual = (haystack: unknown[], needle: unknown) => { | ||
let found = false; | ||
for (const item of haystack) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,11 @@ export { | |
assertStrictEquals, | ||
assertThrows, | ||
equal, | ||
} from "https://deno.land/std@0.153.0/testing/asserts.ts"; | ||
} from "https://deno.land/std@0.179.0/testing/asserts.ts"; | ||
|
||
export { assert as assertTypeSafe } from "https://esm.sh/[email protected]"; | ||
export { assert as assertTypeSafe } from "npm:[email protected]"; | ||
|
||
export { QueryEngine as Comunica } from "npm:@comunica/[email protected]"; | ||
|
||
// @deno-types="npm:@types/n3" | ||
export * as N3 from "npm:[email protected]"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Parser, Store } from "https://esm.sh/[email protected]"; | ||
import { N3 } from "./test_deps.ts"; | ||
|
||
import { | ||
type Context, | ||
|
@@ -14,8 +14,6 @@ const X_NAMESPACE = "http://x/"; | |
|
||
const dataFactory = new DataFactory(); | ||
|
||
// export const x = (s: string) => `${X_NAMESPACE}${s}`; | ||
|
||
export const x = new Proxy( | ||
{}, | ||
{ | ||
|
@@ -73,7 +71,7 @@ export const ttl = (turtle: string) => { | |
|
||
const escapedTurtle = escapePseudoVariables(prefixedTurtle); | ||
const df = DF(); | ||
const escapedQuads = new Parser({ | ||
const escapedQuads = new N3.Parser({ | ||
factory: df, | ||
}).parse(escapedTurtle); | ||
const quads = escapedQuads.map(convertPseudoVariables); | ||
|
@@ -86,16 +84,16 @@ export const createGraph = (turtle: string) => { | |
}; | ||
|
||
export const createStore = () => | ||
new Store(undefined, { | ||
new N3.Store(undefined, { | ||
factory: DF(), | ||
}); | ||
|
||
export const createStoreContext = (store: Store, context?: Context) => ({ | ||
export const createStoreContext = (store: N3.Store, context?: Context) => ({ | ||
...context, | ||
sources: [store], | ||
} as Context); | ||
|
||
export const emptyStore = (store: Store) => { | ||
export const emptyStore = (store: N3.Store) => { | ||
const stream = store.removeMatches(null, null, null, null); | ||
return new Promise((resolve) => { | ||
stream.on("end", resolve); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
{ | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected].1/", | ||
"preact": "https://esm.sh/preact@10.10.6", | ||
"preact/": "https://esm.sh/preact@10.10.6/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected].3/", | ||
"$fresh/": "https://deno.land/x/[email protected].4/", | ||
"preact": "https://esm.sh/preact@10.11.0", | ||
"preact/": "https://esm.sh/preact@10.11.0/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected].4", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"twind": "https://esm.sh/[email protected]", | ||
"twind/": "https://esm.sh/[email protected]/", | ||
"$std/": "https://deno.land/[email protected]/" | ||
"twind/": "https://esm.sh/[email protected]/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ import "https://esm.sh/[email protected]/components/prism-jsx.js?no-check"; | |
import "https://esm.sh/[email protected]/components/prism-typescript.js?no-check"; | ||
import "https://esm.sh/[email protected]/components/prism-tsx.js?no-check"; | ||
import "https://esm.sh/[email protected]/components/prism-diff.js?no-check"; | ||
|
||
export { extract as frontMatter } from "$std/encoding/front_matter.ts"; |