graphqlld-on-file

0.0.3 • Public • Published

GraphQL-LD on a file

This JavaScript library allows to easily execute a GraphQL-LD query on an RDF file.

Usage

The package is available on npm. You can use it as follows.

const { query } = require('graphqlld-on-file');
 
const result = await query('test/test.ttl', {
  name: 'http://schema.org/name'
}, '{ name }');
 
// result = [{name: ['Test']}]

Build the GraphQL-LD engine

The engine used to execute the GraphQL-LD queries is a custom Comunica engine, which is build using the Comunica packager. You can build the engine via the following commands.

  • Install dependencies via npm i.
  • Build GraphQL-LD engine via npm run build:engine.

License

© 2019 Pieter Heyvaert, MIT License

Readme

Keywords

Package Sidebar

Install

npm i graphqlld-on-file

Weekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

68.7 kB

Total Files

10

Last publish

Collaborators

  • pheyvaer