graphql-to-sparql
Version:
Converts GraphQL queries to SPARQL queries
18 lines (17 loc) • 942 B
TypeScript
import type * as RDF from '@rdfjs/types';
import type { ListValueNode } from 'graphql/language';
import type { IConvertContext } from '../../IConvertContext';
import type { IConvertSettings } from '../../IConvertSettings';
import type { Util } from '../../Util';
import type { IValueNodeHandlerOutput } from './NodeValueHandlerAdapter';
import { NodeValueHandlerAdapter } from './NodeValueHandlerAdapter';
/**
* Converts GraphQL lists to RDF lists if settings.arraysToRdfLists is true, otherwise it converts to multiple values.
*/
export declare class NodeValueHandlerList extends NodeValueHandlerAdapter<ListValueNode> {
protected readonly nodeFirst: RDF.NamedNode;
protected readonly nodeRest: RDF.NamedNode;
protected readonly nodeNil: RDF.NamedNode;
constructor(util: Util, settings: IConvertSettings);
handle(valueNode: ListValueNode, fieldName: string, convertContext: IConvertContext): IValueNodeHandlerOutput;
}