zazuko / query-rdf-data-cube

Explore or query RDF Data Cubes with a JavaScript API, without writing SPARQL.
https://zazuko.github.io/query-rdf-data-cube/
9 stars 2 forks source link

sparqljs import issue #49

Closed BenjaminHofstetter closed 4 years ago

BenjaminHofstetter commented 4 years ago

I am using /@zazuko/query-rdf-data-cube in an Angular App. The compiler complains about sparqljs like this.


    ERROR in node_modules/@zazuko/query-rdf-data-cube/dist/node/query.d.ts:6:44 - error TS2307: Cannot find module './sparqljs'.

    6 import { FilterPattern, SelectQuery } from "./sparqljs";
                                                 ~~~~~~~~~~~~

I am not sure but maybe it should be like this...

import { FilterPattern, SelectQuery } from "sparqljs";
vhf commented 4 years ago

The error is in a typings file, not in code. ./sparqljs refers to this file: https://github.com/zazuko/query-rdf-data-cube/blob/2c8dfbb7273c5fd803922887f9c9a50c83a3ecbe/src/sparqljs.d.ts .

It looks like this file is missing from the npm package, I'll look into it.

vhf commented 4 years ago

Published @zazuko/query-rdf-data-cube@0.7.1