Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
karelklima committed Mar 5, 2024
1 parent 201f152 commit 610a0eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import * as ldkit from "https://deno.land/x/ldkit/mod.ts";
### Create data schema and set up RDF source

```ts
import { type Context, createLens } from "ldkit";
import { createLens, type Options } from "ldkit";
import { dbo, rdfs, xsd } from "ldkit/namespaces";

// Create a schema
Expand All @@ -54,14 +54,14 @@ const PersonSchema = {
},
} as const;

// Create a context for query engine
const context: Context = {
// Create options for query engine
const options: Options = {
sources: ["https://dbpedia.org/sparql"], // SPARQL endpoint
language: "en", // Preferred language
};

// Create a resource using the data schema and context above
const Persons = createLens(PersonSchema, context);
// Create a resource using the data schema and options above
const Persons = createLens(PersonSchema, options);
```

### List all available data
Expand Down

0 comments on commit 610a0eb

Please sign in to comment.