LDkit

import * as ldkit from "https://deno.land/x/ldkit/sparql.ts";

SPARQL builders that provide a fluent interface for building SPARQL queries

Examples

Example 1

import { SELECT } from "ldkit/sparql";

const query = SELECT`?s ?p ?o`.WHERE`?s ?p ?o`.LIMIT(10).build();
console.log(query); // SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10;

Variables

SPARQL ASK query fluent interface

SPARQL CONSTRUCT query fluent interface

SPARQL DELETE query fluent interface

SPARQL DESCRIBE query fluent interface

SPARQL INSERT query fluent interface

SPARQL OPTIONAL expression fluent interface

SPARQL SELECT query fluent interface

A template tag for SPARQL queries or its parts. Automatically converts values to SPARQL literals and escapes strings as needed.

SPARQL WITH query fluent interface

Type Aliases

Any value that can be used in LDkit SPARQL builders