Converts GraphQL queries into SPARQL queries or SPARQL algebra using a JSON-LD context, enabling GraphQL-LD. Version 6.0.0 is released with TypeScript types. Supports nested fields, arguments, aliases, and reverse properties. Unlike generic RDF libraries, it provides a direct GraphQL-to-SPARQL conversion without intermediate representations.
npm install graphql-to-sparqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a GraphQL query to SPARQL algebra using a JSON-LD context with nested fields.
Use import syntax instead of require().
Use graphqlToSparqlAlgebra() which returns SPARQL algebra object instead of string.
Ensure argument values are properly escaped and typed if using non-string types.
Use graphqlToSparqlAlgebra() which returns algebra object.
Set 'type': 'module' in package.json or rename file to .mjs.
No dependency data recorded yet.