@jahed/sparql-engine
Version:
SPARQL query engine for servers and web browsers.
16 lines (15 loc) • 739 B
TypeScript
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;
};