-
-
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.
Improved LDkit API documentation (#91)
Resolves #70.
- Loading branch information
1 parent
dd793a5
commit 902ea96
Showing
61 changed files
with
1,239 additions
and
265 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,13 +1,13 @@ | ||
{ | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected]", | ||
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"@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]/", | ||
"$doc_components/": "https://deno.land/x/[email protected]/", | ||
|
||
"$std/": "https://deno.land/[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
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,2 +1,2 @@ | ||
export { QueryEngine } from "./query_engine.ts"; | ||
export { QueryEngineProxy } from "./query_engine_proxy.ts"; | ||
export * from "./query_engine.ts"; | ||
export * from "./types.ts"; |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { | ||
IDataSource, | ||
IQueryContextCommon, | ||
} from "npm:@comunica/[email protected]"; | ||
|
||
import { RDF } from "../rdf.ts"; | ||
|
||
/** | ||
* A set of context entries that can be passed to a query engine, | ||
* such as data sources, fetch configuration, etc. | ||
* | ||
* @example | ||
* ```typescript | ||
* import { QueryContext, QueryEngine } from "ldkit"; | ||
* | ||
* const context: QueryContext = { | ||
* sources: ["https://dbpedia.org/sparql"], | ||
* }; | ||
* | ||
* const engine = new QueryEngine(); | ||
* await engine.queryBoolean("ASK { ?s ?p ?o }", context); | ||
* ``` | ||
*/ | ||
export type QueryContext = | ||
& RDF.QueryStringContext | ||
& RDF.QuerySourceContext<IDataSource> | ||
& IQueryContextCommon; | ||
|
||
/** | ||
* Interface of a query engine compatible with LDkit | ||
*/ | ||
export type IQueryEngine = RDF.StringSparqlQueryable< | ||
RDF.SparqlResultSupport, | ||
QueryContext | ||
>; |
Oops, something went wrong.