UNPKG

@jahed/sparql-engine

Version:

SPARQL query engine for servers and web browsers.

24 lines (19 loc) 781 B
// SPDX-License-Identifier: MIT import type { Literal, NamedNode, Quad, Variable } from "@rdfjs/types"; import type { Expression, PropertyPath } from "sparqljs"; export type Primitive = number | string | boolean; export type EngineTriple = Quad; export type EngineTripleValue = | EngineTriple["subject"] | EngineTriple["predicate"] | EngineTriple["object"]; export type EngineVariable = Variable; export type EngineExpression = Expression; export type EngineIRI = NamedNode; export type EngineLiteral = Literal; export type EngineSubject = EngineTriple["subject"]; export type EnginePredicate = EngineTriple["predicate"]; export type EngineObject = EngineTriple["object"]; export type EnginePathTriple = Pick<Quad, "subject" | "object"> & { predicate: PropertyPath; };